Home
last modified time | relevance | path

Searched refs:getPowerManager (Results 1 – 6 of 6) sorted by relevance

/cts/common/device-side/util/src/com/android/compatibility/common/util/
DBatteryUtils.java40 public static PowerManager getPowerManager() { in getPowerManager() method in BatteryUtils
84 waitUntil("Battery saver still off", () -> getPowerManager().isPowerSaveMode()); in enableBatterySaver()
85 waitUntil("Location mode still " + getPowerManager().getLocationPowerSaveMode(), in enableBatterySaver()
87 != getPowerManager().getLocationPowerSaveMode())); in enableBatterySaver()
98 waitUntil("Battery saver still on", () -> !getPowerManager().isPowerSaveMode()); in enableBatterySaver()
99 waitUntil("Location mode still " + getPowerManager().getLocationPowerSaveMode(), in enableBatterySaver()
101 == getPowerManager().getLocationPowerSaveMode())); in enableBatterySaver()
119 waitUntil("Device still not interactive", () -> getPowerManager().isInteractive()); in turnOnScreen()
123 waitUntil("Device still interactive", () -> !getPowerManager().isInteractive()); in turnOnScreen()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DBatteryUtils.java43 public static PowerManager getPowerManager() { in getPowerManager() method in BatteryUtils
87 waitUntil("Battery saver still off", () -> getPowerManager().isPowerSaveMode()); in enableBatterySaver()
88 waitUntil("Location mode still " + getPowerManager().getLocationPowerSaveMode(), in enableBatterySaver()
90 != getPowerManager().getLocationPowerSaveMode())); in enableBatterySaver()
101 waitUntil("Battery saver still on", () -> !getPowerManager().isPowerSaveMode()); in enableBatterySaver()
102 waitUntil("Location mode still " + getPowerManager().getLocationPowerSaveMode(), in enableBatterySaver()
104 == getPowerManager().getLocationPowerSaveMode())); in enableBatterySaver()
122 waitUntil("Device still not interactive", () -> getPowerManager().isInteractive()); in turnOnScreen()
126 waitUntil("Device still interactive", () -> !getPowerManager().isInteractive()); in turnOnScreen()
/cts/tests/tests/batterysaving/src/android/os/cts/batterysaving/
DBatterySaverLocationTest.java150 assertTrue("Screen is off", getPowerManager().isInteractive()); in testLocationAllDisabled()
152 assertFalse(getPowerManager().isPowerSaveMode()); in testLocationAllDisabled()
154 getPowerManager().getLocationPowerSaveMode()); in testLocationAllDisabled()
167 final int mode = getPowerManager().getLocationPowerSaveMode(); in testLocationAllDisabled()
173 assertTrue(getPowerManager().isInteractive()); in testLocationAllDisabled()
278 assertTrue("Screen is off", getPowerManager().isInteractive()); in testLocationRequestThrottling()
281 assertFalse(getPowerManager().isPowerSaveMode()); in testLocationRequestThrottling()
283 getPowerManager().getLocationPowerSaveMode()); in testLocationRequestThrottling()
294 final int mode = getPowerManager().getLocationPowerSaveMode(); in testLocationRequestThrottling()
300 assertTrue(getPowerManager().isInteractive()); in testLocationRequestThrottling()
DBatterySaverTest.java50 assertFalse(getPowerManager().isPowerSaveMode()); in testActivateBatterySaver()
52 getPowerManager().getLocationPowerSaveMode()); in testActivateBatterySaver()
80 PowerManager manager = BatteryUtils.getPowerManager(); in testSetBatterySaver_powerManager()
DBatterySavingTestBase.java118 public PowerManager getPowerManager() { in getPowerManager() method in BatterySavingTestBase
/cts/tests/tests/os/src/android/os/cts/
DPowerManagerTest.java93 PowerManager manager = BatteryUtils.getPowerManager(); in testPowerManager_getPowerSaveMode()
112 PowerManager manager = BatteryUtils.getPowerManager(); in testPowerManager_setDynamicPowerSavings()