commit | 5effd856f5e7ed5041c843fd16b08b8ee8414f03 | [log] [tgz] |
---|---|---|
author | Dmitri Plotnikov <dplotnikov@google.com> | Wed Aug 11 14:55:58 2021 -0700 |
committer | Dmitri Plotnikov <dplotnikov@google.com> | Fri Aug 20 18:29:32 2021 -0700 |
tree | 8505f16e5d2b3d4ab5f2945d1df39a8ac71a9c5c | |
parent | e4343a09d7b4a468778e73c140ad8a2c0f751e0d [diff] |
Add MultiStateCounter This native object is used to track values per-state. For example, if the state changes from 0 to 1 between two updateValue calls, the delta between the values is distributed to the states 0 and 1 in accordance with the time spent in those states. Bug: 197162116 Test: atest libbattery_test Change-Id: Ie304db5c93f4aa9676d12d0a8ab53b6867b24fff