commit | 68778ba87d7061209f745ce306a84f4d5dc930d6 | [log] [tgz] |
---|---|---|
author | Jing Ji <jji@google.com> | Tue Oct 20 11:50:43 2020 -0700 |
committer | Jing Ji <jji@google.com> | Tue Oct 20 13:30:28 2020 -0700 |
tree | 0dfe1ff3cfa51305a22a3ff5cdb09f03da69e482 | |
parent | c1271a4f2f9acadab19c9bc4d26ffa0cda8b53df [diff] |
Make a copy of WorkSources before noting the battery stats The battery stats are noted asynced, the work sources could be mutated before they are actualy recorded into battery stats. So make a copy of them prior to the noting. Bug: 169573447 Test: atest FrameworksCoreTests:BatteryStatsTests Test: atest CtsIncidentHostTestCases Test: atest BatteryStatsDumpsysTest Change-Id: I6326f7d66f9590ce544fc491fda07cd4397ef804