Home
last modified time | relevance | path

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

/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/power/stats/
H A 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()
500 assertEquals(111, bgTimer.getTotalDurationMsLocked(clocks.realtime)); in testSensorResetTimes()
510 assertEquals(0, bgTimer.getTotalTimeLocked(1000*clocks.realtime, which)); in testSensorResetTimes()
511 assertEquals(0, bgTimer.getTotalDurationMsLocked(clocks.realtime)); in testSensorResetTimes()
[all …]
H A 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()
/aosp14/frameworks/base/core/java/android/os/
H A DBatteryStats.java4891 final long bgTime = bgTimer != null ? in dumpCheckinLocked()
4893 final int bgCount = bgTimer != null ? bgTimer.getCountLocked(which) : -1; in dumpCheckinLocked()
4907 final long bgTime = bgTimer != null ? in dumpCheckinLocked()
4909 final int bgCount = bgTimer != null ? bgTimer.getCountLocked(which) : -1; in dumpCheckinLocked()
4960 final int bgCount = bgTimer != null ? bgTimer.getCountLocked(which) : 0; in dumpCheckinLocked()
6419 final long bgTime = bgTimer != null ? in dumpLocked()
6421 final int bgCount = bgTimer != null ? bgTimer.getCountLocked(which) : -1; in dumpLocked()
6453 final long bgTime = bgTimer != null ? in dumpLocked()
6455 final int bgCount = bgTimer != null ? bgTimer.getCountLocked(which) : -1; in dumpLocked()
6536 final int bgCount = bgTimer != null ? bgTimer.getCountLocked(which) : 0; in dumpLocked()
[all …]