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.java457 BatteryStats.Timer bgTimer = sensor.getSensorBackgroundTime(); in testSensorResetTimes() local
460 assertEquals(0, bgTimer.getTotalTimeLocked(1000*clocks.realtime, which)); in testSensorResetTimes()
461 assertEquals(0, bgTimer.getTotalDurationMsLocked(clocks.realtime)); in testSensorResetTimes()
471 assertEquals(0, bgTimer.getTotalTimeLocked(1000*clocks.realtime, which)); in testSensorResetTimes()
472 assertEquals(0, bgTimer.getTotalDurationMsLocked(clocks.realtime)); in testSensorResetTimes()
481 assertEquals(0, bgTimer.getTotalTimeLocked(1000*clocks.realtime, which)); in testSensorResetTimes()
482 assertEquals(0, bgTimer.getTotalDurationMsLocked(clocks.realtime)); in testSensorResetTimes()
499 assertEquals(111_000, bgTimer.getTotalTimeLocked(1000*clocks.realtime, which)); in testSensorResetTimes()
500 assertEquals(111, bgTimer.getTotalDurationMsLocked(clocks.realtime)); in testSensorResetTimes()
510 assertEquals(0, bgTimer.getTotalTimeLocked(1000*clocks.realtime, which)); in testSensorResetTimes()
[all …]
DBatteryStatsBackgroundStatsTest.java256 BatteryStats.Timer bgTimer = bi.getUidStats().get(UID).getBluetoothScanBackgroundTimer(); in doTestAppBluetoothScanInternal() local
263 int bgCount = bgTimer.getCountLocked(STATS_SINCE_CHARGED); in doTestAppBluetoothScanInternal()
265 long bgTime = bgTimer.getTotalDurationMsLocked(clocks.realtime) * 1000; in doTestAppBluetoothScanInternal()
320 BatteryStats.Timer bgTimer = timer.getSubTimer(); in testJob() local
323 int bgCount = bgTimer.getCountLocked(STATS_SINCE_CHARGED); in testJob()
324 long bgTime = bgTimer.getTotalTimeLocked(curr, STATS_SINCE_CHARGED); in testJob()
381 BatteryStats.Timer bgTimer = timer.getSubTimer(); in testSyncs() local
384 int bgCount = bgTimer.getCountLocked(STATS_SINCE_CHARGED); in testSyncs()
385 long bgTime = bgTimer.getTotalTimeLocked(curr, STATS_SINCE_CHARGED); in testSyncs()
/frameworks/base/core/java/android/os/
DBatteryStats.java4200 final Timer bgTimer = timer.getSubTimer(); in dumpCheckinLocked() local
4201 final long bgTimeMs = bgTimer != null ? in dumpCheckinLocked()
4202 bgTimer.getTotalDurationMsLocked(rawRealtimeMs) : 0; in dumpCheckinLocked()
4255 final Timer bgTimer = timer.getSubTimer(); in dumpCheckinLocked() local
4256 final long bgTime = bgTimer != null ? in dumpCheckinLocked()
4257 bgTimer.getTotalDurationMsLocked(rawRealtimeMs) : -1; in dumpCheckinLocked()
4258 final int bgCount = bgTimer != null ? bgTimer.getCountLocked(which) : -1; in dumpCheckinLocked()
4271 final Timer bgTimer = timer.getSubTimer(); in dumpCheckinLocked() local
4272 final long bgTime = bgTimer != null ? in dumpCheckinLocked()
4273 bgTimer.getTotalDurationMsLocked(rawRealtimeMs) : -1; in dumpCheckinLocked()
[all …]