Home
last modified time | relevance | path

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

/frameworks/base/services/tests/servicestests/src/com/android/server/power/batterysaver/
DBatterySaverPolicyTest.java19 import static com.android.server.power.batterysaver.BatterySaverPolicy.POLICY_LEVEL_FULL;
108 mBatterySaverPolicy.setPolicyLevel(POLICY_LEVEL_FULL); in setUp()
140 mBatterySaverPolicy.setPolicyLevel(POLICY_LEVEL_FULL); in testGetBatterySaverPolicy_PolicySound_DefaultValueCorrect()
210 mBatterySaverPolicy.setPolicyLevel(POLICY_LEVEL_FULL); in testGetBatterySaverPolicy_PolicyLocation_DefaultValueCorrect()
228 mBatterySaverPolicy.setPolicyLevel(POLICY_LEVEL_FULL); in testUpdateConstants_getCorrectData()
298 mBatterySaverPolicy.setPolicyLevel(POLICY_LEVEL_FULL); in testServiceDefaultValue_On()
311 mBatterySaverPolicy.setPolicyLevel(POLICY_LEVEL_FULL); in testServiceDefaultValue_Off()
351 mBatterySaverPolicy.setPolicyLevel(POLICY_LEVEL_FULL); in testAutomotiveProjectionChanges_Full()
601 Policy currentFullPolicy = mBatterySaverPolicy.getPolicyLocked(POLICY_LEVEL_FULL); in testSetFullPolicy_overridesSettingsAndDeviceConfig_clearOnFullExit()
618 mBatterySaverPolicy.setPolicyLevel(POLICY_LEVEL_FULL); in testSetFullPolicy_overridesSettingsAndDeviceConfig_clearOnFullExit()
/frameworks/base/services/core/java/com/android/server/power/batterysaver/
DBatterySaverPolicy.java225 POLICY_LEVEL_FULL,
232 static final int POLICY_LEVEL_FULL = 2; field in BatterySaverPolicy
1018 if (mPolicyLevel == POLICY_LEVEL_FULL) { in setPolicyLevel()
1022 case POLICY_LEVEL_FULL: in setPolicyLevel()
1045 case POLICY_LEVEL_FULL: in getPolicyLocked()
1067 fullPolicyChanged = (mPolicyLevel == POLICY_LEVEL_FULL); in maybeUpdateDefaultFullPolicy()
1085 if (mPolicyLevel == POLICY_LEVEL_FULL) { in setFullPolicyLocked()
1121 case POLICY_LEVEL_FULL: in getCurrentRawPolicyLocked()
DBatterySaverController.java304 return mBatterySaverPolicy.setPolicyLevel(BatterySaverPolicy.POLICY_LEVEL_FULL); in updatePolicyLevelLocked()
DBatterySaverStateMachine.java544 return mBatterySaverController.getPolicyLocked(BatterySaverPolicy.POLICY_LEVEL_FULL); in getFullBatterySaverPolicy()