/frameworks/base/core/java/com/android/internal/os/ |
D | MobileRadioPowerCalculator.java | 34 private double getMobilePowerPerPacket(long rawRealtimeUs, int statsType) { in getMobilePowerPerPacket() argument 45 mStats.getMobileRadioActiveTime(rawRealtimeUs, statsType) / 1000; in getMobilePowerPerPacket() 62 public void calculateApp(BatterySipper app, BatteryStats.Uid u, long rawRealtimeUs, in calculateApp() argument 85 * getMobilePowerPerPacket(rawRealtimeUs, statsType); in calculateApp() 96 public void calculateRemaining(BatterySipper app, BatteryStats stats, long rawRealtimeUs, in calculateRemaining() argument 102 long strengthTimeMs = stats.getPhoneSignalStrengthTime(i, rawRealtimeUs, statsType) in calculateRemaining() 116 final long scanningTimeMs = stats.getPhoneSignalScanningTime(rawRealtimeUs, statsType) in calculateRemaining() 124 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 | PowerCalculator.java | 34 public abstract void calculateApp(BatterySipper app, BatteryStats.Uid u, long rawRealtimeUs, in calculateApp() argument 47 public void calculateRemaining(BatterySipper app, BatteryStats stats, long rawRealtimeUs, in calculateRemaining() argument
|
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 | 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 | SensorPowerCalculator.java | 35 public void calculateApp(BatterySipper app, BatteryStats.Uid u, long rawRealtimeUs, in calculateApp() argument 44 final long sensorTime = 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 | 320 public void refreshStats(int statsType, SparseArray<UserHandle> asUsers, long rawRealtimeUs, in refreshStats() argument 393 mRawRealtimeUs = rawRealtimeUs; in refreshStats() 395 mBatteryRealtimeUs = mStats.getBatteryRealtime(rawRealtimeUs); in refreshStats() 397 mTypeBatteryRealtimeUs = mStats.computeBatteryRealtime(rawRealtimeUs, mStatsType); in refreshStats() 398 mBatteryTimeRemainingUs = mStats.computeBatteryTimeRemaining(rawRealtimeUs); in refreshStats() 399 mChargeTimeRemainingUs = mStats.computeChargeTimeRemaining(rawRealtimeUs); in refreshStats() 402 Log.d(TAG, "Raw time: realtime=" + (rawRealtimeUs/1000) + " uptime=" in refreshStats()
|
D | CpuPowerCalculator.java | 32 public void calculateApp(BatterySipper app, BatteryStats.Uid u, long rawRealtimeUs, in calculateApp() argument
|