Searched refs:enableBatterySaver (Results 1 – 9 of 9) sorted by relevance
20 import static com.android.compatibility.common.util.BatteryUtils.enableBatterySaver;106 enableBatterySaver(true); in testActivateBatterySaver()117 enableBatterySaver(false); in testActivateBatterySaver()142 enableBatterySaver(true, false); in testActivateBatterySaver_notSupported()154 enableBatterySaver(false); in testSetBatterySaver_powerManager()196 enableBatterySaver(true); in testAutomotiveProjectionExceptions()254 enableBatterySaver(true); in testGlobalSettings()280 enableBatterySaver(true); in testDeviceConfig()307 enableBatterySaver(true); in testGlobalSettingsOverridesDeviceConfig()
24 import static com.android.compatibility.common.util.BatteryUtils.enableBatterySaver;192 enableBatterySaver(true); in testAllowWhileIdleThrottled()244 enableBatterySaver(false); in testAllowWhileIdleThrottled()265 enableBatterySaver(true); in testAlarmsThrottled()303 enableBatterySaver(false); in testAlarmsThrottled()
24 import static com.android.compatibility.common.util.BatteryUtils.enableBatterySaver;65 enableBatterySaver(false); in testBgServiceThrottled()81 enableBatterySaver(true); in testBgServiceThrottled()
732 BatteryUtils.enableBatterySaver(false); in testBatterySaverOff()743 BatteryUtils.enableBatterySaver(true); in testBatterySaverOn()754 BatteryUtils.enableBatterySaver(true); in testUidActiveBypassesBatterySaverOn()767 BatteryUtils.enableBatterySaver(true); in testBatterySaverOnThenUidActive()783 BatteryUtils.enableBatterySaver(true); in testExpeditedJobBypassesBatterySaverOn()794 BatteryUtils.enableBatterySaver(false); in testExpeditedJobBypassesBatterySaver_toggling()798 BatteryUtils.enableBatterySaver(true); in testExpeditedJobBypassesBatterySaver_toggling()867 BatteryUtils.enableBatterySaver(true); in testExpeditedJobDeferredAfterTimeoutInBatterySaver()887 BatteryUtils.enableBatterySaver(false); in testExpeditedJobDeferredAfterTimeoutInBatterySaver()914 BatteryUtils.enableBatterySaver(true); in testExpeditedJobDeferredAfterTimeout_DozeAndBatterySaver()[all …]
402 BatteryUtils.enableBatterySaver(true); in testExpeditedJobExecutes_BatterySaverOn()495 BatteryUtils.enableBatterySaver(true); in testExpeditedJobBypassesSimultaneousFirewalls_noDataSaver()555 BatteryUtils.enableBatterySaver(true); in testUserInitiatedJobExecutes_BatterySaverOn()915 BatteryUtils.enableBatterySaver(true); in testExpeditedJobDoesNotBypassSimultaneousFirewalls_withDataSaver()
121 public static void enableBatterySaver(boolean enabled) throws Exception { in enableBatterySaver() method in BatteryUtils122 enableBatterySaver(enabled, /* shouldWait= */ true); in enableBatterySaver()129 public static void enableBatterySaver(boolean enabled, boolean shouldWait) throws Exception { in enableBatterySaver() method in BatteryUtils
417 BatteryUtils.enableBatterySaver(/* isEnabled= */ true); in testStartRecognitionNoFlagBatterySaverAllEnabled_noRecognitionPaused()459 BatteryUtils.enableBatterySaver(/* isEnabled= */ true); in testStartRecognitionNoFlagBatterySaverCriticalOnly_recognitionPaused()464 BatteryUtils.enableBatterySaver(/* isEnabled= */ false); in testStartRecognitionNoFlagBatterySaverCriticalOnly_recognitionPaused()506 BatteryUtils.enableBatterySaver(/* isEnabled= */ true); in testStartRecognitionNoFlagBatterySaverAllDisabled_recognitionPaused()511 BatteryUtils.enableBatterySaver(/* isEnabled= */ false); in testStartRecognitionNoFlagBatterySaverAllDisabled_recognitionPaused()552 BatteryUtils.enableBatterySaver(/* isEnabled= */ true); in testStartRecognitionWithFlagBatterySaverAllEnabled_noRecognitionPaused()594 BatteryUtils.enableBatterySaver(/* isEnabled= */ true); in testStartRecognitionWithFlagBatterySaverCriticalOnly_noRecognitionPaused()638 BatteryUtils.enableBatterySaver(/* isEnabled= */ true); in testStartRecognitionWithFlagBatterySaverAllDisabled_recognitionPaused()643 BatteryUtils.enableBatterySaver(/* isEnabled= */ false); in testStartRecognitionWithFlagBatterySaverAllDisabled_recognitionPaused()784 BatteryUtils.enableBatterySaver(/* isEnabled= */ true); in testStartRecognitionDuringBatterySaver_succeedsPausesThenResumes()[all …]
467 BatteryUtils.enableBatterySaver(false); in testNightModeInCarModeOnPowerSaveIsTransient()473 BatteryUtils.enableBatterySaver(true); in testNightModeInCarModeOnPowerSaveIsTransient()478 BatteryUtils.enableBatterySaver(false); in testNightModeInCarModeOnPowerSaveIsTransient()484 BatteryUtils.enableBatterySaver(true); in testNightModeInCarModeOnPowerSaveIsTransient()501 BatteryUtils.enableBatterySaver(false); in testNightModeInCarModeOnPowerSaveIsTransient()
102 BatteryUtils.enableBatterySaver(false, false); in setUp()