Searched refs:getCurrentDurationMsLocked (Results 1 – 3 of 3) sorted by relevance
/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
D | BatteryStatsDurationTimerTest.java | 45 assertEquals(0, timer.getCurrentDurationMsLocked(300)); in testStartStop() 52 assertEquals(800, timer.getCurrentDurationMsLocked(1500)); in testStartStop() 59 assertEquals(0, timer.getCurrentDurationMsLocked(6300)); in testStartStop() 67 assertEquals(100, timer.getCurrentDurationMsLocked(12800)); in testStartStop() 74 assertEquals(0, timer.getCurrentDurationMsLocked(13000)); in testStartStop() 81 assertEquals(0, timer.getCurrentDurationMsLocked(27000)); in testStartStop() 88 assertEquals(28000, timer.getCurrentDurationMsLocked(110100)); in testStartStop() 96 assertEquals(28200, timer.getCurrentDurationMsLocked(220300)); in testStartStop() 124 assertEquals(401, timer.getCurrentDurationMsLocked(701)); in testParceling() 139 assertEquals(0, summary.getCurrentDurationMsLocked(6300)); in testParceling() [all …]
|
/frameworks/base/core/java/android/os/ |
D | BatteryStats.java | 430 public long getCurrentDurationMsLocked(long elapsedRealtimeMs) { in getCurrentDurationMsLocked() method in BatteryStats.Timer 2740 final long currentMs = timer.getCurrentDurationMsLocked(elapsedRealtimeUs/1000); in printWakeLock() 2791 final long currentMs = timer.getCurrentDurationMsLocked(rawRealtimeUs/1000); in printTimer() 2828 current = timer.getCurrentDurationMsLocked(elapsedRealtimeUs/1000); in printWakeLockCheckin()
|
/frameworks/base/core/java/com/android/internal/os/ |
D | BatteryStatsImpl.java | 1887 final long durationMs = getCurrentDurationMsLocked(elapsedRealtimeMs); in stopRunningLocked() 1923 final long durationMs = getCurrentDurationMsLocked(elapsedRealtimeMs); in getMaxDurationMsLocked() 1939 public long getCurrentDurationMsLocked(long elapsedRealtimeMs) { in getCurrentDurationMsLocked() method in BatteryStatsImpl.DurationTimer 1959 return mTotalDurationMs + getCurrentDurationMsLocked(elapsedRealtimeMs); in getTotalDurationMsLocked()
|