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()
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()
1510 builder.addReplacementRun(0, 5, 5 * CHAR_WIDTH, LocaleListCache::getId("en-US")); in TEST_F()
1511 builder.addReplacementRun(5, 8, 3 * CHAR_WIDTH, LocaleListCache::getId("en-US")); in TEST_F()
1512 builder.addReplacementRun(8, 11, 3 * CHAR_WIDTH, LocaleListCache::getId("en-US")); in TEST_F()
1513 builder.addReplacementRun(11, 19, 8 * CHAR_WIDTH, LocaleListCache::getId("en-US")); in TEST_F()
1514 builder.addReplacementRun(19, 24, 5 * CHAR_WIDTH, LocaleListCache::getId("en-US")); in TEST_F()
1587 builder.addReplacementRun(3, 5, 5 * CHAR_WIDTH, LocaleListCache::getId("ja-JP")); in TEST_F()
1740 builder.addReplacementRun(0, 5, 5 * CHAR_WIDTH, LocaleListCache::getId("en-US")); in TEST_F()
[all …]
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()
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;
109 LocaleListCache::LocaleListCache() { in LocaleListCache() function in minikin::LocaleListCache
116 uint32_t LocaleListCache::getIdInternal(const std::string& locales) { in getIdInternal()
134 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()