public static class BatteryStatsImpl.LongSamplingCounter extends BatteryStats.LongCounter implements BatteryStatsImpl.TimeBaseObs
Modifier and Type | Method and Description |
---|---|
long |
getCountLocked(int which)
Returns the count associated with this Counter for the
selected type of statistics.
|
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) |
void |
writeToParcel(Parcel out) |
public void writeToParcel(Parcel out)
public void onTimeStarted(long elapsedRealtime, long baseUptime, long baseRealtime)
onTimeStarted
in interface BatteryStatsImpl.TimeBaseObs
public void onTimeStopped(long elapsedRealtime, long baseUptime, long baseRealtime)
onTimeStopped
in interface BatteryStatsImpl.TimeBaseObs
public long getCountLocked(int which)
BatteryStats.LongCounter
getCountLocked
in class BatteryStats.LongCounter
which
- one of STATS_SINCE_CHARGED, STATS_SINCE_UNPLUGGED, or STATS_CURRENTpublic void logState(Printer pw, String prefix)
BatteryStats.LongCounter
logState
in class BatteryStats.LongCounter