Searched refs:STATS_SINCE_CHARGED (Results 1 – 7 of 7) sorted by relevance
/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
D | BatteryStatsSamplingTimerTest.java | 41 assertEquals(1, timer.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); in testSettingStalePreservesData() 42 assertEquals(10, timer.getTotalTimeLocked(200, BatteryStats.STATS_SINCE_CHARGED)); in testSettingStalePreservesData() 46 assertEquals(1, timer.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); in testSettingStalePreservesData() 47 assertEquals(10, timer.getTotalTimeLocked(200, BatteryStats.STATS_SINCE_CHARGED)); in testSettingStalePreservesData() 51 assertEquals(1, timer.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); in testSettingStalePreservesData() 52 assertEquals(10, timer.getTotalTimeLocked(200, BatteryStats.STATS_SINCE_CHARGED)); in testSettingStalePreservesData() 67 assertEquals(0, timer.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); in testEndSampleAndContinueWhenTimeOrCountDecreases() 68 assertEquals(0, timer.getTotalTimeLocked(200, BatteryStats.STATS_SINCE_CHARGED)); in testEndSampleAndContinueWhenTimeOrCountDecreases() 74 assertEquals(0, timer.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); in testEndSampleAndContinueWhenTimeOrCountDecreases() 75 assertEquals(0, timer.getTotalTimeLocked(200, BatteryStats.STATS_SINCE_CHARGED)); in testEndSampleAndContinueWhenTimeOrCountDecreases() [all …]
|
D | BatteryStatsTimeBaseTest.java | 283 tb.computeUptime(666, BatteryStats.STATS_SINCE_CHARGED)); in testComputeUptime() 302 tb.computeRealtime(6666, BatteryStats.STATS_SINCE_CHARGED)); in testComputeRealtime()
|
D | BatteryStatsServTest.java | 601 Assert.assertEquals(8085, serv.getLaunches(BatteryStats.STATS_SINCE_CHARGED)); in testGetLaunches() 638 serv.getStartTime(20000, BatteryStats.STATS_SINCE_CHARGED)); in testGetStartTimeRunning() 677 serv.getStartTime(20000, BatteryStats.STATS_SINCE_CHARGED)); in testGetStartTimeNotRunning() 713 Assert.assertEquals(4042, serv.getStarts(BatteryStats.STATS_SINCE_CHARGED)); in testGetStarts()
|
D | BatteryStatsTimerTest.java | 375 timer.getTotalTimeLocked(66, BatteryStats.STATS_SINCE_CHARGED)); in testGetTotalTimeLocked() 414 Assert.assertEquals(10000, timer.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); in testGetCountLocked()
|
/frameworks/base/core/java/com/android/internal/os/ |
D | BatteryStatsImpl.java | 709 case STATS_SINCE_CHARGED: in computeUptime() 721 case STATS_SINCE_CHARGED: in computeRealtime() 793 out.writeLong(computeUptime(uptime, STATS_SINCE_CHARGED)); in writeSummaryToParcel() 794 out.writeLong(computeRealtime(realtime, STATS_SINCE_CHARGED)); in writeSummaryToParcel() 885 } else if (which != STATS_SINCE_CHARGED) { in getCountLocked() 973 } else if (which != STATS_SINCE_CHARGED) { in getCountLocked() 1180 } else if (which != STATS_SINCE_CHARGED) { in getTotalTimeLocked() 1192 } else if (which != STATS_SINCE_CHARGED) { in getCountLocked() 9519 case STATS_SINCE_CHARGED: return mUptime + (curTime-mUptimeStart); in computeUptime() 9529 case STATS_SINCE_CHARGED: return mRealtime + (curTime-mRealtimeStart); in computeRealtime() [all …]
|
D | BatteryStatsHelper.java | 95 private int mStatsType = BatteryStats.STATS_SINCE_CHARGED;
|
/frameworks/base/core/java/android/os/ |
D | BatteryStats.java | 159 public static final int STATS_SINCE_CHARGED = 0; field in BatteryStats 2842 which == STATS_SINCE_CHARGED ? getStartCount() : "N/A", in dumpCheckinLocked() 4448 numExcessive = which == STATS_SINCE_CHARGED in dumpLocked() 5403 dumpLocked(context, pw, "", STATS_SINCE_CHARGED, reqUid, in dumpLocked() 5496 dumpCheckinLocked(context, pw, STATS_SINCE_CHARGED, -1, in dumpCheckinLocked()
|