Searched refs:plugType (Results 1 - 6 of 6) sorted by relevance
/frameworks/base/services/core/java/com/android/server/power/ |
H A D | WirelessChargerDetector.java | 177 * @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 D | BatteryInfo.java | 167 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 D | Utils.java | 128 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 D | IBatteryStats.aidl | 127 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 D | BatteryStatsService.java | 993 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 D | BatteryStatsImpl.java | 2576 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