/frameworks/base/core/java/com/android/internal/os/ |
D | IdlePowerCalculator.java | 51 long rawRealtimeUs, long rawUptimeUs, BatteryUsageStatsQuery query) { in calculate() argument 52 calculatePowerAndDuration(batteryStats, rawRealtimeUs, rawUptimeUs, in calculate() 64 long rawRealtimeUs, long rawUptimeUs, int statsType, SparseArray<UserHandle> asUsers) { in calculate() argument 65 calculatePowerAndDuration(batteryStats, rawRealtimeUs, rawUptimeUs, statsType); in calculate() 82 long rawUptimeUs, int statsType) { in calculatePowerAndDuration() argument 84 long batteryUptimeUs = batteryStats.computeBatteryUptime(rawUptimeUs, statsType); in calculatePowerAndDuration()
|
D | WakelockPowerCalculator.java | 48 long rawRealtimeUs, long rawUptimeUs, BatteryUsageStatsQuery query) { in calculate() argument 76 calculateRemaining(result, batteryStats, rawRealtimeUs, rawUptimeUs, in calculate() 85 long wakeTimeMs = calculateWakeTimeMillis(batteryStats, rawRealtimeUs, rawUptimeUs); in calculate() 105 long rawRealtimeUs, long rawUptimeUs, int statsType, SparseArray<UserHandle> asUsers) { in calculate() argument 131 calculateRemaining(result, batteryStats, rawRealtimeUs, rawUptimeUs, statsType, in calculate() 166 long rawUptimeUs, int statsType, double osPowerMah, long osDurationMs, in calculateRemaining() argument 168 final long wakeTimeMillis = calculateWakeTimeMillis(stats, rawRealtimeUs, rawUptimeUs) in calculateRemaining() 188 long rawUptimeUs) { in calculateWakeTimeMillis() argument 189 final long batteryUptimeUs = batteryStats.getBatteryUptime(rawUptimeUs); in calculateWakeTimeMillis()
|
D | PowerCalculator.java | 56 long rawRealtimeUs, long rawUptimeUs, int statsType, SparseArray<UserHandle> asUsers) { in calculate() argument 60 calculateApp(app, app.uidObj, rawRealtimeUs, rawUptimeUs, statsType); in calculate() 78 long rawRealtimeUs, long rawUptimeUs, BatteryUsageStatsQuery query) { in calculate() argument 83 calculateApp(app, app.getBatteryStatsUid(), rawRealtimeUs, rawUptimeUs, query); in calculate() 99 long rawUptimeUs, int statsType) { in calculateApp() argument 111 long rawRealtimeUs, long rawUptimeUs, BatteryUsageStatsQuery query) { in calculateApp() argument
|
D | CameraPowerCalculator.java | 41 long rawRealtimeUs, long rawUptimeUs, BatteryUsageStatsQuery query) { in calculate() argument 42 super.calculate(builder, batteryStats, rawRealtimeUs, rawUptimeUs, query); in calculate() 59 long rawRealtimeUs, long rawUptimeUs, BatteryUsageStatsQuery query) { in calculateApp() argument 70 long rawUptimeUs, int statsType) { in calculateApp() argument
|
D | FlashlightPowerCalculator.java | 39 long rawRealtimeUs, long rawUptimeUs, BatteryUsageStatsQuery query) { in calculate() argument 40 super.calculate(builder, batteryStats, rawRealtimeUs, rawUptimeUs, query); in calculate() 57 long rawRealtimeUs, long rawUptimeUs, BatteryUsageStatsQuery query) { in calculateApp() argument 67 long rawUptimeUs, int statsType) { in calculateApp() argument
|
D | BatteryChargeCalculator.java | 34 long rawRealtimeUs, long rawUptimeUs, BatteryUsageStatsQuery query) { in calculate() argument 79 long rawRealtimeUs, long rawUptimeUs, int statsType, SparseArray<UserHandle> asUsers) { in calculate() argument
|
D | PhonePowerCalculator.java | 41 long rawRealtimeUs, long rawUptimeUs, BatteryUsageStatsQuery query) { in calculate() argument 55 long rawRealtimeUs, long rawUptimeUs, int statsType, SparseArray<UserHandle> asUsers) { in calculate() argument
|
D | AmbientDisplayPowerCalculator.java | 45 long rawRealtimeUs, long rawUptimeUs, BatteryUsageStatsQuery query) { in calculate() argument 67 long rawRealtimeUs, long rawUptimeUs, int statsType, SparseArray<UserHandle> asUsers) { in calculate() argument
|
D | UserPowerCalculator.java | 38 long rawRealtimeUs, long rawUptimeUs, BatteryUsageStatsQuery query) { in calculate() argument 65 long rawRealtimeUs, long rawUptimeUs, int statsType, SparseArray<UserHandle> asUsers) { in calculate() argument
|
D | MemoryPowerCalculator.java | 28 long rawRealtimeUs, long rawUptimeUs, BatteryUsageStatsQuery query) { in calculate() argument 41 long rawRealtimeUs, long rawUptimeUs, int statsType, SparseArray<UserHandle> asUsers) { in calculate() argument
|
D | CustomMeasuredPowerCalculator.java | 36 long rawRealtimeUs, long rawUptimeUs, BatteryUsageStatsQuery query) { in calculate() argument 97 long rawUptimeUs, int statsType) { in calculateApp() argument
|
D | SensorPowerCalculator.java | 43 long rawRealtimeUs, long rawUptimeUs, BatteryUsageStatsQuery query) { in calculate() argument 72 long rawUptimeUs, int statsType) { in calculateApp() argument
|
D | MediaPowerCalculator.java | 37 long rawUptimeUs, int statsType) { in calculateApp() argument
|
D | SystemServicePowerCalculator.java | 66 long rawRealtimeUs, long rawUptimeUs, BatteryUsageStatsQuery query) { in calculate() argument 121 long rawRealtimeUs, long rawUptimeUs, int statsType, in calculate() argument
|
D | GnssPowerCalculator.java | 48 long rawRealtimeUs, long rawUptimeUs, BatteryUsageStatsQuery query) { in calculate() argument 100 long rawRealtimeUs, long rawUptimeUs, int statsType, SparseArray<UserHandle> asUsers) { in calculate() argument
|
D | AudioPowerCalculator.java | 48 long rawRealtimeUs, long rawUptimeUs, BatteryUsageStatsQuery query) { in calculate() argument
|
D | VideoPowerCalculator.java | 45 long rawRealtimeUs, long rawUptimeUs, BatteryUsageStatsQuery query) { in calculate() argument
|
D | BluetoothPowerCalculator.java | 53 long rawRealtimeUs, long rawUptimeUs, BatteryUsageStatsQuery query) { in calculate() argument 115 long rawRealtimeUs, long rawUptimeUs, int statsType, SparseArray<UserHandle> asUsers) { in calculate() argument
|
D | BatteryStatsHelper.java | 309 long rawUptimeUs) { in refreshStats() argument 363 mRawUptimeUs = rawUptimeUs; in refreshStats() 365 mBatteryUptimeUs = mStats.getBatteryUptime(rawUptimeUs); in refreshStats() 373 + (rawUptimeUs / 1000)); in refreshStats()
|
D | CpuPowerCalculator.java | 82 long rawRealtimeUs, long rawUptimeUs, BatteryUsageStatsQuery query) { in calculate() argument 121 long rawRealtimeUs, long rawUptimeUs, int statsType, SparseArray<UserHandle> asUsers) { in calculate() argument
|
D | ScreenPowerCalculator.java | 61 long rawRealtimeUs, long rawUptimeUs, BatteryUsageStatsQuery query) { in calculate() argument 118 long rawRealtimeUs, long rawUptimeUs, int statsType, SparseArray<UserHandle> asUsers) { in calculate() argument
|
D | MobileRadioPowerCalculator.java | 88 long rawRealtimeUs, long rawUptimeUs, BatteryUsageStatsQuery query) { in calculate() argument 143 long rawRealtimeUs, long rawUptimeUs, int statsType, SparseArray<UserHandle> asUsers) { in calculate() argument
|
D | WifiPowerCalculator.java | 79 long rawRealtimeUs, long rawUptimeUs, BatteryUsageStatsQuery query) { in calculate() argument 131 long rawRealtimeUs, long rawUptimeUs, int statsType, SparseArray<UserHandle> asUsers) { in calculate() argument
|
/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
D | UserPowerCalculatorTest.java | 131 long rawRealtimeUs, long rawUptimeUs, BatteryUsageStatsQuery query) { in calculateApp() argument 140 long rawRealtimeUs, long rawUptimeUs, BatteryUsageStatsQuery query) { in calculateApp() argument
|
/frameworks/base/core/java/android/os/ |
D | BatteryStats.java | 7314 final long rawUptimeUs = SystemClock.uptimeMillis() * 1000; in dumpProtoAppsLocked() local 7317 final long batteryUptimeUs = getBatteryUptime(rawUptimeUs); in dumpProtoAppsLocked() 7864 final long rawUptimeUs = SystemClock.uptimeMillis() * 1000; in dumpProtoSystemLocked() local 7876 computeUptime(rawUptimeUs, which) / 1000); in dumpProtoSystemLocked() 7880 computeBatteryUptime(rawUptimeUs, which) / 1000); in dumpProtoSystemLocked() 7884 computeBatteryScreenOffUptime(rawUptimeUs, which) / 1000); in dumpProtoSystemLocked()
|