/frameworks/minikin/tests/unittest/ |
D | FontLanguageListCacheTest.cpp | 33 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 …]
|
D | LocaleListTest.cpp | 29 return LocaleListCache::getById(LocaleListCache::getId(localeStr)); in getLocaleList()
|
D | FontFamilyTest.cpp | 31 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()
|
D | HyphenatorMapTest.cpp | 136 const uint32_t id = LocaleListCache::getId(localeStr); in getLocale() 137 const LocaleList& locales = LocaleListCache::getById(id); in getLocale()
|
D | LayoutCacheTest.cpp | 215 paint1.localeListId = LocaleListCache::getId("en-US"); in TEST() 219 paint2.localeListId = LocaleListCache::getId("ja-JP"); in TEST()
|
D | LineBreakerTestHelper.h | 51 mLocaleListId = LocaleListCache::getId(lang); in ConstantRun()
|
D | OptimalLineBreakerTest.cpp | 82 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()
|
D | GreedyLineBreakerTest.cpp | 81 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()
|
D | FontCollectionItemizeTest.cpp | 112 return LocaleListCache::getById(LocaleListCache::getId(locale_string)); in registerAndGetLocaleList()
|
/frameworks/minikin/libs/minikin/ |
D | LocaleListCache.h | 29 class LocaleListCache { 51 LocaleListCache(); // Singleton 52 ~LocaleListCache() {} in ~LocaleListCache() 58 static LocaleListCache& getInstance() { in getInstance() 59 static LocaleListCache instance; in getInstance()
|
D | LocaleListCache.cpp | 31 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()
|
D | LineBreakerUtil.h | 59 const LocaleList& localeList = LocaleListCache::getById(localeListId); in getEffectiveLocale() 186 uint32_t localeListId = LocaleListCache::kInvalidListId;
|
D | FontCollection.cpp | 178 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()
|
D | FontFamily.cpp | 111 : FontFamily(LocaleListCache::kEmptyListId, variant, std::move(fonts), in FontFamily() 119 mIsColorEmoji(LocaleListCache::getById(localeListId).getEmojiStyle() == in FontFamily()
|
D | Android.bp | 42 "LocaleListCache.cpp",
|
D | GreedyLineBreaker.cpp | 327 uint32_t localeListId = LocaleListCache::kInvalidListId; in process()
|
D | Locale.cpp | 34 return LocaleListCache::getId(locales); in registerLocaleList()
|
D | LayoutCore.cpp | 462 const LocaleList& localeList = LocaleListCache::getById(paint.localeListId); in LayoutPiece()
|
/frameworks/minikin/tests/util/ |
D | FontTestUtils.cpp | 137 return std::make_shared<FontFamily>(LocaleListCache::getId(lang), FamilyVariant::DEFAULT, in buildFontFamily()
|