Searched refs:getPowerManager (Results 1 – 6 of 6) sorted by relevance
/cts/common/device-side/util/src/com/android/compatibility/common/util/ |
D | BatteryUtils.java | 40 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/ |
D | BatteryUtils.java | 43 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/ |
D | BatterySaverLocationTest.java | 150 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()
|
D | BatterySaverTest.java | 50 assertFalse(getPowerManager().isPowerSaveMode()); in testActivateBatterySaver() 52 getPowerManager().getLocationPowerSaveMode()); in testActivateBatterySaver() 80 PowerManager manager = BatteryUtils.getPowerManager(); in testSetBatterySaver_powerManager()
|
D | BatterySavingTestBase.java | 118 public PowerManager getPowerManager() { in getPowerManager() method in BatterySavingTestBase
|
/cts/tests/tests/os/src/android/os/cts/ |
D | PowerManagerTest.java | 93 PowerManager manager = BatteryUtils.getPowerManager(); in testPowerManager_getPowerSaveMode() 112 PowerManager manager = BatteryUtils.getPowerManager(); in testPowerManager_setDynamicPowerSavings()
|