public abstract class BatteryStats.Uid.Pkg.Serv extends Object
Constructor and Description |
---|
BatteryStats.Uid.Pkg.Serv() |
Modifier and Type | Method and Description |
---|---|
abstract int |
getLaunches(int which)
Returns the total number times the service has been launched.
|
abstract int |
getStarts(int which)
Returns the total number of times startService() has been called.
|
abstract long |
getStartTime(long batteryUptime,
int which)
Returns the amount of time spent started.
|
public abstract long getStartTime(long batteryUptime, int which)
batteryUptime
- elapsed uptime on battery in microseconds.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 int getLaunches(int which)
which
- one of STATS_TOTAL, STATS_LAST, or STATS_CURRENT.