Home
last modified time | relevance | path

Searched refs:Font (Results 1 – 9 of 9) sorted by relevance

/cts/tests/tests/graphics/src/android/graphics/fonts/
DFontFamilyTest.java45 Font font = new Font.Builder(am, FONT_DIR + "ascii_g3em_weight400_upright.ttf").build(); in testBuilder_SingleFont()
55 Font regularFont = new Font.Builder( in testBuilder_MultipleFont()
57 Font boldFont = new Font.Builder( in testBuilder_MultipleFont()
70 Font regularFont = new Font.Builder( in testBuilder_MultipleFont_overrideWeight()
72 Font boldFont = new Font.Builder(am, FONT_DIR + "ascii_g3em_weight400_upright.ttf") in testBuilder_MultipleFont_overrideWeight()
85 Font regularFont = new Font.Builder( in testBuilder_MultipleFont_overrideItalic()
87 Font italicFont = new Font.Builder(am, FONT_DIR + "ascii_g3em_weight400_upright.ttf") in testBuilder_MultipleFont_overrideItalic()
100 Font regularFont = new Font.Builder( in testBuilder_MultipleFont_SameStyle()
102 Font regularFont2 = new Font.Builder( in testBuilder_MultipleFont_SameStyle()
110 Font regularFont = new Font.Builder( in testBuilder_MultipleFont_SameStyle_overrideWeight()
[all …]
DFontTest.java136 Font font = new Font.Builder(buffer).build(); in testBuilder_buffer()
158 Font font = new Font.Builder(buffer).setTtcIndex(ttcIndex).build(); in testBuilder_buffer_ttc()
181 Font font = new Font.Builder(buffer).setFontVariationSettings(axes).build(); in testBuilder_buffer_vf()
203 Font font = new Font.Builder(buffer).setWeight(customWeight).build(); in testBuilder_buffer_override()
219 Font font = new Font.Builder(buffer).setSlant(FontStyle.FONT_SLANT_ITALIC).build(); in testBuilder_buffer_override()
232 new Font.Builder(buf); in testBuilder_buffer_invalid_null()
238 new Font.Builder(buf); in testBuilder_buffer_invalid_not_direct()
254 Font font = new Font.Builder(file).build(); in testBuilder_file()
281 Font font = new Font.Builder(file).setTtcIndex(ttcIndex).build(); in testBuilder_file_ttc()
309 Font font = new Font.Builder(file).setFontVariationSettings(axes).build(); in testBuilder_file_vf()
[all …]
DNativeSystemFontTest.java40 Set<Font> javaFonts = SystemFonts.getAvailableFonts(); in testSameResultAsJava()
41 Set<Font> nativeFonts = NativeSystemFontHelper.getAvailableFonts(); in testSameResultAsJava()
45 for (Font f : nativeFonts) { in testSameResultAsJava()
49 for (Font f : javaFonts) { in testSameResultAsJava()
DSystemFontsTest.java45 public Set<Font> availableFonts;
62 for (Font font : availableFonts) { in testAvailableFonts_ReadOnlyFile()
80 for (Font font : availableFonts) { in testAvailableFonts_ReadOnlyBuffer()
DNativeSystemFontHelper.java40 public static Set<Font> getAvailableFonts() { in getAvailableFonts()
42 HashSet<Font> nativeFonts = new HashSet<>(); in getAvailableFonts()
51 nativeFonts.add(new Font.Builder(new File(nGetFilePath(fontPtr))) in getAvailableFonts()
/cts/tests/tests/provider/src/android/provider/cts/
DMockFontProvider.java62 static class Font { class in MockFontProvider
63 public Font(int id, int fileId, int ttcIndex, String varSettings, int weight, int italic, in Font() method in MockFontProvider.Font
117 private static Map<String, Font[]> QUERY_MAP;
119 HashMap<String, Font[]> map = new HashMap<>();
122 map.put(SINGLE_FONT_FAMILY_QUERY, new Font[] { in map.put()
123 new Font(id++, SAMPLE_FONT_FILE_0_ID, 0, null, 400, 0, Columns.RESULT_CODE_OK, true), in map.put()
126 map.put(MULTIPLE_FAMILY_QUERY, new Font[] { in map.put()
127 new Font(id++, SAMPLE_FONT_FILE_0_ID, 0, null, 400, 0, Columns.RESULT_CODE_OK, true), in map.put()
128 new Font(id++, SAMPLE_FONT_FILE_1_ID, 0, null, 400, 1, Columns.RESULT_CODE_OK, true), in map.put()
129 new Font(id++, SAMPLE_FONT_FILE_0_ID, 0, null, 700, 0, Columns.RESULT_CODE_OK, true), in map.put()
[all …]
/cts/tests/tests/graphics/src/android/graphics/cts/
DTypefaceCustomFallbackBuilderTest.java25 import android.graphics.fonts.Font;
57 b = new FontFamily.Builder(new Font.Builder(am, in createFullFamilyTypeface()
60 b.addFont(new Font.Builder(am, in createFullFamilyTypeface()
78 new Font.Builder(am, path).build()).build()).build())); in testSingleFont_path()
93 new Font.Builder(am, FontTestUtil.getTtcFontFileInAsset()) in testSingleFont_ttc()
108 new Font.Builder(am, FontTestUtil.getVFFontInAsset()) in testSingleFont_vf()
142 b = new FontFamily.Builder(new Font.Builder(am, in testFamily_selectStyleByBuilder()
145 b.addFont(new Font.Builder(am, in testFamily_selectStyleByBuilder()
162 new Font.Builder(am, FontTestUtil.getFontPathFromStyle(300, false)).build()) in testFamily_closestDefault()
163 .addFont(new Font.Builder(am, in testFamily_closestDefault()
[all …]
/cts/tests/tests/content/res/font/
Dinvalid_font.ttf1 Invalid Font File.
/cts/tests/tests/text/src/android/text/cts/
DMyanmarTest.java26 import android.graphics.fonts.Font;
153 final Set<Font> availableFonts = SystemFonts.getAvailableFonts(); in testIfZawgyiLocaleIsSupported_fontWithQaagShouldExists()
154 for (Font font : availableFonts) { in testIfZawgyiLocaleIsSupported_fontWithQaagShouldExists()