Home
last modified time | relevance | path

Searched refs:bgTimer (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DBatteryStatsSensorTest.java455 BatteryStats.Timer bgTimer = sensor.getSensorBackgroundTime(); in testSensorResetTimes() local
458 assertEquals(0, bgTimer.getTotalTimeLocked(1000*clocks.realtime, which)); in testSensorResetTimes()
459 assertEquals(0, bgTimer.getTotalDurationMsLocked(clocks.realtime)); in testSensorResetTimes()
469 assertEquals(0, bgTimer.getTotalTimeLocked(1000*clocks.realtime, which)); in testSensorResetTimes()
470 assertEquals(0, bgTimer.getTotalDurationMsLocked(clocks.realtime)); in testSensorResetTimes()
479 assertEquals(0, bgTimer.getTotalTimeLocked(1000*clocks.realtime, which)); in testSensorResetTimes()
480 assertEquals(0, bgTimer.getTotalDurationMsLocked(clocks.realtime)); in testSensorResetTimes()
497 assertEquals(111_000, bgTimer.getTotalTimeLocked(1000*clocks.realtime, which)); in testSensorResetTimes()
498 assertEquals(111, bgTimer.getTotalDurationMsLocked(clocks.realtime)); in testSensorResetTimes()
508 assertEquals(0, bgTimer.getTotalTimeLocked(1000*clocks.realtime, which)); in testSensorResetTimes()
[all …]
DBatteryStatsBackgroundStatsTest.java244 BatteryStats.Timer bgTimer = bi.getUidStats().get(UID).getBluetoothScanBackgroundTimer(); in testAppBluetoothScan() local
251 int bgCount = bgTimer.getCountLocked(STATS_SINCE_CHARGED); in testAppBluetoothScan()
253 long bgTime = bgTimer.getTotalDurationMsLocked(clocks.realtime) * 1000; in testAppBluetoothScan()
308 BatteryStats.Timer bgTimer = timer.getSubTimer(); in testJob() local
311 int bgCount = bgTimer.getCountLocked(STATS_SINCE_CHARGED); in testJob()
312 long bgTime = bgTimer.getTotalTimeLocked(curr, STATS_SINCE_CHARGED); in testJob()
369 BatteryStats.Timer bgTimer = timer.getSubTimer(); in testSyncs() local
372 int bgCount = bgTimer.getCountLocked(STATS_SINCE_CHARGED); in testSyncs()
373 long bgTime = bgTimer.getTotalTimeLocked(curr, STATS_SINCE_CHARGED); in testSyncs()
/frameworks/base/core/java/android/os/
DBatteryStats.java3641 final Timer bgTimer = timer.getSubTimer(); in dumpCheckinLocked() local
3642 final long bgTimeMs = bgTimer != null ? in dumpCheckinLocked()
3643 bgTimer.getTotalDurationMsLocked(rawRealtimeMs) : 0; in dumpCheckinLocked()
3684 final Timer bgTimer = timer.getSubTimer(); in dumpCheckinLocked() local
3685 final long bgTime = bgTimer != null ? in dumpCheckinLocked()
3686 bgTimer.getTotalDurationMsLocked(rawRealtimeMs) : -1; in dumpCheckinLocked()
3687 final int bgCount = bgTimer != null ? bgTimer.getCountLocked(which) : -1; in dumpCheckinLocked()
3700 final Timer bgTimer = timer.getSubTimer(); in dumpCheckinLocked() local
3701 final long bgTime = bgTimer != null ? in dumpCheckinLocked()
3702 bgTimer.getTotalDurationMsLocked(rawRealtimeMs) : -1; in dumpCheckinLocked()
[all …]