Home
last modified time | relevance | path

Searched refs:statsType (Results 1 – 12 of 12) sorted by relevance

/frameworks/base/services/core/java/com/android/server/power/stats/
DWifiPowerCalculator.java161 long rawRealtimeUs, int statsType, boolean hasWifiActivityReporting, in calculateApp() argument
166 statsType); in calculateApp()
169 statsType); in calculateApp()
172 statsType); in calculateApp()
175 statsType); in calculateApp()
184 final long rxTime = rxTimeCounter.getCountLocked(statsType); in calculateApp()
185 final long txTime = txTimeCounter.getCountLocked(statsType); in calculateApp()
186 final long idleTime = idleTimeCounter.getCountLocked(statsType); in calculateApp()
229 final long wifiRunningTime = u.getWifiRunningTime(rawRealtimeUs, statsType) / 1000; in calculateApp()
233 final long wifiScanTimeMs = u.getWifiScanTime(rawRealtimeUs, statsType) / 1000; in calculateApp()
[all …]
DMemoryPowerCalculator.java58 private long calculateDuration(BatteryStats batteryStats, long rawRealtimeUs, int statsType) { in calculateDuration() argument
63 rawRealtimeUs, statsType); in calculateDuration()
68 private double calculatePower(BatteryStats batteryStats, long rawRealtimeUs, int statsType) { in calculatePower() argument
74 estimator.calculateDuration(timers.valueAt(i), rawRealtimeUs, statsType); in calculatePower()
DCpuPowerCalculator.java225 @BatteryConsumer.PowerModel int powerModel, long consumptionUC, int statsType, in calculatePowerAndDuration() argument
227 long durationMs = (u.getUserCpuTimeUs(statsType) + u.getSystemCpuTimeUs(statsType)) / 1000; in calculatePowerAndDuration()
236 powerMah = calculateUidModeledPowerMah(u, statsType); in calculatePowerAndDuration()
254 durationFgMs += ps.getForegroundTime(statsType); in calculatePowerAndDuration()
256 final long costValue = ps.getUserTime(statsType) + ps.getSystemTime(statsType) in calculatePowerAndDuration()
257 + ps.getForegroundTime(statsType); in calculatePowerAndDuration()
289 public double calculateUidModeledPowerMah(BatteryStats.Uid u, int statsType) { in calculateUidModeledPowerMah() argument
291 u.getCpuFreqTimes(statsType)); in calculateUidModeledPowerMah()
DUsageBasedPowerEstimator.java42 public long calculateDuration(BatteryStats.Timer timer, long rawRealtimeUs, int statsType) { in calculateDuration() argument
43 return timer == null ? 0 : timer.getTotalTimeLocked(rawRealtimeUs, statsType) / 1000; in calculateDuration()
DIdlePowerCalculator.java71 long rawUptimeUs, int statsType) { in calculatePowerAndDuration() argument
72 long batteryRealtimeUs = batteryStats.computeBatteryRealtime(rawRealtimeUs, statsType); in calculatePowerAndDuration()
73 long batteryUptimeUs = batteryStats.computeBatteryUptime(rawUptimeUs, statsType); in calculatePowerAndDuration()
DSensorPowerCalculator.java77 private long calculateDuration(BatteryStats.Uid u, long rawRealtimeUs, int statsType) { in calculateDuration() argument
89 durationMs += timer.getTotalTimeLocked(rawRealtimeUs, statsType) / 1000; in calculateDuration()
94 private double calculatePowerMah(BatteryStats.Uid u, long rawRealtimeUs, int statsType) { in calculatePowerMah() argument
107 final long sensorTime = timer.getTotalTimeLocked(rawRealtimeUs, statsType) / 1000; in calculatePowerMah()
DGnssPowerCalculator.java105 private long computeDuration(BatteryStats.Uid u, long rawRealtimeUs, int statsType) { in computeDuration() argument
113 return timer.getTotalTimeLocked(rawRealtimeUs, statsType) / 1000; in computeDuration()
120 private double getAverageGnssPower(BatteryStats stats, long rawRealtimeUs, int statsType) { in getAverageGnssPower() argument
129 long timePerLevel = stats.getGpsSignalQualityTime(i, rawRealtimeUs, statsType) / 1000; in getAverageGnssPower()
DAmbientDisplayPowerCalculator.java68 private long calculateDuration(BatteryStats batteryStats, long rawRealtimeUs, int statsType) { in calculateDuration() argument
69 return batteryStats.getScreenDozeTime(rawRealtimeUs, statsType) / 1000; in calculateDuration()
DWakelockPowerCalculator.java110 int statsType) { in calculateApp() argument
122 wakeLockTimeUs += timer.getTotalTimeLocked(rawRealtimeUs, statsType); in calculateApp()
136 long rawUptimeUs, int statsType, double osPowerMah, long osDurationMs, in calculateRemaining() argument
DScreenPowerCalculator.java132 long rawRealtimeUs, int statsType, long consumptionUC) { in calculateTotalDurationAndPower() argument
134 statsType); in calculateTotalDurationAndPower()
161 private long calculateDuration(BatteryStats batteryStats, long rawRealtimeUs, int statsType) { in calculateDuration() argument
162 return batteryStats.getScreenOnTime(rawRealtimeUs, statsType) / 1000; in calculateDuration()
DMobileRadioPowerCalculator.java317 private long calculateDuration(BatteryStats.Uid u, int statsType) { in calculateDuration() argument
318 return u.getMobileRadioActiveTime(statsType) / 1000; in calculateDuration()
DBatteryStatsImpl.java2595 public long getCountLocked(int statsType) { in getCountLocked() argument