Home
last modified time | relevance | path

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

/frameworks/base/services/tests/servicestests/src/com/android/server/power/
DBatterySaverPolicyTest.java156 mBatterySaverPolicy.getBatterySaverPolicy(ServiceType.DATA_SAVER, BATTERY_SAVER_ON); in testGetBatterySaverPolicy_PolicyDataSaver_DefaultValueCorrect()
159 final PowerSaveState batterySaverStateOff = mBatterySaverPolicy.getBatterySaverPolicy( in testGetBatterySaverPolicy_PolicyDataSaver_DefaultValueCorrect()
174 mBatterySaverPolicy.getBatterySaverPolicy(ServiceType.GPS, true); in testGetBatterySaverPolicy_PolicyGps_DefaultValueCorrect()
183 mBatterySaverPolicy.getBatterySaverPolicy(ServiceType.VIBRATION, BATTERY_SAVER_ON); in testUpdateConstants_getCorrectData()
187 mBatterySaverPolicy.getBatterySaverPolicy(ServiceType.ANIMATION, BATTERY_SAVER_ON); in testUpdateConstants_getCorrectData()
191 mBatterySaverPolicy.getBatterySaverPolicy(ServiceType.SOUND, BATTERY_SAVER_ON); in testUpdateConstants_getCorrectData()
194 final PowerSaveState networkState = mBatterySaverPolicy.getBatterySaverPolicy( in testUpdateConstants_getCorrectData()
199 mBatterySaverPolicy.getBatterySaverPolicy(ServiceType.SCREEN_BRIGHTNESS, in testUpdateConstants_getCorrectData()
204 final PowerSaveState fullBackupState = mBatterySaverPolicy.getBatterySaverPolicy( in testUpdateConstants_getCorrectData()
208 final PowerSaveState keyValueBackupState = mBatterySaverPolicy.getBatterySaverPolicy( in testUpdateConstants_getCorrectData()
[all …]
DPowerManagerServiceTest.java64 when(mBatterySaverPolicy.getBatterySaverPolicy( in setUp()
/frameworks/base/services/core/java/com/android/server/power/batterysaver/
DBatterySaverLocationPlugin.java55 (caller.getBatterySaverPolicy().getGpsMode() in updateLocationState()
DBatterySaverController.java274 public BatterySaverPolicy getBatterySaverPolicy() { in getBatterySaverPolicy() method in BatterySaverController
366 mBatterySaverPolicy.getBatterySaverPolicy( in handleBatterySaverStateChanged()
/frameworks/base/services/core/java/com/android/server/power/
DBatterySaverPolicy.java455 public PowerSaveState getBatterySaverPolicy(@ServiceType int type, boolean realMode) { in getBatterySaverPolicy() method in BatterySaverPolicy
DPowerManagerService.java2784 getBatterySaverPolicy(ServiceType.SCREEN_BRIGHTNESS, in updatePowerRequestFromBatterySaverPolicy()
4349 return mBatterySaverPolicy.getBatterySaverPolicy( in getPowerSaveState()
4676 return mBatterySaverPolicy.getBatterySaverPolicy(serviceType, in getLowPowerState()