diff options
author | Bookatz <bookatz@google.com> | 2017-07-21 09:03:23 -0700 |
---|---|---|
committer | Bookatz <bookatz@google.com> | 2017-07-21 15:26:13 -0700 |
commit | 993a0be6760e4109b0a89458dd11a729c77f40ba (patch) | |
tree | a58cf77624fa1a9bfd2a0af2ebd337a97e7bfe63 /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | 484115b77d4388a4167a01402948d0bdb67469f2 (diff) |
Batterystats: fix inappropriate bg timebase reset
Previously, the background timebases (of a Uid) were reset when the Uid
resets in the wrong place. This caused StopwatchTimer.reset() to have the timesbase's old value to keep
track of its mUpdateTime. The solution is to call TimeBase.init at the
start of Uid.reset(), instead of calling TimeBase.reset() at the end of
Uid.reset().
Bug: 62352334
Test: runtest -x frameworks/base/core/tests/coretests/src/com/android/internal/os/BatteryStatsTests.java
Change-Id: I23c886544e18f154fc226cc81c22c3ea70fb4c7e
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions