Home
last modified time | relevance | path

Searched refs:batteryPlugType (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/core/java/com/android/internal/os/
DBatteryStatsHistoryIterator.java171 cur.batteryPlugType = (byte) ((stateInt >> BatteryStatsHistory.STATE_BATTERY_PLUG_SHIFT) in readHistoryDelta()
173 switch (cur.batteryPlugType) { in readHistoryDelta()
175 cur.batteryPlugType = BatteryManager.BATTERY_PLUGGED_AC; in readHistoryDelta()
178 cur.batteryPlugType = BatteryManager.BATTERY_PLUGGED_USB; in readHistoryDelta()
181 cur.batteryPlugType = BatteryManager.BATTERY_PLUGGED_WIRELESS; in readHistoryDelta()
190 + " batteryPlugType=" + cur.batteryPlugType in readHistoryDelta()
DBatteryStatsHistory.java1266 mHistoryCur.batteryPlugType = (byte) plugType; in setBatteryState()
1808 && mHistoryLastWritten.batteryPlugType == cur.batteryPlugType in writeHistoryItem()
2132 + " batteryPlugType=" + cur.batteryPlugType in writeHistoryDelta()
2231 if ((h.batteryPlugType & BatteryManager.BATTERY_PLUGGED_AC) != 0) { in buildStateInt()
2233 } else if ((h.batteryPlugType & BatteryManager.BATTERY_PLUGGED_USB) != 0) { in buildStateInt()
2235 } else if ((h.batteryPlugType & BatteryManager.BATTERY_PLUGGED_WIRELESS) != 0) { in buildStateInt()
/frameworks/base/core/java/android/os/
DBatteryStats.java1897 public byte batteryPlugType; field in BatteryStats.HistoryItem
2135 | ((((int)batteryPlugType)<<24)&0xf000000) in writeToParcel()
2171 batteryPlugType = (byte)((bat>>24)&0xf); in readFromParcel()
2215 batteryPlugType = 0; in clear()
2250 batteryPlugType = o.batteryPlugType; in setToCommon()
2287 && batteryPlugType == o.batteryPlugType in sameNonEvent()
7078 if (oldPlug != rec.batteryPlugType) { in printNextItem()
7079 oldPlug = rec.batteryPlugType; in printNextItem()