Lines Matching refs:power
33 using ::android::hardware::power::V1_0::IPower;
34 using ::android::hardware::power::V1_0::Feature;
35 using ::android::hardware::power::V1_0::PowerHint;
36 using ::android::hardware::power::V1_0::PowerStatePlatformSleepState;
37 using ::android::hardware::power::V1_0::Status;
53 power = IPower::getService(GetParam()); in SetUp()
54 ASSERT_NE(power, nullptr); in SetUp()
59 sp<IPower> power; member in PowerHidlTest
66 ret = power->setInteractive(true); in TEST_P()
69 ret = power->setInteractive(false); in TEST_P()
88 ret = power->setInteractive(true); in TEST_P()
91 ret = power->setInteractive(false); in TEST_P()
94 ret = power->setInteractive(false); in TEST_P()
97 power->powerHint(PowerHint::LAUNCH, 1); in TEST_P()
98 power->powerHint(PowerHint::LAUNCH, 0); in TEST_P()
114 ret = power->powerHint(hint, 30000); in TEST_P()
117 ret = power->powerHint(hint, 0); in TEST_P()
132 ret = power->powerHint(*iter, 0); in TEST_P()
136 ret = power->powerHint(*iter, 30000); in TEST_P()
145 ret = power->setFeature(Feature::POWER_FEATURE_DOUBLE_TAP_TO_WAKE, true); in TEST_P()
147 ret = power->setFeature(Feature::POWER_FEATURE_DOUBLE_TAP_TO_WAKE, false); in TEST_P()
151 ret = power->setFeature(badFeature, true); in TEST_P()
153 ret = power->setFeature(badFeature, false); in TEST_P()
166 Return<void> ret = power->getPlatformLowPowerStats(cb); in TEST_P()