Home
last modified time | relevance | path

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

/frameworks/base/services/core/java/com/android/server/power/batterysaver/
DBatterySaverPolicy.java825 return builder.setBatterySaverEnabled(isEnabled) in getBatterySaverPolicy()
829 return builder.setBatterySaverEnabled(currPolicy.disableAnimation) in getBatterySaverPolicy()
832 return builder.setBatterySaverEnabled(currPolicy.deferFullBackup) in getBatterySaverPolicy()
835 return builder.setBatterySaverEnabled(currPolicy.deferKeyValueBackup) in getBatterySaverPolicy()
838 return builder.setBatterySaverEnabled(currPolicy.enableFirewall) in getBatterySaverPolicy()
841 return builder.setBatterySaverEnabled(currPolicy.enableAdjustBrightness) in getBatterySaverPolicy()
845 return builder.setBatterySaverEnabled(currPolicy.enableDataSaver) in getBatterySaverPolicy()
848 return builder.setBatterySaverEnabled(currPolicy.disableSoundTrigger) in getBatterySaverPolicy()
851 return builder.setBatterySaverEnabled(mDisableVibrationEffective) in getBatterySaverPolicy()
854 return builder.setBatterySaverEnabled(currPolicy.forceAllAppsStandby) in getBatterySaverPolicy()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DBatteryControllerTest.java59 .setBatterySaverEnabled(true) in testIndependentAODBatterySaver_true()
74 .setBatterySaverEnabled(false) in testIndependentAODBatterySaver_false()
/frameworks/base/core/java/android/os/
DPowerSaveState.java76 public Builder setBatterySaverEnabled(boolean enabled) { in setBatterySaverEnabled() method in PowerSaveState.Builder
/frameworks/base/services/tests/servicestests/src/com/android/server/net/
DNetworkPolicyManagerServiceTest.java306 .setBatterySaverEnabled(false).build(); in registerLocalServices()
550 .setBatterySaverEnabled(false) in updateRestrictBackgroundByLowPowerMode_RestrictOnBeforeBsm_RestrictOnAfterBsm()
559 .setBatterySaverEnabled(false) in updateRestrictBackgroundByLowPowerMode_RestrictOnBeforeBsm_RestrictOnAfterBsm()
573 .setBatterySaverEnabled(true) in updateRestrictBackgroundByLowPowerMode_RestrictOffBeforeBsm_RestrictOffAfterBsm()
583 .setBatterySaverEnabled(false) in updateRestrictBackgroundByLowPowerMode_RestrictOffBeforeBsm_RestrictOffAfterBsm()
597 .setBatterySaverEnabled(true) in updateRestrictBackgroundByLowPowerMode_StatusChangedInBsm_DoNotRestore()
606 PowerSaveState stateOff = new PowerSaveState.Builder().setBatterySaverEnabled( in updateRestrictBackgroundByLowPowerMode_StatusChangedInBsm_DoNotRestore()
/frameworks/base/services/tests/servicestests/src/com/android/server/power/
DPowerManagerServiceTest.java146 .setBatterySaverEnabled(BATTERY_SAVER_ENABLED) in setUp()
/frameworks/base/services/robotests/backup/src/com/android/server/backup/
DUserBackupManagerServiceTest.java1170 .thenReturn(new PowerSaveState.Builder().setBatterySaverEnabled(true).build()); in setUpPowerManager()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/
DAppStateTrackerTest.java213 return new PowerSaveState.Builder().setBatterySaverEnabled(mPowerSaveMode).build(); in getPowerSaveState()
/frameworks/base/config/
Dhiddenapi-greylist-max-o.txt52144 Landroid/os/PowerSaveState$Builder;->setBatterySaverEnabled(Z)Landroid/os/PowerSaveState$Builder;