Home
last modified time | relevance | path

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

/frameworks/base/services/core/java/com/android/server/power/
DWirelessChargerDetector.java182 public boolean update(boolean isPowered, int plugType, int batteryLevel) { in update() argument
186 if (isPowered && plugType == BatteryManager.BATTERY_PLUGGED_WIRELESS) { in update()
197 if (plugType != 0 && plugType != BatteryManager.BATTERY_PLUGGED_WIRELESS) { in update()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/
DUtils.java125 int plugType = batteryChangedIntent.getIntExtra(BatteryManager.EXTRA_PLUGGED, 0); in getBatteryStatus() local
131 if (plugType == BatteryManager.BATTERY_PLUGGED_AC) { in getBatteryStatus()
134 } else if (plugType == BatteryManager.BATTERY_PLUGGED_USB) { in getBatteryStatus()
137 } else if (plugType == BatteryManager.BATTERY_PLUGGED_WIRELESS) { in getBatteryStatus()
DBatteryInfo.java167 int plugType = batteryBroadcast.getIntExtra(BatteryManager.EXTRA_PLUGGED, 0); in getBatteryInfo() local
169 if (plugType == BatteryManager.BATTERY_PLUGGED_AC) { in getBatteryInfo()
172 } else if (plugType == BatteryManager.BATTERY_PLUGGED_USB) { in getBatteryInfo()
175 } else if (plugType == BatteryManager.BATTERY_PLUGGED_WIRELESS) { in getBatteryInfo()
/frameworks/base/core/java/com/android/internal/app/
DIBatteryStats.aidl125 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.java979 public void setBatteryState(final int status, final int health, final int plugType, in setBatteryState() argument
989 final boolean onBattery = plugType == BatteryStatsImpl.BATTERY_PLUGGED_NONE; in setBatteryState()
993 mStats.setBatteryStateLocked(status, health, plugType, level, temp, volt, in setBatteryState()
1003 mStats.setBatteryStateLocked(status, health, plugType, level, temp, volt, in setBatteryState()
/frameworks/base/core/java/com/android/internal/os/
DBatteryStatsImpl.java2375 int plugType = 0; in buildStateInt() local
2377 plugType = 1; in buildStateInt()
2379 plugType = 2; in buildStateInt()
2381 plugType = 3; in buildStateInt()
2385 | ((plugType&STATE_BATTERY_PLUG_MASK)<<STATE_BATTERY_PLUG_SHIFT) in buildStateInt()
9343 public void setBatteryStateLocked(int status, int health, int plugType, int level, in setBatteryStateLocked() argument
9345 final boolean onBattery = plugType == BATTERY_PLUGGED_NONE; in setBatteryStateLocked()
9394 mHistoryCur.batteryPlugType = (byte)plugType; in setBatteryStateLocked()
9423 if (mHistoryCur.batteryPlugType != plugType) { in setBatteryStateLocked()
9424 mHistoryCur.batteryPlugType = (byte)plugType; in setBatteryStateLocked()