summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Ming-Shin Lu <lumark@google.com> 2022-03-22 23:54:04 +0800
committer Ming-Shin Lu <lumark@google.com> 2022-06-24 16:55:46 +0800
commitdf6c781047ecaa044272f0b8663328c199a56362 (patch)
tree55946d45f5a39b55e13d92e8a84bc664ee0ed969 /libs/androidfw/StringPool.cpp
parent5c91bf2dcfc0dc2c96c191cb738c25ec5fc3da70 (diff)
Introduce InputMethodInfoUtils and SubTypeUtils
This is the first refactoring CL to clean up InputMethodUtils with moving some util methods regarding filtering IME info to a new dedicated class for easier maintaince: - getDefaultEnabledImes - isSystemImeThatHasSubtypeOf (make it as private method) - chooseSystemVoiceIme - getMostApplicableDefaultIME - getFallbackLocaleForDefaultIme (make it as private method) - SEARCH_ORDER_OF_FALLBACK_LOCALES (make it as private field) - ENGLISH_LOCALE (make it as private field) Also clean up other dependencies fields / methods in InputMethodUtils that related to the above methods to the new added SubTypeUtils and LocaleUtils class. SubTypeUtils: - SUBTYPE_MODE_ANY - SUBTYPE_MODE_KEYBOARD - containsSubtypeOf LocaleUtils: - getLanguageFromLocaleString - getSystemLocaleFromContext This is a machanical refactoring CL and it should not have additional behavior change. Bug: 235661780 Test: build Test: atest CtsInputMethodTestCases InputMethodUtilTests Change-Id: I7ebea2d606fea0c2d5404b12d611964103bc34d3
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions