public static class BatteryStatsImpl.ControllerActivityCounterImpl extends BatteryStats.ControllerActivityCounter implements Parcelable
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_ELIDE_DUPLICATES, PARCELABLE_WRITE_RETURN_VALUE
Constructor and Description |
---|
ControllerActivityCounterImpl(BatteryStatsImpl.TimeBase timeBase,
int numTxStates) |
ControllerActivityCounterImpl(BatteryStatsImpl.TimeBase timeBase,
int numTxStates,
Parcel in) |
Modifier and Type | Method and Description |
---|---|
int |
describeContents()
Describe the kinds of special objects contained in this Parcelable
instance's marshaled representation.
|
void |
detach() |
BatteryStatsImpl.LongSamplingCounter |
getIdleTimeCounter() |
BatteryStatsImpl.LongSamplingCounter |
getPowerCounter() |
BatteryStatsImpl.LongSamplingCounter |
getRxTimeCounter() |
BatteryStatsImpl.LongSamplingCounter[] |
getTxTimeCounters()
An array of
BatteryStats.LongCounter , representing various transmit levels, where each level
may draw a different amount of power. |
void |
readSummaryFromParcel(Parcel in) |
void |
reset(boolean detachIfReset) |
void |
writeSummaryToParcel(Parcel dest) |
void |
writeToParcel(Parcel dest,
int flags)
Flatten this object in to a Parcel.
|
public ControllerActivityCounterImpl(BatteryStatsImpl.TimeBase timeBase, int numTxStates)
public ControllerActivityCounterImpl(BatteryStatsImpl.TimeBase timeBase, int numTxStates, Parcel in)
public void readSummaryFromParcel(Parcel in)
public int describeContents()
Parcelable
Parcelable.writeToParcel(Parcel, int)
,
the return value of this method must include the
Parcelable.CONTENTS_FILE_DESCRIPTOR
bit.describeContents
in interface Parcelable
Parcelable.CONTENTS_FILE_DESCRIPTOR
public void writeSummaryToParcel(Parcel dest)
public void writeToParcel(Parcel dest, int flags)
Parcelable
writeToParcel
in interface Parcelable
dest
- The Parcel in which the object should be written.flags
- Additional flags about how the object should be written.
May be 0 or Parcelable.PARCELABLE_WRITE_RETURN_VALUE
.public void reset(boolean detachIfReset)
public void detach()
public BatteryStatsImpl.LongSamplingCounter getIdleTimeCounter()
getIdleTimeCounter
in class BatteryStats.ControllerActivityCounter
public BatteryStatsImpl.LongSamplingCounter getRxTimeCounter()
getRxTimeCounter
in class BatteryStats.ControllerActivityCounter
public BatteryStatsImpl.LongSamplingCounter[] getTxTimeCounters()
BatteryStats.ControllerActivityCounter
BatteryStats.LongCounter
, representing various transmit levels, where each level
may draw a different amount of power. The levels themselves are controller-specific.getTxTimeCounters
in class BatteryStats.ControllerActivityCounter
public BatteryStatsImpl.LongSamplingCounter getPowerCounter()
getPowerCounter
in class BatteryStats.ControllerActivityCounter