Merge "Zero out WiFi duration and power if ControllerActivityCounter is null" into sc-qpr1-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
c410f29893
@@ -215,6 +215,9 @@ public class WifiPowerCalculator extends PowerCalculator {
|
|||||||
+ "ms tx=" + txTime + "ms power=" + formatCharge(
|
+ "ms tx=" + txTime + "ms power=" + formatCharge(
|
||||||
powerDurationAndTraffic.powerMah));
|
powerDurationAndTraffic.powerMah));
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
powerDurationAndTraffic.durationMs = 0;
|
||||||
|
powerDurationAndTraffic.powerMah = 0;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
final long wifiRunningTime = u.getWifiRunningTime(rawRealtimeUs, statsType) / 1000;
|
final long wifiRunningTime = u.getWifiRunningTime(rawRealtimeUs, statsType) / 1000;
|
||||||
|
|||||||
Reference in New Issue
Block a user