/frameworks/base/services/tests/mockingservicestests/src/com/android/server/power/batterysaver/ |
D | BatterySaverStateMachineTest.java | 86 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/ |
D | BatterySaverPolicyTest.java | 160 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/ |
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()
|
D | PowerManager.java | 1623 if (!powerSaveState.batterySaverEnabled) { in getLocationPowerSaveMode()
|
/frameworks/base/services/core/java/com/android/server/power/batterysaver/ |
D | BatterySaverStateMachine.java | 396 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/ |
D | UiModeManagerService.java | 247 mPowerSave = localPowerManager.getLowPowerState(ServiceType.NIGHT_MODE).batterySaverEnabled; in onStart() 251 if (mPowerSave == state.batterySaverEnabled) { in onStart() 254 mPowerSave = state.batterySaverEnabled; in onStart()
|
D | AppStateTracker.java | 459 mBatterySaverEnabled = state.batterySaverEnabled; in onSystemServicesReady() 465 ServiceType.FORCE_ALL_APPS_STANDBY).batterySaverEnabled; in onSystemServicesReady()
|
D | VibratorService.java | 988 .getLowPowerState(ServiceType.VIBRATION).batterySaverEnabled; in updateLowPowerModeLocked()
|
D | DeviceIdleController.java | 1970 updateQuickDozeFlagLocked(state.batterySaverEnabled); in onBootPhase() 1975 ServiceType.QUICK_DOZE).batterySaverEnabled); in onBootPhase()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | BatteryControllerImpl.java | 279 mAodPowerSave = state.batterySaverEnabled; in setPowerSave()
|
/frameworks/base/services/voiceinteraction/java/com/android/server/soundtrigger/ |
D | SoundTriggerHelper.java | 904 .batterySaverEnabled; in onReceive() 940 .batterySaverEnabled; in initializeTelephonyAndPowerStateListeners()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | BatteryStatsService.java | 256 .batterySaverEnabled); in initPowerManagement() 291 mStats.notePowerSaveModeLocked(result.batterySaverEnabled); in onLowPowerModeChanged()
|
D | ActivityManagerService.java | 9037 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/ |
D | NetworkPolicyManagerService.java | 751 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/ |
D | UserBackupManagerService.java | 2076 if (result.batterySaverEnabled) { in beginFullBackup() 2470 if (result.batterySaverEnabled) { in backupNow()
|
/frameworks/base/services/core/java/com/android/server/location/ |
D | GnssLocationProvider.java | 552 result.batterySaverEnabled && !mPowerManager.isInteractive(); in updateLowPowerMode()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | WindowManagerService.java | 1063 final boolean enabled = result.batterySaverEnabled; in WindowManagerService() 1072 .getLowPowerState(ServiceType.ANIMATION).batterySaverEnabled; in WindowManagerService()
|
/frameworks/base/services/core/java/com/android/server/power/ |
D | PowerManagerService.java | 2867 displayPowerRequest.lowPowerMode = state.batterySaverEnabled; in updatePowerRequestFromBatterySaverPolicy()
|
/frameworks/base/config/ |
D | hiddenapi-greylist-max-o.txt | 55906 Landroid/os/PowerSaveState;->batterySaverEnabled:Z
|