commit | 62a9ff67184381c1543e8851cd34424183afac7a | [log] [tgz] |
---|---|---|
author | Michael Wachenschwanz <mwachens@google.com> | Mon May 24 21:54:06 2021 -0700 |
committer | Michael Wachenschwanz <mwachens@google.com> | Fri Jul 02 15:58:27 2021 -0700 |
tree | 8d68e6a6592e25fce3295dccd2bd045602477c66 | |
parent | bae80e0db85855ee1144be6f4149dd21a02badf1 [diff] |
Move RPM stats collection out of BatteryStatsImpl.mLock Querying RPM stats on device with a large number of StateResidency info can take a long time. Move the query to outside of the BatteryStats lock to reduce the chance of lock contention. Bug: 185970842 Test: atest android.cts.statsd.validation.ValidationTests#testPartialWakelock Change-Id: I1c69b3f9c071e5d758cf4b22855c4b0ec221a5cf