summaryrefslogtreecommitdiff
path: root/libs/battery/LongArrayMultiStateCounter.cpp
AgeCommit message (Collapse)Author
2024-11-06Fix native memory leak in Uint64ArrayRW Dmitri Plotnikov
Bug: 377547685 Test: adb shell dumpsys batterystats --usage; adb shell dumpsys -t 60 meminfo --unreachable `adb shell pidof system_server` | grep "unreachable allocations" Flag: EXEMPT bugfix Change-Id: I2287379427a8de732eda866dfcc3d4129dfb890d
2024-10-31A uint64 array wrapper for optimized allocation and copying Dmitri Plotnikov
Bug: 315052795 Bug: 357697495 Test: atest libbattery_test; atest FrameworksCoreTests Flag: EXEMPT bugfix Change-Id: I3c09c438131b3f67ef04436667e589d1d86aff71
2021-09-14Simplify initialization and add setValue to support parceling Dmitri Plotnikov
Bug: 197162116 Test: atest libbattery_test Change-Id: I4278206eab049d714c5278e6b10ba3155e17142f
2021-08-20Add MultiStateCounter Dmitri Plotnikov
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