/frameworks/base/core/java/com/android/internal/os/ |
D | MobileRadioPowerCalculator.java | 34 private double getMobilePowerPerPacket(long rawRealtimeUs, int statsType) { in getMobilePowerPerPacket() argument 39 statsType); in getMobilePowerPerPacket() 41 statsType); in getMobilePowerPerPacket() 45 mStats.getMobileRadioActiveTime(rawRealtimeUs, statsType) / 1000; in getMobilePowerPerPacket() 63 long rawUptimeUs, int statsType) { in calculateApp() argument 66 statsType); in calculateApp() 68 statsType); in calculateApp() 69 app.mobileActive = u.getMobileRadioActiveTime(statsType) / 1000; in calculateApp() 70 app.mobileActiveCount = u.getMobileRadioActiveCount(statsType); in calculateApp() 72 statsType); in calculateApp() [all …]
|
D | WifiPowerCalculator.java | 42 long rawUptimeUs, int statsType) { in calculateApp() argument 48 final long idleTime = counter.getIdleTimeCounter().getCountLocked(statsType); in calculateApp() 49 final long txTime = counter.getTxTimeCounters()[0].getCountLocked(statsType); in calculateApp() 50 final long rxTime = counter.getRxTimeCounter().getCountLocked(statsType); in calculateApp() 60 statsType); in calculateApp() 62 statsType); in calculateApp() 64 statsType); in calculateApp() 66 statsType); in calculateApp() 76 long rawUptimeUs, int statsType) { in calculateRemaining() argument 79 final long idleTimeMs = counter.getIdleTimeCounter().getCountLocked(statsType); in calculateRemaining() [all …]
|
D | BluetoothPowerCalculator.java | 38 long rawUptimeUs, int statsType) { in calculateApp() argument 45 final long idleTimeMs = counter.getIdleTimeCounter().getCountLocked(statsType); in calculateApp() 46 final long rxTimeMs = counter.getRxTimeCounter().getCountLocked(statsType); in calculateApp() 47 final long txTimeMs = counter.getTxTimeCounters()[0].getCountLocked(statsType); in calculateApp() 49 double powerMah = counter.getPowerCounter().getCountLocked(statsType) in calculateApp() 59 app.btRxBytes = u.getNetworkActivityBytes(BatteryStats.NETWORK_BT_RX_DATA, statsType); in calculateApp() 60 app.btTxBytes = u.getNetworkActivityBytes(BatteryStats.NETWORK_BT_TX_DATA, statsType); in calculateApp() 68 long rawUptimeUs, int statsType) { in calculateRemaining() argument 72 final long idleTimeMs = counter.getIdleTimeCounter().getCountLocked(statsType); in calculateRemaining() 73 final long txTimeMs = counter.getTxTimeCounters()[0].getCountLocked(statsType); in calculateRemaining() [all …]
|
D | WifiPowerEstimator.java | 52 long rawUptimeUs, int statsType) { in calculateApp() argument 54 statsType); in calculateApp() 56 statsType); in calculateApp() 58 statsType); in calculateApp() 60 statsType); in calculateApp() 65 app.wifiRunningTimeMs = u.getWifiRunningTime(rawRealtimeUs, statsType) / 1000; in calculateApp() 69 final long wifiScanTimeMs = u.getWifiScanTime(rawRealtimeUs, statsType) / 1000; in calculateApp() 75 u.getWifiBatchedScanTime(bin, rawRealtimeUs, statsType) / 1000; in calculateApp() 89 long rawUptimeUs, int statsType) { in calculateRemaining() argument 90 final long totalRunningTimeMs = stats.getGlobalWifiRunningTime(rawRealtimeUs, statsType) in calculateRemaining()
|
D | CpuPowerCalculator.java | 33 long rawUptimeUs, int statsType) { in calculateApp() argument 35 app.cpuTimeMs = (u.getUserCpuTimeUs(statsType) + u.getSystemCpuTimeUs(statsType)) / 1000; in calculateApp() 43 totalTime += u.getTimeAtCpuSpeed(cluster, speed, statsType); in calculateApp() 52 final double ratio = (double) u.getTimeAtCpuSpeed(cluster, speed, statsType) / in calculateApp() 80 app.cpuFgTimeMs += ps.getForegroundTime(statsType); in calculateApp() 82 final long costValue = ps.getUserTime(statsType) + ps.getSystemTime(statsType) in calculateApp() 83 + ps.getForegroundTime(statsType); in calculateApp()
|
D | WakelockPowerCalculator.java | 34 long rawUptimeUs, int statsType) { in calculateApp() argument 46 wakeLockTimeUs += timer.getTotalTimeLocked(rawRealtimeUs, statsType); in calculateApp() 62 long rawUptimeUs, int statsType) { in calculateRemaining() argument 65 + (stats.getScreenOnTime(rawRealtimeUs, statsType) / 1000); in calculateRemaining()
|
D | PowerCalculator.java | 35 long rawUptimeUs, int statsType); in calculateApp() argument 48 long rawUptimeUs, int statsType) { in calculateRemaining() argument
|
D | FlashlightPowerCalculator.java | 32 long rawUptimeUs, int statsType) { in calculateApp() argument 38 final long totalTime = timer.getTotalTimeLocked(rawRealtimeUs, statsType) / 1000; in calculateApp()
|
D | CameraPowerCalculator.java | 34 long rawUptimeUs, int statsType) { in calculateApp() argument 40 final long totalTime = timer.getTotalTimeLocked(rawRealtimeUs, statsType) / 1000; in calculateApp()
|
D | SensorPowerCalculator.java | 36 long rawUptimeUs, int statsType) { in calculateApp() argument 44 final long sensorTime = timer.getTotalTimeLocked(rawRealtimeUs, statsType) / 1000; in calculateApp()
|
D | BatteryStatsHelper.java | 293 public void refreshStats(int statsType, int asUser) { in refreshStats() argument 296 refreshStats(statsType, users); in refreshStats() 302 public void refreshStats(int statsType, List<UserHandle> asUsers) { in refreshStats() argument 309 refreshStats(statsType, users); in refreshStats() 315 public void refreshStats(int statsType, SparseArray<UserHandle> asUsers) { in refreshStats() argument 316 refreshStats(statsType, asUsers, SystemClock.elapsedRealtime() * 1000, in refreshStats() 320 public void refreshStats(int statsType, SparseArray<UserHandle> asUsers, long rawRealtimeUs, in refreshStats() argument 391 mStatsType = statsType; in refreshStats()
|