Home
last modified time | relevance | path

Searched refs:plugType (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/core/java/android/os/
DBatteryManager.java361 public static boolean isPlugWired(int plugType) { in isPlugWired() argument
362 return plugType == BATTERY_PLUGGED_USB || plugType == BATTERY_PLUGGED_AC; in isPlugWired()
/frameworks/base/services/core/java/com/android/server/power/
DWirelessChargerDetector.java219 public boolean update(boolean isPowered, int plugType) { in update() argument
223 if (isPowered && plugType == BatteryManager.BATTERY_PLUGGED_WIRELESS) { in update()
234 if (plugType != 0 && plugType != BatteryManager.BATTERY_PLUGGED_WIRELESS) { in update()
/frameworks/base/core/java/com/android/internal/app/
DIBatteryStats.aidl135 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/
DBatteryStatsService.java1134 public void setBatteryState(final int status, final int health, final int plugType, in setBatteryState() argument
1143 final boolean onBattery = BatteryStatsImpl.isOnBattery(plugType, status); in setBatteryState()
1147 mStats.setBatteryStateLocked(status, health, plugType, level, temp, volt, in setBatteryState()
1160 mStats.setBatteryStateLocked(status, health, plugType, level, temp, volt, in setBatteryState()
/frameworks/base/core/java/com/android/internal/os/
DBatteryStatsImpl.java3369 int plugType = 0; in buildStateInt() local
3371 plugType = 1; in buildStateInt()
3373 plugType = 2; in buildStateInt()
3375 plugType = 3; in buildStateInt()
3379 | ((plugType&STATE_BATTERY_PLUG_MASK)<<STATE_BATTERY_PLUG_SHIFT) in buildStateInt()
12222 public void setBatteryStateLocked(final int status, final int health, final int plugType, in setBatteryStateLocked() argument
12229 status, plugType, level); in setBatteryStateLocked()
12231 final boolean onBattery = isOnBattery(plugType, status); in setBatteryStateLocked()
12281 mHistoryCur.batteryPlugType = (byte)plugType; in setBatteryStateLocked()
12319 if (mHistoryCur.batteryPlugType != plugType) { in setBatteryStateLocked()
[all …]