summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator.cpp
diff options
context:
space:
mode:
authorYohei Yukawa <yukawa@google.com>2018-11-20 18:46:05 -0800
committerYohei Yukawa <yukawa@google.com>2018-11-20 18:46:05 -0800
commit7a712372d2f8667ea14a31ed74ff775ac1be4650 (patch)
tree93dd01d2b1e0cc9d79413c22b835791b6503b0e2 /tools/aapt2/java/JavaClassGenerator.cpp
parent9b89a0bdffda13253e0f8c99b40f57c737a8c777 (diff)
Replace HashMap with ArrayMap in LocaleUtils
LocaleUtils#filterByLanguage() always perform sort before returning the result hence enumeration order of HashMap/ArrayMap does not affect the final result. Hence we should be able to safely replace HashMap with ArrayMap. Also, ArrayMap#valueAt() allows us to copy values into an array without iterator object. Bug: 119839847 Test: atest FrameworksServicesTests:com.android.server.inputmethod.LocaleUtilsTest Change-Id: I898ffcf18110538cbb777e85df21c815e8ed030c
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions