Home
last modified time | relevance | path

Searched refs:getBatterySaverPolicy (Results 1 – 4 of 4) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/power/
DBatterySaverPolicyTest.java108 mBatterySaverPolicy.getBatterySaverPolicy(ServiceType.DATA_SAVER, BATTERY_SAVER_ON); in testGetBatterySaverPolicy_PolicyDataSaver_DefaultValueCorrect()
111 final PowerSaveState batterySaverStateOff = mBatterySaverPolicy.getBatterySaverPolicy( in testGetBatterySaverPolicy_PolicyDataSaver_DefaultValueCorrect()
121 mBatterySaverPolicy.getBatterySaverPolicy(ServiceType.SCREEN_BRIGHTNESS, true); in testGetBatterySaverPolicy_PolicyScreenBrightness_DefaultValueCorrect()
130 mBatterySaverPolicy.getBatterySaverPolicy(ServiceType.GPS, true); in testGetBatterySaverPolicy_PolicyGps_DefaultValueCorrect()
139 mBatterySaverPolicy.getBatterySaverPolicy(ServiceType.VIBRATION, BATTERY_SAVER_ON); in testUpdateConstants_getCorrectData()
143 mBatterySaverPolicy.getBatterySaverPolicy(ServiceType.ANIMATION, BATTERY_SAVER_ON); in testUpdateConstants_getCorrectData()
147 mBatterySaverPolicy.getBatterySaverPolicy(ServiceType.SOUND, BATTERY_SAVER_ON); in testUpdateConstants_getCorrectData()
150 final PowerSaveState networkState = mBatterySaverPolicy.getBatterySaverPolicy( in testUpdateConstants_getCorrectData()
155 mBatterySaverPolicy.getBatterySaverPolicy(ServiceType.SCREEN_BRIGHTNESS, in testUpdateConstants_getCorrectData()
160 final PowerSaveState fullBackupState = mBatterySaverPolicy.getBatterySaverPolicy( in testUpdateConstants_getCorrectData()
[all …]
DPowerManagerServiceTest.java66 when(mBatterySaverPolicy.getBatterySaverPolicy( in setUp()
/frameworks/base/services/core/java/com/android/server/power/
DBatterySaverPolicy.java223 public PowerSaveState getBatterySaverPolicy(@ServiceType int type, boolean realMode) { in getBatterySaverPolicy() method in BatterySaverPolicy
DPowerManagerService.java1003 mBatterySaverPolicy.getBatterySaverPolicy( in updateLowPowerModeLocked()
2768 getBatterySaverPolicy(ServiceType.SCREEN_BRIGHTNESS, mLowPowerModeEnabled); in updatePowerRequestFromBatterySaverPolicy()
4323 return mBatterySaverPolicy.getBatterySaverPolicy( in getPowerSaveState()
4683 return mBatterySaverPolicy.getBatterySaverPolicy(serviceType, mLowPowerModeEnabled); in getLowPowerState()