Home
last modified time | relevance | path

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

/cts/tests/tests/graphics/src/android/graphics/fonts/
DFontFamilyTest.java45 FontFamily family = new FontFamily.Builder(font).build(); in testBuilder_SingleFont() local
46 assertNotNull(family); in testBuilder_SingleFont()
47 assertEquals(1, family.getSize()); in testBuilder_SingleFont()
48 assertEquals(font, family.getFont(0)); in testBuilder_SingleFont()
58 FontFamily family = new FontFamily.Builder(regularFont).addFont(boldFont).build(); in testBuilder_MultipleFont() local
59 assertNotNull(family); in testBuilder_MultipleFont()
60 assertEquals(2, family.getSize()); in testBuilder_MultipleFont()
61 assertNotSame(family.getFont(0), family.getFont(1)); in testBuilder_MultipleFont()
62 assertTrue(family.getFont(0).equals(regularFont) || family.getFont(0).equals(boldFont)); in testBuilder_MultipleFont()
63 assertTrue(family.getFont(1).equals(regularFont) || family.getFont(1).equals(boldFont)); in testBuilder_MultipleFont()
[all …]
DFontManagerTest.java68 for (FontConfig.NamedFamilyList family : families) { in getFallbackNameSet()
69 if (family.getName() != null) { in getFallbackNameSet()
70 fallbackNames.add(family.getName()); in getFallbackNameSet()
103 for (FontConfig.FontFamily family : families) { in fontManager_getFontConfig_checkFamilies()
104 assertThat(family.getFontList()).isNotEmpty(); in fontManager_getFontConfig_checkFamilies()
106 if (family.getName() != null) { in fontManager_getFontConfig_checkFamilies()
107 assertThat(family.getName()).isNotEmpty(); in fontManager_getFontConfig_checkFamilies()
110 assertThat(family.getLocaleList()).isNotNull(); in fontManager_getFontConfig_checkFamilies()
111 assertThat(family.getVariant()).isAtLeast(0); in fontManager_getFontConfig_checkFamilies()
112 assertThat(family.getVariant()).isAtMost(2); in fontManager_getFontConfig_checkFamilies()
[all …]
/cts/tests/tests/text/src/android/text/cts/
DVariableFamilyTest.kt64 val family = requireNotNull( in testVariableFamily_twoFonts_upright() constant
70 val glyphs = shape("a", family, FontStyle(100, FontStyle.FONT_SLANT_UPRIGHT)) in testVariableFamily_twoFonts_upright()
81 val family = requireNotNull( in testVariableFamily_twoFonts_italic() constant
87 val glyphs = shape("a", family, FontStyle(200, FontStyle.FONT_SLANT_ITALIC)) in testVariableFamily_twoFonts_italic()
98 val family = requireNotNull(FontFamily.Builder(wghtUprightFont).buildVariableFamily()) in testVariableFamily_singleFonts_wghtOnly_upright() constant
100 val glyphs = shape("a", family, FontStyle(300, FontStyle.FONT_SLANT_UPRIGHT)) in testVariableFamily_singleFonts_wghtOnly_upright()
113 val family = requireNotNull(FontFamily.Builder(wghtUprightFont).buildVariableFamily()) in testVariableFamily_singleFonts_wghtOnly_italic() constant
115 val glyphs = shape("a", family, FontStyle(500, FontStyle.FONT_SLANT_ITALIC)) in testVariableFamily_singleFonts_wghtOnly_italic()
126 val family = requireNotNull(FontFamily.Builder(wghtItalFont).buildVariableFamily()) in testVariableFamily_singleFonts_wght_ital_upright() constant
128 val glyphs = shape("a", family, FontStyle(300, FontStyle.FONT_SLANT_UPRIGHT)) in testVariableFamily_singleFonts_wght_ital_upright()
[all …]
/cts/tests/tests/graphics/src/android/graphics/cts/
DTypefaceTest.java97 for (String family : FAMILIES) { in createTypeface()
98 Typeface tf = Typeface.create(family, style); in createTypeface()
173 FontFamily family = new FontFamily.Builder(font).build(); in testGetSystemFontFamilyName() local
174 Typeface typefaceFromBuilder = new Typeface.CustomFallbackBuilder(family).build(); in testGetSystemFontFamilyName()
632 final Typeface family = mContext.getResources().getFont(R.font.multiweight_family); in testTypefaceCreate_withExactWeight() local
633 assertNotNull(family); in testTypefaceCreate_withExactWeight()
636 assertEquals(GLYPH_1EM_WIDTH, measureText("a", family), 0f); in testTypefaceCreate_withExactWeight()
637 assertEquals(GLYPH_3EM_WIDTH, measureText("b", family), 0f); in testTypefaceCreate_withExactWeight()
638 assertEquals(GLYPH_1EM_WIDTH, measureText("c", family), 0f); in testTypefaceCreate_withExactWeight()
641 final Typeface thinFamily = Typeface.create(family, 100 /* weight */, false /* italic */); in testTypefaceCreate_withExactWeight()
[all …]
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
DFontRenderingTests.java50 private void fontTestBody(String family, int style, int id) { in fontTestBody() argument
54 boolean thinTestCase = family.endsWith("-thin") && ((style & Typeface.BOLD) == 0); in fontTestBody()
58 final Typeface typeface = Typeface.create(family, style); in fontTestBody()
/cts/tools/cts-tradefed/tests/src/com/android/compatibility/common/tradefed/loading/
DCtsConfigLoadingTest.java273 for (String family : MANDATORY_PARAMETERS_FAMILY) { in createFamilyCheckMap()
274 families.put(family, false); in createFamilyCheckMap()
/cts/apps/CtsVerifier/assets/report/
Dcompatibility_result.css18 font-family: arial,sans-serif;
/cts/tests/tests/text/src/android/text/style/cts/
DTextAppearanceSpanTest.java303 String family = "sans"; in testWriteToParcel() local
304 TextAppearanceSpan textAppearanceSpan = new TextAppearanceSpan(family, 1, 6, null, null); in testWriteToParcel()
308 assertEquals(family, newSpan.getFamily()); in testWriteToParcel()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-0844/
Dlocal_poc.h442 unsigned short family; member