Searched refs:STATS_SINCE_UNPLUGGED (Results 1 – 8 of 8) sorted by relevance
/frameworks/base/services/core/java/com/android/server/am/ |
D | HealthStatsBatteryStatsWriter.java | 20 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/ |
D | BatteryStatsCounterTest.java | 46 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 …]
|
D | LongSamplingCounterArrayTest.java | 21 import static android.os.BatteryStats.STATS_SINCE_UNPLUGGED; 142 mCounterArray.getCountsLocked(STATS_SINCE_UNPLUGGED), "Unexpected values"); in testGetCountsLocked() 150 mCounterArray.getCountsLocked(STATS_SINCE_UNPLUGGED), "Unexpected values"); in testGetCountsLocked()
|
D | BatteryStatsTimeBaseTest.java | 287 tb.computeUptime(666, BatteryStats.STATS_SINCE_UNPLUGGED)); in testComputeUptime() 306 tb.computeRealtime(6666, BatteryStats.STATS_SINCE_UNPLUGGED)); in testComputeRealtime()
|
D | BatteryStatsServTest.java | 603 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()
|
D | BatteryStatsTimerTest.java | 385 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/ |
D | BatteryStatsImpl.java | 1160 case STATS_SINCE_UNPLUGGED: in computeUptime() 1172 case STATS_SINCE_UNPLUGGED: in computeRealtime() 1342 if (which == STATS_SINCE_UNPLUGGED) { in getCountLocked() 1438 if (which == STATS_SINCE_UNPLUGGED) { in getCountsLocked() 1608 if (which == STATS_SINCE_UNPLUGGED) { in getCountLocked() 1831 if (which == STATS_SINCE_UNPLUGGED) { in getTotalTimeLocked() 1843 if (which == STATS_SINCE_UNPLUGGED) { in getCountLocked() 6380 } else if (which == STATS_SINCE_UNPLUGGED) { in getNumConnectivityChange() 9350 } else if (which == STATS_SINCE_UNPLUGGED) { in getUserTime() 9361 } else if (which == STATS_SINCE_UNPLUGGED) { in getSystemTime() [all …]
|
/frameworks/base/core/java/android/os/ |
D | BatteryStats.java | 204 public static final int STATS_SINCE_UNPLUGGED = 2; field in BatteryStats 3735 if (which == STATS_SINCE_UNPLUGGED) { in dumpCheckinLocked() 3740 if (which == STATS_SINCE_UNPLUGGED) { in dumpCheckinLocked() 4929 if (which == STATS_SINCE_UNPLUGGED) { in dumpLocked()
|