/frameworks/minikin/include/minikin/ |
D | FontFamily.h | 38 FontFamily(uint32_t localeListId, FamilyVariant variant, 43 uint32_t localeListId = readLocaleListInternal(reader); in readFrom() local 48 fonts.emplace_back(Font::readFrom<typefaceReader>(reader, localeListId)); in readFrom() 50 return readFromInternal(reader, std::move(fonts), localeListId); in readFrom() 65 uint32_t localeListId() const { return mLocaleListId; } in localeListId() function 93 FontFamily(uint32_t localeListId, FamilyVariant variant, 102 uint32_t localeListId);
|
D | MinikinPaint.h | 57 localeListId(0), in MinikinPaint() 70 uint32_t localeListId; member 87 fontFlags == paint.fontFlags && localeListId == paint.localeListId && 100 .update(localeListId) in hash()
|
D | Font.h | 122 static std::shared_ptr<Font> readFrom(BufferReader* reader, uint32_t localeListId) { in readFrom() argument 127 new Font(style, typefaceMetadataReader, typefaceLoader, localeListId)); in readFrom() 149 uint32_t localeListId) in Font() argument 155 mLocaleListId(localeListId) {} in Font() 157 uint32_t localeListId) in Font() argument 161 mLocaleListId(localeListId) {} in Font()
|
D | FontCollection.h | 172 std::vector<Run> itemize(U16StringPiece text, FontStyle style, uint32_t localeListId, 176 std::vector<Run> itemize(U16StringPiece text, FontStyle style, uint32_t localeListId, in itemize() argument 178 return itemize(text, style, localeListId, familyVariant, text.size()); in itemize() 231 FamilyMatchResult getFamilyForChar(uint32_t ch, uint32_t vs, uint32_t localeListId, 234 uint32_t calcFamilyScore(uint32_t ch, uint32_t vs, FamilyVariant variant, uint32_t localeListId, 237 uint32_t calcCoverageScore(uint32_t ch, uint32_t vs, uint32_t localeListId,
|
D | MeasuredText.h | 110 uint32_t getLocaleListId() const override { return mPaint.localeListId; } in getLocaleListId() 143 ReplacementRun(const Range& range, float width, uint32_t localeListId) in ReplacementRun() argument 144 : Run(range), mWidth(width), mLocaleListId(localeListId) {} in ReplacementRun() 257 void addReplacementRun(int32_t start, int32_t end, float width, uint32_t localeListId) { in addReplacementRun() argument 259 std::make_unique<ReplacementRun>(Range(start, end), width, localeListId)); in addReplacementRun()
|
D | LayoutCache.h | 53 mLocaleListId(paint.localeListId), in LayoutCacheKey()
|
/frameworks/minikin/libs/minikin/ |
D | LineBreakerUtil.h | 58 inline Locale getEffectiveLocale(uint32_t localeListId) { in getEffectiveLocale() argument 59 const LocaleList& localeList = LocaleListCache::getById(localeListId); in getEffectiveLocale() 180 if (localeListId != newLocaleListId) { in updateLocaleIfNecessary() 186 localeListId = newLocaleListId; in updateLocaleIfNecessary() 216 uint32_t localeListId = LocaleListCache::kInvalidListId;
|
D | FontFamily.cpp | 44 FontFamily::FontFamily(uint32_t localeListId, FamilyVariant variant, in FontFamily() argument 46 : mLocaleListId(localeListId), in FontFamily() 49 mIsColorEmoji(LocaleListCache::getById(localeListId).getEmojiStyle() == in FontFamily() 56 FontFamily::FontFamily(uint32_t localeListId, FamilyVariant variant, in FontFamily() argument 61 : mLocaleListId(localeListId), in FontFamily() 74 uint32_t localeListId) { in readFromInternal() argument 95 localeListId, variant, std::move(fonts), std::move(supportedAxes), isColorEmoji, in readFromInternal()
|
D | FontCollection.cpp | 272 uint32_t localeListId, in calcFamilyScore() argument 274 const uint32_t coverageScore = calcCoverageScore(ch, vs, localeListId, fontFamily); in calcFamilyScore() 280 const uint32_t localeScore = calcLocaleMatchingScore(localeListId, *fontFamily); in calcFamilyScore() 299 uint32_t FontCollection::calcCoverageScore(uint32_t ch, uint32_t vs, uint32_t localeListId, in calcCoverageScore() argument 323 switch (LocaleListCache::getById(localeListId).getEmojiStyle()) { in calcCoverageScore() 363 const LocaleList& fontLocaleList = LocaleListCache::getById(fontFamily.localeListId()); in calcLocaleMatchingScore() 398 uint32_t localeListId, in getFamilyForChar() argument 416 const uint32_t score = calcFamilyScore(ch, vs, variant, localeListId, family); in getFamilyForChar() 439 return getFamilyForChar(ch, vs, localeListId, variant); in getFamilyForChar() 544 uint32_t localeListId, in itemize() argument [all …]
|
D | GreedyLineBreaker.cpp | 327 uint32_t localeListId = LocaleListCache::kInvalidListId; in process() local 334 if (localeListId != newLocaleListId) { in process() 339 localeListId = newLocaleListId; in process()
|
D | LayoutCore.cpp | 344 paint.font->itemize(substr, paint.fontStyle, paint.localeListId, paint.familyVariant); in LayoutPiece() 426 const LocaleList& localeList = LocaleListCache::getById(paint.localeListId); in LayoutPiece()
|
/frameworks/base/libs/hwui/jni/fonts/ |
D | FontFamily.cpp | 89 uint32_t localeListId = family->family->localeListId(); in FontFamily_getLangTags() local 90 if (localeListId == 0) { in FontFamily_getLangTags() 93 std::string langTags = minikin::getLocaleString(localeListId); in FontFamily_getLangTags()
|
D | Font.cpp | 112 uint32_t localeListId = minikin::registerLocaleList(langTagStr.c_str()); in Font_Builder_build() local 117 .setLocaleListId(localeListId) in Font_Builder_build() 247 uint32_t localeListId = font->font->getLocaleListId(); in Font_getLocaleList() local 248 if (localeListId == 0) { in Font_getLocaleList() 251 std::string langTags = minikin::getLocaleString(localeListId); in Font_getLocaleList()
|
/frameworks/minikin/tests/perftests/ |
D | FontCollection.cpp | 95 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/ |
D | FontFamilyTest.cpp | 32 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() 833 ASSERT_EQ(original->localeListId(), copied->localeListId()); in TEST_F()
|
D | LayoutCacheTest.cpp | 215 paint1.localeListId = LocaleListCache::getId("en-US"); in TEST() 219 paint2.localeListId = LocaleListCache::getId("ja-JP"); in TEST()
|
D | FontCollectionItemizeTest.cpp | 73 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()
|
D | GreedyLineBreakerTest.cpp | 81 paint.localeListId = LocaleListCache::getId(lang); in doLineBreak() 106 paint.localeListId = LocaleListCache::getId("en-US"); in TEST_F()
|
D | OptimalLineBreakerTest.cpp | 77 paint.localeListId = LocaleListCache::getId(lang); in doLineBreak() 1855 paint.localeListId = LocaleListCache::getId("en-US"); in TEST_F()
|
/frameworks/base/libs/hwui/hwui/ |
D | MinikinUtils.cpp | 45 minikinPaint.localeListId = paint->getMinikinLocaleListId(); in prepareMinikinPaint()
|