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.java254 BatteryStats.Timer bgTimer = bi.getUidStats().get(UID).getBluetoothScanBackgroundTimer(); in doTestAppBluetoothScanInternal() local
261 int bgCount = bgTimer.getCountLocked(STATS_SINCE_CHARGED); in doTestAppBluetoothScanInternal()
263 long bgTime = bgTimer.getTotalDurationMsLocked(clocks.realtime) * 1000; in doTestAppBluetoothScanInternal()
318 BatteryStats.Timer bgTimer = timer.getSubTimer(); in testJob() local
321 int bgCount = bgTimer.getCountLocked(STATS_SINCE_CHARGED); in testJob()
322 long bgTime = bgTimer.getTotalTimeLocked(curr, STATS_SINCE_CHARGED); in testJob()
379 BatteryStats.Timer bgTimer = timer.getSubTimer(); in testSyncs() local
382 int bgCount = bgTimer.getCountLocked(STATS_SINCE_CHARGED); in testSyncs()
383 long bgTime = bgTimer.getTotalTimeLocked(curr, STATS_SINCE_CHARGED); in testSyncs()
/frameworks/base/core/java/android/os/
DBatteryStats.java4027 final Timer bgTimer = timer.getSubTimer(); in dumpCheckinLocked() local
4028 final long bgTimeMs = bgTimer != null ? in dumpCheckinLocked()
4029 bgTimer.getTotalDurationMsLocked(rawRealtimeMs) : 0; in dumpCheckinLocked()
4082 final Timer bgTimer = timer.getSubTimer(); in dumpCheckinLocked() local
4083 final long bgTime = bgTimer != null ? in dumpCheckinLocked()
4084 bgTimer.getTotalDurationMsLocked(rawRealtimeMs) : -1; in dumpCheckinLocked()
4085 final int bgCount = bgTimer != null ? bgTimer.getCountLocked(which) : -1; in dumpCheckinLocked()
4098 final Timer bgTimer = timer.getSubTimer(); in dumpCheckinLocked() local
4099 final long bgTime = bgTimer != null ? in dumpCheckinLocked()
4100 bgTimer.getTotalDurationMsLocked(rawRealtimeMs) : -1; in dumpCheckinLocked()
[all …]