Searched refs:FamilyVariant (Results 1 – 17 of 17) sorted by relevance
/frameworks/minikin/include/minikin/ |
D | FamilyVariant.h | 26 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:
|
D | FontFamily.h | 43 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
|
D | FontCollection.h | 162 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);
|
D | MinikinPaint.h | 59 familyVariant(FamilyVariant::DEFAULT), in MinikinPaint() 73 FamilyVariant familyVariant;
|
D | LayoutCache.h | 100 FamilyVariant mFamilyVariant;
|
/frameworks/minikin/tests/util/ |
D | FontTestUtils.cpp | 61 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/ |
D | FontCollection.cpp | 323 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 …]
|
D | FontFamily.cpp | 47 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/ |
D | Paint.h | 103 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;
|
D | MinikinUtils.cpp | 52 const std::optional<minikin::FamilyVariant>& familyVariant = paint->getFamilyVariant(); in prepareMinikinPaint() 57 ? minikin::FamilyVariant::ELEGANT in prepareMinikinPaint() 58 : minikin::FamilyVariant::DEFAULT; in prepareMinikinPaint()
|
D | PaintImpl.cpp | 28 , mFamilyVariant(minikin::FamilyVariant::DEFAULT) { in Paint()
|
/frameworks/base/native/android/ |
D | system_fonts.cpp | 106 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/ |
D | FontFamily.cpp | 49 : langId(langId), variant(static_cast<minikin::FamilyVariant>(variant)) {} in NativeFamilyBuilder() 51 minikin::FamilyVariant variant;
|
D | Paint.cpp | 622 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/ |
D | FontFamily.cpp | 70 localeId, static_cast<minikin::FamilyVariant>(variant), std::move(builder->fonts), in FontFamily_Builder_build()
|
/frameworks/minikin/tests/unittest/ |
D | LayoutCacheTest.cpp | 236 paint1.familyVariant = FamilyVariant::DEFAULT; in TEST() 240 paint2.familyVariant = FamilyVariant::COMPACT; in TEST()
|
D | FontCollectionItemizeTest.cpp | 75 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()
|