Searched refs:enableBatterySaver (Results 1 – 9 of 9) sorted by relevance
18 import static com.android.compatibility.common.util.BatteryUtils.enableBatterySaver;86 enableBatterySaver(true); in testActivateBatterySaver()97 enableBatterySaver(false); in testActivateBatterySaver()107 enableBatterySaver(false); in testSetBatterySaver_powerManager()142 enableBatterySaver(true); in testAutomotiveProjectionExceptions()195 enableBatterySaver(true); in testGlobalSettings()217 enableBatterySaver(true); in testDeviceConfig()240 enableBatterySaver(true); in testGlobalSettingsOverridesDeviceConfig()
23 import static com.android.compatibility.common.util.BatteryUtils.enableBatterySaver;63 enableBatterySaver(false); in testBgServiceThrottled()79 enableBatterySaver(true); in testBgServiceThrottled()
18 import static com.android.compatibility.common.util.BatteryUtils.enableBatterySaver;78 enableBatterySaver(false);
610 BatteryUtils.enableBatterySaver(false); in testBatterySaverOff()624 BatteryUtils.enableBatterySaver(true); in testBatterySaverOn()638 BatteryUtils.enableBatterySaver(true); in testUidActiveBypassesBatterySaverOn()654 BatteryUtils.enableBatterySaver(true); in testBatterySaverOnThenUidActive()673 BatteryUtils.enableBatterySaver(true); in testExpeditedJobBypassesBatterySaverOn()687 BatteryUtils.enableBatterySaver(false); in testExpeditedJobBypassesBatterySaver_toggling()691 BatteryUtils.enableBatterySaver(true); in testExpeditedJobBypassesBatterySaver_toggling()760 BatteryUtils.enableBatterySaver(true); in testExpeditedJobDeferredAfterTimeoutInBatterySaver()780 BatteryUtils.enableBatterySaver(false); in testExpeditedJobDeferredAfterTimeoutInBatterySaver()807 BatteryUtils.enableBatterySaver(true); in testExpeditedJobDeferredAfterTimeout_DozeAndBatterySaver()[all …]
465 BatteryUtils.enableBatterySaver(true); in testExpeditedJobExecutes_BatterySaverOn()537 BatteryUtils.enableBatterySaver(true); in testExpeditedJobBypassesSimultaneousFirewalls_noDataSaver()832 BatteryUtils.enableBatterySaver(true); in testExpeditedJobDoesNotBypassSimultaneousFirewalls_withDataSaver()
214 BatteryUtils.enableBatterySaver(false); in testNightModeInCarModeOnPowerSaveIsTransient()220 BatteryUtils.enableBatterySaver(true); in testNightModeInCarModeOnPowerSaveIsTransient()225 BatteryUtils.enableBatterySaver(false); in testNightModeInCarModeOnPowerSaveIsTransient()231 BatteryUtils.enableBatterySaver(true); in testNightModeInCarModeOnPowerSaveIsTransient()248 BatteryUtils.enableBatterySaver(false); in testNightModeInCarModeOnPowerSaveIsTransient()
116 public static void enableBatterySaver(boolean enabled) throws Exception { in enableBatterySaver() method in BatteryUtils
698 BatteryUtils.enableBatterySaver(true); in testRequestLocationUpdates_BatterySaver_GpsDisabledScreenOff()720 BatteryUtils.enableBatterySaver(false); in testRequestLocationUpdates_BatterySaver_GpsDisabledScreenOff()745 BatteryUtils.enableBatterySaver(true); in testRequestLocationUpdates_BatterySaver_AllDisabledScreenOff()762 BatteryUtils.enableBatterySaver(false); in testRequestLocationUpdates_BatterySaver_AllDisabledScreenOff()787 BatteryUtils.enableBatterySaver(true); in testRequestLocationUpdates_BatterySaver_ThrottleScreenOff()804 BatteryUtils.enableBatterySaver(false); in testRequestLocationUpdates_BatterySaver_ThrottleScreenOff()
100 BatteryUtils.enableBatterySaver(false); in setUp()