diff options
author | Bookatz <bookatz@google.com> | 2017-05-24 12:00:17 -0700 |
---|---|---|
committer | Bookatz <bookatz@google.com> | 2017-05-24 12:00:17 -0700 |
commit | 8c6f3c507fc77d07ab0c8edd2ff835801cc71e4d (patch) | |
tree | 4082f1e4410d3ffc04e321efa76bae85520cd5e6 /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | 61e2b158661f75f1e128a6bd81bd296cadeb84b0 (diff) |
Fix batterystat Counter misreporting when charging
The BatteryStatsImpl.Counter would previously increment the count even
when the timeBase was off. Then, when the timeBase was turned back on,
the count would be decreased back to the correct value. Thus, when the
timeBase was on, the reported count would be correct, but when the
timeBase was off, the reported count would be wrong (too high). Here, we
fix this.
We also make some other minor improvements.
Bug: 36728346
Test: runtest -x frameworks/base/core/tests/coretests/src/com/android/internal/os/BatteryStatsTests.java
Change-Id: I2fa566a8a4cad4cdff0e6caef37b1eef36a3f5c4
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions