Home
last modified time | relevance | path

Searched refs:FontVariationAxis (Results 1 – 19 of 19) sorted by relevance

/frameworks/base/core/tests/coretests/src/android/text/
DVariationParserTest.java22 import android.graphics.fonts.FontVariationAxis;
43 FontVariationAxis.fromFontVariationSettings("'wdth' " + invalidStyle); in testFromFontVariationSetting_InvalidStyleValue()
51 FontVariationAxis.fromFontVariationSettings("'wght' 1, 'wdth' " in testFromFontVariationSetting_InvalidStyleValue()
63 new FontVariationAxis("wdth", 0).getOpenTypeTagValue()); in testOpenTypeTagValue()
65 new FontVariationAxis("AX ", 0).getOpenTypeTagValue()); in testOpenTypeTagValue()
67 new FontVariationAxis(" ", 0).getOpenTypeTagValue()); in testOpenTypeTagValue()
/frameworks/base/graphics/java/android/graphics/fonts/
DFontVariationAxis.java29 public final class FontVariationAxis { class
42 public FontVariationAxis(@NonNull String tagString, float styleValue) { in FontVariationAxis() method in FontVariationAxis
134 public static @Nullable FontVariationAxis[] fromFontVariationSettings( in fromFontVariationSettings()
139 final ArrayList<FontVariationAxis> axisList = new ArrayList<>(); in fromFontVariationSettings()
165 axisList.add(new FontVariationAxis(tagString, value)); in fromFontVariationSettings()
171 return axisList.toArray(new FontVariationAxis[0]); in fromFontVariationSettings()
180 public static @NonNull String toFontVariationSettings(@Nullable FontVariationAxis[] axes) { in toFontVariationSettings()
/frameworks/base/graphics/java/android/graphics/
DFontFamily.java21 import android.graphics.fonts.FontVariationAxis;
104 public boolean addFont(String path, int ttcIndex, FontVariationAxis[] axes, int weight, in addFont()
114 for (FontVariationAxis axis : axes) { in addFont()
125 public boolean addFontFromBuffer(ByteBuffer font, int ttcIndex, FontVariationAxis[] axes, in addFontFromBuffer()
131 for (FontVariationAxis axis : axes) { in addFontFromBuffer()
152 FontVariationAxis[] axes) { in addFontFromAssetManager()
157 for (FontVariationAxis axis : axes) { in addFontFromAssetManager()
DFontListParser.java19 import android.graphics.fonts.FontVariationAxis;
108 List<FontVariationAxis> axes = new ArrayList<FontVariationAxis>(); in readFont()
128 axes.toArray(new FontVariationAxis[axes.size()]), weight, isItalic, fallbackFor); in readFont()
131 private static FontVariationAxis readAxis(XmlPullParser parser) in readAxis()
136 return new FontVariationAxis(tagStr, Float.parseFloat(styleValueStr)); in readAxis()
DTypeface.java29 import android.graphics.fonts.FontVariationAxis;
263 FontVariationAxis.fromFontVariationSettings(fontFile.getVariationSettings()))) { in createFromResources()
340 private FontVariationAxis[] mAxes;
469 mAxes = FontVariationAxis.fromFontVariationSettings(variationSettings); in setFontVariationSettings()
478 public Builder setFontVariationSettings(@Nullable FontVariationAxis[] axes) { in setFontVariationSettings()
527 @Nullable FontVariationAxis[] axes, int weight, int italic, String fallback) { in createAssetUid()
548 for (FontVariationAxis axis : axes) { in createAssetUid()
809 @NonNull List<FontVariationAxis> axes) { in createFromTypefaceWithVariation()
1199 long native_instance, List<FontVariationAxis> axes); in nativeCreateFromTypefaceWithVariation()
DPaint.java22 import android.graphics.fonts.FontVariationAxis;
1686 FontVariationAxis[] axes = FontVariationAxis.fromFontVariationSettings(settings); in setFontVariationSettings()
1687 final ArrayList<FontVariationAxis> filteredAxes = new ArrayList<FontVariationAxis>(); in setFontVariationSettings()
1688 for (final FontVariationAxis axis : axes) { in setFontVariationSettings()
/frameworks/base/core/java/android/text/
DFontConfig.java24 import android.graphics.fonts.FontVariationAxis;
63 private final @NonNull FontVariationAxis[] mAxes;
72 public Font(@NonNull String fontName, int ttcIndex, @NonNull FontVariationAxis[] axes, in Font()
99 public @NonNull FontVariationAxis[] getAxes() { in getAxes()
DFontVariationAxis.aidl19 parcelable FontVariationAxis;
/frameworks/support/compat/src/main/java/androidx/core/graphics/
DTypefaceCompatApi26Impl.java26 import android.graphics.fonts.FontVariationAxis;
138 int ttcIndex, int weight, int style, @Nullable FontVariationAxis[] axes) { in addFontFromAssetManager()
213 FontVariationAxis.fromFontVariationSettings(fontFile.getVariationSettings()))) { in createFromFontFamilyFilesResourceEntry()
317 Integer.TYPE, Integer.TYPE, FontVariationAxis[].class); in obtainAddFontFromAssetManagerMethod()
322 ByteBuffer.class, Integer.TYPE, FontVariationAxis[].class, Integer.TYPE, in obtainAddFontFromBufferMethod()
/frameworks/base/core/java/android/provider/
DFontsContract.java34 import android.graphics.fonts.FontVariationAxis;
184 private final FontVariationAxis[] mAxes;
200 @Nullable FontVariationAxis[] axes, @IntRange(from = 1, to = 1000) int weight, in FontInfo()
227 public @Nullable FontVariationAxis[] getAxes() { in getAxes()
814 FontVariationAxis[] axes = in getFontFromProvider()
815 FontVariationAxis.fromFontVariationSettings(variationSettings); in getFontFromProvider()
/frameworks/base/core/tests/coretests/src/android/provider/
DFontsContractTest.java35 import android.graphics.fonts.FontVariationAxis;
82 FontVariationAxis[] actual = font.getAxes(); in testGetFontFromProvider_resultOK()
131 FontVariationAxis[] actual = font.getAxes(); in testGetFontFromProvider_resultFontUnavailable()
151 FontVariationAxis[] actual = font.getAxes(); in testGetFontFromProvider_resultMalformedQuery()
DMockFontProvider.java28 import android.graphics.fonts.FontVariationAxis;
/frameworks/layoutlib/bridge/src/android/graphics/
DFontFamily_Delegate.java29 import android.graphics.fonts.FontVariationAxis;
294 FontVariationAxis[] axes, int weight, int italic) { in addFont()
DTypeface_Delegate.java37 import android.graphics.fonts.FontVariationAxis;
149 List<FontVariationAxis> axes) { in nativeCreateFromTypefaceWithVariation()
/frameworks/base/config/
Dhiddenapi-light-greylist.txt2284 …droid/content/res/AssetManager;Ljava/lang/String;IZIII[Landroid/graphics/fonts/FontVariationAxis;)Z
2285 …ontFamily;->addFontFromBuffer(Ljava/nio/ByteBuffer;I[Landroid/graphics/fonts/FontVariationAxis;II)Z
2289 Landroid/graphics/fonts/FontVariationAxis;->mStyleValue:F
2290 Landroid/graphics/fonts/FontVariationAxis;->mTag:I
5652 Landroid/text/FontConfig$Font;->getAxes()[Landroid/graphics/fonts/FontVariationAxis;
Dpreloaded-classes1238 android.graphics.fonts.FontVariationAxis
Dhiddenapi-public-dex.txt11737 Landroid/graphics/fonts/FontVariationAxis;
11738 Landroid/graphics/fonts/FontVariationAxis;-><init>(Ljava/lang/String;F)V
11739 …android/graphics/fonts/FontVariationAxis;->fromFontVariationSettings(Ljava/lang/String;)[Landroid/…
11740 Landroid/graphics/fonts/FontVariationAxis;->getStyleValue()F
11741 Landroid/graphics/fonts/FontVariationAxis;->getTag()Ljava/lang/String;
11742 Landroid/graphics/fonts/FontVariationAxis;->toFontVariationSettings([Landroid/graphics/fonts/FontVa…
11743 Landroid/graphics/fonts/FontVariationAxis;->toString()Ljava/lang/String;
12540 …ypeface$Builder;->setFontVariationSettings([Landroid/graphics/fonts/FontVariationAxis;)Landroid/gr…
34416 Landroid/provider/FontsContract$FontInfo;->getAxes()[Landroid/graphics/fonts/FontVariationAxis;
Dboot-image-profile.txt19982 …id/graphics/FontFamily;->addFont(Ljava/lang/String;I[Landroid/graphics/fonts/FontVariationAxis;II)Z
19983 …droid/content/res/AssetManager;Ljava/lang/String;IZIII[Landroid/graphics/fonts/FontVariationAxis;)Z
19984 …ontFamily;->addFontFromBuffer(Ljava/nio/ByteBuffer;I[Landroid/graphics/fonts/FontVariationAxis;II)Z
20359 …ontent/res/AssetManager;Ljava/lang/String;I[Landroid/graphics/fonts/FontVariationAxis;IILjava/lang…
21249 HSPLandroid/graphics/fonts/FontVariationAxis;-><init>(Ljava/lang/String;F)V
21250 …android/graphics/fonts/FontVariationAxis;->fromFontVariationSettings(Ljava/lang/String;)[Landroid/…
55169 Landroid/graphics/fonts/FontVariationAxis;
/frameworks/base/api/
Dcurrent.txt14524 …oid.graphics.Typeface.Builder setFontVariationSettings(android.graphics.fonts.FontVariationAxis[]);
15146 public final class FontVariationAxis {
15147 ctor public FontVariationAxis(java.lang.String, float);
15148 …method public static android.graphics.fonts.FontVariationAxis[] fromFontVariationSettings(java.lan…
15151 …public static java.lang.String toFontVariationSettings(android.graphics.fonts.FontVariationAxis[]);
36131 method public android.graphics.fonts.FontVariationAxis[] getAxes();