Home
last modified time | relevance | path

Searched refs:localeListId (Results 1 – 21 of 21) sorted by relevance

/frameworks/minikin/include/minikin/
DMinikinPaint.h58 localeListId(0), in MinikinPaint()
71 uint32_t localeListId; member
90 fontFlags == paint.fontFlags && localeListId == paint.localeListId &&
103 .update(localeListId) in hash()
DFontCollection.h161 std::vector<Run> itemize(U16StringPiece text, FontStyle style, uint32_t localeListId,
165 std::vector<Run> itemize(U16StringPiece text, FontStyle style, uint32_t localeListId, in itemize() argument
167 return itemize(text, style, localeListId, familyVariant, text.size()); in itemize()
237 FamilyMatchResult getFamilyForChar(uint32_t ch, uint32_t vs, uint32_t localeListId,
240 uint32_t calcFamilyScore(uint32_t ch, uint32_t vs, FamilyVariant variant, uint32_t localeListId,
243 uint32_t calcCoverageScore(uint32_t ch, uint32_t vs, uint32_t localeListId,
DFontFamily.h45 static std::shared_ptr<FontFamily> create(uint32_t localeListId, FamilyVariant variant,
64 uint32_t localeListId() const { return mLocaleListId; } in localeListId() function
110 FontFamily(uint32_t localeListId, FamilyVariant variant,
DMeasuredText.h149 uint32_t getLocaleListId() const override { return mPaint.localeListId; } in getLocaleListId()
187 ReplacementRun(const Range& range, float width, uint32_t localeListId) in ReplacementRun() argument
188 : Run(range), mWidth(width), mLocaleListId(localeListId) {} in ReplacementRun()
DFont.h200 uint32_t localeListId) in Font() argument
204 mLocaleListId(localeListId), in Font()
DLayoutCache.h52 mLocaleListId(paint.localeListId), in LayoutCacheKey()
/frameworks/minikin/fuzz/locale_fuzzer/
Dlocale_fuzzer.cpp34 uint32_t localeListId = fdp.ConsumeIntegralInRange<uint32_t>(0, id); in LLVMFuzzerTestOneInput() local
35 const LocaleList& locales = LocaleListCache::getById(localeListId); in LLVMFuzzerTestOneInput()
36 std::string langTag = getLocaleString(localeListId); in LLVMFuzzerTestOneInput()
/frameworks/base/libs/hwui/jni/fonts/
DFontFamily.cpp90 uint32_t localeListId = family->family->localeListId(); in FontFamily_getLangTags() local
91 if (localeListId == 0) { in FontFamily_getLangTags()
94 std::string langTags = minikin::getLocaleString(localeListId); in FontFamily_getLangTags()
DFont.cpp114 uint32_t localeListId = minikin::registerLocaleList(langTagStr.c_str()); in Font_Builder_build() local
119 .setLocaleListId(localeListId) in Font_Builder_build()
249 uint32_t localeListId = font->font->getLocaleListId(); in Font_getLocaleList() local
250 if (localeListId == 0) { in Font_getLocaleList()
253 std::string langTags = minikin::getLocaleString(localeListId); in Font_getLocaleList()
/frameworks/minikin/libs/minikin/
DLineBreakerUtil.h69 inline Locale getEffectiveLocale(uint32_t localeListId) { in getEffectiveLocale() argument
70 const LocaleList& localeList = LocaleListCache::getById(localeListId); in getEffectiveLocale()
148 const bool isUpdate = localeListId != newLocaleListId || in update()
152 localeListId = newLocaleListId; in update()
160 return LocaleListCache::getById(localeListId); in getCurrentLocaleList()
168 uint32_t localeListId = LocaleListCache::kInvalidListId;
DFontCollection.cpp324 uint32_t localeListId, in calcFamilyScore() argument
326 const uint32_t coverageScore = calcCoverageScore(ch, vs, localeListId, fontFamily); in calcFamilyScore()
332 const uint32_t localeScore = calcLocaleMatchingScore(localeListId, *fontFamily); in calcFamilyScore()
367 uint32_t FontCollection::calcCoverageScore(uint32_t ch, uint32_t vs, uint32_t localeListId, in calcCoverageScore() argument
391 switch (LocaleListCache::getById(localeListId).getEmojiStyle()) { in calcCoverageScore()
431 const LocaleList& fontLocaleList = LocaleListCache::getById(fontFamily.localeListId()); in calcLocaleMatchingScore()
466 uint32_t localeListId, in getFamilyForChar() argument
484 const uint32_t score = calcFamilyScore(ch, vs, variant, localeListId, family); in getFamilyForChar()
507 return getFamilyForChar(ch, vs, localeListId, variant); in getFamilyForChar()
623 uint32_t fontLocaleId = family->localeListId(); in filterFamilyByLocale()
[all …]
DFontFamily.cpp58 std::shared_ptr<FontFamily> FontFamily::create(uint32_t localeListId, FamilyVariant variant, in create() argument
63 return std::shared_ptr<FontFamily>(new FontFamily(localeListId, variant, std::move(fonts), in create()
133 FontFamily::FontFamily(uint32_t localeListId, FamilyVariant variant, in FontFamily() argument
143 mLocaleListId(localeListId), in FontFamily()
148 mIsColorEmoji(LocaleListCache::getById(localeListId).getEmojiStyle() == in FontFamily()
DDebug.cpp114 << ", localeList=" << getLocaleString(paint.localeListId) in toString()
DLayoutCore.cpp297 paint.font->itemize(substr, paint.fontStyle, paint.localeListId, paint.familyVariant); in LayoutPiece()
385 const LocaleList& localeList = LocaleListCache::getById(paint.localeListId); in LayoutPiece()
/frameworks/minikin/tests/perftests/
DFontCollection.cpp93 paint.localeListId = registerLocaleList(ITEMIZE_TEST_CASES[testIndex].languageTag); in BM_FontCollection_itemize()
98 paint.localeListId, paint.familyVariant); in BM_FontCollection_itemize()
/frameworks/minikin/tests/unittest/
DFontFamilyTest.cpp32 uint32_t localeListId = LocaleListCache::getId(input); in createLocaleList() local
33 return LocaleListCache::getById(localeListId); in createLocaleList()
37 uint32_t localeListId = LocaleListCache::getId(input); in createLocale() local
38 return LocaleListCache::getById(localeListId)[0]; in createLocale()
895 ASSERT_EQ(expected->localeListId(), actual->localeListId()); in expectFontFamilyEquals()
DLayoutCacheTest.cpp223 paint1.localeListId = LocaleListCache::getId("en-US"); in TEST()
227 paint2.localeListId = LocaleListCache::getId("ja-JP"); in TEST()
DGreedyLineBreakerTest.cpp94 paint.localeListId = LocaleListCache::getId(lang); in doLineBreakForJapanese()
115 paint.localeListId = LocaleListCache::getId(lang); in doLineBreakForKorean()
136 paint.localeListId = LocaleListCache::getId(lang); in doLineBreak()
158 paint.localeListId = LocaleListCache::getId("en-US"); in doLineBreakWithNoHyphenSpan()
165 paint.localeListId = LocaleListCache::getId("en-US"); in doLineBreakWithNoHyphenSpan()
172 paint.localeListId = LocaleListCache::getId("en-US"); in doLineBreakWithNoHyphenSpan()
196 paint.localeListId = LocaleListCache::getId("en-US"); in doLineBreakForBounds()
219 paint.localeListId = LocaleListCache::getId("en-US"); in doLineBreakForLetterSpacing()
244 paint.localeListId = LocaleListCache::getId("en-US"); in TEST_F()
DOptimalLineBreakerTest.cpp85 paint.localeListId = LocaleListCache::getId(lang); in doLineBreak()
103 paint.localeListId = LocaleListCache::getId(lang); in doLineBreakForJapanese()
121 paint.localeListId = LocaleListCache::getId("en-US"); in doLineBreakWithNoHyphenSpan()
127 paint.localeListId = LocaleListCache::getId("en-US"); in doLineBreakWithNoHyphenSpan()
133 paint.localeListId = LocaleListCache::getId("en-US"); in doLineBreakWithNoHyphenSpan()
153 paint.localeListId = LocaleListCache::getId("en-US"); in doLineBreakForBounds()
211 paint.localeListId = LocaleListCache::getId("en-US"); in doLineBreakWithLetterSpacing()
1954 paint.localeListId = LocaleListCache::getId("en-US"); in TEST_F()
DFontCollectionItemizeTest.cpp73 const uint32_t localeListId = registerLocaleList(localeList); in itemize() local
74 auto result = collection->itemize(U16StringPiece(buf, len), style, localeListId, in itemize()
79 auto resultWithRunMax = collection->itemize(U16StringPiece(buf, len), style, localeListId, in itemize()
/frameworks/base/libs/hwui/hwui/
DMinikinUtils.cpp48 minikinPaint.localeListId = paint->getMinikinLocaleListId(); in prepareMinikinPaint()