/frameworks/base/core/java/com/android/internal/os/ |
D | SensorPowerCalculator.java | 32 BatteryStats stats, long rawRealtimeUs, int statsType) { in SensorPowerCalculator() argument 34 mGpsPower = getAverageGpsPower(profile, stats, rawRealtimeUs, statsType); in SensorPowerCalculator() 38 public void calculateApp(BatterySipper app, BatteryStats.Uid u, long rawRealtimeUs, in calculateApp() argument 47 final long sensorTime = timer.getTotalTimeLocked(rawRealtimeUs, statsType) / 1000; in calculateApp() 68 private double getAverageGpsPower(PowerProfile profile, BatteryStats stats, long rawRealtimeUs, in getAverageGpsPower() argument 79 long timePerLevel = stats.getGpsSignalQualityTime(i, rawRealtimeUs, statsType); in getAverageGpsPower()
|
D | MobileRadioPowerCalculator.java | 34 private double getMobilePowerPerPacket(long rawRealtimeUs, int statsType) { in getMobilePowerPerPacket() argument 45 mStats.getMobileRadioActiveTime(rawRealtimeUs, statsType) / 1000; in getMobilePowerPerPacket() 84 public void calculateApp(BatterySipper app, BatteryStats.Uid u, long rawRealtimeUs, in calculateApp() argument 107 * getMobilePowerPerPacket(rawRealtimeUs, statsType); in calculateApp() 118 public void calculateRemaining(BatterySipper app, BatteryStats stats, long rawRealtimeUs, in calculateRemaining() argument 124 long strengthTimeMs = stats.getPhoneSignalStrengthTime(i, rawRealtimeUs, statsType) in calculateRemaining() 138 final long scanningTimeMs = stats.getPhoneSignalScanningTime(rawRealtimeUs, statsType) in calculateRemaining() 146 long radioActiveTimeMs = mStats.getMobileRadioActiveTime(rawRealtimeUs, statsType) / 1000; in calculateRemaining()
|
D | WifiPowerEstimator.java | 51 public void calculateApp(BatterySipper app, BatteryStats.Uid u, long rawRealtimeUs, in calculateApp() argument 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() 88 public void calculateRemaining(BatterySipper app, BatteryStats stats, long rawRealtimeUs, in calculateRemaining() argument 90 final long totalRunningTimeMs = stats.getGlobalWifiRunningTime(rawRealtimeUs, statsType) in calculateRemaining()
|
D | WakelockPowerCalculator.java | 33 public void calculateApp(BatterySipper app, BatteryStats.Uid u, long rawRealtimeUs, in calculateApp() argument 46 wakeLockTimeUs += timer.getTotalTimeLocked(rawRealtimeUs, statsType); in calculateApp() 61 public void calculateRemaining(BatterySipper app, BatteryStats stats, long rawRealtimeUs, in calculateRemaining() argument 65 + (stats.getScreenOnTime(rawRealtimeUs, statsType) / 1000); in calculateRemaining()
|
D | MediaPowerCalculator.java | 36 public void calculateApp(BatterySipper app, BatteryStats.Uid u, long rawRealtimeUs, 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()
|
D | MemoryPowerCalculator.java | 25 public void calculateApp(BatterySipper app, BatteryStats.Uid u, long rawRealtimeUs, in calculateApp() argument 29 public void calculateRemaining(BatterySipper app, BatteryStats stats, long rawRealtimeUs, in calculateRemaining() argument 36 long timeMs = timers.valueAt(i).getTotalTimeLocked(rawRealtimeUs, statsType); in calculateRemaining()
|
D | PowerCalculator.java | 35 public abstract void calculateApp(BatterySipper app, BatteryStats.Uid u, long rawRealtimeUs, in calculateApp() argument 49 public void calculateRemaining(BatterySipper app, BatteryStats stats, long rawRealtimeUs, in calculateRemaining() argument
|
D | CameraPowerCalculator.java | 33 public void calculateApp(BatterySipper app, BatteryStats.Uid u, long rawRealtimeUs, in calculateApp() argument 40 final long totalTime = timer.getTotalTimeLocked(rawRealtimeUs, statsType) / 1000; in calculateApp()
|
D | FlashlightPowerCalculator.java | 31 public void calculateApp(BatterySipper app, BatteryStats.Uid u, long rawRealtimeUs, in calculateApp() argument 38 final long totalTime = timer.getTotalTimeLocked(rawRealtimeUs, statsType) / 1000; in calculateApp()
|
D | BluetoothPowerCalculator.java | 37 public void calculateApp(BatterySipper app, BatteryStats.Uid u, long rawRealtimeUs, in calculateApp() argument 67 public void calculateRemaining(BatterySipper app, BatteryStats stats, long rawRealtimeUs, in calculateRemaining() argument
|
D | WifiPowerCalculator.java | 41 public void calculateApp(BatterySipper app, BatteryStats.Uid u, long rawRealtimeUs, in calculateApp() argument 75 public void calculateRemaining(BatterySipper app, BatteryStats stats, long rawRealtimeUs, in calculateRemaining() argument
|
D | BatteryStatsHelper.java | 369 public void refreshStats(int statsType, SparseArray<UserHandle> asUsers, long rawRealtimeUs, in refreshStats() argument 436 mStats, rawRealtimeUs, statsType); in refreshStats() 456 mRawRealtimeUs = rawRealtimeUs; in refreshStats() 458 mBatteryRealtimeUs = mStats.getBatteryRealtime(rawRealtimeUs); in refreshStats() 460 mTypeBatteryRealtimeUs = mStats.computeBatteryRealtime(rawRealtimeUs, mStatsType); in refreshStats() 461 mBatteryTimeRemainingUs = mStats.computeBatteryTimeRemaining(rawRealtimeUs); in refreshStats() 462 mChargeTimeRemainingUs = mStats.computeChargeTimeRemaining(rawRealtimeUs); in refreshStats() 465 Log.d(TAG, "Raw time: realtime=" + (rawRealtimeUs / 1000) + " uptime=" in refreshStats() 1003 public long getForegroundActivityTotalTimeUs(BatteryStats.Uid uid, long rawRealtimeUs) { in getForegroundActivityTotalTimeUs() argument 1006 return timer.getTotalTimeLocked(rawRealtimeUs, BatteryStats.STATS_SINCE_CHARGED); in getForegroundActivityTotalTimeUs()
|
D | CpuPowerCalculator.java | 33 public void calculateApp(BatterySipper app, BatteryStats.Uid u, long rawRealtimeUs, in calculateApp() argument
|
/frameworks/base/core/java/android/os/ |
D | BatteryStats.java | 3282 long rawRealtimeUs, int which, String prefix, String type) { in printTimer() argument 3286 rawRealtimeUs, which) + 500) / 1000; in printTimer() 3298 final long maxDurationMs = timer.getMaxDurationMsLocked(rawRealtimeUs/1000); in printTimer() 3304 final long currentMs = timer.getCurrentDurationMsLocked(rawRealtimeUs/1000); in printTimer() 3427 Timer timer, long rawRealtimeUs, int which) { in dumpTimer() argument 3432 final long timeMs = roundUsToMs(timer.getTotalTimeLocked(rawRealtimeUs, which)); in dumpTimer() 3434 final long maxDurationMs = timer.getMaxDurationMsLocked(rawRealtimeUs / 1000); in dumpTimer() 3435 final long curDurationMs = timer.getCurrentDurationMsLocked(rawRealtimeUs / 1000); in dumpTimer() 3436 final long totalDurationMs = timer.getTotalDurationMsLocked(rawRealtimeUs / 1000); in dumpTimer() 7292 final long rawRealtimeUs = rawRealtimeMs * 1000; in dumpProtoAppsLocked() local [all …]
|