diff options
| author | 2025-02-18 17:52:27 -0800 | |
|---|---|---|
| committer | 2025-02-19 12:18:38 -0800 | |
| commit | e036a1336301c9ed7696e1aa2ef0ec8fa872752b (patch) | |
| tree | e777dbc02b50695d4bfc44c765abcb1745fb87b7 /libs/androidfw/FileStream.cpp | |
| parent | 241cfec934275156f23dcda47360df7e0e1e6471 (diff) | |
Reduce array locking in LongArrayMultiStateCounter
Do this by checking if the data is all-zeros and returning
false in that case, without locking the java long array in JNI
Bug: 395954049
Test: atest PowerStatsTests; atest PowerStatsTests:BatteryUsageStatsProviderPerfTest#getBatteryUsageStats_accumulated
Flag: EXEMPT bugfix
Change-Id: I81639d9d571afcbb61ea047d8b2ab5e1b2bcf6f0
Diffstat (limited to 'libs/androidfw/FileStream.cpp')
0 files changed, 0 insertions, 0 deletions