Merge "Zero out WiFi duration and power if ControllerActivityCounter is null" into sc-qpr1-dev am: c410f29893 am: bfe149f2ed
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15934611 Change-Id: I19fdba5bffb025cb61f4de03fe8cf78c3b7c479b
This commit is contained in:
@@ -215,6 +215,9 @@ public class WifiPowerCalculator extends PowerCalculator {
|
||||
+ "ms tx=" + txTime + "ms power=" + formatCharge(
|
||||
powerDurationAndTraffic.powerMah));
|
||||
}
|
||||
} else {
|
||||
powerDurationAndTraffic.durationMs = 0;
|
||||
powerDurationAndTraffic.powerMah = 0;
|
||||
}
|
||||
} else {
|
||||
final long wifiRunningTime = u.getWifiRunningTime(rawRealtimeUs, statsType) / 1000;
|
||||
|
||||
Reference in New Issue
Block a user