Home
last modified time | relevance | path

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

/frameworks/base/core/java/com/android/internal/os/
DMobileRadioPowerCalculator.java34 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()
85 long rawUptimeUs, int statsType) { in calculateApp() argument
88 statsType); in calculateApp()
90 statsType); in calculateApp()
91 app.mobileActive = u.getMobileRadioActiveTime(statsType) / 1000; in calculateApp()
92 app.mobileActiveCount = u.getMobileRadioActiveCount(statsType); in calculateApp()
94 statsType); in calculateApp()
[all …]
DWifiPowerCalculator.java42 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 …]
DBluetoothPowerCalculator.java38 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 …]
DWifiPowerEstimator.java52 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()
DCpuPowerCalculator.java34 long rawUptimeUs, int statsType) { in calculateApp() argument
35 app.cpuTimeMs = (u.getUserCpuTimeUs(statsType) + u.getSystemCpuTimeUs(statsType)) / 1000; in calculateApp()
42 final long timeUs = u.getTimeAtCpuSpeed(cluster, speed, statsType); in calculateApp()
89 app.cpuFgTimeMs += ps.getForegroundTime(statsType); in calculateApp()
91 final long costValue = ps.getUserTime(statsType) + ps.getSystemTime(statsType) in calculateApp()
92 + ps.getForegroundTime(statsType); in calculateApp()
DSensorPowerCalculator.java32 BatteryStats stats, long rawRealtimeUs, int statsType) { in SensorPowerCalculator() argument
34 mGpsPower = getAverageGpsPower(profile, stats, rawRealtimeUs, statsType); in SensorPowerCalculator()
39 long rawUptimeUs, int statsType) { in calculateApp() argument
47 final long sensorTime = timer.getTotalTimeLocked(rawRealtimeUs, statsType) / 1000; in calculateApp()
69 int statsType) { in getAverageGpsPower() argument
79 long timePerLevel = stats.getGpsSignalQualityTime(i, rawRealtimeUs, statsType); in getAverageGpsPower()
DWakelockPowerCalculator.java34 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()
DMediaPowerCalculator.java37 long rawUptimeUs, int statsType) { in calculateApp() argument
45 final long totalTime = audioTimer.getTotalTimeLocked(rawRealtimeUs, statsType) / 1000; in calculateApp()
56 final long totalTime = videoTimer.getTotalTimeLocked(rawRealtimeUs, statsType) / 1000; in calculateApp()
DMemoryPowerCalculator.java26 long rawUptimeUs, int statsType) {} in calculateApp() argument
30 long rawUptimeUs, int statsType) { in calculateRemaining() argument
36 long timeMs = timers.valueAt(i).getTotalTimeLocked(rawRealtimeUs, statsType); in calculateRemaining()
DPowerCalculator.java36 long rawUptimeUs, int statsType); in calculateApp() argument
50 long rawUptimeUs, int statsType) { in calculateRemaining() argument
DCameraPowerCalculator.java34 long rawUptimeUs, int statsType) { in calculateApp() argument
40 final long totalTime = timer.getTotalTimeLocked(rawRealtimeUs, statsType) / 1000; in calculateApp()
DFlashlightPowerCalculator.java32 long rawUptimeUs, int statsType) { in calculateApp() argument
38 final long totalTime = timer.getTotalTimeLocked(rawRealtimeUs, statsType) / 1000; in calculateApp()
DBatteryStatsHelper.java340 public void refreshStats(int statsType, int asUser) { in refreshStats() argument
343 refreshStats(statsType, users); in refreshStats()
350 public void refreshStats(int statsType, List<UserHandle> asUsers) { in refreshStats() argument
357 refreshStats(statsType, users); in refreshStats()
364 public void refreshStats(int statsType, SparseArray<UserHandle> asUsers) { in refreshStats() argument
365 refreshStats(statsType, asUsers, SystemClock.elapsedRealtime() * 1000, in refreshStats()
369 public void refreshStats(int statsType, SparseArray<UserHandle> asUsers, long rawRealtimeUs, in refreshStats() argument
371 if (statsType != BatteryStats.STATS_SINCE_CHARGED) { in refreshStats()
372 Log.w(TAG, "refreshStats called for statsType " + statsType + " but only " in refreshStats()
436 mStats, rawRealtimeUs, statsType); in refreshStats()
[all …]