summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Suprabh Shukla <suprabh@google.com> 2023-06-15 16:43:57 -0700
committer Suprabh Shukla <suprabh@google.com> 2023-06-26 18:31:06 -0700
commit2c3dc9b1ccaa9d49ec3313cbc250c672c61e0f2f (patch)
treedae3024d549237e78ccac84b24dcabd3d122ad8e /libs/androidfw/StringPool.cpp
parent45622354e368f217e1d57ebaa1dce4a5fe883b64 (diff)
Removing TimeSparseArray
The only added value in this subclass comes from the added methods to binary search on its keys. Pulling these methods up to the base class LongSparseArray so they can be useful for all its instances. Renamed variables and methods to be more generic and replaced the handwritten binary search with an equivalent call to Arrays.binarySearch to reduce maintenance overhead. All occurrences of TimeSparseArray have been replaced with LongSparseArray. No behavior change is expected. Test: Builds, boots. Test: atest FrameworksCoreTests:LongSparseArrayTest Bug: 282264041 Change-Id: I6e87560ad5afe85118c9ffaac9ea8a506a181af0
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions