BatteryStats: Fix issue with method parameter order...

Argh, this explains some weird instances of negative power
given to Wakelock usage. Realtime and uptime were switched in the
parameter list, and since they're both longs, compiler was happy.

Bug:22295225
Change-Id: I6759504f2690baf66af567d8b1a6d0478bc22228
This commit is contained in:
Adam Lesinski
2015-07-06 10:17:24 -07:00
parent d3ecb3e6f0
commit f7808b7cf0

View File

@@ -30,8 +30,8 @@ public class WakelockPowerCalculator extends PowerCalculator {
}
@Override
public void calculateApp(BatterySipper app, BatteryStats.Uid u, long rawUptimeUs,
long rawRealtimeUs, int statsType) {
public void calculateApp(BatterySipper app, BatteryStats.Uid u, long rawRealtimeUs,
long rawUptimeUs, int statsType) {
long wakeLockTimeUs = 0;
final ArrayMap<String, ? extends BatteryStats.Uid.Wakelock> wakelockStats =
u.getWakelockStats();