Home
last modified time | relevance | path

Searched refs:CMD_UPDATE (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/core/java/android/os/
DBatteryStats.java1605 public static final byte CMD_UPDATE = 0; // These can be written as deltas field in BatteryStats.HistoryItem
1620 return cmd == CMD_UPDATE; in isDeltaData()
6853 rec.cmd = HistoryItem.CMD_UPDATE; in dumpHistoryLocked()
6863 if (rec.cmd != HistoryItem.CMD_UPDATE) { in dumpHistoryLocked()
6866 rec.cmd = HistoryItem.CMD_UPDATE; in dumpHistoryLocked()
7787 rec.cmd = HistoryItem.CMD_UPDATE; in dumpProtoHistoryLocked()
7797 if (rec.cmd != HistoryItem.CMD_UPDATE) { in dumpProtoHistoryLocked()
7800 rec.cmd = HistoryItem.CMD_UPDATE; in dumpProtoHistoryLocked()
/frameworks/base/core/java/com/android/internal/os/
DBatteryStatsImpl.java3211 if (last == null || cur.cmd != HistoryItem.CMD_UPDATE) { in writeHistoryDelta()
3478 cur.cmd = HistoryItem.CMD_UPDATE; in readHistoryDelta()
3635 if (mHistoryBufferLastPos >= 0 && mHistoryLastWritten.cmd == HistoryItem.CMD_UPDATE in addHistoryBufferLocked()
3702 addHistoryBufferLocked(elapsedRealtimeMs, HistoryItem.CMD_UPDATE, newItem); in addHistoryBufferLocked()
3711 addHistoryBufferLocked(elapsedRealtimeMs, HistoryItem.CMD_UPDATE, cur); in addHistoryBufferLocked()
3772 if (mHistoryEnd != null && mHistoryEnd.cmd == HistoryItem.CMD_UPDATE in addHistoryRecordInnerLocked()
3778 if (mHistoryLastEnd != null && mHistoryLastEnd.cmd == HistoryItem.CMD_UPDATE in addHistoryRecordInnerLocked()
3789 mHistoryEnd.setTo(mHistoryEnd.time, HistoryItem.CMD_UPDATE, cur); in addHistoryRecordInnerLocked()
3796 addHistoryBufferLocked(elapsedRealtimeMs, HistoryItem.CMD_UPDATE, cur); in addHistoryRecordInnerLocked()
4240 && mHistoryLastWritten.cmd == HistoryItem.CMD_UPDATE) { in noteStartWakeLocked()