summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorYohei Yukawa <yukawa@google.com>2016-02-24 18:25:16 -0800
committerYohei Yukawa <yukawa@google.com>2016-02-24 18:25:16 -0800
commit102ff0726dad764df741e41766d78fcfb829184a (patch)
treeea64d8796feaaa0b4949e44ac098eb1dca11aae6 /tools/aapt2/java/JavaClassGenerator_test.cpp
parentfc843713bc3c5558a7288c02aabe2474264e4ca3 (diff)
Add a utility method to filter locales.
This is a preparation CL to take secondary system locales into account in InputMethodUtils#getImplicitlyApplicableSubtypesLocked(). Suppose the following situation: available subtypes: en-US, en-IN, and en-GB, fr, fr-CA, fr-CH, fr (QWERTZ) system locales: en-GB, en-US, fr-MC Basically we want to have at most one subtype for each language appears in system locales. Hence the goal of this utility method is to filter the above available subtypes into en-GB and fr. In other word, we do not want to enable both en-GB and en-US subtypes in this scenario. This CL introduces LocaleUtils#filterByLanguage() for this purpose, with some unit tests. Note that that method is not used in production yet. Bug: 27129703 Change-Id: I315cf3722a06e00bdbfac284c4949578da8fe78d
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions