Home
last modified time | relevance | path

Searched refs:STATS_CURRENT (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DBatteryStatsTimeBaseTest.java285 tb.computeUptime(666, BatteryStats.STATS_CURRENT)); in testComputeUptime()
304 tb.computeRealtime(6666, BatteryStats.STATS_CURRENT)); in testComputeRealtime()
DBatteryStatsServTest.java602 Assert.assertEquals(8085-11118, serv.getLaunches(BatteryStats.STATS_CURRENT)); in testGetLaunches()
640 serv.getStartTime(20000, BatteryStats.STATS_CURRENT)); in testGetStartTimeRunning()
679 serv.getStartTime(20000, BatteryStats.STATS_CURRENT)); in testGetStartTimeNotRunning()
714 Assert.assertEquals(4042-10017, serv.getStarts(BatteryStats.STATS_CURRENT)); in testGetStarts()
DBatteryStatsTimerTest.java380 Assert.assertEquals(9800, timer.getTotalTimeLocked(66, BatteryStats.STATS_CURRENT)); in testGetTotalTimeLocked()
418 Assert.assertEquals(9998, timer.getCountLocked(BatteryStats.STATS_CURRENT)); in testGetCountLocked()
/frameworks/base/core/java/com/android/internal/os/
DBatteryStatsImpl.java711 case STATS_CURRENT: in computeUptime()
723 case STATS_CURRENT: in computeRealtime()
4680 if (which == STATS_CURRENT) { in getNumConnectivityChange()
6838 if (which == STATS_CURRENT) { in getUserTime()
6849 if (which == STATS_CURRENT) { in getSystemTime()
6860 if (which == STATS_CURRENT) { in getForegroundTime()
6871 if (which == STATS_CURRENT) { in getStarts()
6882 if (which == STATS_CURRENT) { in getNumCrashes()
6893 if (which == STATS_CURRENT) { in getNumAnrs()
7215 if (which == STATS_CURRENT) { in getLaunches()
[all …]
/frameworks/base/core/java/android/os/
DBatteryStats.java164 public static final int STATS_CURRENT = 1; field in BatteryStats