Home
last modified time | relevance | path

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

/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/
DBatteryUtils.java493 long getForegroundActivityTotalTimeUs(BatteryStats.Uid uid, long rawRealtimeUs) { in getForegroundActivityTotalTimeUs() argument
496 return timer.getTotalTimeLocked(rawRealtimeUs, BatteryStats.STATS_SINCE_CHARGED); in getForegroundActivityTotalTimeUs()
503 long getForegroundServiceTotalTimeUs(BatteryStats.Uid uid, long rawRealtimeUs) { in getForegroundServiceTotalTimeUs() argument
506 return timer.getTotalTimeLocked(rawRealtimeUs, BatteryStats.STATS_SINCE_CHARGED); in getForegroundServiceTotalTimeUs()
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DBatteryUtils.java532 long getForegroundActivityTotalTimeUs(BatteryStats.Uid uid, long rawRealtimeUs) { in getForegroundActivityTotalTimeUs() argument
535 return timer.getTotalTimeLocked(rawRealtimeUs, BatteryStats.STATS_SINCE_CHARGED); in getForegroundActivityTotalTimeUs()
542 long getForegroundServiceTotalTimeUs(BatteryStats.Uid uid, long rawRealtimeUs) { in getForegroundServiceTotalTimeUs() argument
545 return timer.getTotalTimeLocked(rawRealtimeUs, BatteryStats.STATS_SINCE_CHARGED); in getForegroundServiceTotalTimeUs()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DBatteryUtilsTest.java457 final long rawRealtimeUs = SystemClock.elapsedRealtime() * 1000; in testGetForegroundActivityTotalTimeMs_returnMilliseconds() local
460 .getTotalTimeLocked(rawRealtimeUs, BatteryStats.STATS_SINCE_CHARGED); in testGetForegroundActivityTotalTimeMs_returnMilliseconds()
462 assertThat(mBatteryUtils.getForegroundActivityTotalTimeUs(mUid, rawRealtimeUs)).isEqualTo( in testGetForegroundActivityTotalTimeMs_returnMilliseconds()