Searched refs:BatterySaverController (Results 1 – 8 of 8) sorted by relevance
59 public class BatterySaverController implements BatterySaverPolicyListener { class123 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 …]
24 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()
18 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 …]
61 private static final String TAG = BatterySaverController.TAG;63 private static final boolean DEBUG = BatterySaverController.DEBUG;
35 # Power save state has changed. See BatterySaverController.java for the details.
60 private BatterySaverController mMockBatterySaverController;180 mMockBatterySaverController = mock(BatterySaverController.class); in setUp()
101 import com.android.server.power.batterysaver.BatterySaverController;233 private final BatterySaverController mBatterySaverController;774 mBatterySaverController = new BatterySaverController(mLock, mContext, in PowerManagerService()
12637 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)V12640 HSPLcom/android/server/power/batterysaver/BatterySaverController$MyHandler;->postSystemReady()V12641 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)V12644 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 …]