commit | 9601383b2590186ba6740b56c1fc87f3d23c7ebc | [log] [tgz] |
---|---|---|
author | Adam Bookatz <bookatz@google.com> | Fri Mar 19 13:15:54 2021 -0700 |
committer | Adam Bookatz <bookatz@google.com> | Fri Mar 19 20:28:38 2021 +0000 |
tree | 1e8daa52840bfbe87de7105c174b4d870901163d | |
parent | 1bdbcffaa16dc5e5e1ca2992ca339957ee7a937e [diff] |
Fix error in MeasuredEnergySnapshot voltage The voltage algorithm didn't seem quite right; e.g. if avgVoltageMV == 1, this would give the wrong value. We presumably should round off, not up. Indeed, the tests in MeasuredEnergySnapshotTest already do so. Bug: 173765509 Test: atest BatteryStatsTests Change-Id: Iefc5011d2df01b2f24dd13145d39fdc4de34753f