[DO NOT MERGE] Reset mTrackingReportedValues in endSample()

Otherwise, when next SamplingTimer.update() is called, it will take
zero as start time.

Bug: 142466892
Test: NA.

Change-Id: I04625fadd8fd8bab3ba83b8e7cd10737ad34e60b
(cherry picked from commit c7d49e01dd)
This commit is contained in:
Hui Yu
2019-11-22 18:35:12 -08:00
parent 248a73969f
commit 7293dfca7c

View File

@@ -1868,6 +1868,7 @@ public class BatteryStatsImpl extends BatteryStats {
mCount = computeCurrentCountLocked();
mUnpluggedReportedTotalTime = mCurrentReportedTotalTime = 0;
mUnpluggedReportedCount = mCurrentReportedCount = 0;
mTrackingReportedValues = false;
}
public void setUpdateVersion(int version) {