Home
last modified time | relevance | path

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

/aosp14/frameworks/base/services/core/java/com/android/server/
H A DBatteryService.java172 private int mPlugType; field in BatteryService
494 mPlugType = plugType(mHealthInfo); in processValuesLocked()
500 + ", mPlugType=" + mPlugType); in processValuesLocked()
508 mPlugType, in processValuesLocked()
527 || mPlugType != mLastPlugType in processValuesLocked()
537 if (mPlugType != mLastPlugType) { in processValuesLocked()
584 mPlugType != mLastPlugType) { in processValuesLocked()
612 if (mPlugType == BATTERY_PLUGGED_NONE in processValuesLocked()
636 if (mPlugType != 0 && mLastPlugType == 0) { in processValuesLocked()
709 mLastPlugType = mPlugType; in processValuesLocked()
[all …]
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/power/
H A DPowerUI.java89 private int mPlugType = 0; field in PowerUI
298 final int oldPlugType = mPlugType; in onReceive()
299 mPlugType = intent.getIntExtra(BatteryManager.EXTRA_PLUGGED, 1); in onReceive()
304 final boolean plugged = mPlugType != 0; in onReceive()
316 Slog.d(TAG, "plugType " + oldPlugType + " --> " + mPlugType); in onReceive()
642 pw.println(Integer.toString(mPlugType)); in dump()
/aosp14/frameworks/base/services/core/java/com/android/server/power/
H A DPowerManagerService.java445 private int mPlugType; field in PowerManagerService
2545 final int oldPlugType = mPlugType;
2547 mPlugType = mBatteryManagerInternal.getPlugType();
2558 + ", mPlugType=" + mPlugType
2569 if (wasPowered != mIsPowered || oldPlugType != mPlugType) {
2574 mIsPowered, mPlugType);
2597 && BatteryManager.isPlugWired(mPlugType)) {
2633 && mPlugType == BatteryManager.BATTERY_PLUGGED_WIRELESS
4544 pw.println(" mPlugType=" + mPlugType);
4786 proto.write(PowerManagerServiceDumpProto.PLUG_TYPE, mPlugType);