Lines Matching defs:vr
20 #include <android/hardware/vr/1.0/IVr.h>
21 #include <hardware/vr.h>
24 using ::android::hardware::vr::V1_0::IVr;
29 // The main test class for VR HIDL HAL.
33 vr = ::testing::VtsHalHidlTargetTestBase::getService<IVr>();
34 ASSERT_NE(vr, nullptr);
39 sp<IVr> vr;
52 // Sanity check that Vr::init does not crash.
54 EXPECT_TRUE(vr->init().isOk());
57 // Sanity check Vr::setVrMode is able to enable and disable VR mode.
59 EXPECT_TRUE(vr->init().isOk());
60 EXPECT_TRUE(vr->setVrMode(true).isOk());
61 EXPECT_TRUE(vr->setVrMode(false).isOk());
64 // Sanity check that Vr::init and Vr::setVrMode can be used in any order.
66 EXPECT_TRUE(vr->init().isOk());
67 EXPECT_TRUE(vr->setVrMode(true).isOk());
68 EXPECT_TRUE(vr->init().isOk());
69 EXPECT_TRUE(vr->setVrMode(false).isOk());
70 EXPECT_TRUE(vr->init().isOk());
71 EXPECT_TRUE(vr->setVrMode(false).isOk());