Home
last modified time | relevance | path

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

/frameworks/minikin/include/minikin/
DFamilyVariant.h26 enum class FamilyVariant : uint8_t { enum
32 inline std::ostream& operator<<(std::ostream& os, const FamilyVariant& variant) {
34 case FamilyVariant::DEFAULT:
36 case FamilyVariant::COMPACT:
38 case FamilyVariant::ELEGANT:
DFontFamily.h43 static std::shared_ptr<FontFamily> create(FamilyVariant variant,
45 static std::shared_ptr<FontFamily> create(uint32_t localeListId, FamilyVariant variant,
65 FamilyVariant variant() const { return mVariant; } in variant()
110 FontFamily(uint32_t localeListId, FamilyVariant variant,
137 FamilyVariant mVariant; // 1 byte
DFontCollection.h162 FamilyVariant familyVariant, uint32_t runMax) const;
166 FamilyVariant familyVariant) const { in itemize()
238 FamilyVariant variant) const;
240 uint32_t calcFamilyScore(uint32_t ch, uint32_t vs, FamilyVariant variant, uint32_t localeListId,
254 static uint32_t calcVariantMatchingScore(FamilyVariant variant, const FontFamily& fontFamily);
DMinikinPaint.h59 familyVariant(FamilyVariant::DEFAULT), in MinikinPaint()
73 FamilyVariant familyVariant;
DLayoutCache.h100 FamilyVariant mFamilyVariant;
/frameworks/minikin/tests/util/
DFontTestUtils.cpp61 FamilyVariant variant = FamilyVariant::DEFAULT; in getFontFamilies()
64 variant = FamilyVariant::ELEGANT; in getFontFamilies()
66 variant = FamilyVariant::COMPACT; in getFontFamilies()
138 return FontFamily::create(LocaleListCache::getId(lang), FamilyVariant::DEFAULT, in buildFontFamily()
/frameworks/minikin/libs/minikin/
DFontCollection.cpp323 uint32_t FontCollection::calcFamilyScore(uint32_t ch, uint32_t vs, FamilyVariant variant, in calcFamilyScore()
444 uint32_t FontCollection::calcVariantMatchingScore(FamilyVariant variant, in calcVariantMatchingScore()
446 const FamilyVariant familyVariant = fontFamily.variant(); in calcVariantMatchingScore()
447 if (familyVariant == FamilyVariant::DEFAULT) { in calcVariantMatchingScore()
453 if (variant == FamilyVariant::DEFAULT && familyVariant == FamilyVariant::COMPACT) { in calcVariantMatchingScore()
467 FamilyVariant variant) const { in getFamilyForChar()
668 const FamilyVariant requestVariant = paint.familyVariant == FamilyVariant::DEFAULT in getReferenceExtentForLocale()
669 ? FamilyVariant::COMPACT in getReferenceExtentForLocale()
675 const FamilyVariant familyVariant = family.variant() == FamilyVariant::DEFAULT in getReferenceExtentForLocale()
676 ? FamilyVariant::COMPACT in getReferenceExtentForLocale()
[all …]
DFontFamily.cpp47 return create(FamilyVariant::DEFAULT, std::move(fonts)); in create()
51 std::shared_ptr<FontFamily> FontFamily::create(FamilyVariant variant, in create()
58 std::shared_ptr<FontFamily> FontFamily::create(uint32_t localeListId, FamilyVariant variant, in create()
133 FontFamily::FontFamily(uint32_t localeListId, FamilyVariant variant, in FontFamily()
174 static_assert(sizeof(FamilyVariant) == 1); in FontFamily()
175 mVariant = reader->read<FamilyVariant>(); in FontFamily()
210 writer->write<FamilyVariant>(mVariant); in writeTo()
/frameworks/base/libs/hwui/hwui/
DPaint.h103 void setFamilyVariant(minikin::FamilyVariant variant) { mFamilyVariant = variant; } in setFamilyVariant()
105 std::optional<minikin::FamilyVariant> getFamilyVariant() const { return mFamilyVariant; } in getFamilyVariant()
183 std::optional<minikin::FamilyVariant> mFamilyVariant;
DMinikinUtils.cpp52 const std::optional<minikin::FamilyVariant>& familyVariant = paint->getFamilyVariant(); in prepareMinikinPaint()
57 ? minikin::FamilyVariant::ELEGANT in prepareMinikinPaint()
58 : minikin::FamilyVariant::DEFAULT; in prepareMinikinPaint()
DPaintImpl.cpp28 , mFamilyVariant(minikin::FamilyVariant::DEFAULT) { in Paint()
/frameworks/base/native/android/
Dsystem_fonts.cpp106 static_cast<uint32_t>(minikin::FamilyVariant::DEFAULT));
108 static_cast<uint32_t>(minikin::FamilyVariant::COMPACT));
110 static_cast<uint32_t>(minikin::FamilyVariant::ELEGANT));
317 static_cast<minikin::FamilyVariant>(matcher->mFamilyVariant), in AFontMatcher_match()
/frameworks/base/libs/hwui/jni/
DFontFamily.cpp49 : langId(langId), variant(static_cast<minikin::FamilyVariant>(variant)) {} in NativeFamilyBuilder()
51 minikin::FamilyVariant variant;
DPaint.cpp622 if (paint->getFamilyVariant() == minikin::FamilyVariant::ELEGANT) { in getMetricsInternal()
952 const std::optional<minikin::FamilyVariant>& familyVariant = obj->getFamilyVariant(); in getElegantTextHeight()
954 if (familyVariant.value() == minikin::FamilyVariant::ELEGANT) { in getElegantTextHeight()
968 obj->setFamilyVariant(minikin::FamilyVariant::ELEGANT); in setElegantTextHeight()
971 obj->setFamilyVariant(minikin::FamilyVariant::DEFAULT); in setElegantTextHeight()
/frameworks/base/libs/hwui/jni/fonts/
DFontFamily.cpp70 localeId, static_cast<minikin::FamilyVariant>(variant), std::move(builder->fonts), in FontFamily_Builder_build()
/frameworks/minikin/tests/unittest/
DLayoutCacheTest.cpp236 paint1.familyVariant = FamilyVariant::DEFAULT; in TEST()
240 paint2.familyVariant = FamilyVariant::COMPACT; in TEST()
DFontCollectionItemizeTest.cpp75 FamilyVariant::DEFAULT); in itemize()
80 FamilyVariant::DEFAULT, runMax); in itemize()
941 FontFamily::create(registerLocaleList("und"), FamilyVariant::DEFAULT, in TEST()
957 registerLocaleList(testCase.fontLocales[i]), FamilyVariant::DEFAULT, in TEST()