/frameworks/base/services/tests/servicestests/src/com/android/server/power/batterysaver/ |
D | BatterySaverStateMachineTest.java | 79 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/ |
D | BatterySaverPolicyTest.java | 157 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/ |
D | PowerSaveState.java | 32 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/ |
D | BatterySaverStateMachine.java | 212 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/ |
D | BatteryControllerImpl.java | 193 mAodPowerSave = state.batterySaverEnabled; in setPowerSave()
|
/frameworks/base/services/core/java/com/android/server/ |
D | AppStateTracker.java | 459 mBatterySaverEnabled = state.batterySaverEnabled; in onSystemServicesReady() 465 ServiceType.FORCE_ALL_APPS_STANDBY).batterySaverEnabled; in onSystemServicesReady()
|
D | VibratorService.java | 874 .getLowPowerState(ServiceType.VIBRATION).batterySaverEnabled; in updateLowPowerModeLocked()
|
/frameworks/base/services/voiceinteraction/java/com/android/server/soundtrigger/ |
D | SoundTriggerHelper.java | 869 .batterySaverEnabled; in onReceive() 905 .batterySaverEnabled; in initializeTelephonyAndPowerStateListeners()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | BatteryStatsService.java | 239 .batterySaverEnabled); in initPowerManagement() 274 mStats.notePowerSaveModeLocked(result.batterySaverEnabled); in onLowPowerModeChanged()
|
D | ActivityManagerService.java | 15230 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/ |
D | NetworkPolicyManagerService.java | 734 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/ |
D | BackupManagerService.java | 2047 if (result.batterySaverEnabled) { in beginFullBackup() 2415 if (result.batterySaverEnabled) { in backupNow()
|
/frameworks/base/services/core/java/com/android/server/location/ |
D | GnssLocationProvider.java | 640 disableGps |= result.batterySaverEnabled && !mPowerManager.isInteractive(); in updateLowPowerMode()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | WindowManagerService.java | 989 final boolean enabled = result.batterySaverEnabled; in WindowManagerService() 998 .getLowPowerState(ServiceType.ANIMATION).batterySaverEnabled; in WindowManagerService()
|
/frameworks/base/services/core/java/com/android/server/power/ |
D | PowerManagerService.java | 2786 displayPowerRequest.lowPowerMode = state.batterySaverEnabled; in updatePowerRequestFromBatterySaverPolicy()
|