Home
last modified time | relevance | path

Searched refs:BatterySaverPolicy (Results 1 – 10 of 10) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/power/batterysaver/
DBatterySaverPolicyTest.java18 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 …]
/frameworks/base/services/core/java/com/android/server/power/batterysaver/
DBatterySaverController.java43 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 …]
DBatterySaverStateMachine.java108 private static final boolean DEBUG = BatterySaverPolicy.DEBUG;
280 public BatterySaverPolicy getBatterySaverPolicy() { in getBatterySaverPolicy()
544 return mBatterySaverController.getPolicyLocked(BatterySaverPolicy.POLICY_LEVEL_FULL); in getFullBatterySaverPolicy()
DBatterySaverPolicy.java62 public class BatterySaverPolicy extends ContentObserver implements class
248 void onBatterySaverPolicyChanged(BatterySaverPolicy policy); in onBatterySaverPolicyChanged()
251 public BatterySaverPolicy(Object lock, Context context, BatterySavingStats batterySavingStats) { in BatterySaverPolicy() method in BatterySaverPolicy
DBatterySavingStats.java48 private static final boolean DEBUG = BatterySaverPolicy.DEBUG;
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/power/batterysaver/
DBatterySaverStateMachineTest.java203 .setAdaptivePolicyLocked(any(BatterySaverPolicy.Policy.class), anyInt()); in setUp()
/frameworks/base/services/
Dart-profile-boot656 …erver/power/batterysaver/BatterySaverPolicy;->getCurrentPolicyLocked()Lcom/android/server/power/ba…
657 Lcom/android/server/power/batterysaver/BatterySaverPolicy;->getBatterySaverPolicy(I)Landroid/os/Pow…
Dart-profile3000 …com/android/server/power/batterysaver/BatterySaverPolicy;Lcom/android/server/power/batterysaver/Ba…
3031 HSPLcom/android/server/power/batterysaver/BatterySaverPolicy$Policy;-><init>(FZZZZZZZZZZZZZZZII)V
3032BatterySaverPolicy;->getBatterySaverPolicy(I)Landroid/os/PowerSaveState;+]Landroid/os/PowerSaveSta…
3033 …ne;->getBatterySaverPolicy()Lcom/android/server/power/batterysaver/BatterySaverPolicy;+]Lcom/andro…
/frameworks/base/services/tests/powerservicetests/src/com/android/server/power/
DPowerManagerServiceTest.java115 import com.android.server.power.batterysaver.BatterySaverPolicy;
164 @Mock private BatterySaverPolicy mBatterySaverPolicyMock;
/frameworks/base/services/core/java/com/android/server/power/
DPowerManagerService.java140 import com.android.server.power.batterysaver.BatterySaverPolicy;
1005 BatterySaverPolicy batterySaverPolicy = new BatterySaverPolicy(lock, context, in createBatterySaverStateMachine()