public class RadioStateMetrics extends SystemMetrics<RadioStateMetrics>
| Modifier and Type | Field and Description |
|---|---|
long |
mobileHighPowerActiveS |
long |
mobileLowPowerActiveS |
int |
mobileRadioWakeupCount |
long |
wifiActiveS |
int |
wifiRadioWakeupCount |
| Constructor and Description |
|---|
RadioStateMetrics() |
| Modifier and Type | Method and Description |
|---|---|
RadioStateMetrics |
diff(RadioStateMetrics b,
RadioStateMetrics output)
Subtract the object passed in from the current object.
|
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
RadioStateMetrics |
set(RadioStateMetrics b)
Sets all fields in this to values from the SystemMetrics object passed in: a _deep_ copy that
shouldn't share any values with other metrics objects.
|
RadioStateMetrics |
sum(RadioStateMetrics b,
RadioStateMetrics output)
Add values from the SystemMetrics object passed in and sets them on the output object, if
available.
|
java.lang.String |
toString() |
diff, sumpublic long mobileLowPowerActiveS
public long mobileHighPowerActiveS
public int mobileRadioWakeupCount
public long wifiActiveS
public int wifiRadioWakeupCount
public RadioStateMetrics sum(RadioStateMetrics b, RadioStateMetrics output)
SystemMetricsFor convenience, this function accepts null values and will allocate an output object if none is passed in.
sum in class SystemMetrics<RadioStateMetrics>public RadioStateMetrics diff(RadioStateMetrics b, RadioStateMetrics output)
SystemMetricsFor convenience, this function accepts null values and will allocate an output object if none is passed in.
diff in class SystemMetrics<RadioStateMetrics>public RadioStateMetrics set(RadioStateMetrics b)
SystemMetricsset in class SystemMetrics<RadioStateMetrics>public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object