Home
last modified time | relevance | path

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

/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DBatteryStatsCounterTest.java45 assertEquals(0, counter.getCountLocked(BatteryStats.STATS_CURRENT)); in testCounter()
55 assertEquals(4, counter.getCountLocked(BatteryStats.STATS_CURRENT)); in testCounter()
64 assertEquals(4, counter.getCountLocked(BatteryStats.STATS_CURRENT)); in testCounter()
72 assertEquals(6, counter.getCountLocked(BatteryStats.STATS_CURRENT)); in testCounter()
89 assertEquals(3, origCounter.getCountLocked(BatteryStats.STATS_CURRENT)); in testParceling()
103 assertEquals(1, summaryCounter.getCountLocked(BatteryStats.STATS_CURRENT)); in testParceling()
110 assertEquals(1, summaryCounter.getCountLocked(BatteryStats.STATS_CURRENT)); in testParceling()
117 assertEquals(3, summaryCounter.getCountLocked(BatteryStats.STATS_CURRENT)); in testParceling()
131 assertEquals(4, fullParcelCounter.getCountLocked(BatteryStats.STATS_CURRENT)); in testParceling()
138 assertEquals(4, fullParcelCounter.getCountLocked(BatteryStats.STATS_CURRENT)); in testParceling()
[all …]
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.java735 case STATS_CURRENT: in computeUptime()
747 case STATS_CURRENT: in computeRealtime()
5342 if (which == STATS_CURRENT) { in getNumConnectivityChange()
7857 if (which == STATS_CURRENT) { in getUserTime()
7868 if (which == STATS_CURRENT) { in getSystemTime()
7879 if (which == STATS_CURRENT) { in getForegroundTime()
7890 if (which == STATS_CURRENT) { in getStarts()
7901 if (which == STATS_CURRENT) { in getNumCrashes()
7912 if (which == STATS_CURRENT) { in getNumAnrs()
8234 if (which == STATS_CURRENT) { in getLaunches()
[all …]
/frameworks/base/core/java/android/os/
DBatteryStats.java177 public static final int STATS_CURRENT = 1; field in BatteryStats