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.java182 private int mPlugType; field in BatteryService
389 final boolean plugged = mPlugType != BATTERY_PLUGGED_NONE; in shouldSendBatteryLowLocked()
512 mPlugType = plugType(mHealthInfo); in processValuesLocked()
518 + ", mPlugType=" + mPlugType); in processValuesLocked()
526 mPlugType, in processValuesLocked()
550 || mPlugType != mLastPlugType in processValuesLocked()
560 if (mPlugType != mLastPlugType) { in processValuesLocked()
568 builder.addTaggedData(MetricsEvent.FIELD_PLUG_TYPE, mPlugType); in processValuesLocked()
583 } else if (mPlugType == BATTERY_PLUGGED_NONE) { in processValuesLocked()
607 mPlugType != mLastPlugType) { in processValuesLocked()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/power/
DPowerUI.java92 private int mPlugType = 0; field in PowerUI
323 final int oldPlugType = mPlugType; in onReceive()
324 mPlugType = intent.getIntExtra(BatteryManager.EXTRA_PLUGGED, 1); in onReceive()
329 final boolean plugged = mPlugType != 0; in onReceive()
341 Slog.d(TAG, "plugType " + oldPlugType + " --> " + mPlugType); in onReceive()
667 pw.println(Integer.toString(mPlugType)); in dump()
/frameworks/base/services/core/java/com/android/server/power/
DPowerManagerService.java458 private int mPlugType; field in PowerManagerService
2615 final int oldPlugType = mPlugType;
2617 mPlugType = mBatteryManagerInternal.getPlugType();
2628 + ", mPlugType=" + mPlugType
2639 if (wasPowered != mIsPowered || oldPlugType != mPlugType) {
2644 mIsPowered, mPlugType);
2667 && BatteryManager.isPlugWired(mPlugType)) {
2706 && mPlugType == BatteryManager.BATTERY_PLUGGED_WIRELESS
4658 pw.println(" mPlugType=" + mPlugType);
4914 proto.write(PowerManagerServiceDumpProto.PLUG_TYPE, mPlugType);