Home
last modified time | relevance | path

Searched refs:STATS_CURRENT (Results 1 – 9 of 9) 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 …]
DLongSamplingCounterArrayTest.java19 import static android.os.BatteryStats.STATS_CURRENT;
140 mCounterArray.getCountsLocked(STATS_CURRENT), "Unexpected values"); in testGetCountsLocked()
148 mCounterArray.getCountsLocked(STATS_CURRENT), "Unexpected values"); in testGetCountsLocked()
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()
DBatteryStatsNoteTest.java18 import static android.os.BatteryStats.STATS_CURRENT;
391 assertEquals(1, pkg.getWakeupAlarmStats().get("tag").getCountLocked(STATS_CURRENT)); in testNoteWakupAlarmLocked()
/frameworks/base/core/java/com/android/internal/os/
DBatteryStatsImpl.java1158 case STATS_CURRENT: in computeUptime()
1170 case STATS_CURRENT: in computeRealtime()
6378 if (which == STATS_CURRENT) { in getNumConnectivityChange()
9348 if (which == STATS_CURRENT) { in getUserTime()
9359 if (which == STATS_CURRENT) { in getSystemTime()
9370 if (which == STATS_CURRENT) { in getForegroundTime()
9381 if (which == STATS_CURRENT) { in getStarts()
9392 if (which == STATS_CURRENT) { in getNumCrashes()
9403 if (which == STATS_CURRENT) { in getNumAnrs()
9726 if (which == STATS_CURRENT) { in getLaunches()
[all …]
/frameworks/base/core/java/android/os/
DBatteryStats.java199 public static final int STATS_CURRENT = 1; field in BatteryStats
/frameworks/base/config/
Dhiddenapi-light-greylist.txt3910 Landroid/os/BatteryStats;->STATS_CURRENT:I