commit | 633661ca8b1824f9a6f3e558cbd64a840ded1341 | [log] [tgz] |
---|---|---|
author | Yifan Hong <elsk@google.com> | Mon Feb 08 15:16:58 2021 -0800 |
committer | Yifan Hong <elsk@google.com> | Mon Feb 08 15:22:09 2021 -0800 |
tree | 340e87348590a1846c0bcb115dab6af91be5de01 | |
parent | 2af4c0663c88fd5a42b63b1615aa0a68a4fcaa73 [diff] |
health 2.1 impl: log values properly. getHealthInfo_2_1 calls UpdateHealthInfo, where a subclass may update health_info without updating the data in BatteryMonitor. Hence, calling battery_monitor_.logValues() isn't accurate. Log values properly by logging the updated health_info struct. Test: healthd kernel logs have correct data Fixes: 179326883 Change-Id: Ifab863746793abf3e3f1d5a458f05f4d9889bdfc