Searched refs:batterySaverEnabled (Results 1 – 10 of 10) sorted by relevance
109 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 …]
32 public final boolean batterySaverEnabled; field in PowerSaveState42 batterySaverEnabled = builder.mBatterySaverEnabled; in PowerSaveState()49 batterySaverEnabled = in.readByte() != 0; in PowerSaveState()62 dest.writeByte((byte) (batterySaverEnabled ? 1 : 0)); in writeToParcel()
852 .batterySaverEnabled; in onReceive()886 .batterySaverEnabled; in initializeTelephonyAndPowerStateListeners()
255 .batterySaverEnabled); in initPowerManagement()289 mStats.notePowerSaveModeLocked(result.batterySaverEnabled); in onLowPowerModeChanged()
650 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()
632 .getLowPowerState(ServiceType.VIBRATION).batterySaverEnabled; in updateLowPowerModeLocked()
557 disableGps |= result.batterySaverEnabled && !mPowerManager.isInteractive(); in updateLowPowerMode()
1060 final boolean enabled = result.batterySaverEnabled; in WindowManagerService()1069 .getLowPowerState(ServiceType.ANIMATION).batterySaverEnabled; in WindowManagerService()
2769 displayPowerRequest.lowPowerMode = state.batterySaverEnabled; in updatePowerRequestFromBatterySaverPolicy()
5522 if (result.batterySaverEnabled) { in beginFullBackup()10006 if (result.batterySaverEnabled) { in backupNow()