Home
last modified time | relevance | path

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

/aosp12/frameworks/base/services/core/java/com/android/server/
H A DBatteryService.java175 private int mPlugType; field in BatteryService
497 mPlugType = plugType(mHealthInfo); in processValuesLocked()
503 + ", mPlugType=" + mPlugType); in processValuesLocked()
524 mPlugType != mLastPlugType || in processValuesLocked()
532 if (mPlugType != mLastPlugType) { in processValuesLocked()
579 mPlugType != mLastPlugType) { in processValuesLocked()
591 mPlugType == BATTERY_PLUGGED_NONE) { in processValuesLocked()
600 if (mPlugType == BATTERY_PLUGGED_NONE in processValuesLocked()
624 if (mPlugType != 0 && mLastPlugType == 0) { in processValuesLocked()
693 mLastPlugType = mPlugType; in processValuesLocked()
[all …]
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/power/
H A DPowerUI.java87 private int mPlugType = 0; field in PowerUI
269 final int oldPlugType = mPlugType; in onReceive()
270 mPlugType = intent.getIntExtra(BatteryManager.EXTRA_PLUGGED, 1); in onReceive()
275 final boolean plugged = mPlugType != 0; in onReceive()
287 Slog.d(TAG, "plugType " + oldPlugType + " --> " + mPlugType); in onReceive()
635 pw.println(Integer.toString(mPlugType)); in dump()
/aosp12/frameworks/base/services/core/java/com/android/server/power/
H A DPowerManagerService.java394 private int mPlugType; field in PowerManagerService
2212 final int oldPlugType = mPlugType;
2214 mPlugType = mBatteryManagerInternal.getPlugType();
2222 + ", mPlugType=" + mPlugType
2226 if (wasPowered != mIsPowered || oldPlugType != mPlugType) {
2231 mIsPowered, mPlugType);
2254 && BatteryManager.isPlugWired(mPlugType)) {
2283 && mPlugType == BatteryManager.BATTERY_PLUGGED_WIRELESS
4139 pw.println(" mPlugType=" + mPlugType);
4373 proto.write(PowerManagerServiceDumpProto.PLUG_TYPE, mPlugType);