commit | 515f5b5e5a60380a71c090cceee58b5090d958c1 | [log] [tgz] |
---|---|---|
author | Andrei Ciubotariu <aciubotariu@google.com> | Wed Feb 12 21:31:23 2025 -0800 |
committer | Andrei Ciubotariu <aciubotariu@google.com> | Wed Feb 19 16:13:44 2025 -0800 |
tree | 095c5e255f903bea36398557bce1234d0017e566 | |
parent | 9e6bd0b8bc6f9d7f7aa9dbe6126a8e4936c0f5b3 [diff] |
BatteryMonitor: Ensure batteryHealthData has value when needed Since batteryHealthData is annotated in the AIDL with @nullable, ensure that the std::optional that encloses it has a value when a field needs to be assigned to batteryHealthData. If no batteryHealthData updates are needed, the optional remains "valueless". Bug: 396737015 Test: Manual Flag: EXEMPT bugfix Change-Id: Ica6f20656a566054d7cbaaf339813be6e0e93b78