Home
last modified time | relevance | path

Searched refs:LocaleListCache (Results 1 – 19 of 19) sorted by relevance

/frameworks/minikin/tests/unittest/
DFontLanguageListCacheTest.cpp33 EXPECT_EQ(0UL, LocaleListCache::getId("")); in TEST()
35 EXPECT_EQ(LocaleListCache::getId("en"), LocaleListCache::getId("en")); in TEST()
36 EXPECT_NE(LocaleListCache::getId("en"), LocaleListCache::getId("jp")); in TEST()
38 EXPECT_EQ(LocaleListCache::getId("en,zh-Hans"), LocaleListCache::getId("en,zh-Hans")); in TEST()
39 EXPECT_NE(LocaleListCache::getId("en,zh-Hans"), LocaleListCache::getId("zh-Hans,en")); in TEST()
40 EXPECT_NE(LocaleListCache::getId("en,zh-Hans"), LocaleListCache::getId("jp")); in TEST()
41 EXPECT_NE(LocaleListCache::getId("en,zh-Hans"), LocaleListCache::getId("en")); in TEST()
42 EXPECT_NE(LocaleListCache::getId("en,zh-Hans"), LocaleListCache::getId("en,zh-Hant")); in TEST()
46 uint32_t enLangId = LocaleListCache::getId("en"); in TEST()
47 uint32_t jpLangId = LocaleListCache::getId("jp"); in TEST()
[all …]
DLocaleListTest.cpp29 return LocaleListCache::getById(LocaleListCache::getId(localeStr)); in getLocaleList()
DFontFamilyTest.cpp31 uint32_t localeListId = LocaleListCache::getId(input); in createLocaleList()
32 return LocaleListCache::getById(localeListId); in createLocaleList()
36 uint32_t localeListId = LocaleListCache::getId(input); in createLocale()
37 return LocaleListCache::getById(localeListId)[0]; in createLocale()
128 LocaleListCache::getId("ja-JP-u-lb-lb-strict"); in TEST()
DHyphenatorMapTest.cpp136 const uint32_t id = LocaleListCache::getId(localeStr); in getLocale()
137 const LocaleList& locales = LocaleListCache::getById(id); in getLocale()
DLayoutCacheTest.cpp215 paint1.localeListId = LocaleListCache::getId("en-US"); in TEST()
219 paint2.localeListId = LocaleListCache::getId("ja-JP"); in TEST()
DLineBreakerTestHelper.h51 mLocaleListId = LocaleListCache::getId(lang); in ConstantRun()
DOptimalLineBreakerTest.cpp82 paint.localeListId = LocaleListCache::getId(lang); in doLineBreak()
1330 builder.addReplacementRun(19, 21, 5 * CHAR_WIDTH, LocaleListCache::getId("en-US")); in TEST_F()
1423 builder.addReplacementRun(5, 11, 5 * CHAR_WIDTH, LocaleListCache::getId("en-US")); in TEST_F()
1512 builder.addReplacementRun(3, 5, 5 * CHAR_WIDTH, LocaleListCache::getId("ja-JP")); in TEST_F()
1665 builder.addReplacementRun(0, 5, 5 * CHAR_WIDTH, LocaleListCache::getId("en-US")); in TEST_F()
1667 builder.addReplacementRun(7, 12, 5 * CHAR_WIDTH, LocaleListCache::getId("en-US")); in TEST_F()
1669 builder.addReplacementRun(14, 19, 5 * CHAR_WIDTH, LocaleListCache::getId("en-US")); in TEST_F()
1671 builder.addReplacementRun(21, 26, 5 * CHAR_WIDTH, LocaleListCache::getId("en-US")); in TEST_F()
1804 builder.addReplacementRun(6, 11, 5 * CHAR_WIDTH, LocaleListCache::getId("en-US")); in TEST_F()
DGreedyLineBreakerTest.cpp81 paint.localeListId = LocaleListCache::getId(lang); in doLineBreak()
1034 builder.addReplacementRun(19, 20, 5 * CHAR_WIDTH, LocaleListCache::getId("en-US")); in TEST_F()
1129 builder.addReplacementRun(5, 11, 5 * CHAR_WIDTH, LocaleListCache::getId("en-US")); in TEST_F()
1217 builder.addReplacementRun(3, 5, 5 * CHAR_WIDTH, LocaleListCache::getId("ja-JP")); in TEST_F()
1368 builder.addReplacementRun(6, 11, 5 * CHAR_WIDTH, LocaleListCache::getId("en-US")); in TEST_F()
DFontCollectionItemizeTest.cpp112 return LocaleListCache::getById(LocaleListCache::getId(locale_string)); in registerAndGetLocaleList()
/frameworks/minikin/libs/minikin/
DLocaleListCache.h29 class LocaleListCache {
51 LocaleListCache(); // Singleton
52 ~LocaleListCache() {} in ~LocaleListCache()
58 static LocaleListCache& getInstance() { in getInstance()
59 static LocaleListCache instance; in getInstance()
DLocaleListCache.cpp31 const uint32_t LocaleListCache::kEmptyListId;
106 LocaleListCache::LocaleListCache() { in LocaleListCache() function in minikin::LocaleListCache
113 uint32_t LocaleListCache::getIdInternal(const std::string& locales) { in getIdInternal()
131 const LocaleList& LocaleListCache::getByIdInternal(uint32_t id) { in getByIdInternal()
DLineBreakerUtil.h59 const LocaleList& localeList = LocaleListCache::getById(localeListId); in getEffectiveLocale()
186 uint32_t localeListId = LocaleListCache::kInvalidListId;
DFontCollection.cpp178 switch (LocaleListCache::getById(localeListId).getEmojiStyle()) { in calcCoverageScore()
217 const LocaleList& localeList = LocaleListCache::getById(userLocaleListId); in calcLocaleMatchingScore()
218 const LocaleList& fontLocaleList = LocaleListCache::getById(fontFamily.localeListId()); in calcLocaleMatchingScore()
DFontFamily.cpp111 : FontFamily(LocaleListCache::kEmptyListId, variant, std::move(fonts), in FontFamily()
119 mIsColorEmoji(LocaleListCache::getById(localeListId).getEmojiStyle() == in FontFamily()
DAndroid.bp42 "LocaleListCache.cpp",
DGreedyLineBreaker.cpp327 uint32_t localeListId = LocaleListCache::kInvalidListId; in process()
DLocale.cpp34 return LocaleListCache::getId(locales); in registerLocaleList()
DLayoutCore.cpp462 const LocaleList& localeList = LocaleListCache::getById(paint.localeListId); in LayoutPiece()
/frameworks/minikin/tests/util/
DFontTestUtils.cpp137 return std::make_shared<FontFamily>(LocaleListCache::getId(lang), FamilyVariant::DEFAULT, in buildFontFamily()