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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user