Searched refs:STATS_SINCE_UNPLUGGED (Results 1 – 6 of 6) sorted by relevance
/frameworks/base/services/core/java/com/android/server/am/ |
D | HealthStatsBatteryStatsWriter.java | 20 import static android.os.BatteryStats.STATS_SINCE_UNPLUGGED; 65 bs.computeBatteryRealtime(mNowRealtimeMs*1000, STATS_SINCE_UNPLUGGED)/1000); in writeUid() 69 bs.computeBatteryUptime(mNowUptimeMs*1000, STATS_SINCE_UNPLUGGED)/1000); in writeUid() 74 mNowRealtimeMs*1000, STATS_SINCE_UNPLUGGED)/1000); in writeUid() 78 bs.computeBatteryScreenOffUptime(mNowUptimeMs*1000, STATS_SINCE_UNPLUGGED)/1000); in writeUid() 163 controller.getIdleTimeCounter().getCountLocked(STATS_SINCE_UNPLUGGED)); in writeUid() 166 controller.getRxTimeCounter().getCountLocked(STATS_SINCE_UNPLUGGED)); in writeUid() 170 sum += counter.getCountLocked(STATS_SINCE_UNPLUGGED); in writeUid() 175 controller.getPowerCounter().getCountLocked(STATS_SINCE_UNPLUGGED)); in writeUid() 182 controller.getIdleTimeCounter().getCountLocked(STATS_SINCE_UNPLUGGED)); in writeUid() [all …]
|
/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
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 | 713 case STATS_SINCE_UNPLUGGED: in computeUptime() 725 case STATS_SINCE_UNPLUGGED: in computeRealtime() 883 if (which == STATS_SINCE_UNPLUGGED) { in getCountLocked() 971 if (which == STATS_SINCE_UNPLUGGED) { in getCountLocked() 1178 if (which == STATS_SINCE_UNPLUGGED) { in getTotalTimeLocked() 1190 if (which == STATS_SINCE_UNPLUGGED) { in getCountLocked() 4682 } else if (which == STATS_SINCE_UNPLUGGED) { in getNumConnectivityChange() 6840 } else if (which == STATS_SINCE_UNPLUGGED) { in getUserTime() 6851 } else if (which == STATS_SINCE_UNPLUGGED) { in getSystemTime() 6862 } else if (which == STATS_SINCE_UNPLUGGED) { in getForegroundTime() [all …]
|
/frameworks/base/core/java/android/os/ |
D | BatteryStats.java | 169 public static final int STATS_SINCE_UNPLUGGED = 2; field in BatteryStats 2989 if (which == STATS_SINCE_UNPLUGGED) { in dumpCheckinLocked() 2994 if (which == STATS_SINCE_UNPLUGGED) { in dumpCheckinLocked() 3828 if (which == STATS_SINCE_UNPLUGGED) { in dumpLocked()
|