public abstract static class BatteryStats.Uid.Proc extends Object
Modifier and Type | Class and Description |
---|---|
static class |
BatteryStats.Uid.Proc.ExcessivePower |
Constructor and Description |
---|
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 (milliseconds) spent while the process was in the foreground.
|
abstract int |
getNumAnrs(int which)
Returns the number of times the process has ANRed.
|
abstract int |
getNumCrashes(int which)
Returns the number of times the process has crashed.
|
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 milliseconds) spent executing in system code.
|
abstract long |
getUserTime(int which)
Returns the total time (in milliseconds) spent executing in user code.
|
abstract boolean |
isActive()
Returns true if this process is still active in the battery stats.
|
public abstract boolean isActive()
public abstract long getUserTime(int which)
which
- one of STATS_SINCE_CHARGED, STATS_SINCE_UNPLUGGED, or STATS_CURRENT.public abstract long getSystemTime(int which)
which
- one of STATS_SINCE_CHARGED, STATS_SINCE_UNPLUGGED, or STATS_CURRENT.public abstract int getStarts(int which)
which
- one of STATS_SINCE_CHARGED, STATS_SINCE_UNPLUGGED, or STATS_CURRENT.public abstract int getNumCrashes(int which)
which
- one of STATS_SINCE_CHARGED, STATS_SINCE_UNPLUGGED, or STATS_CURRENT.public abstract int getNumAnrs(int which)
which
- one of STATS_SINCE_CHARGED, STATS_SINCE_UNPLUGGED, or STATS_CURRENT.public abstract long getForegroundTime(int which)
which
- one of STATS_SINCE_CHARGED, STATS_SINCE_UNPLUGGED, or STATS_CURRENT.public abstract int countExcessivePowers()
public abstract BatteryStats.Uid.Proc.ExcessivePower getExcessivePower(int i)