public static class BatteryStatsImpl.Counter extends BatteryStats.Counter implements BatteryStatsImpl.TimeBaseObs
Modifier and Type | Method and Description |
---|---|
int |
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) |
static void |
writeCounterToParcel(Parcel out,
BatteryStatsImpl.Counter counter)
Writes a possibly null Counter to a Parcel.
|
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 static void writeCounterToParcel(Parcel out, BatteryStatsImpl.Counter counter)
out
- the Parcel to be written to.counter
- a Counter, or null.public int getCountLocked(int which)
BatteryStats.Counter
getCountLocked
in class BatteryStats.Counter
which
- one of STATS_SINCE_CHARGED, STATS_SINCE_UNPLUGGED, or STATS_CURRENTpublic void logState(Printer pw, String prefix)
BatteryStats.Counter
logState
in class BatteryStats.Counter