Home
last modified time | relevance | path

Searched refs:langTag (Results 1 – 3 of 3) 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/libs/minikin/
DLocaleListCache.cpp82 char langTag[ULOC_FULLNAME_CAPACITY]; in parseLocaleList() local
88 size_t length = toLanguageTag(langTag, ULOC_FULLNAME_CAPACITY, localeStr); in parseLocaleList()
89 Locale locale(StringPiece(langTag, length)); in parseLocaleList()
/frameworks/base/core/java/android/view/textclassifier/
DTextClassifierImpl.java479 for (String langTag : supportedLocalesStr.split(",")) { in fromPath()
480 supportedLocales.add(Locale.forLanguageTag(langTag)); in fromPath()