Home
last modified time | relevance | path

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

/frameworks/base/services/tests/servicestests/src/com/android/server/power/batterysaver/
DBatterySaverPolicyTest.java159 mBatterySaverPolicy.getBatterySaverPolicy(ServiceType.DATA_SAVER); in testGetBatterySaverPolicy_PolicyDataSaver_DefaultValueCorrect()
163 final PowerSaveState batterySaverStateOff = mBatterySaverPolicy.getBatterySaverPolicy( in testGetBatterySaverPolicy_PolicyDataSaver_DefaultValueCorrect()
179 mBatterySaverPolicy.getBatterySaverPolicy(ServiceType.LOCATION); in testGetBatterySaverPolicy_PolicyGps_DefaultValueCorrect()
198 mBatterySaverPolicy.getBatterySaverPolicy(ServiceType.VIBRATION); in verifyBatterySaverConstantsUpdated()
202 mBatterySaverPolicy.getBatterySaverPolicy(ServiceType.ANIMATION); in verifyBatterySaverConstantsUpdated()
206 mBatterySaverPolicy.getBatterySaverPolicy(ServiceType.SOUND); in verifyBatterySaverConstantsUpdated()
209 final PowerSaveState networkState = mBatterySaverPolicy.getBatterySaverPolicy( in verifyBatterySaverConstantsUpdated()
214 mBatterySaverPolicy.getBatterySaverPolicy(ServiceType.SCREEN_BRIGHTNESS); in verifyBatterySaverConstantsUpdated()
218 final PowerSaveState fullBackupState = mBatterySaverPolicy.getBatterySaverPolicy( in verifyBatterySaverConstantsUpdated()
222 final PowerSaveState keyValueBackupState = mBatterySaverPolicy.getBatterySaverPolicy( in verifyBatterySaverConstantsUpdated()
[all …]
/frameworks/base/services/core/java/com/android/server/power/batterysaver/
DBatterySaverLocationPlugin.java55 (caller.getBatterySaverPolicy().getGpsMode() in updateLocationState()
DBatterySaverController.java396 public BatterySaverPolicy getBatterySaverPolicy() { in getBatterySaverPolicy() method in BatterySaverController
496 mBatterySaverPolicy.getBatterySaverPolicy(listener.getServiceType()); in handleBatterySaverStateChanged()
DBatterySaverStateMachine.java891 mBatterySaverController.getBatterySaverPolicy().shouldAdvertiseIsEnabled()); in dump()
947 mBatterySaverController.getBatterySaverPolicy().shouldAdvertiseIsEnabled()); in dumpProto()
DBatterySaverPolicy.java816 public PowerSaveState getBatterySaverPolicy(@ServiceType int type) { in getBatterySaverPolicy() method in BatterySaverPolicy
/frameworks/base/services/tests/servicestests/src/com/android/server/power/
DPowerManagerServiceTest.java145 when(mBatterySaverPolicyMock.getBatterySaverPolicy( in setUp()
/frameworks/base/services/core/java/com/android/server/power/
DPowerManagerService.java2866 getBatterySaverPolicy(ServiceType.SCREEN_BRIGHTNESS); in updatePowerRequestFromBatterySaverPolicy()
4472 return mBatterySaverPolicy.getBatterySaverPolicy(serviceType); in getPowerSaveState()
4915 return mBatterySaverPolicy.getBatterySaverPolicy(serviceType); in getLowPowerState()
/frameworks/base/services/
Dart-profile12644 HSPLcom/android/server/power/batterysaver/BatterySaverController;->getBatterySaverPolicy()Lcom/andr…
12668 HSPLcom/android/server/power/batterysaver/BatterySaverPolicy;->getBatterySaverPolicy(I)Landroid/os/…