Home
last modified time | relevance | path

Searched refs:setBatterySaverEnabled (Results 1 – 18 of 18) sorted by relevance

/frameworks/base/services/tests/mockingservicestests/src/com/android/server/location/injector/
DSystemLocationPowerSaveModeHelperTest.java109 LOCATION_MODE_NO_CHANGE).setBatterySaverEnabled(false).build()); in testListener()
114 LOCATION_MODE_GPS_DISABLED_WHEN_SCREEN_OFF).setBatterySaverEnabled(false).build()); in testListener()
119 LOCATION_MODE_ALL_DISABLED_WHEN_SCREEN_OFF).setBatterySaverEnabled(false).build()); in testListener()
124 LOCATION_MODE_FOREGROUND_ONLY).setBatterySaverEnabled(false).build()); in testListener()
129 LOCATION_MODE_THROTTLE_REQUESTS_WHEN_SCREEN_OFF).setBatterySaverEnabled( in testListener()
136 LOCATION_MODE_NO_CHANGE).setBatterySaverEnabled(true).build()); in testListener()
141 LOCATION_MODE_GPS_DISABLED_WHEN_SCREEN_OFF).setBatterySaverEnabled(true).build()); in testListener()
147 LOCATION_MODE_ALL_DISABLED_WHEN_SCREEN_OFF).setBatterySaverEnabled(true).build()); in testListener()
153 LOCATION_MODE_FOREGROUND_ONLY).setBatterySaverEnabled(true).build()); in testListener()
158 LOCATION_MODE_THROTTLE_REQUESTS_WHEN_SCREEN_OFF).setBatterySaverEnabled( in testListener()
[all …]
/frameworks/base/services/core/java/com/android/server/power/batterysaver/
DBatterySaverPolicy.java949 return builder.setBatterySaverEnabled(isEnabled) in getBatterySaverPolicy()
953 return builder.setBatterySaverEnabled(currPolicy.disableAnimation) in getBatterySaverPolicy()
956 return builder.setBatterySaverEnabled(currPolicy.deferFullBackup) in getBatterySaverPolicy()
959 return builder.setBatterySaverEnabled(currPolicy.deferKeyValueBackup) in getBatterySaverPolicy()
962 return builder.setBatterySaverEnabled(currPolicy.enableFirewall) in getBatterySaverPolicy()
965 return builder.setBatterySaverEnabled(currPolicy.enableAdjustBrightness) in getBatterySaverPolicy()
969 return builder.setBatterySaverEnabled(currPolicy.enableDataSaver) in getBatterySaverPolicy()
975 return builder.setBatterySaverEnabled(soundTriggerBatterySaverEnabled) in getBatterySaverPolicy()
979 return builder.setBatterySaverEnabled(currPolicy.disableVibration) in getBatterySaverPolicy()
982 return builder.setBatterySaverEnabled(currPolicy.forceAllAppsStandby) in getBatterySaverPolicy()
[all …]
/frameworks/base/services/tests/powerservicetests/src/com/android/server/power/
DPowerGroupTest.java255 .setBatterySaverEnabled(batterySaverEnabled) in testUpdateWhileAwake_UpdatesDisplayPowerRequest()
292 .setBatterySaverEnabled(batterySaverEnabled) in testUpdateWhileDozing_UpdatesDisplayPowerRequest()
332 .setBatterySaverEnabled(batterySaverEnabled) in testUpdateWhileDozing_DozeAfterScreenOff()
371 .setBatterySaverEnabled(batterySaverEnabled) in testUpdateQuiescent()
409 .setBatterySaverEnabled(batterySaverEnabled) in testUpdateWhileAsleep_UpdatesDisplayPowerRequest()
447 .setBatterySaverEnabled(batterySaverEnabled) in testUpdateWhileDreamingWithScreenBrightWakelock_UpdatesDisplayPowerRequest()
486 .setBatterySaverEnabled(batterySaverEnabled) in testUpdateWhileAwakeBootNotComplete_UpdatesDisplayPowerRequest()
523 .setBatterySaverEnabled(batterySaverEnabled) in testUpdateWhileAwakeUserActivityScreenBright_UpdatesDisplayPowerRequest()
561 .setBatterySaverEnabled(batterySaverEnabled) in testUpdateWhileAwakeScreenBrightnessBoostInProgress_UpdatesDisplayPowerRequest()
DPowerManagerServiceTest.java227 .setBatterySaverEnabled(BATTERY_SAVER_ENABLED) in setUp()
/frameworks/base/core/java/android/os/
DPowerSaveState.java81 public Builder setBatterySaverEnabled(boolean enabled) { in setBatterySaverEnabled() method in PowerSaveState.Builder
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DBatteryControllerTest.java116 .setBatterySaverEnabled(true) in testIndependentAODBatterySaver_true()
131 .setBatterySaverEnabled(false) in testIndependentAODBatterySaver_false()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/
DUiModeManagerServiceTest.java199 .thenReturn(new PowerSaveState.Builder().setBatterySaverEnabled(false).build()); in setUp()
505 new PowerSaveState.Builder().setBatterySaverEnabled(true).build()); in autoNightModeSwitch_batterySaverOn()
517 new PowerSaveState.Builder().setBatterySaverEnabled(true).build()); in nightModeCustomBedtime_batterySaverOn_notInBedtime_shouldActivateNightMode()
527 new PowerSaveState.Builder().setBatterySaverEnabled(true).build()); in nightModeCustomBedtime_batterySaverOn_afterBedtime_shouldKeepNightModeActivated()
543 new PowerSaveState.Builder().setBatterySaverEnabled(true).build()); in nightModeBedtime_duringBedtime_batterySaverOnThenOff_shouldKeepNightModeActivated()
545 new PowerSaveState.Builder().setBatterySaverEnabled(false).build()); in nightModeBedtime_duringBedtime_batterySaverOnThenOff_shouldKeepNightModeActivated()
557 new PowerSaveState.Builder().setBatterySaverEnabled(true).build()); in nightModeCustomBedtime_duringBedtime_batterySaverOnThenOff_finallyAfterBedtime_shouldDeactivateNightMode()
559 new PowerSaveState.Builder().setBatterySaverEnabled(false).build()); in nightModeCustomBedtime_duringBedtime_batterySaverOnThenOff_finallyAfterBedtime_shouldDeactivateNightMode()
/frameworks/base/services/tests/servicestests/src/com/android/server/net/
DNetworkPolicyManagerServiceTest.java387 .setBatterySaverEnabled(false).build(); in registerLocalServices()
768 .setBatterySaverEnabled(false) in updateRestrictBackgroundByLowPowerMode_RestrictOnBeforeBsm_RestrictOnAfterBsm()
777 .setBatterySaverEnabled(false) in updateRestrictBackgroundByLowPowerMode_RestrictOnBeforeBsm_RestrictOnAfterBsm()
786 .setBatterySaverEnabled(true) in updateRestrictBackgroundByLowPowerMode_RestrictOnBeforeBsm_RestrictOnAfterBsm()
795 .setBatterySaverEnabled(false) in updateRestrictBackgroundByLowPowerMode_RestrictOnBeforeBsm_RestrictOnAfterBsm()
809 .setBatterySaverEnabled(true) in updateRestrictBackgroundByLowPowerMode_RestrictOffBeforeBsm_RestrictOffAfterBsm()
819 .setBatterySaverEnabled(false) in updateRestrictBackgroundByLowPowerMode_RestrictOffBeforeBsm_RestrictOffAfterBsm()
828 .setBatterySaverEnabled(false) in updateRestrictBackgroundByLowPowerMode_RestrictOffBeforeBsm_RestrictOffAfterBsm()
847 .setBatterySaverEnabled(true) in updateRestrictBackgroundByLowPowerMode_StatusChangedInBsm_DoNotRestore()
861 .setBatterySaverEnabled(false) in updateRestrictBackgroundByLowPowerMode_StatusChangedInBsm_DoNotRestore()
[all …]
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/
DDeviceIdleControllerTest.java2541 PowerSaveState powerSaveState = new PowerSaveState.Builder().setBatterySaverEnabled( in testModeManager_NoBatterySaver_QuickDoze()
2561 PowerSaveState powerSaveState = new PowerSaveState.Builder().setBatterySaverEnabled( in testModeManager_WithBatterySaver_QuickDoze()
2581 PowerSaveState powerSaveState = new PowerSaveState.Builder().setBatterySaverEnabled( in testModeManager_QuickDozeRequestedBatterySaverEnabledOnBody_QuickDozeEnabled()
2597 PowerSaveState powerSaveState = new PowerSaveState.Builder().setBatterySaverEnabled( in testModeManager_QuickDozeRequestedBatterySaverEnabledOffBody_QuickDozeEnabled()
2613 PowerSaveState powerSaveState = new PowerSaveState.Builder().setBatterySaverEnabled( in testModeManager_QuickDozeRequestedBatterySaverDisabledOnBody_QuickDozeEnabled()
2629 PowerSaveState powerSaveState = new PowerSaveState.Builder().setBatterySaverEnabled( in testModeManager_QuickDozeRequestedBatterySaverDisabledOffBody_QuickDozeEnabled()
2645 PowerSaveState powerSaveState = new PowerSaveState.Builder().setBatterySaverEnabled( in testModeManager_QuickDozeNotRequestedBatterySaverEnabledOnBody_QuickDozeEnabled()
2661 PowerSaveState powerSaveState = new PowerSaveState.Builder().setBatterySaverEnabled( in testModeManager_QuickDozeNotRequestedBatterySaverEnabledOffBody_QuickDozeEnabled()
DAppStateTrackerTest.java227 return new PowerSaveState.Builder().setBatterySaverEnabled(mPowerSaveMode).build(); in getPowerSaveState()
/frameworks/base/core/tests/coretests/src/android/os/
DPowerManagerTest.java359 .setBatterySaverEnabled(batterySaverEnabled) in parcelPowerSaveStateToNativeAndVerify()
/frameworks/base/services/tests/vibrator/src/com/android/server/vibrator/
DVibrationSettingsTest.java110 .setBatterySaverEnabled(true).build();
DVibratorManagerServiceTest.java137 .setBatterySaverEnabled(true).build();
/frameworks/base/services/robotests/backup/src/com/android/server/backup/
DUserBackupManagerServiceTest.java1265 .thenReturn(new PowerSaveState.Builder().setBatterySaverEnabled(true).build()); in setUpPowerManager()
/frameworks/base/config/
Dboot-profile.txt1175 Landroid/os/PowerSaveState$Builder;->setBatterySaverEnabled(Z)Landroid/os/PowerSaveState$Builder;
Dboot-image-profile.txt12595 HSPLandroid/os/PowerSaveState$Builder;->setBatterySaverEnabled(Z)Landroid/os/PowerSaveState$Builder;
/frameworks/base/boot/
Dboot-image-profile.txt12592 HSPLandroid/os/PowerSaveState$Builder;->setBatterySaverEnabled(Z)Landroid/os/PowerSaveState$Builder;
/frameworks/base/boot/hiddenapi/
Dhiddenapi-max-target-o.txt37623 Landroid/os/PowerSaveState$Builder;->setBatterySaverEnabled(Z)Landroid/os/PowerSaveState$Builder;