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.md113 You can add variations to the example so that the test generator can automatically create multiple …
203variations, and if so, will take the cartesian product of the groups. For example, suppose we decl…
205 Use `AddVariations` to add a group of variations to the example
208 # Add two groups of variations [default, nchw] and [default, relaxed, quant8]
221 # Add two groups of variations [nchw] and [default, relaxed, quant8]
227 #### Default variations
229 By default, the test generator will apply the following variations automatically.
252 …generator provides several helper functions or shorthands to add commonly used group of variations.
347 Use `IntroducedIn` to set the version of a model. All variations of the model will have the same ve…
352 # All variations of model_V1_0 will have the same version V1_0.
[all …]
Dtest_generator.py1073 self.variations = []
1096 key = (example.model, example.name, tuple(tuple(e) for e in example.variations))
1105 self.variations.append([DefaultVariation(defaultName)] if includeDefault else [])
1106 self.variations[-1].extend(ImplicitVariation.ImplicitConvertion(i) for i in args)
1198 assert tuple(self.variations) == tuple(other.variations), \
1209 [v.SetToDefaultName() for vs in self.variations for v in vs if v.name is None]
1213 for variationList in itertools.product(*self.variations):
/frameworks/ml/nn/runtime/test/specs/V1_3/
Dresize_bilinear_v1_3.mod.py38 variations = ["float16", "relaxed"]
40 variations.extend([quant8, quant8_signed])
47 name=name).AddVariations(*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.