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.java172 private int mPlugType; field in BatteryService
349 final boolean plugged = mPlugType != BATTERY_PLUGGED_NONE; in shouldSendBatteryLowLocked()
474 mPlugType = BatteryManager.BATTERY_PLUGGED_AC; in processValuesLocked()
476 mPlugType = BatteryManager.BATTERY_PLUGGED_USB; in processValuesLocked()
478 mPlugType = BatteryManager.BATTERY_PLUGGED_WIRELESS; in processValuesLocked()
480 mPlugType = BATTERY_PLUGGED_NONE; in processValuesLocked()
487 + ", mPlugType=" + mPlugType); in processValuesLocked()
493 mPlugType, mHealthInfo.batteryLevel, mHealthInfo.batteryTemperature, in processValuesLocked()
508 mPlugType != mLastPlugType || in processValuesLocked()
516 if (mPlugType != mLastPlugType) { in processValuesLocked()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/power/
DPowerUI.java86 private int mPlugType = 0; field in PowerUI
268 final int oldPlugType = mPlugType; in onReceive()
269 mPlugType = intent.getIntExtra(BatteryManager.EXTRA_PLUGGED, 1); in onReceive()
274 final boolean plugged = mPlugType != 0; in onReceive()
286 Slog.d(TAG, "plugType " + oldPlugType + " --> " + mPlugType); in onReceive()
634 pw.println(Integer.toString(mPlugType)); in dump()
/frameworks/base/services/core/java/com/android/server/power/
DPowerManagerService.java379 private int mPlugType; field in PowerManagerService
1992 final int oldPlugType = mPlugType;
1995 mPlugType = mBatteryManagerInternal.getPlugType();
2003 + ", mPlugType=" + mPlugType
2007 if (wasPowered != mIsPowered || oldPlugType != mPlugType) {
2012 mIsPowered, mPlugType);
2033 && BatteryManager.isPlugWired(mPlugType)) {
2062 && mPlugType == BatteryManager.BATTERY_PLUGGED_WIRELESS
3789 pw.println(" mPlugType=" + mPlugType);
4002 proto.write(PowerManagerServiceDumpProto.PLUG_TYPE, mPlugType);