Searched refs:mPlugType (Results 1 – 3 of 3) sorted by relevance
/frameworks/base/services/core/java/com/android/server/ |
D | BatteryService.java | 143 private int mPlugType; field in BatteryService 269 final boolean plugged = mPlugType != BATTERY_PLUGGED_NONE; in shouldSendBatteryLowLocked() 339 mPlugType = BatteryManager.BATTERY_PLUGGED_AC; in processValuesLocked() 341 mPlugType = BatteryManager.BATTERY_PLUGGED_USB; in processValuesLocked() 343 mPlugType = BatteryManager.BATTERY_PLUGGED_WIRELESS; in processValuesLocked() 345 mPlugType = BATTERY_PLUGGED_NONE; in processValuesLocked() 365 + ", mPlugType=" + mPlugType); in processValuesLocked() 371 mPlugType, mBatteryProps.batteryLevel, mBatteryProps.batteryTemperature, in processValuesLocked() 385 mPlugType != mLastPlugType || in processValuesLocked() 393 if (mPlugType != mLastPlugType) { in processValuesLocked() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/power/ |
D | PowerUI.java | 61 private int mPlugType = 0; field in PowerUI 174 final int oldPlugType = mPlugType; in onReceive() 175 mPlugType = intent.getIntExtra(BatteryManager.EXTRA_PLUGGED, 1); in onReceive() 179 final boolean plugged = mPlugType != 0; in onReceive() 191 Slog.d(TAG, "plugType " + oldPlugType + " --> " + mPlugType); in onReceive() 353 pw.println(Integer.toString(mPlugType)); in dump()
|
/frameworks/base/services/core/java/com/android/server/power/ |
D | PowerManagerService.java | 343 private int mPlugType; field in PowerManagerService 1678 final int oldPlugType = mPlugType; in updateIsPoweredLocked() 1681 mPlugType = mBatteryManagerInternal.getPlugType(); in updateIsPoweredLocked() 1689 + ", mPlugType=" + mPlugType in updateIsPoweredLocked() 1693 if (wasPowered != mIsPowered || oldPlugType != mPlugType) { in updateIsPoweredLocked() 1698 mIsPowered, mPlugType, mBatteryLevel); in updateIsPoweredLocked() 1750 && mPlugType == BatteryManager.BATTERY_PLUGGED_WIRELESS in shouldWakeUpWhenPluggedOrUnpluggedLocked() 3179 pw.println(" mPlugType=" + mPlugType); in dumpInternal() 3372 proto.write(PowerServiceDumpProto.PLUG_TYPE, mPlugType); in dumpProto()
|