Home
last modified time | relevance | path

Searched refs:mPlugType (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/services/core/java/com/android/server/
DBatteryService.java136 private int mPlugType; field in BatteryService
259 final boolean plugged = mPlugType != BATTERY_PLUGGED_NONE; in shouldSendBatteryLowLocked()
329 mPlugType = BatteryManager.BATTERY_PLUGGED_AC; in processValuesLocked()
331 mPlugType = BatteryManager.BATTERY_PLUGGED_USB; in processValuesLocked()
333 mPlugType = BatteryManager.BATTERY_PLUGGED_WIRELESS; in processValuesLocked()
335 mPlugType = BATTERY_PLUGGED_NONE; in processValuesLocked()
354 + ", mPlugType=" + mPlugType); in processValuesLocked()
360 mPlugType, mBatteryProps.batteryLevel, mBatteryProps.batteryTemperature, in processValuesLocked()
373 mPlugType != mLastPlugType || in processValuesLocked()
381 if (mPlugType != mLastPlugType) { in processValuesLocked()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/power/
DPowerUI.java52 private int mPlugType = 0; field in PowerUI
151 final int oldPlugType = mPlugType; in onReceive()
152 mPlugType = intent.getIntExtra(BatteryManager.EXTRA_PLUGGED, 1); in onReceive()
156 final boolean plugged = mPlugType != 0; in onReceive()
168 Slog.d(TAG, "plugType " + oldPlugType + " --> " + mPlugType); in onReceive()
222 pw.println(Integer.toString(mPlugType)); in dump()
/frameworks/base/services/core/java/com/android/server/power/
DPowerManagerService.java290 private int mPlugType; field in PowerManagerService
1416 final int oldPlugType = mPlugType; in updateIsPoweredLocked()
1419 mPlugType = mBatteryManagerInternal.getPlugType(); in updateIsPoweredLocked()
1427 + ", mPlugType=" + mPlugType in updateIsPoweredLocked()
1431 if (wasPowered != mIsPowered || oldPlugType != mPlugType) { in updateIsPoweredLocked()
1436 mIsPowered, mPlugType, mBatteryLevel); in updateIsPoweredLocked()
1488 && mPlugType == BatteryManager.BATTERY_PLUGGED_WIRELESS in shouldWakeUpWhenPluggedOrUnpluggedLocked()
2740 pw.println(" mPlugType=" + mPlugType); in dumpInternal()