Home
last modified time | relevance | path

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

/frameworks/base/services/core/java/com/android/server/power/batterysaver/
DBatterySaverController.java59 public class BatterySaverController implements BatterySaverPolicyListener { class
123 case BatterySaverController.REASON_PERCENTAGE_AUTOMATIC_ON: in reasonToString()
125 case BatterySaverController.REASON_PERCENTAGE_AUTOMATIC_OFF: in reasonToString()
127 case BatterySaverController.REASON_MANUAL_ON: in reasonToString()
129 case BatterySaverController.REASON_MANUAL_OFF: in reasonToString()
131 case BatterySaverController.REASON_STICKY_RESTORE: in reasonToString()
133 case BatterySaverController.REASON_INTERACTIVE_CHANGED: in reasonToString()
135 case BatterySaverController.REASON_POLICY_CHANGED: in reasonToString()
137 case BatterySaverController.REASON_PLUGGED_IN: in reasonToString()
139 case BatterySaverController.REASON_SETTING_CHANGED: in reasonToString()
[all …]
DBatterySaverLocationPlugin.java24 import com.android.server.power.batterysaver.BatterySaverController.Plugin;
29 private static final boolean DEBUG = BatterySaverController.DEBUG;
38 public void onBatterySaverChanged(BatterySaverController caller) { in onBatterySaverChanged()
46 public void onSystemReady(BatterySaverController caller) { in onSystemReady()
53 private void updateLocationState(BatterySaverController caller) { in updateLocationState()
DBatterySaverStateMachine.java18 import static com.android.server.power.batterysaver.BatterySaverController.reasonToString;
126 private final BatterySaverController mBatterySaverController;
238 Context context, BatterySaverController batterySaverController) { in BatterySaverStateMachine()
462 BatterySaverController.REASON_SETTING_CHANGED, reason); in setSettingsLocked()
512 enabled, BatterySaverController.REASON_ADAPTIVE_DYNAMIC_POWER_SAVINGS_CHANGED); in setAdaptiveBatterySaverEnabled()
527 BatterySaverController.REASON_ADAPTIVE_DYNAMIC_POWER_SAVINGS_CHANGED); in setAdaptiveBatterySaverPolicy()
558 false, BatterySaverController.REASON_TIMEOUT); in doAutoBatterySaverLocked()
560 BatterySaverController.REASON_TIMEOUT); in doAutoBatterySaverLocked()
563 BatterySaverController.REASON_PLUGGED_IN); in doAutoBatterySaverLocked()
589 BatterySaverController.REASON_MANUAL_ON); in updateStateLocked()
[all …]
DFileUpdater.java61 private static final String TAG = BatterySaverController.TAG;
63 private static final boolean DEBUG = BatterySaverController.DEBUG;
/frameworks/base/services/core/java/com/android/server/
DEventLogTags.logtags35 # Power save state has changed. See BatterySaverController.java for the details.
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/power/batterysaver/
DBatterySaverStateMachineTest.java60 private BatterySaverController mMockBatterySaverController;
180 mMockBatterySaverController = mock(BatterySaverController.class); in setUp()
/frameworks/base/services/core/java/com/android/server/power/
DPowerManagerService.java101 import com.android.server.power.batterysaver.BatterySaverController;
233 private final BatterySaverController mBatterySaverController;
774 mBatterySaverController = new BatterySaverController(mLock, mContext, in PowerManagerService()
/frameworks/base/services/
Dart-profile12637 HSPLcom/android/server/power/batterysaver/BatterySaverController$1;->onReceive(Landroid/content/Con…
12638 HSPLcom/android/server/power/batterysaver/BatterySaverController$MyHandler;->dispatchMessage(Landro…
12639 HSPLcom/android/server/power/batterysaver/BatterySaverController$MyHandler;->postStateChanged(ZI)V
12640 HSPLcom/android/server/power/batterysaver/BatterySaverController$MyHandler;->postSystemReady()V
12641 HSPLcom/android/server/power/batterysaver/BatterySaverController;-><init>(Ljava/lang/Object;Landroi…
12642 HSPLcom/android/server/power/batterysaver/BatterySaverController;->addListener(Landroid/os/PowerMan…
12643 HSPLcom/android/server/power/batterysaver/BatterySaverController;->enableBatterySaver(ZI)V
12644 HSPLcom/android/server/power/batterysaver/BatterySaverController;->getBatterySaverPolicy()Lcom/andr…
12645 HSPLcom/android/server/power/batterysaver/BatterySaverController;->handleBatterySaverStateChanged(Z…
12646 PLcom/android/server/power/batterysaver/BatterySaverController;->isAdaptiveEnabled()Z
[all …]