public static class BatteryStatsImpl.Uid.Proc extends BatteryStats.Uid.Proc implements BatteryStatsImpl.TimeBaseObs
BatteryStats.Uid.Proc.ExcessivePower
Modifier and Type | Field and Description |
---|---|
protected BatteryStatsImpl |
mBsi
BatteryStatsImpl that we are associated with.
|
Constructor and Description |
---|
Proc(BatteryStatsImpl bsi,
String name) |
Modifier and Type | Method and Description |
---|---|
void |
addCpuTimeLocked(int utime,
int stime) |
void |
addExcessiveCpu(long overTime,
long usedTime) |
void |
addExcessiveWake(long overTime,
long usedTime) |
void |
addForegroundTimeLocked(long ttime) |
int |
countExcessivePowers() |
BatteryStats.Uid.Proc.ExcessivePower |
getExcessivePower(int i) |
long |
getForegroundTime(int which)
Returns the cpu time (milliseconds) spent while the process was in the foreground.
|
int |
getNumAnrs(int which)
Returns the number of times the process has ANRed.
|
int |
getNumCrashes(int which)
Returns the number of times the process has crashed.
|
int |
getStarts(int which)
Returns the number of times the process has been started.
|
long |
getSystemTime(int which)
Returns the total time (in milliseconds) spent executing in system code.
|
long |
getUserTime(int which)
Returns the total time (in milliseconds) spent executing in user code.
|
void |
incNumAnrsLocked() |
void |
incNumCrashesLocked() |
void |
incStartsLocked() |
boolean |
isActive()
Returns true if this process is still active in the battery stats.
|
void |
onTimeStarted(long elapsedRealtime,
long baseUptime,
long baseRealtime) |
void |
onTimeStopped(long elapsedRealtime,
long baseUptime,
long baseRealtime) |
protected BatteryStatsImpl mBsi
public Proc(BatteryStatsImpl bsi, String name)
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 int countExcessivePowers()
countExcessivePowers
in class BatteryStats.Uid.Proc
public BatteryStats.Uid.Proc.ExcessivePower getExcessivePower(int i)
getExcessivePower
in class BatteryStats.Uid.Proc
public void addExcessiveWake(long overTime, long usedTime)
public void addExcessiveCpu(long overTime, long usedTime)
public void addCpuTimeLocked(int utime, int stime)
public void addForegroundTimeLocked(long ttime)
public void incStartsLocked()
public void incNumCrashesLocked()
public void incNumAnrsLocked()
public boolean isActive()
BatteryStats.Uid.Proc
isActive
in class BatteryStats.Uid.Proc
public long getUserTime(int which)
BatteryStats.Uid.Proc
getUserTime
in class BatteryStats.Uid.Proc
which
- one of STATS_SINCE_CHARGED, STATS_SINCE_UNPLUGGED, or STATS_CURRENT.public long getSystemTime(int which)
BatteryStats.Uid.Proc
getSystemTime
in class BatteryStats.Uid.Proc
which
- one of STATS_SINCE_CHARGED, STATS_SINCE_UNPLUGGED, or STATS_CURRENT.public long getForegroundTime(int which)
BatteryStats.Uid.Proc
getForegroundTime
in class BatteryStats.Uid.Proc
which
- one of STATS_SINCE_CHARGED, STATS_SINCE_UNPLUGGED, or STATS_CURRENT.public int getStarts(int which)
BatteryStats.Uid.Proc
getStarts
in class BatteryStats.Uid.Proc
which
- one of STATS_SINCE_CHARGED, STATS_SINCE_UNPLUGGED, or STATS_CURRENT.public int getNumCrashes(int which)
BatteryStats.Uid.Proc
getNumCrashes
in class BatteryStats.Uid.Proc
which
- one of STATS_SINCE_CHARGED, STATS_SINCE_UNPLUGGED, or STATS_CURRENT.public int getNumAnrs(int which)
BatteryStats.Uid.Proc
getNumAnrs
in class BatteryStats.Uid.Proc
which
- one of STATS_SINCE_CHARGED, STATS_SINCE_UNPLUGGED, or STATS_CURRENT.