public abstract static class BatteryStats.Uid.Proc extends Object
Modifier and Type | Class and Description |
---|---|
static class |
BatteryStats.Uid.Proc.ExcessivePower |
Constructor and Description |
---|
BatteryStats.Uid.Proc() |
Modifier and Type | Method and Description |
---|---|
abstract int |
countExcessivePowers() |
abstract BatteryStats.Uid.Proc.ExcessivePower |
getExcessivePower(int i) |
abstract long |
getForegroundTime(int which)
Returns the cpu time spent in microseconds while the process was in the foreground.
|
abstract int |
getStarts(int which)
Returns the number of times the process has been started.
|
abstract long |
getSystemTime(int which)
Returns the total time (in 1/100 sec) spent executing in system code.
|
abstract long |
getTimeAtCpuSpeedStep(int speedStep,
int which)
Returns the approximate cpu time spent in microseconds, at a certain CPU speed.
|
abstract long |
getUserTime(int which)
Returns the total time (in 1/100 sec) spent executing in user code.
|
public abstract long getUserTime(int which)
which
- one of STATS_TOTAL, STATS_LAST, or STATS_CURRENT.public abstract long getSystemTime(int which)
which
- one of STATS_TOTAL, STATS_LAST, or STATS_CURRENT.public abstract int getStarts(int which)
which
- one of STATS_TOTAL, STATS_LAST, or STATS_CURRENT.public abstract long getForegroundTime(int which)
which
- one of STATS_TOTAL, STATS_LAST, STATS_CURRENT or STATS_UNPLUGGEDpublic abstract long getTimeAtCpuSpeedStep(int speedStep, int which)
speedStep
- the index of the CPU speed. This is not the actual speed of the
CPU.which
- one of STATS_TOTAL, STATS_LAST, STATS_CURRENT or STATS_UNPLUGGEDBatteryStats.getCpuSpeedSteps()
public abstract int countExcessivePowers()
public abstract BatteryStats.Uid.Proc.ExcessivePower getExcessivePower(int i)