Home
last modified time | relevance | path

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

/packages/apps/Settings/src/com/android/settings/fuelgauge/
DBatteryUtils.java424 long getForegroundActivityTotalTimeUs(BatteryStats.Uid uid, long rawRealtimeUs) { in getForegroundActivityTotalTimeUs() argument
427 return timer.getTotalTimeLocked(rawRealtimeUs, BatteryStats.STATS_SINCE_CHARGED); in getForegroundActivityTotalTimeUs()
434 long getForegroundServiceTotalTimeUs(BatteryStats.Uid uid, long rawRealtimeUs) { in getForegroundServiceTotalTimeUs() argument
437 return timer.getTotalTimeLocked(rawRealtimeUs, BatteryStats.STATS_SINCE_CHARGED); in getForegroundServiceTotalTimeUs()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DBatteryUtilsTest.java273 final long rawRealtimeUs = SystemClock.elapsedRealtime() * 1000; in testGetForegroundActivityTotalTimeMs_returnMilliseconds() local
276 .getTotalTimeLocked(rawRealtimeUs, BatteryStats.STATS_SINCE_CHARGED); in testGetForegroundActivityTotalTimeMs_returnMilliseconds()
278 assertThat(mBatteryUtils.getForegroundActivityTotalTimeUs(mUid, rawRealtimeUs)).isEqualTo( in testGetForegroundActivityTotalTimeMs_returnMilliseconds()