diff options
author | Yohei Yukawa <yukawa@google.com> | 2018-11-20 18:46:05 -0800 |
---|---|---|
committer | Yohei Yukawa <yukawa@google.com> | 2018-11-20 18:46:05 -0800 |
commit | 7a712372d2f8667ea14a31ed74ff775ac1be4650 (patch) | |
tree | 93dd01d2b1e0cc9d79413c22b835791b6503b0e2 /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | 9b89a0bdffda13253e0f8c99b40f57c737a8c777 (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_test.cpp')
0 files changed, 0 insertions, 0 deletions