Home
last modified time | relevance | path

Searched refs:FontStyle (Results 1 – 14 of 14) sorted by relevance

/cts/tests/tests/graphics/src/android/graphics/fonts/
DFontStyleTest.java34 new FontStyle(); in testBuilder_construct()
35 new FontStyle(FontStyle.FONT_WEIGHT_THIN, FontStyle.FONT_SLANT_ITALIC); in testBuilder_construct()
36 new FontStyle(350, FontStyle.FONT_SLANT_ITALIC); in testBuilder_construct()
41 FontStyle fs = new FontStyle(FontStyle.FONT_WEIGHT_THIN, FontStyle.FONT_SLANT_ITALIC); in testBuilder_construct_withArgs()
42 assertEquals(FontStyle.FONT_WEIGHT_THIN, fs.getWeight()); in testBuilder_construct_withArgs()
43 assertEquals(FontStyle.FONT_SLANT_ITALIC, fs.getSlant()); in testBuilder_construct_withArgs()
45 fs = new FontStyle(350, FontStyle.FONT_SLANT_UPRIGHT); in testBuilder_construct_withArgs()
47 assertEquals(FontStyle.FONT_SLANT_UPRIGHT, fs.getSlant()); in testBuilder_construct_withArgs()
52 assertEquals(FontStyle.FONT_WEIGHT_NORMAL, new FontStyle().getWeight()); in testBuilder_defaultValues()
53 assertEquals(FontStyle.FONT_SLANT_UPRIGHT, new FontStyle().getSlant()); in testBuilder_defaultValues()
[all …]
DFontFamilyUpdateRequestTest.java19 import static android.graphics.fonts.FontStyle.FONT_SLANT_ITALIC;
20 import static android.graphics.fonts.FontStyle.FONT_SLANT_UPRIGHT;
21 import static android.graphics.fonts.FontStyle.FONT_WEIGHT_NORMAL;
47 FontStyle style = new FontStyle(FONT_WEIGHT_NORMAL, FONT_SLANT_UPRIGHT); in font()
81 new FontStyle(FONT_WEIGHT_NORMAL, FONT_SLANT_UPRIGHT)).build(); in fontFamily()
83 new FontStyle(FONT_WEIGHT_NORMAL, FONT_SLANT_ITALIC)).build(); in fontFamily()
117 new FontStyle(FONT_WEIGHT_NORMAL, FONT_SLANT_UPRIGHT)).build(), in fontFamilyUpdateRequest()
119 new FontStyle(FONT_WEIGHT_NORMAL, FONT_SLANT_ITALIC)).build()); in fontFamilyUpdateRequest()
DFontTest.java157 final int slant = italic ? FontStyle.FONT_SLANT_ITALIC : FontStyle.FONT_SLANT_UPRIGHT; in testBuilder_buffer()
178 final int slant = italic ? FontStyle.FONT_SLANT_ITALIC : FontStyle.FONT_SLANT_UPRIGHT; in testBuilder_buffer_ttc()
201 final int slant = italic ? FontStyle.FONT_SLANT_ITALIC : FontStyle.FONT_SLANT_UPRIGHT; in testBuilder_buffer_vf()
225 final int slant = italic ? FontStyle.FONT_SLANT_ITALIC : FontStyle.FONT_SLANT_UPRIGHT; in testBuilder_buffer_override()
245 Font font = new Font.Builder(buffer).setSlant(FontStyle.FONT_SLANT_ITALIC).build(); in testBuilder_buffer_override()
247 assertEquals(path, FontStyle.FONT_SLANT_ITALIC, font.getStyle().getSlant()); in testBuilder_buffer_override()
274 final int slant = italic ? FontStyle.FONT_SLANT_ITALIC : FontStyle.FONT_SLANT_UPRIGHT; in testBuilder_file()
301 final int slant = italic ? FontStyle.FONT_SLANT_ITALIC : FontStyle.FONT_SLANT_UPRIGHT; in testBuilder_file_ttc()
329 final int slant = italic ? FontStyle.FONT_SLANT_ITALIC : FontStyle.FONT_SLANT_UPRIGHT; in testBuilder_file_vf()
356 final int slant = italic ? FontStyle.FONT_SLANT_ITALIC : FontStyle.FONT_SLANT_UPRIGHT; in testBuilder_file_override()
[all …]
DFontManagerTest.java19 import static android.graphics.fonts.FontStyle.FONT_SLANT_UPRIGHT;
20 import static android.graphics.fonts.FontStyle.FONT_WEIGHT_NORMAL;
254 new FontStyle(FONT_WEIGHT_NORMAL, FONT_SLANT_UPRIGHT)).build()) in fontManager_updateFontFamily_negativeBaseVersion()
274 new FontStyle(FONT_WEIGHT_NORMAL, FONT_SLANT_UPRIGHT)) in fontManager_updateFontFamily_permissionEnforce()
DNativeSystemFontHelper.java126 ? FontStyle.FONT_SLANT_ITALIC : FontStyle.FONT_SLANT_UPRIGHT; in getAvailableFonts()
DFontFamilyTest.java87 .setSlant(FontStyle.FONT_SLANT_ITALIC).build(); in testBuilder_MultipleFont_overrideItalic()
122 .setSlant(FontStyle.FONT_SLANT_UPRIGHT).build(); in testBuilder_MultipleFont_SameStyle_overrideItalic()
/cts/tests/tests/widget/src/android/widget/cts/
DTextViewFontWeightTest.java54 private static class FontStyle { class in TextViewFontWeightTest
55 FontStyle(int weight, boolean italic) { in FontStyle() method in TextViewFontWeightTest.FontStyle
72 private static final Map<Character, FontStyle> CHAR_FONT_MAP;
75 final HashMap<Character, FontStyle> map = new HashMap<>();
76 map.put('a', new FontStyle(100, false));
77 map.put('b', new FontStyle(100, true));
78 map.put('c', new FontStyle(200, false));
79 map.put('d', new FontStyle(200, true));
80 map.put('e', new FontStyle(300, false));
81 map.put('f', new FontStyle(300, true));
[all …]
DTextViewTest.java82 import android.graphics.fonts.FontStyle;
371 final int fontWeightAdjustment = FontStyle.FONT_WEIGHT_BOLD - defaultFontWeight; in testFontWeightAdjustment_forceBoldTextEnabled_typefaceNull_textIsBolded()
373 fontWeightAdjustment <= 0 ? FontStyle.FONT_WEIGHT_MAX : fontWeightAdjustment; in testFontWeightAdjustment_forceBoldTextEnabled_typefaceNull_textIsBolded()
388 final int fontWeightAdjustment = FontStyle.FONT_WEIGHT_BOLD - defaultFontWeight; in testFontWeightAdjustment_forceBoldTextEnabled_textIsBolded()
390 fontWeightAdjustment <= 0 ? FontStyle.FONT_WEIGHT_MAX : fontWeightAdjustment; in testFontWeightAdjustment_forceBoldTextEnabled_textIsBolded()
395 assertEquals(FontStyle.FONT_WEIGHT_BOLD, forceBoldedPaintTf.getWeight()); in testFontWeightAdjustment_forceBoldTextEnabled_textIsBolded()
405 final int fontWeightAdjustment = FontStyle.FONT_WEIGHT_BOLD - defaultFontWeight; in testFontWeightAdjustment_forceBoldTextDisabled_textIsUnbolded()
407 fontWeightAdjustment <= 0 ? FontStyle.FONT_WEIGHT_MAX : fontWeightAdjustment; in testFontWeightAdjustment_forceBoldTextDisabled_textIsUnbolded()
427 cf.fontWeightAdjustment = FontStyle.FONT_WEIGHT_BOLD - FontStyle.FONT_WEIGHT_NORMAL; in testFontWeightAdjustment_forceBoldTextEnabled_originalTypefaceKeptWhenEnabled()
438 FontStyle.FONT_WEIGHT_BOLD, false), forceBoldedPaintTf); in testFontWeightAdjustment_forceBoldTextEnabled_originalTypefaceKeptWhenEnabled()
[all …]
/cts/tests/tests/text/src/android/text/cts/
DVariableFamilyTest.kt23 import android.graphics.fonts.FontStyle
70 val glyphs = shape("a", family, FontStyle(100, FontStyle.FONT_SLANT_UPRIGHT)) in testVariableFamily_twoFonts_upright()
87 val glyphs = shape("a", family, FontStyle(200, FontStyle.FONT_SLANT_ITALIC)) in testVariableFamily_twoFonts_italic()
100 val glyphs = shape("a", family, FontStyle(300, FontStyle.FONT_SLANT_UPRIGHT)) in testVariableFamily_singleFonts_wghtOnly_upright()
115 val glyphs = shape("a", family, FontStyle(500, FontStyle.FONT_SLANT_ITALIC)) in testVariableFamily_singleFonts_wghtOnly_italic()
128 val glyphs = shape("a", family, FontStyle(300, FontStyle.FONT_SLANT_UPRIGHT)) in testVariableFamily_singleFonts_wght_ital_upright()
143 val glyphs = shape("a", family, FontStyle(500, FontStyle.FONT_SLANT_ITALIC)) in testVariableFamily_singleFonts_wght_ital_italic()
168 private fun shape(str: String, family: FontFamily, style: FontStyle) = in shape()
/cts/tests/tests/text/src/android/text/style/cts/
DStyleSpanTest.java24 import android.graphics.fonts.FontStyle;
104 assertEquals(tp.getTypeface().getWeight(), FontStyle.FONT_WEIGHT_MAX); in testUpdateMeasureState_withFontWeightAdjustment()
146 assertEquals(tp.getTypeface().getWeight(), FontStyle.FONT_WEIGHT_MAX); in testUpdateDrawState_withFontWeightAdjustment()
/cts/tests/tests/graphics/src/android/graphics/cts/
DTypefaceCustomFallbackBuilderTest.java27 import android.graphics.fonts.FontStyle;
150 .setStyle(new FontStyle(testStyle.first.intValue(), in testFamily_selectStyleByBuilder()
152 ? FontStyle.FONT_SLANT_ITALIC : FontStyle.FONT_SLANT_UPRIGHT)).build(); in testFamily_selectStyleByBuilder()
/cts/common/device-side/bedstead/remoteframeworkclasses/java/apis/
Dtest-current.txt3422 method @NonNull public android.graphics.fonts.FontStyle getStyle();
Dcurrent.txt17283 …ndroid.graphics.Typeface.CustomFallbackBuilder setStyle(@NonNull android.graphics.fonts.FontStyle);
17955 method @NonNull public android.graphics.fonts.FontStyle getStyle();
17972 …Weight(@IntRange(from=android.graphics.fonts.FontStyle.FONT_WEIGHT_MIN, to=android.graphics.fonts.
17987 public final class FontStyle {
17988 ctor public FontStyle();
17989 ctor public FontStyle(int, int);
56601 …od @IntRange(from=android.graphics.fonts.FontStyle.FONT_WEIGHT_UNSPECIFIED, to=android.graphics.fo…
56633 …ht(@IntRange(from=android.graphics.fonts.FontStyle.FONT_WEIGHT_UNSPECIFIED, to=android.graphics.fo…
Dsystem-current.txt4788 method @NonNull public android.graphics.fonts.FontStyle getStyle();
4792 …c FontFamilyUpdateRequest.Font.Builder(@NonNull String, @NonNull android.graphics.fonts.FontStyle);
17985 method @NonNull public android.graphics.fonts.FontStyle getStyle();