/frameworks/minikin/libs/minikin/ |
D | Font.cpp | 228 std::vector<hb_variation_t> variations; in prepareFont() local 229 variations.reserve(typeface->GetAxes().size()); in prepareFont() 231 variations.push_back({variation.axisTag, variation.value}); in prepareFont() 233 hb_font_set_variations(font.get(), variations.data(), variations.size()); in prepareFont() 284 std::vector<hb_variation_t> variations; in getAdjustedFont() local 285 variations.reserve(mTypeface->GetAxes().size()); in getAdjustedFont() 292 variations.push_back({variation.axisTag, variation.value}); in getAdjustedFont() 296 variations.push_back({TAG_wght, static_cast<float>(wght)}); in getAdjustedFont() 299 variations.push_back({TAG_ital, static_cast<float>(ital)}); in getAdjustedFont() 301 hb_font_set_variations(font.get(), variations.data(), variations.size()); in getAdjustedFont() [all …]
|
D | FontFamily.cpp | 403 const std::vector<FontVariation>& variations) const { in createFamilyWithVariation() 404 if (variations.empty() || mSupportedAxesCount == 0) { in createFamilyWithVariation() 409 for (const FontVariation& variation : variations) { in createFamilyWithVariation() 426 for (const FontVariation& variation : variations) { in createFamilyWithVariation() 435 minikinFont = font->baseTypeface()->createFontWithVariation(variations); in createFamilyWithVariation()
|
D | FontCollection.cpp | 891 const std::vector<FontVariation>& variations) { in createCollectionWithVariation() argument 892 if (variations.empty() || mSupportedAxesCount == 0) { in createCollectionWithVariation() 897 for (const FontVariation& variation : variations) { in createCollectionWithVariation() 913 features::lazy_variation_instance() ? FontFamily::create(family, variations) in createCollectionWithVariation() 914 : family->createFamilyWithVariation(variations); in createCollectionWithVariation()
|
/frameworks/minikin/tests/unittest/ |
D | FontCollectionTest.cpp | 142 std::vector<FontVariation> variations = {{MakeTag('w', 'd', 't', 'h'), 1.0f}}; in TEST() local 144 multiAxisFc->createCollectionWithVariation(variations)); in TEST() 148 EXPECT_EQ(nullptr, noAxisFc->createCollectionWithVariation(variations)); in TEST() 152 std::vector<FontVariation> variations = {{MakeTag('w', 'd', 't', 'h'), 1.0f}, in TEST() local 155 multiAxisFc->createCollectionWithVariation(variations)); in TEST() 159 EXPECT_EQ(nullptr, noAxisFc->createCollectionWithVariation(variations)); in TEST() 163 std::vector<FontVariation> variations = {{MakeTag('Z', 'Z', 'Z', 'Z'), 1.0f}}; in TEST() local 164 EXPECT_EQ(nullptr, multiAxisFc->createCollectionWithVariation(variations)); in TEST() 165 EXPECT_EQ(nullptr, noAxisFc->createCollectionWithVariation(variations)); in TEST() 169 std::vector<FontVariation> variations = {{MakeTag('w', 'd', 't', 'h'), 1.0f}, in TEST() local [all …]
|
D | FontFamilyTest.cpp | 650 std::vector<FontVariation> variations = {{MakeTag('w', 'd', 't', 'h'), 1.0f}}; in TEST_F() local 651 std::shared_ptr<FontFamily> newFamily = FontFamily::create(multiAxisFamily, variations); in TEST_F() 654 EXPECT_EQ(nullptr, FontFamily::create(noAxisFamily, variations)); in TEST_F() 658 std::vector<FontVariation> variations = {{MakeTag('w', 'd', 't', 'h'), 1.0f}, in TEST_F() local 660 std::shared_ptr<FontFamily> newFamily = FontFamily::create(multiAxisFamily, variations); in TEST_F() 663 EXPECT_EQ(nullptr, FontFamily::create(noAxisFamily, variations)); in TEST_F() 667 std::vector<FontVariation> variations = {{MakeTag('Z', 'Z', 'Z', 'Z'), 1.0f}}; in TEST_F() local 668 EXPECT_EQ(nullptr, FontFamily::create(multiAxisFamily, variations)); in TEST_F() 669 EXPECT_EQ(nullptr, FontFamily::create(noAxisFamily, variations)); in TEST_F() 673 std::vector<FontVariation> variations = {{MakeTag('w', 'd', 't', 'h'), 1.0f}, in TEST_F() local [all …]
|
/frameworks/base/libs/hwui/hwui/ |
D | MinikinSkia.cpp | 131 const std::vector<minikin::FontVariation>& variations) const { in createFontWithVariation() 135 skVariation.resize(variations.size()); in createFontWithVariation() 136 for (size_t i = 0; i < variations.size(); i++) { in createFontWithVariation() 137 skVariation[i].axis = variations[i].axisTag; in createFontWithVariation() 138 skVariation[i].value = SkFloatToScalar(variations[i].value); in createFontWithVariation() 144 mFilePath, mTtcIndex, variations); in createFontWithVariation()
|
D | Typeface.h | 78 Typeface* src, const std::vector<minikin::FontVariation>& variations);
|
D | Typeface.cpp | 96 Typeface* src, const std::vector<minikin::FontVariation>& variations) { in createFromTypefaceWithVariation() argument 101 resolvedFace->fFontCollection->createCollectionWithVariation(variations); in createFromTypefaceWithVariation()
|
/frameworks/base/libs/hwui/jni/ |
D | Typeface.cpp | 73 std::vector<minikin::FontVariation> variations; in Typeface_createFromTypefaceWithVariation() local 81 variations.push_back(minikin::FontVariation(axis.getTag(), axis.getStyleValue())); in Typeface_createFromTypefaceWithVariation() 83 return toJLong(Typeface::createFromTypefaceWithVariation(toTypeface(familyHandle), variations)); in Typeface_createFromTypefaceWithVariation()
|
/frameworks/minikin/include/minikin/ |
D | FontFamily.h | 107 const std::vector<FontVariation>& variations) const;
|
D | FontCollection.h | 183 const std::vector<FontVariation>& variations);
|
/frameworks/base/core/java/android/graphics/fonts/ |
D | FontUpdateRequest.java | 364 @NonNull List<FontFamilyUpdateRequest.Font> variations) { in FontUpdateRequest() argument 365 this(createFontFamily(familyName, variations)); in FontUpdateRequest()
|
/frameworks/libs/systemui/weathereffects/graphics/assets/shaders/ |
D | rain_shower.agsl | 70 /* Cell-id-based variations. */
|
D | snow.agsl | 101 /* Cell-id-based variations. */
|
D | glass_rain.agsl | 72 /* Cell-id-based variations. */
|
/frameworks/base/tools/aapt2/ |
D | Resources.proto | 535 // A value that represents a string and its many variations based on plurality.
|