Lines Matching refs:power
31 using ::android::hardware::power::V1_0::IPower;
32 using ::android::hardware::power::V1_0::Feature;
33 using ::android::hardware::power::V1_0::PowerHint;
34 using ::android::hardware::power::V1_0::PowerStatePlatformSleepState;
35 using ::android::hardware::power::V1_0::Status;
63 power = ::testing::VtsHalHidlTargetTestBase::getService<IPower>( in SetUp()
65 ASSERT_NE(power, nullptr); in SetUp()
70 sp<IPower> power; member in PowerHidlTest
77 ret = power->setInteractive(true); in TEST_F()
80 ret = power->setInteractive(false); in TEST_F()
109 ret = power->setInteractive(true); in TEST_F()
112 ret = power->setInteractive(false); in TEST_F()
115 ret = power->setInteractive(false); in TEST_F()
118 power->powerHint(PowerHint::LAUNCH, 1); in TEST_F()
119 power->powerHint(PowerHint::LAUNCH, 0); in TEST_F()
137 ret = power->powerHint(hint, 30000); in TEST_F()
140 ret = power->powerHint(hint, 0); in TEST_F()
155 ret = power->powerHint(*iter, 0); in TEST_F()
159 ret = power->powerHint(*iter, 30000); in TEST_F()
168 ret = power->setFeature(Feature::POWER_FEATURE_DOUBLE_TAP_TO_WAKE, true); in TEST_F()
170 ret = power->setFeature(Feature::POWER_FEATURE_DOUBLE_TAP_TO_WAKE, false); in TEST_F()
174 ret = power->setFeature(badFeature, true); in TEST_F()
176 ret = power->setFeature(badFeature, false); in TEST_F()
189 Return<void> ret = power->getPlatformLowPowerStats(cb); in TEST_F()