Home
last modified time | relevance | path

Searched refs:variations (Results 1 – 18 of 18) sorted by relevance

/frameworks/minikin/tests/unittest/
DFontCollectionTest.cpp140 std::vector<FontVariation> variations = {{MinikinFont::MakeTag('w', 'd', 't', 'h'), 1.0f}}; in TEST() local
142 multiAxisFc->createCollectionWithVariation(variations)); in TEST()
146 EXPECT_EQ(nullptr, noAxisFc->createCollectionWithVariation(variations)); in TEST()
150 std::vector<FontVariation> variations = {{MinikinFont::MakeTag('w', 'd', 't', 'h'), 1.0f}, in TEST() local
153 multiAxisFc->createCollectionWithVariation(variations)); in TEST()
157 EXPECT_EQ(nullptr, noAxisFc->createCollectionWithVariation(variations)); in TEST()
161 std::vector<FontVariation> variations = {{MinikinFont::MakeTag('Z', 'Z', 'Z', 'Z'), 1.0f}}; in TEST() local
162 EXPECT_EQ(nullptr, multiAxisFc->createCollectionWithVariation(variations)); in TEST()
163 EXPECT_EQ(nullptr, noAxisFc->createCollectionWithVariation(variations)); in TEST()
167 std::vector<FontVariation> variations = {{MinikinFont::MakeTag('w', 'd', 't', 'h'), 1.0f}, in TEST() local
[all …]
DFontFamilyTest.cpp574 std::vector<FontVariation> variations = {{MinikinFont::MakeTag('w', 'd', 't', 'h'), 1.0f}}; in TEST_F() local
576 multiAxisFamily->createFamilyWithVariation(variations)); in TEST_F()
579 EXPECT_EQ(nullptr, noAxisFamily->createFamilyWithVariation(variations)); in TEST_F()
583 std::vector<FontVariation> variations = {{MinikinFont::MakeTag('w', 'd', 't', 'h'), 1.0f}, in TEST_F() local
586 multiAxisFamily->createFamilyWithVariation(variations)); in TEST_F()
589 EXPECT_EQ(nullptr, noAxisFamily->createFamilyWithVariation(variations)); in TEST_F()
593 std::vector<FontVariation> variations = {{MinikinFont::MakeTag('Z', 'Z', 'Z', 'Z'), 1.0f}}; in TEST_F() local
594 EXPECT_EQ(nullptr, multiAxisFamily->createFamilyWithVariation(variations)); in TEST_F()
595 EXPECT_EQ(nullptr, noAxisFamily->createFamilyWithVariation(variations)); in TEST_F()
599 std::vector<FontVariation> variations = {{MinikinFont::MakeTag('w', 'd', 't', 'h'), 1.0f}, in TEST_F() local
[all …]
/frameworks/minikin/libs/minikin/
DFontFamily.cpp72 std::vector<hb_variation_t> variations; in prepareFont() local
73 variations.reserve(typeface->GetAxes().size()); in prepareFont()
75 variations.push_back({variation.axisTag, variation.value}); in prepareFont()
77 hb_font_set_variations(font.get(), variations.data(), variations.size()); in prepareFont()
199 const std::vector<FontVariation>& variations) const { in createFamilyWithVariation()
200 if (variations.empty() || mSupportedAxes.empty()) { in createFamilyWithVariation()
205 for (const FontVariation& variation : variations) { in createFamilyWithVariation()
221 for (const FontVariation& variation : variations) { in createFamilyWithVariation()
230 minikinFont = font.typeface()->createFontWithVariation(variations); in createFamilyWithVariation()
DFontCollection.cpp469 const std::vector<FontVariation>& variations) { in createCollectionWithVariation() argument
470 if (variations.empty() || mSupportedAxes.empty()) { in createCollectionWithVariation()
475 for (const FontVariation& variation : variations) { in createCollectionWithVariation()
488 std::shared_ptr<FontFamily> newFamily = family->createFamilyWithVariation(variations); in createCollectionWithVariation()
/frameworks/base/libs/hwui/hwui/
DMinikinSkia.cpp112 const std::vector<minikin::FontVariation>& variations) const { in createFontWithVariation()
121 skAxes.resize(variations.size()); in createFontWithVariation()
122 for (size_t i = 0; i < variations.size(); i++) { in createFontWithVariation()
123 skAxes[i].fTag = variations[i].axisTag; in createFontWithVariation()
124 skAxes[i].fStyleValue = SkFloatToScalar(variations[i].value); in createFontWithVariation()
131 variations); in createFontWithVariation()
DTypeface.h75 Typeface* src, const std::vector<minikin::FontVariation>& variations);
DTypeface.cpp93 Typeface* src, const std::vector<minikin::FontVariation>& variations) { in createFromTypefaceWithVariation() argument
98 resolvedFace->fFontCollection->createCollectionWithVariation(variations); in createFromTypefaceWithVariation()
/frameworks/base/core/jni/android/graphics/
DTypeface.cpp60 std::vector<minikin::FontVariation> variations; in Typeface_createFromTypefaceWithVariation() local
68 variations.push_back(minikin::FontVariation(axis.getTag(), axis.getStyleValue())); in Typeface_createFromTypefaceWithVariation()
70 return toJLong(Typeface::createFromTypefaceWithVariation(toTypeface(familyHandle), variations)); in Typeface_createFromTypefaceWithVariation()
/frameworks/support/v7/recyclerview/src/androidTest/java/androidx/recyclerview/widget/
DLinearLayoutManagerPrepareForDropTest.java113 List<Object[]> variations = new ArrayList<>(); in params() local
116 variations.add(new Object[]{config, selector}); in params()
119 return variations; in params()
DBaseGridLayoutManagerTest.java63 List<Config> variations = new ArrayList<>(); in createBaseVariations() local
67 variations.add(new Config(spanCount, orientation, reverseLayout)); in createBaseVariations()
71 return variations; in createBaseVariations()
75 Object... variations) in addConfigVariation() argument
80 for (Object variation : variations) { in addConfigVariation()
DStaggeredGridLayoutManagerGapTest.java49 List<Config> variations = createBaseVariations(); in getParams() local
51 for (Config config : variations) { in getParams()
DLinearLayoutManagerSavedStateTest.java247 List<Config> variations = addConfigVariation(createBaseVariations(), "mItemCount", 0, 300); in params() local
248 variations = addConfigVariation(variations, "mRecycleChildrenOnDetach", true); in params()
251 for (Config config : variations) { in params()
DStaggeredGridLayoutManagerSavedStateTest.java59 List<Config> variations = createBaseVariations(); in getParams() local
118 testVariations.addAll(variations); in getParams()
119 for (Config config : variations) { in getParams()
DBaseLinearLayoutManagerTest.java55 List<Config> variations = new ArrayList<>(); in createBaseVariations() local
60 variations.add( in createBaseVariations()
67 return variations; in createBaseVariations()
74 Object... variations) in addConfigVariation() argument
79 for (Object variation : variations) { in addConfigVariation()
DBaseStaggeredGridLayoutManagerTest.java69 List<Config> variations = new ArrayList<>(); in createBaseVariations() local
76 variations.add(new Config(orientation, reverseLayout, spanCount, in createBaseVariations()
84 return variations; in createBaseVariations()
88 Object... variations) in addConfigVariation() argument
93 for (Object variation : variations) { in addConfigVariation()
/frameworks/minikin/include/minikin/
DFontCollection.h57 const std::vector<FontVariation>& variations);
DFontFamily.h164 const std::vector<FontVariation>& variations) const;
/frameworks/base/tools/aapt2/
DResources.proto450 // A value that represents a string and its many variations based on plurality.