Home
last modified time | relevance | path

Searched refs:plugTypeSet (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/core/java/android/os/
DBatteryManagerInternal.java31 public abstract boolean isPowered(int plugTypeSet); in isPowered() argument
/frameworks/base/services/core/java/com/android/server/
DBatteryService.java331 private boolean isPoweredLocked(int plugTypeSet) { in isPoweredLocked() argument
337 if ((plugTypeSet & BatteryManager.BATTERY_PLUGGED_AC) != 0 && mHealthInfo.chargerAcOnline) { in isPoweredLocked()
340 … if ((plugTypeSet & BatteryManager.BATTERY_PLUGGED_USB) != 0 && mHealthInfo.chargerUsbOnline) { in isPoweredLocked()
343 …if ((plugTypeSet & BatteryManager.BATTERY_PLUGGED_WIRELESS) != 0 && mHealthInfo.chargerWirelessOnl… in isPoweredLocked()
1282 public boolean isPowered(int plugTypeSet) { in isPowered() argument
1284 return isPoweredLocked(plugTypeSet); in isPowered()