Home
last modified time | relevance | path

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

/frameworks/minikin/tests/unittest/
DFontCollectionTest.cpp153 std::vector<FontVariation> variations = { in TEST() local
157 multiAxisFc->createCollectionWithVariation(variations)); in TEST()
161 EXPECT_EQ(nullptr, noAxisFc->createCollectionWithVariation(variations)); in TEST()
165 std::vector<FontVariation> variations = { in TEST() local
170 multiAxisFc->createCollectionWithVariation(variations)); in TEST()
174 EXPECT_EQ(nullptr, noAxisFc->createCollectionWithVariation(variations)); in TEST()
178 std::vector<FontVariation> variations = { in TEST() local
181 EXPECT_EQ(nullptr, multiAxisFc->createCollectionWithVariation(variations)); in TEST()
182 EXPECT_EQ(nullptr, noAxisFc->createCollectionWithVariation(variations)); in TEST()
186 std::vector<FontVariation> variations = { in TEST() local
[all …]
DFontFamilyTest.cpp614 std::vector<FontVariation> variations = {{MinikinFont::MakeTag('w', 'd', 't', 'h'), 1.0f}}; in TEST_F() local
616 multiAxisFamily->createFamilyWithVariation(variations)); in TEST_F()
619 EXPECT_EQ(nullptr, noAxisFamily->createFamilyWithVariation(variations)); in TEST_F()
623 std::vector<FontVariation> variations = { in TEST_F() local
628 multiAxisFamily->createFamilyWithVariation(variations)); in TEST_F()
631 EXPECT_EQ(nullptr, noAxisFamily->createFamilyWithVariation(variations)); in TEST_F()
635 std::vector<FontVariation> variations = { in TEST_F() local
638 EXPECT_EQ(nullptr, multiAxisFamily->createFamilyWithVariation(variations)); in TEST_F()
639 EXPECT_EQ(nullptr, noAxisFamily->createFamilyWithVariation(variations)); in TEST_F()
643 std::vector<FontVariation> variations = { in TEST_F() local
[all …]
/frameworks/minikin/tests/util/
DMinikinFontForTest.cpp38 const std::vector<FontVariation>& variations) : in MinikinFontForTest() argument
41 mVariations(variations), in MinikinFontForTest()
73 const std::vector<FontVariation>& variations) const { in createFontWithVariation()
74 return std::shared_ptr<MinikinFont>(new MinikinFontForTest(mFontPath, mFontIndex, variations)); in createFontWithVariation()
DMinikinFontForTest.h29 const std::vector<FontVariation>& variations);
47 const std::vector<FontVariation>& variations) const;
/frameworks/base/libs/hwui/hwui/
DMinikinSkia.cpp95 const std::vector<minikin::FontVariation>& variations) const { in createFontWithVariation()
104 skAxes.resize(variations.size()); in createFontWithVariation()
105 for (size_t i = 0; i < variations.size(); i++) { in createFontWithVariation()
106 skAxes[i].fTag = variations[i].axisTag; in createFontWithVariation()
107 skAxes[i].fStyleValue = SkFloatToScalar(variations[i].value); in createFontWithVariation()
114 variations); in createFontWithVariation()
DTypeface.h75 const std::vector<minikin::FontVariation>& variations);
DTypeface.cpp100 const std::vector<minikin::FontVariation>& variations) { in createFromTypefaceWithVariation() argument
105 resolvedFace->fFontCollection->createCollectionWithVariation(variations); in createFromTypefaceWithVariation()
/frameworks/minikin/libs/minikin/
DHbFontCache.cpp120 std::vector<hb_variation_t> variations; in getHbFontLocked() local
122 variations.push_back({variation.axisTag, variation.value}); in getHbFontLocked()
124 hb_font_set_variations(font, variations.data(), variations.size()); in getHbFontLocked()
DFontFamily.cpp212 const std::vector<FontVariation>& variations) const { in createFamilyWithVariation()
213 if (variations.empty() || mSupportedAxes.empty()) { in createFamilyWithVariation()
218 for (const FontVariation& variation : variations) { in createFamilyWithVariation()
235 for (const FontVariation& variation : variations) { in createFamilyWithVariation()
244 minikinFont = font.typeface->createFontWithVariation(variations); in createFamilyWithVariation()
DFontCollection.cpp434 const std::vector<FontVariation>& variations) { in createCollectionWithVariation() argument
435 if (variations.empty() || mSupportedAxes.empty()) { in createCollectionWithVariation()
440 for (const FontVariation& variation : variations) { in createCollectionWithVariation()
453 std::shared_ptr<FontFamily> newFamily = family->createFamilyWithVariation(variations); in createCollectionWithVariation()
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
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()
DLinearLayoutManagerPrepareForDropTest.java111 List<Object[]> variations = new ArrayList<>(); in params() local
114 variations.add(new Object[]{config, selector}); in params()
117 return variations; in params()
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.java53 List<Config> variations = new ArrayList<>(); in createBaseVariations() local
58 variations.add( in createBaseVariations()
65 return variations; in createBaseVariations()
72 Object... variations) in addConfigVariation() argument
77 for (Object variation : variations) { in addConfigVariation()
DBaseStaggeredGridLayoutManagerTest.java50 List<Config> variations = new ArrayList<>(); in createBaseVariations() local
57 variations.add(new Config(orientation, reverseLayout, spanCount, in createBaseVariations()
65 return variations; in createBaseVariations()
69 Object... variations) in addConfigVariation() argument
74 for (Object variation : variations) { in addConfigVariation()
/frameworks/base/core/jni/android/graphics/
DTypeface.cpp53 std::vector<minikin::FontVariation> variations; in Typeface_createFromTypefaceWithVariation() local
61 variations.push_back(minikin::FontVariation(axis.getTag(), axis.getStyleValue())); in Typeface_createFromTypefaceWithVariation()
64 Typeface* result = Typeface::createFromTypefaceWithVariation(baseTypeface, variations); in Typeface_createFromTypefaceWithVariation()
/frameworks/minikin/include/minikin/
DFontCollection.h54 createCollectionWithVariation(const std::vector<FontVariation>& variations);
DFontFamily.h159 const std::vector<FontVariation>& variations) const;