Home
last modified time | relevance | path

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

/frameworks/minikin/include/minikin/
DFontCollection.h45 std::vector<Run> itemize(U16StringPiece text, FontStyle style, uint32_t localeListId,
49 std::vector<Run> itemize(U16StringPiece text, FontStyle style, uint32_t localeListId, in itemize() argument
51 return itemize(text, style, localeListId, familyVariant, text.size()); in itemize()
89 uint32_t localeListId,
92 uint32_t calcFamilyScore(uint32_t ch, uint32_t vs, FamilyVariant variant, uint32_t localeListId,
95 uint32_t calcCoverageScore(uint32_t ch, uint32_t vs, uint32_t localeListId,
DMinikinPaint.h57 localeListId(0), in MinikinPaint()
70 uint32_t localeListId; member
87 fontFlags == paint.fontFlags && localeListId == paint.localeListId &&
100 .update(localeListId) in hash()
DMeasuredText.h90 uint32_t getLocaleListId() const override { return mPaint.localeListId; } in getLocaleListId()
120 ReplacementRun(const Range& range, float width, uint32_t localeListId) in ReplacementRun() argument
121 : Run(range), mWidth(width), mLocaleListId(localeListId) {} in ReplacementRun()
227 void addReplacementRun(int32_t start, int32_t end, float width, uint32_t localeListId) { in addReplacementRun() argument
229 std::make_unique<ReplacementRun>(Range(start, end), width, localeListId)); in addReplacementRun()
DFontFamily.h38 FontFamily(uint32_t localeListId, FamilyVariant variant, std::vector<Font>&& fonts,
43 uint32_t localeListId() const { return mLocaleListId; } in localeListId() function
DLayoutCache.h53 mLocaleListId(paint.localeListId), in LayoutCacheKey()
/frameworks/minikin/libs/minikin/
DFontCollection.cpp127 uint32_t localeListId, in calcFamilyScore() argument
129 const uint32_t coverageScore = calcCoverageScore(ch, vs, localeListId, fontFamily); in calcFamilyScore()
135 const uint32_t localeScore = calcLocaleMatchingScore(localeListId, *fontFamily); in calcFamilyScore()
154 uint32_t FontCollection::calcCoverageScore(uint32_t ch, uint32_t vs, uint32_t localeListId, in calcCoverageScore() argument
178 switch (LocaleListCache::getById(localeListId).getEmojiStyle()) { in calcCoverageScore()
218 const LocaleList& fontLocaleList = LocaleListCache::getById(fontFamily.localeListId()); in calcLocaleMatchingScore()
253 uint32_t localeListId, in getFamilyForChar() argument
270 const uint32_t score = calcFamilyScore(ch, vs, variant, localeListId, family); in getFamilyForChar()
290 return getFamilyForChar(ch, vs, localeListId, variant); in getFamilyForChar()
372 uint32_t localeListId, in itemize() argument
[all …]
DLineBreakerUtil.h58 inline Locale getEffectiveLocale(uint32_t localeListId) { in getEffectiveLocale() argument
59 const LocaleList& localeList = LocaleListCache::getById(localeListId); in getEffectiveLocale()
152 if (localeListId != newLocaleListId) { in updateLocaleIfNecessary()
156 localeListId = newLocaleListId; in updateLocaleIfNecessary()
186 uint32_t localeListId = LocaleListCache::kInvalidListId;
DFontFamily.cpp114 FontFamily::FontFamily(uint32_t localeListId, FamilyVariant variant, std::vector<Font>&& fonts, in FontFamily() argument
116 : mLocaleListId(localeListId), in FontFamily()
119 mIsColorEmoji(LocaleListCache::getById(localeListId).getEmojiStyle() == in FontFamily()
DGreedyLineBreaker.cpp327 uint32_t localeListId = LocaleListCache::kInvalidListId; in process() local
334 if (localeListId != newLocaleListId) { in process()
338 localeListId = newLocaleListId; in process()
DLayoutCore.cpp359 textBuf.substr(range), paint.fontStyle, paint.localeListId, paint.familyVariant); in LayoutPiece()
462 const LocaleList& localeList = LocaleListCache::getById(paint.localeListId); in LayoutPiece()
/frameworks/minikin/tests/perftests/
DFontCollection.cpp95 paint.localeListId = registerLocaleList(ITEMIZE_TEST_CASES[testIndex].languageTag); in BM_FontCollection_itemize()
100 paint.localeListId, paint.familyVariant); in BM_FontCollection_itemize()
/frameworks/minikin/tests/unittest/
DFontFamilyTest.cpp31 uint32_t localeListId = LocaleListCache::getId(input); in createLocaleList() local
32 return LocaleListCache::getById(localeListId); in createLocaleList()
36 uint32_t localeListId = LocaleListCache::getId(input); in createLocale() local
37 return LocaleListCache::getById(localeListId)[0]; in createLocale()
DLayoutCacheTest.cpp215 paint1.localeListId = LocaleListCache::getId("en-US"); in TEST()
219 paint2.localeListId = LocaleListCache::getId("ja-JP"); in TEST()
DFontCollectionItemizeTest.cpp67 const uint32_t localeListId = registerLocaleList(localeList); in itemize() local
68 auto result = collection->itemize(U16StringPiece(buf, len), style, localeListId, in itemize()
73 auto resultWithRunMax = collection->itemize(U16StringPiece(buf, len), style, localeListId, in itemize()
DGreedyLineBreakerTest.cpp81 paint.localeListId = LocaleListCache::getId(lang); in doLineBreak()
DOptimalLineBreakerTest.cpp82 paint.localeListId = LocaleListCache::getId(lang); in doLineBreak()
/frameworks/base/libs/hwui/hwui/
DMinikinUtils.cpp44 minikinPaint.localeListId = paint->getMinikinLocaleListId(); in prepareMinikinPaint()