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

/frameworks/base/services/core/java/com/android/server/power/
H A DWirelessChargerDetector.java177 * @param plugType The current plug type.
182 public boolean update(boolean isPowered, int plugType, int batteryLevel) { argument
186 if (isPowered && plugType == BatteryManager.BATTERY_PLUGGED_WIRELESS) {
197 if (plugType != 0 && plugType != BatteryManager.BATTERY_PLUGGED_WIRELESS) {
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/
H A DBatteryInfo.java167 int plugType = batteryBroadcast.getIntExtra(BatteryManager.EXTRA_PLUGGED, 0);
169 if (plugType == BatteryManager.BATTERY_PLUGGED_AC) {
172 } else if (plugType == BatteryManager.BATTERY_PLUGGED_USB) {
175 } else if (plugType == BatteryManager.BATTERY_PLUGGED_WIRELESS) {
H A DUtils.java128 int plugType = batteryChangedIntent.getIntExtra(BatteryManager.EXTRA_PLUGGED, 0);
134 if (plugType == BatteryManager.BATTERY_PLUGGED_AC) {
137 } else if (plugType == BatteryManager.BATTERY_PLUGGED_USB) {
140 } else if (plugType == BatteryManager.BATTERY_PLUGGED_WIRELESS) {
/frameworks/base/core/java/com/android/internal/app/
H A DIBatteryStats.aidl127 void setBatteryState(int status, int health, int plugType, int level, int temp, int volt,
/frameworks/base/services/core/java/com/android/server/am/
H A DBatteryStatsService.java993 public void setBatteryState(final int status, final int health, final int plugType, argument
1003 final boolean onBattery = plugType == BatteryStatsImpl.BATTERY_PLUGGED_NONE;
1007 mStats.setBatteryStateLocked(status, health, plugType, level, temp, volt,
1017 mStats.setBatteryStateLocked(status, health, plugType, level, temp, volt,
/frameworks/base/core/java/com/android/internal/os/
H A DBatteryStatsImpl.java2576 int plugType = 0;
2578 plugType = 1;
2580 plugType = 2;
2582 plugType = 3;
2586 | ((plugType&STATE_BATTERY_PLUG_MASK)<<STATE_BATTERY_PLUG_SHIFT)
9725 public void setBatteryStateLocked(int status, int health, int plugType, int level, argument
9727 final boolean onBattery = plugType == BATTERY_PLUGGED_NONE;
9776 mHistoryCur.batteryPlugType = (byte)plugType;
9805 if (mHistoryCur.batteryPlugType != plugType) {
9806 mHistoryCur.batteryPlugType = (byte)plugType;
[all...]

Completed in 226 milliseconds