public static class BatteryStatsImpl.BatchTimer extends BatteryStatsImpl.Timer
mClocks, mCount, mLastCount, mLastTime, mLoadedCount, mLoadedTime, mTimeBase, mTimeBeforeMark, mTotalTime, mType, mUnpluggedCount, mUnpluggedTime
Modifier and Type | Method and Description |
---|---|
void |
abortLastDuration(BatteryStatsImpl stats) |
void |
addDuration(BatteryStatsImpl stats,
long durationMillis) |
protected int |
computeCurrentCountLocked() |
protected long |
computeRunTimeLocked(long curBatteryRealtime) |
void |
logState(Printer pw,
String prefix)
Temporary for debugging.
|
void |
onTimeStarted(long elapsedRealtime,
long baseUptime,
long baseRealtime) |
void |
onTimeStopped(long elapsedRealtime,
long baseUptime,
long baseRealtime) |
boolean |
reset(boolean detachIfReset)
Clear state of this timer.
|
void |
writeToParcel(Parcel out,
long elapsedRealtimeUs) |
detach, getCountLocked, getTimeSinceMarkLocked, getTotalTimeLocked, readSummaryFromParcelLocked, writeSummaryFromParcelLocked, writeTimerToParcel
getCurrentDurationMsLocked, getMaxDurationMsLocked, isRunningLocked
public void writeToParcel(Parcel out, long elapsedRealtimeUs)
writeToParcel
in class BatteryStatsImpl.Timer
public void onTimeStopped(long elapsedRealtime, long baseUptime, long baseRealtime)
onTimeStopped
in interface BatteryStatsImpl.TimeBaseObs
onTimeStopped
in class BatteryStatsImpl.Timer
public void onTimeStarted(long elapsedRealtime, long baseUptime, long baseRealtime)
onTimeStarted
in interface BatteryStatsImpl.TimeBaseObs
onTimeStarted
in class BatteryStatsImpl.Timer
public void logState(Printer pw, String prefix)
BatteryStats.Timer
logState
in class BatteryStatsImpl.Timer
public void addDuration(BatteryStatsImpl stats, long durationMillis)
public void abortLastDuration(BatteryStatsImpl stats)
protected int computeCurrentCountLocked()
computeCurrentCountLocked
in class BatteryStatsImpl.Timer
protected long computeRunTimeLocked(long curBatteryRealtime)
computeRunTimeLocked
in class BatteryStatsImpl.Timer
public boolean reset(boolean detachIfReset)
BatteryStatsImpl.Timer
reset
in class BatteryStatsImpl.Timer