Searched refs:rawRealTimeUs (Results 1 – 2 of 2) sorted by relevance
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/ |
D | BatteryUtils.java | 129 private long getScreenUsageTimeMs(BatteryStats.Uid uid, int which, long rawRealTimeUs) { in getScreenUsageTimeMs() argument 135 final long localTime = uid.getProcessStateTime(type, rawRealTimeUs, which); in getScreenUsageTimeMs() 144 Math.min(timeUs, getForegroundActivityTotalTimeUs(uid, rawRealTimeUs))); in getScreenUsageTimeMs() 148 final long rawRealTimeUs = PowerUtil.convertMsToUs(SystemClock.elapsedRealtime()); in getScreenUsageTimeMs() local 149 return getScreenUsageTimeMs(uid, which, rawRealTimeUs); in getScreenUsageTimeMs() 153 final long rawRealTimeUs = PowerUtil.convertMsToUs(SystemClock.elapsedRealtime()); in getProcessBackgroundTimeMs() local 155 BatteryStats.Uid.PROCESS_STATE_BACKGROUND, rawRealTimeUs, which); in getProcessBackgroundTimeMs() 163 final long rawRealTimeUs = PowerUtil.convertMsToUs(SystemClock.elapsedRealtime()); in getProcessForegroundTimeMs() local 164 return getScreenUsageTimeMs(uid, which, rawRealTimeUs) in getProcessForegroundTimeMs() 165 + PowerUtil.convertUsToMs(getForegroundServiceTotalTimeUs(uid, rawRealTimeUs)); in getProcessForegroundTimeMs()
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/ |
D | BatteryUtils.java | 134 private long getScreenUsageTimeMs(BatteryStats.Uid uid, int which, long rawRealTimeUs) { in getScreenUsageTimeMs() argument 140 final long localTime = uid.getProcessStateTime(type, rawRealTimeUs, which); in getScreenUsageTimeMs() 149 Math.min(timeUs, getForegroundActivityTotalTimeUs(uid, rawRealTimeUs))); in getScreenUsageTimeMs() 153 final long rawRealTimeUs = PowerUtil.convertMsToUs(SystemClock.elapsedRealtime()); in getScreenUsageTimeMs() local 154 return getScreenUsageTimeMs(uid, which, rawRealTimeUs); in getScreenUsageTimeMs() 158 final long rawRealTimeUs = PowerUtil.convertMsToUs(SystemClock.elapsedRealtime()); in getProcessBackgroundTimeMs() local 160 BatteryStats.Uid.PROCESS_STATE_BACKGROUND, rawRealTimeUs, which); in getProcessBackgroundTimeMs() 168 final long rawRealTimeUs = PowerUtil.convertMsToUs(SystemClock.elapsedRealtime()); in getProcessForegroundTimeMs() local 169 return getScreenUsageTimeMs(uid, which, rawRealTimeUs) in getProcessForegroundTimeMs() 170 + PowerUtil.convertUsToMs(getForegroundServiceTotalTimeUs(uid, rawRealTimeUs)); in getProcessForegroundTimeMs()
|