Home
last modified time | relevance | path

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

/frameworks/base/services/tests/servicestests/src/com/android/server/power/batterysaver/
DBatterySaverStateMachineTest.java79 public boolean batterySaverEnabled = false; field in BatterySaverStateMachineTest.Device
161 doAnswer((inv) -> mDevice.batterySaverEnabled = inv.getArgument(0)) in setUp()
164 .thenAnswer((inv) -> mDevice.batterySaverEnabled); in setUp()
184 assertEquals(false, mDevice.batterySaverEnabled); in testNoAutoBatterySaver()
190 assertEquals(false, mDevice.batterySaverEnabled); in testNoAutoBatterySaver()
196 assertEquals(false, mDevice.batterySaverEnabled); in testNoAutoBatterySaver()
202 assertEquals(false, mDevice.batterySaverEnabled); in testNoAutoBatterySaver()
210 assertEquals(false, mDevice.batterySaverEnabled); in testNoAutoBatterySaver()
216 assertEquals(false, mDevice.batterySaverEnabled); in testNoAutoBatterySaver()
223 assertEquals(true, mDevice.batterySaverEnabled); in testNoAutoBatterySaver()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/power/
DBatterySaverPolicyTest.java157 assertThat(batterySaverStateOn.batterySaverEnabled).isFalse(); in testGetBatterySaverPolicy_PolicyDataSaver_DefaultValueCorrect()
161 assertThat(batterySaverStateOff.batterySaverEnabled).isFalse(); in testGetBatterySaverPolicy_PolicyDataSaver_DefaultValueCorrect()
184 assertThat(vibrationState.batterySaverEnabled).isTrue(); in testUpdateConstants_getCorrectData()
188 assertThat(animationState.batterySaverEnabled).isFalse(); in testUpdateConstants_getCorrectData()
192 assertThat(soundState.batterySaverEnabled).isTrue(); in testUpdateConstants_getCorrectData()
196 assertThat(networkState.batterySaverEnabled).isTrue(); in testUpdateConstants_getCorrectData()
201 assertThat(screenState.batterySaverEnabled).isFalse(); in testUpdateConstants_getCorrectData()
206 assertThat(fullBackupState.batterySaverEnabled).isTrue(); in testUpdateConstants_getCorrectData()
210 assertThat(keyValueBackupState.batterySaverEnabled).isFalse(); in testUpdateConstants_getCorrectData()
214 assertThat(dataSaverState.batterySaverEnabled).isTrue(); in testUpdateConstants_getCorrectData()
[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()
/frameworks/base/services/core/java/com/android/server/power/batterysaver/
DBatterySaverStateMachine.java212 void setSettingsLocked(boolean batterySaverEnabled, boolean batterySaverEnabledSticky, in setSettingsLocked() argument
215 Slog.d(TAG, "setSettings: enabled=" + batterySaverEnabled in setSettingsLocked()
222 final boolean enabledChanged = mSettingBatterySaverEnabled != batterySaverEnabled; in setSettingsLocked()
232 mSettingBatterySaverEnabled = batterySaverEnabled; in setSettingsLocked()
242 final String reason = batterySaverEnabled in setSettingsLocked()
244 enableBatterySaverLocked(/*enable=*/ batterySaverEnabled, /*manual=*/ true, in setSettingsLocked()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DBatteryControllerImpl.java193 mAodPowerSave = state.batterySaverEnabled; in setPowerSave()
/frameworks/base/services/core/java/com/android/server/
DAppStateTracker.java459 mBatterySaverEnabled = state.batterySaverEnabled; in onSystemServicesReady()
465 ServiceType.FORCE_ALL_APPS_STANDBY).batterySaverEnabled; in onSystemServicesReady()
DVibratorService.java874 .getLowPowerState(ServiceType.VIBRATION).batterySaverEnabled; in updateLowPowerModeLocked()
/frameworks/base/services/voiceinteraction/java/com/android/server/soundtrigger/
DSoundTriggerHelper.java869 .batterySaverEnabled; in onReceive()
905 .batterySaverEnabled; in initializeTelephonyAndPowerStateListeners()
/frameworks/base/services/core/java/com/android/server/am/
DBatteryStatsService.java239 .batterySaverEnabled); in initPowerManagement()
274 mStats.notePowerSaveModeLocked(result.batterySaverEnabled); in onLowPowerModeChanged()
DActivityManagerService.java15230 state -> updateForceBackgroundCheck(state.batterySaverEnabled)); in systemReady()
15232 pmi.getLowPowerState(ServiceType.FORCE_BACKGROUND_CHECK).batterySaverEnabled); in systemReady()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkPolicyManagerService.java734 final boolean enabled = result.batterySaverEnabled; in initService()
747 ServiceType.NETWORK_FIREWALL).batterySaverEnabled; in initService()
761 mRestrictBackgroundPowerState.batterySaverEnabled; in initService()
4721 boolean restrictBackground = result.batterySaverEnabled; in updateRestrictBackgroundByLowPowerModeUL()
4729 shouldInvokeRestrictBackground = !mRestrictBackground && result.batterySaverEnabled; in updateRestrictBackgroundByLowPowerModeUL()
/frameworks/base/services/backup/java/com/android/server/backup/
DBackupManagerService.java2047 if (result.batterySaverEnabled) { in beginFullBackup()
2415 if (result.batterySaverEnabled) { in backupNow()
/frameworks/base/services/core/java/com/android/server/location/
DGnssLocationProvider.java640 disableGps |= result.batterySaverEnabled && !mPowerManager.isInteractive(); in updateLowPowerMode()
/frameworks/base/services/core/java/com/android/server/wm/
DWindowManagerService.java989 final boolean enabled = result.batterySaverEnabled; in WindowManagerService()
998 .getLowPowerState(ServiceType.ANIMATION).batterySaverEnabled; in WindowManagerService()
/frameworks/base/services/core/java/com/android/server/power/
DPowerManagerService.java2786 displayPowerRequest.lowPowerMode = state.batterySaverEnabled; in updatePowerRequestFromBatterySaverPolicy()