commit | ece94a7e3ed9b83e1b60d6f0343f00698b6c9776 | [log] [tgz] |
---|---|---|
author | Adam Bookatz <bookatz@google.com> | Wed Mar 17 18:36:12 2021 -0700 |
committer | Adam Bookatz <bookatz@google.com> | Wed Mar 17 18:36:12 2021 -0700 |
tree | 7f9a4384a63e3ff8e97858b712110dc0ee41f020 | |
parent | 1bdbcffaa16dc5e5e1ca2992ca339957ee7a937e [diff] |
BatteryStatsImpl: SparseDoubleArray As a temporary measure, a Map<Uid,Double> had been used in intermediate calculations to store each uids measured energy values. For efficiency reasons, we convert this to a SparseDoubleArray, which we implement here. This is an alternative solution to ag/13907602. Bug: 182845832 Test: atest BatteryStatsTests Change-Id: Id5696e5fb6814da0889fde12f4bb8d2b5427c6fe