/cts/tests/tests/graphics/src/android/graphics/fonts/ |
D | FontTest.java | 162 Font font = new Font.Builder(buffer).build(); in testBuilder_buffer() local 163 assertEquals(path, weight, font.getStyle().getWeight()); in testBuilder_buffer() 164 assertEquals(path, slant, font.getStyle().getSlant()); in testBuilder_buffer() 165 assertEquals(path, 0, font.getTtcIndex()); in testBuilder_buffer() 166 assertNullOrEmpty(path, font.getAxes()); in testBuilder_buffer() 167 assertNotNull(font.getBuffer()); in testBuilder_buffer() 168 assertNull(font.getFile()); in testBuilder_buffer() 184 Font font = new Font.Builder(buffer).setTtcIndex(ttcIndex).build(); in testBuilder_buffer_ttc() local 185 assertEquals(path, weight, font.getStyle().getWeight()); in testBuilder_buffer_ttc() 186 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 | 82 for (Font font : availableFonts) { in testAvailableFonts_ReadOnlyFile() 83 assertNotNull("System font must provide file path to the font file.", font.getFile()); in testAvailableFonts_ReadOnlyFile() 85 final String absPath = font.getFile().getAbsolutePath(); in testAvailableFonts_ReadOnlyFile() 88 assertTrue(absPath + " must exists", font.getFile().exists()); in testAvailableFonts_ReadOnlyFile() 89 assertTrue(absPath + " must be a file", font.getFile().isFile()); in testAvailableFonts_ReadOnlyFile() 90 assertTrue(absPath + " must be readable", font.getFile().canRead()); in testAvailableFonts_ReadOnlyFile() 91 assertFalse(absPath + " must not executable", font.getFile().canExecute()); in testAvailableFonts_ReadOnlyFile() 92 assertFalse(absPath + " must not writable", font.getFile().canWrite()); in testAvailableFonts_ReadOnlyFile() 106 for (Font font : availableFonts) { in testAvailableFonts_ReadOnlyBuffer() 108 font.getBuffer().put((byte) 0); in testAvailableFonts_ReadOnlyBuffer() [all …]
|
D | NativeSystemFontTest.java | 44 NativeSystemFontHelper.FontDescriptor font = in convertToDescriptors() local 46 font.mFilePath = f.getFile().getAbsolutePath(); in convertToDescriptors() 47 font.mWeight = f.getStyle().getWeight(); in convertToDescriptors() 48 font.mSlant = f.getStyle().getSlant(); in convertToDescriptors() 49 font.mIndex = f.getTtcIndex(); in convertToDescriptors() 50 font.mAxes = f.getAxes(); in convertToDescriptors() 51 font.mLocale = f.getLocaleList(); in convertToDescriptors() 52 out.add(font); in convertToDescriptors()
|
D | NativeSystemFontHelper.java | 122 FontDescriptor font = new FontDescriptor(); in getAvailableFonts() local 123 font.mFilePath = nGetFilePath(fontPtr); in getAvailableFonts() 124 font.mWeight = nGetWeight(fontPtr); in getAvailableFonts() 125 font.mSlant = nIsItalic(fontPtr) in getAvailableFonts() 127 font.mIndex = nGetCollectionIndex(fontPtr); in getAvailableFonts() 129 font.mAxes = new FontVariationAxis[axesSize]; in getAvailableFonts() 130 for (int i = 0; i < font.mAxes.length; ++i) { in getAvailableFonts() 131 font.mAxes[i] = new FontVariationAxis( in getAvailableFonts() 135 font.mLocale = LocaleList.forLanguageTags(nGetLocale(fontPtr)); in getAvailableFonts() 136 nativeFonts.add(font); in getAvailableFonts()
|
D | SystemFontsUniqueNameTest.java | 41 for (Font font : SystemFonts.getAvailableFonts()) { in uniquePostScript() 42 if (seenFile.contains(font.getFile())) { in uniquePostScript() 45 String psName = FontFileTestUtil.getPostScriptName(font.getFile()); in uniquePostScript() 49 seenFile.add(font.getFile()); in uniquePostScript()
|
D | FontManagerTest.java | 115 for (FontConfig.Font font : fonts) { in fontManager_getFontConfig_checkFamilies() 117 assertThat(font.getFile().canRead()).isTrue(); in fontManager_getFontConfig_checkFamilies() 119 assertThat(font.getTtcIndex()).isAtLeast(0); in fontManager_getFontConfig_checkFamilies() 120 assertThat(font.getFontVariationSettings()).isNotNull(); in fontManager_getFontConfig_checkFamilies() 121 assertThat(font.getStyle()).isNotNull(); in fontManager_getFontConfig_checkFamilies() 122 if (font.getFontFamilyName() != null) { in fontManager_getFontConfig_checkFamilies() 123 assertThat(font.getFontFamilyName()).isIn(fallbackNames); in fontManager_getFontConfig_checkFamilies() 287 for (FontConfig.Font font : family.getFontList()) { in fontManager_PostScriptName() 288 String psNameInFile = FontFileTestUtil.getPostScriptName(font.getFile()); in fontManager_PostScriptName() 289 assertThat(font.getPostScriptName()).isEqualTo(psNameInFile); in fontManager_PostScriptName()
|
D | FontFamilyUpdateRequestTest.java | 45 public void font() { in font() method in FontFamilyUpdateRequestTest 51 FontFamilyUpdateRequest.Font font = new FontFamilyUpdateRequest.Font.Builder( in font() local 53 assertThat(font.getPostScriptName()).isEqualTo(postScriptName); in font() 54 assertThat(font.getStyle()).isEqualTo(style); in font() 55 assertThat(font.getAxes()).containsExactlyElementsIn(axes).inOrder(); in font() 56 assertThat(font.getIndex()).isEqualTo(5); in font()
|
D | SystemEmojiTest.java | 40 for (Font font : SystemFonts.getAvailableFonts()) { in uniquePostScript() 41 if (font.getFile().getName().equals("NotoColorEmoji.ttf")) { in uniquePostScript() 42 emojiFont = font.getFile(); in uniquePostScript()
|
D | FontFamilyTest.java | 44 Font font = new Font.Builder(am, FONT_DIR + "ascii_g3em_weight400_upright.ttf").build(); in testBuilder_SingleFont() local 45 FontFamily family = new FontFamily.Builder(font).build(); in testBuilder_SingleFont() 48 assertEquals(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/hostsidetests/theme/app/src/android/theme/app/ |
D | TypefaceTestUtil.java | 36 Font font = glyphs.getFont(0); in getFirstFont() local 37 requireNonNull(font.getFile()); in getFirstFont() 38 return font.getFile(); in getFirstFont() 43 for (Font font : SystemFonts.getAvailableFonts()) { in getRobotoTypeface() 45 if (font.getFile().getName().startsWith("Roboto-")) { in getRobotoTypeface() 46 for (FontVariationAxis axis : font.getAxes()) { in getRobotoTypeface() 51 } else if (font.getFile().getName().equals("RobotoStatic-Regular.ttf")) { in getRobotoTypeface() 56 builder = new FontFamily.Builder(font); in getRobotoTypeface() 58 builder.addFont(font); in getRobotoTypeface()
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/ |
D | TypefaceTestUtil.java | 38 Font font = glyphs.getFont(0); in getFirstFont() local 39 assertThat(font.getFile()).isNotNull(); in getFirstFont() 40 return font.getFile(); in getFirstFont() 45 for (Font font : SystemFonts.getAvailableFonts()) { in getRobotoTypeface() 47 if (font.getFile().getName().startsWith("Roboto-")) { in getRobotoTypeface() 48 for (FontVariationAxis axis : font.getAxes()) { in getRobotoTypeface() 53 } else if (font.getFile().getName().equals("RobotoStatic-Regular.ttf")) { in getRobotoTypeface() 59 builder = new FontFamily.Builder(font); in getRobotoTypeface() 61 builder.addFont(font); in getRobotoTypeface()
|
D | ColorSpaceTests.java | 241 Font font = null; in testMultiAtlasGlyphsWithColorSpace() local 244 font = sysFont; in testMultiAtlasGlyphsWithColorSpace() 251 Assert.assertNotNull(font); in testMultiAtlasGlyphsWithColorSpace() 270 canvas.drawGlyphs(glyphIds, 0, positions, 0, glyphIds.length, font, p); in testMultiAtlasGlyphsWithColorSpace()
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | TypefaceTestUtil.java | 38 Font font = glyphs.getFont(0); in getFirstFont() local 39 assertThat(font.getFile()).isNotNull(); in getFirstFont() 40 return font.getFile(); in getFirstFont() 45 for (Font font : SystemFonts.getAvailableFonts()) { in getRobotoTypeface() 47 if (font.getFile().getName().startsWith("Roboto-")) { in getRobotoTypeface() 48 for (FontVariationAxis axis : font.getAxes()) { in getRobotoTypeface() 53 } else if (font.getFile().getName().equals("RobotoStatic-Regular.ttf")) { in getRobotoTypeface() 59 builder = new FontFamily.Builder(font); in getRobotoTypeface() 61 builder.addFont(font); in getRobotoTypeface()
|
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 …]
|
/cts/tests/tests/text/src/android/text/cts/ |
D | NotoCJKFontRequirement.java | 90 for (Font font : SystemFonts.getAvailableFonts()) { in getNotoCJKFonts() 91 String psName = FontFileTestUtil.getPostScriptName(font.getFile(), font.getTtcIndex()); in getNotoCJKFonts() 93 cjkFonts.add(font); in getNotoCJKFonts() 109 getNotoCJKFonts().forEach(font -> { in testContextualSpacing() 111 new FontFamily.Builder(font).build() in testContextualSpacing()
|
D | VariableFamilyTest.kt | 102 val font = glyphs.getFont(0) in testVariableFamily_singleFonts_wghtOnly_upright() constant 103 val psName = FontFileTestUtil.getPostScriptName(font.buffer, font.ttcIndex) in testVariableFamily_singleFonts_wghtOnly_upright() 130 val font = glyphs.getFont(0) in testVariableFamily_singleFonts_wght_ital_upright() constant 131 val psName = FontFileTestUtil.getPostScriptName(font.buffer, font.ttcIndex) in testVariableFamily_singleFonts_wght_ital_upright() 180 val font = getFont(i) in PositionedGlyphs() constant 181 return FontFileTestUtil.getPostScriptName(font.buffer, font.ttcIndex) in PositionedGlyphs()
|
D | FontVariationSettingsTest.kt | 38 val font = glyphs.getFont(0) in assumeDefaultFontHasVariableFont() constant 39 assumeTrue(FontFileTestUtil.hasTable(font.file, font.ttcIndex, "fvar")) in assumeDefaultFontHasVariableFont()
|
D | MyanmarTest.java | 187 for (Font font : availableFonts) { in testIfZawgyiLocaleIsSupported_fontWithQaagShouldExists() 188 final LocaleList localeList = font.getLocaleList(); in testIfZawgyiLocaleIsSupported_fontWithQaagShouldExists()
|
/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/content/src/android/content/res/cts/ |
D | ResourcesTest.java | 1064 Typeface font = mResources.getFont(R.font.sample_regular_font); in testGetFont_fontFile() local 1066 assertNotNull(font); in testGetFont_fontFile() 1067 assertNotSame(Typeface.DEFAULT, font); in testGetFont_fontFile() 1072 Typeface font = mResources.getFont(R.font.samplexmlfont); in testGetFont_xmlFile() local 1074 assertNotNull(font); in testGetFont_xmlFile() 1075 assertNotSame(Typeface.DEFAULT, font); in testGetFont_xmlFile() 1104 Typeface normalFont = mResources.getFont(R.font.sample_ttc_family); in testGetFont_xmlFileWithTtc() 1120 Typeface typeface1 = mResources.getFont(R.font.sample_variation_settings_family1); in testGetFont_xmlFileWithVariationSettings() 1122 Typeface typeface2 = mResources.getFont(R.font.sample_variation_settings_family2); in testGetFont_xmlFileWithVariationSettings() 1132 assertNull(mResources.getFont(R.font.invalid_xmlfamily)); in testGetFont_invalidXmlFile() [all …]
|
/cts/tests/tests/graphics/src/android/graphics/text/cts/ |
D | TextRunShaperTest.java | 201 Font font = res.getFont(0); in shapeText_FontCreateFromNative() local 202 assertThat(font.getBuffer()).isEqualTo(originalFont.getBuffer()); in shapeText_FontCreateFromNative() 203 assertThat(font.getTtcIndex()).isEqualTo(originalFont.getTtcIndex()); in shapeText_FontCreateFromNative() 204 FontVariationAxis[] axes = font.getAxes(); in shapeText_FontCreateFromNative()
|
/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()
|