Home
last modified time | relevance | path

Searched refs:langTag (Results 1 – 5 of 5) sorted by relevance

/frameworks/minikin/tests/unittest/
DLocaleListTest.cpp33 std::string langTag = "en-US"; in TEST() local
34 EXPECT_EQ(1U, getLocaleList(langTag).size()); in TEST()
35 EXPECT_EQ("en-Latn-US", getLocaleList(langTag)[0].getString()); in TEST()
37 langTag = "en-US,fr-FR"; in TEST()
38 EXPECT_EQ(2U, getLocaleList(langTag).size()); in TEST()
39 EXPECT_EQ("en-Latn-US", getLocaleList(langTag)[0].getString()); in TEST()
40 EXPECT_EQ("fr-Latn-FR", getLocaleList(langTag)[1].getString()); in TEST()
42 langTag = "en-US,en-US,fr-FR"; in TEST()
43 EXPECT_EQ(2U, getLocaleList(langTag).size()); in TEST()
44 EXPECT_EQ("en-Latn-US", getLocaleList(langTag)[0].getString()); in TEST()
[all …]
/frameworks/minikin/fuzz/locale_fuzzer/
Dlocale_fuzzer.cpp36 std::string langTag = getLocaleString(localeListId); in LLVMFuzzerTestOneInput() local
45 LocaleListCache::writeTo(&fakeWriter, LocaleListCache::getId(langTag)); in LLVMFuzzerTestOneInput()
48 LocaleListCache::writeTo(&writer, LocaleListCache::getId(langTag)); in LLVMFuzzerTestOneInput()
/frameworks/minikin/libs/minikin/
DLocaleListCache.cpp86 char langTag[ULOC_FULLNAME_CAPACITY]; in parseLocaleList() local
92 size_t length = toLanguageTag(langTag, ULOC_FULLNAME_CAPACITY, localeStr); in parseLocaleList()
93 Locale locale(StringPiece(langTag, length)); in parseLocaleList()
/frameworks/base/core/java/android/view/inputmethod/
DInputMethodSubtype.java512 final String langTag = locale.toLanguageTag(); in getCanonicalizedLanguageTag() local
513 if (!TextUtils.isEmpty(langTag)) { in getCanonicalizedLanguageTag()
514 result = ULocale.createCanonical(ULocale.forLanguageTag(langTag)).toLanguageTag(); in getCanonicalizedLanguageTag()
/frameworks/base/core/java/android/view/
DInputDevice.java520 String langTag; in InputDevice() local
521 langTag = ULocale in InputDevice()
524 mKeyboardLanguageTag = TextUtils.equals(langTag, "und") ? null : langTag; in InputDevice()