Home
last modified time | relevance | path

Searched refs:getTotalDurationMsLocked (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DBatteryStatsDurationTimerTest.java47 assertEquals(0, timer.getTotalDurationMsLocked(301)); in testStartStop()
54 assertEquals(802, timer.getTotalDurationMsLocked(1502)); in testStartStop()
61 assertEquals(2400, timer.getTotalDurationMsLocked(6302)); in testStartStop()
69 assertEquals(2502, timer.getTotalDurationMsLocked(12802)); in testStartStop()
76 assertEquals(2600, timer.getTotalDurationMsLocked(13002)); in testStartStop()
83 assertEquals(2600, timer.getTotalDurationMsLocked(27000)); in testStartStop()
90 assertEquals(30600, timer.getTotalDurationMsLocked(110102)); in testStartStop()
98 assertEquals(30802, timer.getTotalDurationMsLocked(220302)); in testStartStop()
125 assertEquals(402, timer.getTotalDurationMsLocked(702)); in testParceling()
142 assertEquals(1200, summary.getTotalDurationMsLocked(6302)); in testParceling()
[all …]
DBatteryStatsBackgroundStatsTest.java251 long actualTime = timer.getTotalDurationMsLocked(clocks.realtime) * 1000; in testAppBluetoothScan()
252 long bgTime = bgTimer.getTotalDurationMsLocked(clocks.realtime) * 1000; in testAppBluetoothScan()
253 long badTime = badTimer.getTotalDurationMsLocked(clocks.realtime) * 1000; in testAppBluetoothScan()
254 long badBgTime = badBgTimer.getTotalDurationMsLocked(clocks.realtime) * 1000; in testAppBluetoothScan()
DBatteryStatsSensorTest.java345 timer1.getTotalDurationMsLocked(clocks.realtime) * 1000 ); in testPooledBackgroundUsage()
351 bgTimer1.getTotalDurationMsLocked(clocks.realtime) * 1000 ); in testPooledBackgroundUsage()
362 timer2.getTotalDurationMsLocked(clocks.realtime) * 1000); in testPooledBackgroundUsage()
368 bgTimer2.getTotalDurationMsLocked(clocks.realtime) * 1000 ); in testPooledBackgroundUsage()
/frameworks/base/core/java/android/os/
DBatteryStats.java445 public long getTotalDurationMsLocked(long elapsedRealtimeMs) { in getTotalDurationMsLocked() method in BatteryStats.Timer
2734 final long totalDurMs = timer.getTotalDurationMsLocked(elapsedRealtimeUs/1000); in printWakeLock()
2830 totalDuration = timer.getTotalDurationMsLocked(elapsedRealtimeUs/1000); in printWakeLockCheckin()
3445 final long actualTime = bleTimer.getTotalDurationMsLocked(rawRealtimeMs); in dumpCheckinLocked()
3447 bleTimerBg.getTotalDurationMsLocked(rawRealtimeMs) : 0; in dumpCheckinLocked()
3456 unoptimizedScanTimer.getTotalDurationMsLocked(rawRealtimeMs) : 0; in dumpCheckinLocked()
3463 unoptimizedScanTimerBg.getTotalDurationMsLocked(rawRealtimeMs) : 0; in dumpCheckinLocked()
3493 final long totTimeMs = timer.getTotalDurationMsLocked(rawRealtimeMs); in dumpCheckinLocked()
3496 bgTimer.getTotalDurationMsLocked(rawRealtimeMs) : 0; in dumpCheckinLocked()
3533 bgTimer.getTotalDurationMsLocked(rawRealtimeMs) : -1; in dumpCheckinLocked()
[all …]
/frameworks/base/core/java/com/android/internal/os/
DBatteryStatsImpl.java1806 out.writeLong(getTotalDurationMsLocked(elapsedRealtimeUs / 1000)); in writeToParcel()
1820 out.writeLong(getTotalDurationMsLocked(elapsedRealtimeUs / 1000)); in writeSummaryFromParcelLocked()
1958 public long getTotalDurationMsLocked(long elapsedRealtimeMs) { in getTotalDurationMsLocked() method in BatteryStatsImpl.DurationTimer
6235 return mWifiScanTimer.getTotalDurationMsLocked(elapsedRealtimeMs) * 1000; in getWifiScanActualTime()
6244 return mWifiScanTimer.getSubTimer().getTotalDurationMsLocked(elapsedRealtimeMs) * 1000; in getWifiScanBackgroundTime()