Home
last modified time | relevance | path

Searched refs:variations (Results 1 – 14 of 14) 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.cpp586 std::vector<FontVariation> variations = {{MinikinFont::MakeTag('w', 'd', 't', 'h'), 1.0f}}; in TEST_F() local
588 multiAxisFamily->createFamilyWithVariation(variations)); in TEST_F()
591 EXPECT_EQ(nullptr, noAxisFamily->createFamilyWithVariation(variations)); in TEST_F()
595 std::vector<FontVariation> variations = {{MinikinFont::MakeTag('w', 'd', 't', 'h'), 1.0f}, in TEST_F() local
598 multiAxisFamily->createFamilyWithVariation(variations)); in TEST_F()
601 EXPECT_EQ(nullptr, noAxisFamily->createFamilyWithVariation(variations)); in TEST_F()
605 std::vector<FontVariation> variations = {{MinikinFont::MakeTag('Z', 'Z', 'Z', 'Z'), 1.0f}}; in TEST_F() local
606 EXPECT_EQ(nullptr, multiAxisFamily->createFamilyWithVariation(variations)); in TEST_F()
607 EXPECT_EQ(nullptr, noAxisFamily->createFamilyWithVariation(variations)); in TEST_F()
611 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()
202 const std::vector<FontVariation>& variations) const { in createFamilyWithVariation()
203 if (variations.empty() || mSupportedAxes.empty()) { in createFamilyWithVariation()
208 for (const FontVariation& variation : variations) { in createFamilyWithVariation()
224 for (const FontVariation& variation : variations) { in createFamilyWithVariation()
233 minikinFont = font.typeface()->createFontWithVariation(variations); in createFamilyWithVariation()
DFontCollection.cpp486 const std::vector<FontVariation>& variations) { in createCollectionWithVariation() argument
487 if (variations.empty() || mSupportedAxes.empty()) { in createCollectionWithVariation()
492 for (const FontVariation& variation : variations) { in createCollectionWithVariation()
505 std::shared_ptr<FontFamily> newFamily = family->createFamilyWithVariation(variations); in createCollectionWithVariation()
/frameworks/base/libs/hwui/hwui/
DMinikinSkia.cpp127 const std::vector<minikin::FontVariation>& variations) const { in createFontWithVariation()
136 skAxes.resize(variations.size()); in createFontWithVariation()
137 for (size_t i = 0; i < variations.size(); i++) { in createFontWithVariation()
138 skAxes[i].fTag = variations[i].axisTag; in createFontWithVariation()
139 skAxes[i].fStyleValue = SkFloatToScalar(variations[i].value); in createFontWithVariation()
146 ttcIndex, 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/ml/nn/tools/test_generator/
DREADME.md112 You can add variations to the example so that the test generator can automatically create multiple …
208variations, and if so, will take the cartesian product of the groups. For example, suppose we decl…
210 Use `AddVariations` to add a group of variations to the example
213 # Add two groups of variations [default, nchw] and [default, relaxed, quant8]
226 # Add two groups of variations [nchw] and [default, relaxed, quant8]
234 …generator provides several helper functions or shorthands to add commonly used group of variations.
320 Use `IntroducedIn` to set the version of a model. All variations of the model will have the same ve…
325 # All variations of model_V1_0 will have the same version V1_0.
337 This is useful when only a subset of variations has a different version.
370 # Add two more groups of variations
Dtest_generator.py993 self.variations = [[DefaultVariation(), DynamicOutputShapeConverter()]]
995 self.variations = []
1018 key = (example.model, example.name, tuple(tuple(e) for e in example.variations))
1027 self.variations.append([DefaultVariation(defaultName)] if includeDefault else [])
1028 self.variations[-1].extend(ImplicitVariation.ImplicitConvertion(i) for i in args)
1125 assert tuple(self.variations) == tuple(other.variations), \
1132 [v.SetToDefaultName() for vs in self.variations for v in vs if v.name is None]
1133 for variationList in itertools.product(*self.variations):
/frameworks/base/core/jni/android/graphics/
DTypeface.cpp62 std::vector<minikin::FontVariation> variations; in Typeface_createFromTypefaceWithVariation() local
70 variations.push_back(minikin::FontVariation(axis.getTag(), axis.getStyleValue())); in Typeface_createFromTypefaceWithVariation()
72 return toJLong(Typeface::createFromTypefaceWithVariation(toTypeface(familyHandle), variations)); in Typeface_createFromTypefaceWithVariation()
/frameworks/minikin/include/minikin/
DFontFamily.h67 const std::vector<FontVariation>& variations) const;
DFontCollection.h65 const std::vector<FontVariation>& variations);
/frameworks/base/tools/aapt2/
DResources.proto492 // A value that represents a string and its many variations based on plurality.
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/docs/swift/
DDesignDoc.md274 these variations.