Searched refs:plugType (Results 1 - 5 of 5) sorted by relevance
/frameworks/base/core/java/android/os/ |
H A D | BatteryManager.java | 346 * Return true if the plugType given is wired 347 * @param plugType {@link #BATTERY_PLUGGED_AC}, {@link #BATTERY_PLUGGED_USB}, 350 * @return true if plugType is wired 353 public static boolean isPlugWired(int plugType) { argument 354 return plugType == BATTERY_PLUGGED_USB || plugType == BATTERY_PLUGGED_AC;
|
/frameworks/base/services/core/java/com/android/server/power/ |
H A D | WirelessChargerDetector.java | 212 * @param plugType The current plug type. 216 public boolean update(boolean isPowered, int plugType) { argument 220 if (isPowered && plugType == BatteryManager.BATTERY_PLUGGED_WIRELESS) { 231 if (plugType != 0 && plugType != BatteryManager.BATTERY_PLUGGED_WIRELESS) {
|
/frameworks/base/core/java/com/android/internal/app/ |
H A D | IBatteryStats.aidl | 132 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 | 1101 public void setBatteryState(final int status, final int health, final int plugType, argument 1110 final boolean onBattery = BatteryStatsImpl.isOnBattery(plugType, status); 1114 mStats.setBatteryStateLocked(status, health, plugType, level, temp, volt, 1127 mStats.setBatteryStateLocked(status, health, plugType, level, temp, volt,
|
/frameworks/base/core/java/com/android/internal/os/ |
H A D | BatteryStatsImpl.java | 3435 int plugType = 0; 3437 plugType = 1; 3439 plugType = 2; 3441 plugType = 3; 3445 | ((plugType&STATE_BATTERY_PLUG_MASK)<<STATE_BATTERY_PLUG_SHIFT) 12535 public void setBatteryStateLocked(final int status, final int health, final int plugType, argument 12542 status, plugType, level); 12544 final boolean onBattery = isOnBattery(plugType, status); 12594 mHistoryCur.batteryPlugType = (byte)plugType; 12632 if (mHistoryCur.batteryPlugType != plugType) { 12735 isOnBattery(int plugType, int status) argument 12741 reportChangesToStatsLog(HistoryItem recentPast, final int status, final int plugType, final int level) argument [all...] |
Completed in 862 milliseconds