Home
last modified time | relevance | path

Searched refs:STATS_SINCE_UNPLUGGED (Results 1 – 7 of 7) sorted by relevance

/frameworks/base/services/core/java/com/android/server/am/
DHealthStatsBatteryStatsWriter.java20 import static android.os.BatteryStats.STATS_SINCE_UNPLUGGED;
66 bs.computeBatteryRealtime(mNowRealtimeMs*1000, STATS_SINCE_UNPLUGGED)/1000); in writeUid()
70 bs.computeBatteryUptime(mNowUptimeMs*1000, STATS_SINCE_UNPLUGGED)/1000); in writeUid()
75 mNowRealtimeMs*1000, STATS_SINCE_UNPLUGGED)/1000); in writeUid()
79 bs.computeBatteryScreenOffUptime(mNowUptimeMs*1000, STATS_SINCE_UNPLUGGED)/1000); in writeUid()
164 controller.getIdleTimeCounter().getCountLocked(STATS_SINCE_UNPLUGGED)); in writeUid()
167 controller.getRxTimeCounter().getCountLocked(STATS_SINCE_UNPLUGGED)); in writeUid()
171 sum += counter.getCountLocked(STATS_SINCE_UNPLUGGED); in writeUid()
176 controller.getPowerCounter().getCountLocked(STATS_SINCE_UNPLUGGED)); in writeUid()
183 controller.getIdleTimeCounter().getCountLocked(STATS_SINCE_UNPLUGGED)); in writeUid()
[all …]
/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DBatteryStatsCounterTest.java46 assertEquals(0, counter.getCountLocked(BatteryStats.STATS_SINCE_UNPLUGGED)); in testCounter()
56 assertEquals(4, counter.getCountLocked(BatteryStats.STATS_SINCE_UNPLUGGED)); in testCounter()
65 assertEquals(4, counter.getCountLocked(BatteryStats.STATS_SINCE_UNPLUGGED)); in testCounter()
73 assertEquals(2, counter.getCountLocked(BatteryStats.STATS_SINCE_UNPLUGGED)); in testCounter()
90 assertEquals(3, origCounter.getCountLocked(BatteryStats.STATS_SINCE_UNPLUGGED)); in testParceling()
104 assertEquals(1, summaryCounter.getCountLocked(BatteryStats.STATS_SINCE_UNPLUGGED)); in testParceling()
111 assertEquals(1, summaryCounter.getCountLocked(BatteryStats.STATS_SINCE_UNPLUGGED)); in testParceling()
118 assertEquals(2, summaryCounter.getCountLocked(BatteryStats.STATS_SINCE_UNPLUGGED)); in testParceling()
132 assertEquals(3, fullParcelCounter.getCountLocked(BatteryStats.STATS_SINCE_UNPLUGGED)); in testParceling()
139 assertEquals(3, fullParcelCounter.getCountLocked(BatteryStats.STATS_SINCE_UNPLUGGED)); in testParceling()
[all …]
DBatteryStatsTimeBaseTest.java287 tb.computeUptime(666, BatteryStats.STATS_SINCE_UNPLUGGED)); in testComputeUptime()
306 tb.computeRealtime(6666, BatteryStats.STATS_SINCE_UNPLUGGED)); in testComputeRealtime()
DBatteryStatsServTest.java603 Assert.assertEquals(8085-17714, serv.getLaunches(BatteryStats.STATS_SINCE_UNPLUGGED)); in testGetLaunches()
642 serv.getStartTime(20000, BatteryStats.STATS_SINCE_UNPLUGGED)); in testGetStartTimeRunning()
681 serv.getStartTime(20000, BatteryStats.STATS_SINCE_UNPLUGGED)); in testGetStartTimeNotRunning()
715 Assert.assertEquals(4042-16613, serv.getStarts(BatteryStats.STATS_SINCE_UNPLUGGED)); in testGetStarts()
DBatteryStatsTimerTest.java385 Assert.assertEquals(9600, timer.getTotalTimeLocked(66, BatteryStats.STATS_SINCE_UNPLUGGED)); in testGetTotalTimeLocked()
422 Assert.assertEquals(9996, timer.getCountLocked(BatteryStats.STATS_SINCE_UNPLUGGED)); in testGetCountLocked()
/frameworks/base/core/java/com/android/internal/os/
DBatteryStatsImpl.java809 case STATS_SINCE_UNPLUGGED: in computeUptime()
821 case STATS_SINCE_UNPLUGGED: in computeRealtime()
978 if (which == STATS_SINCE_UNPLUGGED) { in getCountLocked()
1077 if (which == STATS_SINCE_UNPLUGGED) { in getCountsLocked()
1245 if (which == STATS_SINCE_UNPLUGGED) { in getCountLocked()
1454 if (which == STATS_SINCE_UNPLUGGED) { in getTotalTimeLocked()
1466 if (which == STATS_SINCE_UNPLUGGED) { in getCountLocked()
5476 } else if (which == STATS_SINCE_UNPLUGGED) { in getNumConnectivityChange()
8067 } else if (which == STATS_SINCE_UNPLUGGED) { in getUserTime()
8078 } else if (which == STATS_SINCE_UNPLUGGED) { in getSystemTime()
[all …]
/frameworks/base/core/java/android/os/
DBatteryStats.java190 public static final int STATS_SINCE_UNPLUGGED = 2; field in BatteryStats
3358 if (which == STATS_SINCE_UNPLUGGED) { in dumpCheckinLocked()
3363 if (which == STATS_SINCE_UNPLUGGED) { in dumpCheckinLocked()
4418 if (which == STATS_SINCE_UNPLUGGED) { in dumpLocked()