Searched refs:plugType (Results 1 – 5 of 5) sorted by relevance
/frameworks/base/core/java/android/os/ |
D | BatteryManager.java | 353 public static boolean isPlugWired(int plugType) { in isPlugWired() argument 354 return plugType == BATTERY_PLUGGED_USB || plugType == BATTERY_PLUGGED_AC; in isPlugWired()
|
/frameworks/base/services/core/java/com/android/server/power/ |
D | WirelessChargerDetector.java | 216 public boolean update(boolean isPowered, int plugType) { in update() argument 220 if (isPowered && plugType == BatteryManager.BATTERY_PLUGGED_WIRELESS) { in update() 231 if (plugType != 0 && plugType != BatteryManager.BATTERY_PLUGGED_WIRELESS) { in update()
|
/frameworks/base/core/java/com/android/internal/app/ |
D | IBatteryStats.aidl | 132 void setBatteryState(int status, int health, int plugType, int level, int temp, int volt, in setBatteryState() argument
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | BatteryStatsService.java | 1101 public void setBatteryState(final int status, final int health, final int plugType, in setBatteryState() argument 1110 final boolean onBattery = BatteryStatsImpl.isOnBattery(plugType, status); in setBatteryState() 1114 mStats.setBatteryStateLocked(status, health, plugType, level, temp, volt, in setBatteryState() 1127 mStats.setBatteryStateLocked(status, health, plugType, level, temp, volt, in setBatteryState()
|
/frameworks/base/core/java/com/android/internal/os/ |
D | BatteryStatsImpl.java | 3435 int plugType = 0; in buildStateInt() local 3437 plugType = 1; in buildStateInt() 3439 plugType = 2; in buildStateInt() 3441 plugType = 3; in buildStateInt() 3445 | ((plugType&STATE_BATTERY_PLUG_MASK)<<STATE_BATTERY_PLUG_SHIFT) in buildStateInt() 12535 public void setBatteryStateLocked(final int status, final int health, final int plugType, in setBatteryStateLocked() argument 12542 status, plugType, level); in setBatteryStateLocked() 12544 final boolean onBattery = isOnBattery(plugType, status); in setBatteryStateLocked() 12594 mHistoryCur.batteryPlugType = (byte)plugType; in setBatteryStateLocked() 12632 if (mHistoryCur.batteryPlugType != plugType) { in setBatteryStateLocked() [all …]
|