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.java128 cur.batteryPlugType = (byte) ((stateInt >> BatteryStatsImpl.STATE_BATTERY_PLUG_SHIFT) in readHistoryDelta()
130 switch (cur.batteryPlugType) { in readHistoryDelta()
132 cur.batteryPlugType = BatteryManager.BATTERY_PLUGGED_AC; in readHistoryDelta()
135 cur.batteryPlugType = BatteryManager.BATTERY_PLUGGED_USB; in readHistoryDelta()
138 cur.batteryPlugType = BatteryManager.BATTERY_PLUGGED_WIRELESS; in readHistoryDelta()
147 + " batteryPlugType=" + cur.batteryPlugType in readHistoryDelta()
DBatteryStatsImpl.java3444 + " batteryPlugType=" + cur.batteryPlugType in writeHistoryDelta()
3523 if ((h.batteryPlugType&BatteryManager.BATTERY_PLUGGED_AC) != 0) { in buildStateInt()
3525 } else if ((h.batteryPlugType&BatteryManager.BATTERY_PLUGGED_USB) != 0) { in buildStateInt()
3527 } else if ((h.batteryPlugType&BatteryManager.BATTERY_PLUGGED_WIRELESS) != 0) { in buildStateInt()
3672 && mHistoryLastWritten.batteryPlugType == cur.batteryPlugType in addHistoryBufferLocked()
13759 mHistoryCur.batteryPlugType = (byte)plugType; in setBatteryStateLocked()
13797 if (mHistoryCur.batteryPlugType != plugType) { in setBatteryStateLocked()
13798 mHistoryCur.batteryPlugType = (byte)plugType; in setBatteryStateLocked()
13922 if (recentPast == null || recentPast.batteryPlugType != plugType) { in reportChangesToStatsLog()
/frameworks/base/core/java/android/os/
DBatteryStats.java1712 public byte batteryPlugType; field in BatteryStats.HistoryItem
1925 | ((((int)batteryPlugType)<<24)&0xf000000) in writeToParcel()
1961 batteryPlugType = (byte)((bat>>24)&0xf); in readFromParcel()
2005 batteryPlugType = 0; in clear()
2037 batteryPlugType = o.batteryPlugType; in setToCommon()
2071 && batteryPlugType == o.batteryPlugType in sameNonEvent()
6472 if (oldPlug != rec.batteryPlugType) { in printNextItem()
6473 oldPlug = rec.batteryPlugType; in printNextItem()