/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 | SystemFontsTest.java | 63 for (Font font : availableFonts) { in testAvailableFonts_ReadOnlyFile() 64 assertNotNull("System font must provide file path to the font file.", font.getFile()); in testAvailableFonts_ReadOnlyFile() 66 final String absPath = font.getFile().getAbsolutePath(); in testAvailableFonts_ReadOnlyFile() 69 assertTrue(absPath + " must exists", font.getFile().exists()); in testAvailableFonts_ReadOnlyFile() 70 assertTrue(absPath + " must be a file", font.getFile().isFile()); in testAvailableFonts_ReadOnlyFile() 71 assertTrue(absPath + " must be readable", font.getFile().canRead()); in testAvailableFonts_ReadOnlyFile() 72 assertFalse(absPath + " must not executable", font.getFile().canExecute()); in testAvailableFonts_ReadOnlyFile() 73 assertFalse(absPath + " must not writable", font.getFile().canWrite()); in testAvailableFonts_ReadOnlyFile() 87 for (Font font : availableFonts) { in testAvailableFonts_ReadOnlyBuffer() 89 font.getBuffer().put((byte) 0); in testAvailableFonts_ReadOnlyBuffer() [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 | 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 | 42 for (Font font : SystemFonts.getAvailableFonts()) { in uniquePostScript() 43 if (seenFile.contains(font.getFile())) { in uniquePostScript() 46 String psName = FontFileTestUtil.getPostScriptName(font.getFile()); in uniquePostScript() 50 seenFile.add(font.getFile()); in uniquePostScript()
|
D | FontManagerTest.java | 106 for (FontConfig.Font font : fonts) { in fontManager_getFontConfig_checkFamilies() 108 assertThat(font.getFile().canRead()).isTrue(); in fontManager_getFontConfig_checkFamilies() 110 assertThat(font.getTtcIndex()).isAtLeast(0); in fontManager_getFontConfig_checkFamilies() 111 assertThat(font.getFontVariationSettings()).isNotNull(); in fontManager_getFontConfig_checkFamilies() 112 assertThat(font.getStyle()).isNotNull(); in fontManager_getFontConfig_checkFamilies() 113 if (font.getFontFamilyName() != null) { in fontManager_getFontConfig_checkFamilies() 114 assertThat(font.getFontFamilyName()).isIn(fallbackNames); in fontManager_getFontConfig_checkFamilies() 265 for (FontConfig.Font font : family.getFontList()) { in fontManager_PostScriptName() 266 String psNameInFile = FontFileTestUtil.getPostScriptName(font.getFile()); in fontManager_PostScriptName() 267 assertThat(font.getPostScriptName()).isEqualTo(psNameInFile); in fontManager_PostScriptName()
|
D | SystemEmojiTest.java | 37 for (Font font : SystemFonts.getAvailableFonts()) { in uniquePostScript() 38 if (font.getFile().getName().equals("NotoColorEmoji.ttf")) { in uniquePostScript() 39 emojiFont = font.getFile(); in uniquePostScript()
|
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 | 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/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 | CanvasDrawGlyphsTest.java | 60 int positionStart, int glyphCount, Font font, Paint paint) { in drawGlyphsToBitmap() argument 64 font, paint); in drawGlyphsToBitmap()
|
D | TypefaceTest.java | 77 final Typeface typeface = ctx.getResources().getFont(R.font.a3em); 593 final Typeface family = mContext.getResources().getFont(R.font.multiweight_family); in testTypefaceCreate_withExactWeight() 623 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 | 861 Typeface font = mResources.getFont(R.font.sample_regular_font); in testGetFont_fontFile() local 863 assertNotNull(font); in testGetFont_fontFile() 864 assertNotSame(Typeface.DEFAULT, font); in testGetFont_fontFile() 868 Typeface font = mResources.getFont(R.font.samplexmlfont); in testGetFont_xmlFile() local 870 assertNotNull(font); in testGetFont_xmlFile() 871 assertNotSame(Typeface.DEFAULT, font); in testGetFont_xmlFile() 899 Typeface normalFont = mResources.getFont(R.font.sample_ttc_family); in testGetFont_xmlFileWithTtc() 914 Typeface typeface1 = mResources.getFont(R.font.sample_variation_settings_family1); in testGetFont_xmlFileWithVariationSettings() 916 Typeface typeface2 = mResources.getFont(R.font.sample_variation_settings_family2); in testGetFont_xmlFileWithVariationSettings() 925 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/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()
|
/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 | 8381 Typeface expected = mActivity.getResources().getFont(R.font.samplefont); in testFontResources_setInXmlFamilyName() 8389 Typeface expected = mActivity.getResources().getFont(R.font.samplexmlfont); in testFontResourcesXml_setInXmlFamilyName() 8397 Typeface expected = mActivity.getResources().getFont(R.font.samplefont); in testFontResources_setInXmlStyle() 8405 Typeface expected = mActivity.getResources().getFont(R.font.samplexmlfont); in testFontResourcesXml_setInXmlStyle() 8413 Typeface expected = mActivity.getResources().getFont(R.font.samplefont); in testFontResources_setInXmlTextAppearance() 8421 Typeface expected = mActivity.getResources().getFont(R.font.samplexmlfont); in testFontResourcesXml_setInXmlWithStyle() 8436 Typeface expected = mActivity.getResources().getFont(R.font.samplexmlfont); in testFontResourcesXml_setInXmlTextAppearance()
|
/cts/apps/CtsVerifier/ |
D | NOTICE.txt | 8486 some of them may contain, in addition to the FreeType font engine, 8492 affects thus the FreeType font engine, the test programs, 13718 font" has range (4, 8) replaced with "strong", then it becomes "the 13719 <b>strong</b> font".
|