Home
last modified time | relevance | path

Searched refs:mIsPowered (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/services/core/java/com/android/server/power/batterysaver/
DBatterySaverStateMachine.java153 private boolean mIsPowered; field in BatterySaverStateMachine
519 final boolean poweredChanged = mIsPowered != newPowered; in setBatteryStatus()
527 mIsPowered = newPowered; in setBatteryStatus()
603 + " mIsPowered=" + mIsPowered in doAutoBatterySaverLocked()
622 } else if (mIsPowered && mBatteryLevel >= ADAPTIVE_AUTO_DISABLE_BATTERY_LEVEL) { in doAutoBatterySaverLocked()
643 if (!mIsPowered) { in updateStateLocked()
677 } else if (mIsPowered) { in updateStateLocked()
691 if (mIsPowered) { in updateStateLocked()
733 } else if (mIsPowered // Plugging in resets snooze. in updateStateLocked()
757 } else if (!mIsPowered) { in updateStateLocked()
[all …]
/frameworks/base/services/core/java/com/android/server/power/
DPowerManagerService.java455 private boolean mIsPowered; field in PowerManagerService
2614 final boolean wasPowered = mIsPowered;
2616 mIsPowered = mBatteryManagerInternal.isPowered(BatteryManager.BATTERY_PLUGGED_ANY);
2626 + ", mIsPowered=" + mIsPowered
2639 if (wasPowered != mIsPowered || oldPlugType != mPlugType) {
2644 mIsPowered, mPlugType);
2656 "android.server.power:PLUGGED:" + mIsPowered, Process.SYSTEM_UID,
2666 if (mIsPowered && !BatteryManager.isPlugWired(oldPlugType)
2676 mBatterySaverStateMachine.setBatteryStatus(mIsPowered, mBatteryLevel,
2693 && wasPowered && !mIsPowered) {
[all …]