/frameworks/base/services/core/java/com/android/server/power/stats/ |
D | WifiPowerCalculator.java | 161 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 …]
|
D | MemoryPowerCalculator.java | 58 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()
|
D | CpuPowerCalculator.java | 225 @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()
|
D | UsageBasedPowerEstimator.java | 42 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()
|
D | IdlePowerCalculator.java | 71 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()
|
D | SensorPowerCalculator.java | 77 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()
|
D | GnssPowerCalculator.java | 105 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()
|
D | AmbientDisplayPowerCalculator.java | 68 private long calculateDuration(BatteryStats batteryStats, long rawRealtimeUs, int statsType) { in calculateDuration() argument 69 return batteryStats.getScreenDozeTime(rawRealtimeUs, statsType) / 1000; in calculateDuration()
|
D | WakelockPowerCalculator.java | 110 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
|
D | ScreenPowerCalculator.java | 132 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()
|
D | MobileRadioPowerCalculator.java | 317 private long calculateDuration(BatteryStats.Uid u, int statsType) { in calculateDuration() argument 318 return u.getMobileRadioActiveTime(statsType) / 1000; in calculateDuration()
|
D | BatteryStatsImpl.java | 2595 public long getCountLocked(int statsType) { in getCountLocked() argument
|