/cts/tests/tests/graphics/src/android/graphics/fonts/ |
D | FontTest.java | 136 Font font = new Font.Builder(buffer).build(); in testBuilder_buffer() local 137 assertEquals(path, weight, font.getStyle().getWeight()); in testBuilder_buffer() 138 assertEquals(path, slant, font.getStyle().getSlant()); in testBuilder_buffer() 139 assertEquals(path, 0, font.getTtcIndex()); in testBuilder_buffer() 140 assertNull(path, font.getAxes()); in testBuilder_buffer() 141 assertNotNull(font.getBuffer()); in testBuilder_buffer() 142 assertNull(font.getFile()); in testBuilder_buffer() 158 Font font = new Font.Builder(buffer).setTtcIndex(ttcIndex).build(); in testBuilder_buffer_ttc() local 159 assertEquals(path, weight, font.getStyle().getWeight()); in testBuilder_buffer_ttc() 160 assertEquals(path, slant, font.getStyle().getSlant()); in testBuilder_buffer_ttc() [all …]
|
D | FontTestUtil.java | 139 R.font.ascii_a3em_weight100_upright, 140 R.font.ascii_b3em_weight100_italic, 141 R.font.ascii_c3em_weight200_upright, 142 R.font.ascii_d3em_weight200_italic, 143 R.font.ascii_e3em_weight300_upright, 144 R.font.ascii_f3em_weight300_italic, 145 R.font.ascii_g3em_weight400_upright, 146 R.font.ascii_h3em_weight400_italic, 147 R.font.ascii_i3em_weight500_upright, 148 R.font.ascii_j3em_weight500_italic, [all …]
|
D | SystemFontsTest.java | 62 for (Font font : availableFonts) { in testAvailableFonts_ReadOnlyFile() 63 assertNotNull("System font must provide file path to the font file.", font.getFile()); in testAvailableFonts_ReadOnlyFile() 66 assertTrue(font.getFile().exists()); in testAvailableFonts_ReadOnlyFile() 67 assertTrue(font.getFile().isFile()); in testAvailableFonts_ReadOnlyFile() 68 assertTrue(font.getFile().canRead()); in testAvailableFonts_ReadOnlyFile() 69 assertFalse(font.getFile().canExecute()); in testAvailableFonts_ReadOnlyFile() 70 assertFalse(font.getFile().canWrite()); in testAvailableFonts_ReadOnlyFile() 73 final String absPath = font.getFile().getAbsolutePath(); in testAvailableFonts_ReadOnlyFile() 80 for (Font font : availableFonts) { in testAvailableFonts_ReadOnlyBuffer() 82 font.getBuffer().put((byte) 0); in testAvailableFonts_ReadOnlyBuffer()
|
D | FontFamilyTest.java | 45 Font font = new Font.Builder(am, FONT_DIR + "ascii_g3em_weight400_upright.ttf").build(); in testBuilder_SingleFont() local 46 FontFamily family = new FontFamily.Builder(font).build(); in testBuilder_SingleFont() 49 assertSame(font, family.getFont(0)); in testBuilder_SingleFont()
|
/cts/tests/tests/provider/src/android/provider/cts/ |
D | FontsContractTest.java | 193 FontInfo font = fonts[0]; in querySingleFont() local 194 assertNotNull(font.getUri()); in querySingleFont() 195 assertEquals(Columns.RESULT_CODE_OK, font.getResultCode()); in querySingleFont() 210 for (FontInfo font: fonts) { in queryMultipleFont() 211 assertNotNull(font.getUri()); in queryMultipleFont() 212 assertEquals(Columns.RESULT_CODE_OK, font.getResultCode()); in queryMultipleFont() 228 FontInfo font = fonts[0]; in queryAttributes() local 229 assertNotNull(font.getUri()); in queryAttributes() 230 assertEquals(400, font.getWeight()); in queryAttributes() 231 assertEquals(1, font.getAxes().length); in queryAttributes() [all …]
|
D | MockFontProvider.java | 182 for (Font font : in) { in buildCursor() 184 builder.add(Columns._ID, font.getId()); in buildCursor() 185 builder.add(Columns.FILE_ID, font.getFileId()); in buildCursor() 192 for (Font font : in) { in buildCursor() 194 builder.add(Columns._ID, font.getId()); in buildCursor() 195 builder.add(Columns.FILE_ID, font.getFileId()); in buildCursor() 196 builder.add(Columns.TTC_INDEX, font.getTtcIndex()); in buildCursor() 197 builder.add(Columns.VARIATION_SETTINGS, font.getVarSettings()); in buildCursor() 198 builder.add(Columns.WEIGHT, font.getWeight()); in buildCursor() 199 builder.add(Columns.ITALIC, font.getItalic()); in buildCursor() [all …]
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | TypefaceCustomFallbackBuilderTest.java | 202 final Font font = new Font.Builder(am, "fonts/user_fallback/ascii.ttf").build(); in testMaxCustomFallback() local 204 new FontFamily.Builder(font).build()); in testMaxCustomFallback() 207 b.addCustomFallback(new FontFamily.Builder(font).build()); in testMaxCustomFallback() 215 final Font font = new Font.Builder(am, "fonts/user_fallback/ascii.ttf").build(); in testMaxCustomFallback_exceed_limits() local 217 new FontFamily.Builder(font).build()); in testMaxCustomFallback_exceed_limits() 220 b.addCustomFallback(new FontFamily.Builder(font).build()); in testMaxCustomFallback_exceed_limits() 260 final Font font = new Font.Builder(am, "fonts/user_fallback/ascii.ttf").build(); in testSystemFallback_SansSerif() local 263 new FontFamily.Builder(font).build()); in testSystemFallback_SansSerif() 271 final Font font = new Font.Builder(am, "fonts/user_fallback/ascii.ttf").build(); in testSystemFallback_Serif() local 274 new FontFamily.Builder(font).build()); in testSystemFallback_Serif() [all …]
|
D | TypefaceTest.java | 72 final Typeface typeface = ctx.getResources().getFont(R.font.a3em); 588 final Typeface family = mContext.getResources().getFont(R.font.multiweight_family); in testTypefaceCreate_withExactWeight() 618 final Typeface family = mContext.getResources().getFont(R.font.multistyle_family); in testTypefaceCreate_withExactStyle()
|
/cts/tests/tests/content/src/android/content/res/cts/ |
D | ResourcesTest.java | 810 Typeface font = mResources.getFont(R.font.sample_regular_font); in testGetFont_fontFile() local 812 assertNotNull(font); in testGetFont_fontFile() 813 assertNotSame(Typeface.DEFAULT, font); in testGetFont_fontFile() 817 Typeface font = mResources.getFont(R.font.samplexmlfont); in testGetFont_xmlFile() local 819 assertNotNull(font); in testGetFont_xmlFile() 820 assertNotSame(Typeface.DEFAULT, font); in testGetFont_xmlFile() 848 Typeface normalFont = mResources.getFont(R.font.sample_ttc_family); in testGetFont_xmlFileWithTtc() 863 Typeface typeface1 = mResources.getFont(R.font.sample_variation_settings_family1); in testGetFont_xmlFileWithVariationSettings() 865 Typeface typeface2 = mResources.getFont(R.font.sample_variation_settings_family2); in testGetFont_xmlFileWithVariationSettings() 874 assertNull(mResources.getFont(R.font.invalid_xmlfamily)); in testGetFont_invalidXmlFile() [all …]
|
D | TypedArrayTest.java | 208 final Typeface font = t.getFont(R.styleable.style1_type18); in testGetAttributes() local 209 assertEquals(mContext.getResources().getFont(R.font.sample_regular_font), font); in testGetAttributes() local
|
/cts/apps/CtsVerifier/assets/report/ |
D | compatibility_result.css | 18 font-family: arial,sans-serif; 19 font-size: 13px; 43 font-size: 1.2em; 49 font-size: 1em; 102 font-weight: bold; 108 font-weight: bold; 139 font-weight: bold;
|
/cts/tests/tests/graphics/jni/ |
D | android_graphics_fonts_cts_SystemFonts.cpp | 128 AFont* font = AFontMatcher_match(mMatcher.get(), familyName.c_str(), text.data(), in match() local 130 return std::make_pair(font, runLength); in match()
|
/cts/tests/tests/text/src/android/text/cts/ |
D | MyanmarTest.java | 187 for (Font font : availableFonts) { in testIfZawgyiLocaleIsSupported_fontWithQaagShouldExists() 188 final LocaleList localeList = font.getLocaleList(); in testIfZawgyiLocaleIsSupported_fontWithQaagShouldExists()
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | TextViewTest.java | 8144 Typeface expected = mActivity.getResources().getFont(R.font.samplefont); in testFontResources_setInXmlFamilyName() 8152 Typeface expected = mActivity.getResources().getFont(R.font.samplexmlfont); in testFontResourcesXml_setInXmlFamilyName() 8160 Typeface expected = mActivity.getResources().getFont(R.font.samplefont); in testFontResources_setInXmlStyle() 8168 Typeface expected = mActivity.getResources().getFont(R.font.samplexmlfont); in testFontResourcesXml_setInXmlStyle() 8176 Typeface expected = mActivity.getResources().getFont(R.font.samplefont); in testFontResources_setInXmlTextAppearance() 8184 Typeface expected = mActivity.getResources().getFont(R.font.samplexmlfont); in testFontResourcesXml_setInXmlWithStyle() 8199 Typeface expected = mActivity.getResources().getFont(R.font.samplexmlfont); in testFontResourcesXml_setInXmlTextAppearance()
|