Home
last modified time | relevance | path

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

/frameworks/base/services/tests/servicestests/src/com/android/server/power/
DBatterySaverPolicyTest.java109 assertThat(batterySaverStateOn.batterySaverEnabled).isFalse(); in testGetBatterySaverPolicy_PolicyDataSaver_DefaultValueCorrect()
113 assertThat(batterySaverStateOff.batterySaverEnabled).isFalse(); in testGetBatterySaverPolicy_PolicyDataSaver_DefaultValueCorrect()
140 assertThat(vibrationState.batterySaverEnabled).isTrue(); in testUpdateConstants_getCorrectData()
144 assertThat(animationState.batterySaverEnabled).isFalse(); in testUpdateConstants_getCorrectData()
148 assertThat(soundState.batterySaverEnabled).isTrue(); in testUpdateConstants_getCorrectData()
152 assertThat(networkState.batterySaverEnabled).isTrue(); in testUpdateConstants_getCorrectData()
157 assertThat(screenState.batterySaverEnabled).isFalse(); in testUpdateConstants_getCorrectData()
162 assertThat(fullBackupState.batterySaverEnabled).isTrue(); in testUpdateConstants_getCorrectData()
166 assertThat(keyValueBackupState.batterySaverEnabled).isFalse(); in testUpdateConstants_getCorrectData()
170 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/voiceinteraction/java/com/android/server/soundtrigger/
DSoundTriggerHelper.java852 .batterySaverEnabled; in onReceive()
886 .batterySaverEnabled; in initializeTelephonyAndPowerStateListeners()
/frameworks/base/services/core/java/com/android/server/am/
DBatteryStatsService.java255 .batterySaverEnabled); in initPowerManagement()
289 mStats.notePowerSaveModeLocked(result.batterySaverEnabled); in onLowPowerModeChanged()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkPolicyManagerService.java650 final boolean enabled = result.batterySaverEnabled; in initService()
663 ServiceType.NETWORK_FIREWALL).batterySaverEnabled; in initService()
675 mRestrictBackgroundPowerState.batterySaverEnabled; in initService()
3984 boolean restrictBackground = result.batterySaverEnabled; in updateRestrictBackgroundByLowPowerModeUL()
3992 shouldInvokeRestrictBackground = !mRestrictBackground && result.batterySaverEnabled; in updateRestrictBackgroundByLowPowerModeUL()
/frameworks/base/services/core/java/com/android/server/
DVibratorService.java632 .getLowPowerState(ServiceType.VIBRATION).batterySaverEnabled; in updateLowPowerModeLocked()
/frameworks/base/services/core/java/com/android/server/location/
DGnssLocationProvider.java557 disableGps |= result.batterySaverEnabled && !mPowerManager.isInteractive(); in updateLowPowerMode()
/frameworks/base/services/core/java/com/android/server/wm/
DWindowManagerService.java1060 final boolean enabled = result.batterySaverEnabled; in WindowManagerService()
1069 .getLowPowerState(ServiceType.ANIMATION).batterySaverEnabled; in WindowManagerService()
/frameworks/base/services/core/java/com/android/server/power/
DPowerManagerService.java2769 displayPowerRequest.lowPowerMode = state.batterySaverEnabled; in updatePowerRequestFromBatterySaverPolicy()
/frameworks/base/services/backup/java/com/android/server/backup/
DBackupManagerService.java5522 if (result.batterySaverEnabled) { in beginFullBackup()
10006 if (result.batterySaverEnabled) { in backupNow()