Home
last modified time | relevance | path

Searched refs:enableBatterySaver (Results 1 – 9 of 9) sorted by relevance

/cts/tests/tests/batterysaving/src/android/os/cts/batterysaving/
DBatterySaverTest.java20 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()
DBatterySaverAlarmTest.java24 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()
DBatterySaverBgServiceTest.java24 import static com.android.compatibility.common.util.BatteryUtils.enableBatterySaver;
65 enableBatterySaver(false); in testBgServiceThrottled()
81 enableBatterySaver(true); in testBgServiceThrottled()
/cts/tests/JobScheduler/src/android/jobscheduler/cts/
DJobThrottlingTest.java732 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 …]
DConnectivityConstraintTest.java402 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()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DBatteryUtils.java121 public static void enableBatterySaver(boolean enabled) throws Exception { in enableBatterySaver() method in BatteryUtils
122 enableBatterySaver(enabled, /* shouldWait= */ true); in enableBatterySaver()
129 public static void enableBatterySaver(boolean enabled, boolean shouldWait) throws Exception { in enableBatterySaver() method in BatteryUtils
/cts/tests/tests/voiceinteraction/src/android/voiceinteraction/cts/
DAlwaysOnHotwordDetectorTest.java417 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 …]
/cts/tests/app/src/android/app/cts/
DUiModeManagerTest.java467 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()
/cts/tests/tests/syncmanager/src/android/content/syncmanager/cts/
DCtsSyncManagerTest.java102 BatteryUtils.enableBatterySaver(false, false); in setUp()