Home
last modified time | relevance | path

Searched refs:batterySaverEnabled (Results 1 – 19 of 19) sorted by relevance

/frameworks/base/services/tests/mockingservicestests/src/com/android/server/power/batterysaver/
DBatterySaverStateMachineTest.java86 public boolean batterySaverEnabled = false; field in BatterySaverStateMachineTest.Device
188 doAnswer((inv) -> mDevice.batterySaverEnabled = inv.getArgument(0)) in setUp()
193 .thenAnswer((inv) -> mDevice.batterySaverEnabled); in setUp()
195 .thenAnswer((inv) -> mDevice.batterySaverEnabled); in setUp()
222 assertEquals(false, mDevice.batterySaverEnabled); in testNoAutoBatterySaver()
228 assertEquals(false, mDevice.batterySaverEnabled); in testNoAutoBatterySaver()
234 assertEquals(false, mDevice.batterySaverEnabled); in testNoAutoBatterySaver()
240 assertEquals(false, mDevice.batterySaverEnabled); in testNoAutoBatterySaver()
248 assertEquals(false, mDevice.batterySaverEnabled); in testNoAutoBatterySaver()
254 assertEquals(false, mDevice.batterySaverEnabled); in testNoAutoBatterySaver()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/power/batterysaver/
DBatterySaverPolicyTest.java160 assertThat(batterySaverStateOn.batterySaverEnabled).isFalse(); in testGetBatterySaverPolicy_PolicyDataSaver_DefaultValueCorrect()
165 assertThat(batterySaverStateOff.batterySaverEnabled).isFalse(); in testGetBatterySaverPolicy_PolicyDataSaver_DefaultValueCorrect()
199 assertThat(vibrationState.batterySaverEnabled).isTrue(); in verifyBatterySaverConstantsUpdated()
203 assertThat(animationState.batterySaverEnabled).isFalse(); in verifyBatterySaverConstantsUpdated()
207 assertThat(soundState.batterySaverEnabled).isTrue(); in verifyBatterySaverConstantsUpdated()
211 assertThat(networkState.batterySaverEnabled).isTrue(); in verifyBatterySaverConstantsUpdated()
215 assertThat(screenState.batterySaverEnabled).isFalse(); in verifyBatterySaverConstantsUpdated()
220 assertThat(fullBackupState.batterySaverEnabled).isTrue(); in verifyBatterySaverConstantsUpdated()
224 assertThat(keyValueBackupState.batterySaverEnabled).isFalse(); in verifyBatterySaverConstantsUpdated()
228 assertThat(dataSaverState.batterySaverEnabled).isTrue(); in verifyBatterySaverConstantsUpdated()
[all …]
/frameworks/base/core/java/android/os/
DPowerSaveState.java32 public final boolean batterySaverEnabled; field in PowerSaveState
42 batterySaverEnabled = builder.mBatterySaverEnabled; in PowerSaveState()
49 batterySaverEnabled = in.readByte() != 0; in PowerSaveState()
62 dest.writeByte((byte) (batterySaverEnabled ? 1 : 0)); in writeToParcel()
DPowerManager.java1623 if (!powerSaveState.batterySaverEnabled) { in getLocationPowerSaveMode()
/frameworks/base/services/core/java/com/android/server/power/batterysaver/
DBatterySaverStateMachine.java396 void setSettingsLocked(boolean batterySaverEnabled, boolean batterySaverEnabledSticky, in setSettingsLocked() argument
402 Slog.d(TAG, "setSettings: enabled=" + batterySaverEnabled in setSettingsLocked()
419 final boolean enabledChanged = mSettingBatterySaverEnabled != batterySaverEnabled; in setSettingsLocked()
440 mSettingBatterySaverEnabled = batterySaverEnabled; in setSettingsLocked()
459 final String reason = batterySaverEnabled in setSettingsLocked()
461 enableBatterySaverLocked(/*enable=*/ batterySaverEnabled, /*manual=*/ true, in setSettingsLocked()
/frameworks/base/services/core/java/com/android/server/
DUiModeManagerService.java247 mPowerSave = localPowerManager.getLowPowerState(ServiceType.NIGHT_MODE).batterySaverEnabled; in onStart()
251 if (mPowerSave == state.batterySaverEnabled) { in onStart()
254 mPowerSave = state.batterySaverEnabled; in onStart()
DAppStateTracker.java459 mBatterySaverEnabled = state.batterySaverEnabled; in onSystemServicesReady()
465 ServiceType.FORCE_ALL_APPS_STANDBY).batterySaverEnabled; in onSystemServicesReady()
DVibratorService.java988 .getLowPowerState(ServiceType.VIBRATION).batterySaverEnabled; in updateLowPowerModeLocked()
DDeviceIdleController.java1970 updateQuickDozeFlagLocked(state.batterySaverEnabled); in onBootPhase()
1975 ServiceType.QUICK_DOZE).batterySaverEnabled); in onBootPhase()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DBatteryControllerImpl.java279 mAodPowerSave = state.batterySaverEnabled; in setPowerSave()
/frameworks/base/services/voiceinteraction/java/com/android/server/soundtrigger/
DSoundTriggerHelper.java904 .batterySaverEnabled; in onReceive()
940 .batterySaverEnabled; in initializeTelephonyAndPowerStateListeners()
/frameworks/base/services/core/java/com/android/server/am/
DBatteryStatsService.java256 .batterySaverEnabled); in initPowerManagement()
291 mStats.notePowerSaveModeLocked(result.batterySaverEnabled); in onLowPowerModeChanged()
DActivityManagerService.java9037 state -> updateForceBackgroundCheck(state.batterySaverEnabled)); in systemReady()
9039 pmi.getLowPowerState(ServiceType.FORCE_BACKGROUND_CHECK).batterySaverEnabled); in systemReady()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkPolicyManagerService.java751 final boolean enabled = result.batterySaverEnabled; in initService()
764 ServiceType.NETWORK_FIREWALL).batterySaverEnabled; in initService()
778 mRestrictBackgroundPowerState.batterySaverEnabled; in initService()
4907 boolean restrictBackground = result.batterySaverEnabled; in updateRestrictBackgroundByLowPowerModeUL()
4915 shouldInvokeRestrictBackground = !mRestrictBackground && result.batterySaverEnabled; in updateRestrictBackgroundByLowPowerModeUL()
/frameworks/base/services/backup/java/com/android/server/backup/
DUserBackupManagerService.java2076 if (result.batterySaverEnabled) { in beginFullBackup()
2470 if (result.batterySaverEnabled) { in backupNow()
/frameworks/base/services/core/java/com/android/server/location/
DGnssLocationProvider.java552 result.batterySaverEnabled && !mPowerManager.isInteractive(); in updateLowPowerMode()
/frameworks/base/services/core/java/com/android/server/wm/
DWindowManagerService.java1063 final boolean enabled = result.batterySaverEnabled; in WindowManagerService()
1072 .getLowPowerState(ServiceType.ANIMATION).batterySaverEnabled; in WindowManagerService()
/frameworks/base/services/core/java/com/android/server/power/
DPowerManagerService.java2867 displayPowerRequest.lowPowerMode = state.batterySaverEnabled; in updatePowerRequestFromBatterySaverPolicy()
/frameworks/base/config/
Dhiddenapi-greylist-max-o.txt55906 Landroid/os/PowerSaveState;->batterySaverEnabled:Z