Home
last modified time | relevance | path

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

/frameworks/base/services/core/java/com/android/server/power/stats/
DBatteryUsageStatsProvider.java178 final long realtimeUs = mClock.elapsedRealtime() * 1000; in getCurrentBatteryUsageStats() local
213 getProcessBackgroundTimeMs(uid, realtimeUs)) in getCurrentBatteryUsageStats()
215 getProcessForegroundTimeMs(uid, realtimeUs)) in getCurrentBatteryUsageStats()
218 getProcessForegroundServiceTimeMs(uid, realtimeUs)); in getCurrentBatteryUsageStats()
237 powerCalculator.calculate(batteryUsageStatsBuilder, stats, realtimeUs, uptimeUs, in getCurrentBatteryUsageStats()
300 private long getProcessForegroundTimeMs(BatteryStats.Uid uid, long realtimeUs) { in getProcessForegroundTimeMs() argument
302 realtimeUs, BatteryStats.STATS_SINCE_CHARGED); in getProcessForegroundTimeMs()
306 foregroundActivityDurationUs = foregroundActivityTimer.getTotalTimeLocked(realtimeUs, in getProcessForegroundTimeMs()
315 BatteryStats.Uid.PROCESS_STATE_FOREGROUND, realtimeUs, in getProcessForegroundTimeMs()
321 private long getProcessBackgroundTimeMs(BatteryStats.Uid uid, long realtimeUs) { in getProcessBackgroundTimeMs() argument
[all …]
DBatteryStatsImpl.java4548 long realtimeUs) { in updateTimeBasesLocked() argument
4556 updateKernelWakelocksLocked(realtimeUs); in updateTimeBasesLocked()
4564 updateRpmStatsLocked(realtimeUs); in updateTimeBasesLocked()
4572 mOnBatteryTimeBase.setRunning(unplugged, uptimeUs, realtimeUs); in updateTimeBasesLocked()
4575 mUidStats.valueAt(i).updateOnBatteryBgTimeBase(uptimeUs, realtimeUs); in updateTimeBasesLocked()
4580 uptimeUs, realtimeUs); in updateTimeBasesLocked()
4582 mUidStats.valueAt(i).updateOnBatteryScreenOffBgTimeBase(uptimeUs, realtimeUs); in updateTimeBasesLocked()
9676 public boolean reset(long uptimeUs, long realtimeUs, int resetReason) { in reset() argument
9679 mOnBatteryBackgroundTimeBase.init(uptimeUs, realtimeUs); in reset()
9680 mOnBatteryScreenOffBackgroundTimeBase.init(uptimeUs, realtimeUs); in reset()
[all …]