/frameworks/minikin/tests/unittest/ |
D | FontCollectionTest.cpp | 140 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 …]
|
D | FontFamilyTest.cpp | 574 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/ |
D | FontFamily.cpp | 72 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()
|
D | FontCollection.cpp | 469 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/ |
D | MinikinSkia.cpp | 112 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()
|
D | Typeface.h | 75 Typeface* src, const std::vector<minikin::FontVariation>& variations);
|
D | Typeface.cpp | 93 Typeface* src, const std::vector<minikin::FontVariation>& variations) { in createFromTypefaceWithVariation() argument 98 resolvedFace->fFontCollection->createCollectionWithVariation(variations); in createFromTypefaceWithVariation()
|
/frameworks/base/core/jni/android/graphics/ |
D | Typeface.cpp | 60 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/ |
D | LinearLayoutManagerPrepareForDropTest.java | 113 List<Object[]> variations = new ArrayList<>(); in params() local 116 variations.add(new Object[]{config, selector}); in params() 119 return variations; in params()
|
D | BaseGridLayoutManagerTest.java | 63 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()
|
D | StaggeredGridLayoutManagerGapTest.java | 49 List<Config> variations = createBaseVariations(); in getParams() local 51 for (Config config : variations) { in getParams()
|
D | LinearLayoutManagerSavedStateTest.java | 247 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()
|
D | StaggeredGridLayoutManagerSavedStateTest.java | 59 List<Config> variations = createBaseVariations(); in getParams() local 118 testVariations.addAll(variations); in getParams() 119 for (Config config : variations) { in getParams()
|
D | BaseLinearLayoutManagerTest.java | 55 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()
|
D | BaseStaggeredGridLayoutManagerTest.java | 69 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/ |
D | FontCollection.h | 57 const std::vector<FontVariation>& variations);
|
D | FontFamily.h | 164 const std::vector<FontVariation>& variations) const;
|
/frameworks/base/tools/aapt2/ |
D | Resources.proto | 450 // A value that represents a string and its many variations based on plurality.
|