Searched refs:mBatterySaverPolicy (Results 1 – 2 of 2) sorted by relevance
95 private BatterySaverPolicyForTest mBatterySaverPolicy; field in BatterySaverPolicyTest104 mBatterySaverPolicy = new BatterySaverPolicyForTest(lock, getContext(), in setUp()106 mBatterySaverPolicy.systemReady(); in setUp()108 mBatterySaverPolicy.setPolicyLevel(POLICY_LEVEL_FULL); in setUp()126 mBatterySaverPolicy.mAccessibilityEnabled.update(true); in testGetBatterySaverPolicy_PolicyVibration_WithAccessibilityEnabled()140 mBatterySaverPolicy.setPolicyLevel(POLICY_LEVEL_FULL); in testGetBatterySaverPolicy_PolicySound_DefaultValueCorrect()142 mBatterySaverPolicy.getBatterySaverPolicy(ServiceType.SOUND); in testGetBatterySaverPolicy_PolicySound_DefaultValueCorrect()210 mBatterySaverPolicy.setPolicyLevel(POLICY_LEVEL_FULL); in testGetBatterySaverPolicy_PolicyLocation_DefaultValueCorrect()212 mBatterySaverPolicy.getBatterySaverPolicy(ServiceType.LOCATION); in testGetBatterySaverPolicy_PolicyLocation_DefaultValueCorrect()226 mBatterySaverPolicy.updateConstantsLocked(BATTERY_SAVER_CONSTANTS, ""); in testUpdateConstants_getCorrectData()[all …]
72 private final BatterySaverPolicy mBatterySaverPolicy; field in BatterySaverController208 mBatterySaverPolicy = policy; in BatterySaverController()209 mBatterySaverPolicy.addListener(this); in BatterySaverController()304 return mBatterySaverPolicy.setPolicyLevel(BatterySaverPolicy.POLICY_LEVEL_FULL); in updatePolicyLevelLocked()306 return mBatterySaverPolicy.setPolicyLevel(BatterySaverPolicy.POLICY_LEVEL_ADAPTIVE); in updatePolicyLevelLocked()308 return mBatterySaverPolicy.setPolicyLevel(BatterySaverPolicy.POLICY_LEVEL_OFF); in updatePolicyLevelLocked()313 return mBatterySaverPolicy.getPolicyLocked(policyLevel).toConfig(); in getPolicyLocked()323 && mBatterySaverPolicy.shouldAdvertiseIsEnabled()); in isEnabled()348 if (mBatterySaverPolicy.setFullPolicyLocked(policy)) { in setFullPolicyLocked()366 if (mBatterySaverPolicy.setAdaptivePolicyLocked(policy)) { in setAdaptivePolicyLocked()[all …]