Searched refs:BatterySaverPolicy (Results 1 – 10 of 10) sorted by relevance
18 import static com.android.server.power.batterysaver.BatterySaverPolicy.POLICY_LEVEL_ADAPTIVE;19 import static com.android.server.power.batterysaver.BatterySaverPolicy.POLICY_LEVEL_FULL;20 import static com.android.server.power.batterysaver.BatterySaverPolicy.POLICY_LEVEL_OFF;39 import com.android.server.power.batterysaver.BatterySaverPolicy.Policy;68 private class BatterySaverPolicyForTest extends BatterySaverPolicy {335 mBatterySaverPolicy.setAdaptivePolicyLocked(BatterySaverPolicy.OFF_POLICY); in testSetPolicyLevel_Adaptive()404 BatterySaverPolicy.KEY_ADJUST_BRIGHTNESS_FACTOR + "=.1" in testUserSettingsOverrideDeviceConfig()405 + "," + BatterySaverPolicy.KEY_ADVERTISE_IS_ENABLED + "=true" in testUserSettingsOverrideDeviceConfig()406 + "," + BatterySaverPolicy.KEY_DEFER_FULL_BACKUP + "=true" in testUserSettingsOverrideDeviceConfig()407 + "," + BatterySaverPolicy.KEY_DEFER_KEYVALUE_BACKUP + "=true" in testUserSettingsOverrideDeviceConfig()[all …]
43 import com.android.server.power.batterysaver.BatterySaverPolicy.BatterySaverPolicyListener;44 import com.android.server.power.batterysaver.BatterySaverPolicy.Policy;45 import com.android.server.power.batterysaver.BatterySaverPolicy.PolicyLevel;64 static final boolean DEBUG = BatterySaverPolicy.DEBUG;72 private final BatterySaverPolicy mBatterySaverPolicy;204 BatterySaverPolicy policy, BatterySavingStats batterySavingStats) { in BatterySaverController()247 public void onBatterySaverPolicyChanged(BatterySaverPolicy policy) { in onBatterySaverPolicyChanged()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()[all …]
108 private static final boolean DEBUG = BatterySaverPolicy.DEBUG;280 public BatterySaverPolicy getBatterySaverPolicy() { in getBatterySaverPolicy()544 return mBatterySaverController.getPolicyLocked(BatterySaverPolicy.POLICY_LEVEL_FULL); in getFullBatterySaverPolicy()
62 public class BatterySaverPolicy extends ContentObserver implements class248 void onBatterySaverPolicyChanged(BatterySaverPolicy policy); in onBatterySaverPolicyChanged()251 public BatterySaverPolicy(Object lock, Context context, BatterySavingStats batterySavingStats) { in BatterySaverPolicy() method in BatterySaverPolicy
48 private static final boolean DEBUG = BatterySaverPolicy.DEBUG;
203 .setAdaptivePolicyLocked(any(BatterySaverPolicy.Policy.class), anyInt()); in setUp()
656 …erver/power/batterysaver/BatterySaverPolicy;->getCurrentPolicyLocked()Lcom/android/server/power/ba…657 Lcom/android/server/power/batterysaver/BatterySaverPolicy;->getBatterySaverPolicy(I)Landroid/os/Pow…
3000 …com/android/server/power/batterysaver/BatterySaverPolicy;Lcom/android/server/power/batterysaver/Ba…3031 HSPLcom/android/server/power/batterysaver/BatterySaverPolicy$Policy;-><init>(FZZZZZZZZZZZZZZZII)V3032 …BatterySaverPolicy;->getBatterySaverPolicy(I)Landroid/os/PowerSaveState;+]Landroid/os/PowerSaveSta…3033 …ne;->getBatterySaverPolicy()Lcom/android/server/power/batterysaver/BatterySaverPolicy;+]Lcom/andro…
115 import com.android.server.power.batterysaver.BatterySaverPolicy;164 @Mock private BatterySaverPolicy mBatterySaverPolicyMock;
140 import com.android.server.power.batterysaver.BatterySaverPolicy;1005 BatterySaverPolicy batterySaverPolicy = new BatterySaverPolicy(lock, context, in createBatterySaverStateMachine()