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.java46 FontFamily family = new FontFamily.Builder(font).build(); in testBuilder_SingleFont() local
47 assertNotNull(family); in testBuilder_SingleFont()
48 assertEquals(1, family.getSize()); in testBuilder_SingleFont()
49 assertSame(font, family.getFont(0)); in testBuilder_SingleFont()
59 FontFamily family = new FontFamily.Builder(regularFont).addFont(boldFont).build(); in testBuilder_MultipleFont() local
60 assertNotNull(family); in testBuilder_MultipleFont()
61 assertEquals(2, family.getSize()); in testBuilder_MultipleFont()
62 assertNotSame(family.getFont(0), family.getFont(1)); in testBuilder_MultipleFont()
63 assertTrue(family.getFont(0) == regularFont || family.getFont(0) == boldFont); in testBuilder_MultipleFont()
64 assertTrue(family.getFont(1) == regularFont || family.getFont(1) == boldFont); in testBuilder_MultipleFont()
[all …]
/cts/tests/tests/graphics/src/android/graphics/cts/
DTypefaceTest.java89 for (String family : FAMILIES) { in createTypeface()
90 Typeface tf = Typeface.create(family, style); in createTypeface()
588 final Typeface family = mContext.getResources().getFont(R.font.multiweight_family); in testTypefaceCreate_withExactWeight() local
589 assertNotNull(family); in testTypefaceCreate_withExactWeight()
592 assertEquals(GLYPH_1EM_WIDTH, measureText("a", family), 0f); in testTypefaceCreate_withExactWeight()
593 assertEquals(GLYPH_3EM_WIDTH, measureText("b", family), 0f); in testTypefaceCreate_withExactWeight()
594 assertEquals(GLYPH_1EM_WIDTH, measureText("c", family), 0f); in testTypefaceCreate_withExactWeight()
597 final Typeface thinFamily = Typeface.create(family, 100 /* weight */, false /* italic */); in testTypefaceCreate_withExactWeight()
603 final Typeface boldFamily = Typeface.create(family, 700 /* weight */, false /* italic */); in testTypefaceCreate_withExactWeight()
618 final Typeface family = mContext.getResources().getFont(R.font.multistyle_family); in testTypefaceCreate_withExactStyle() local
[all …]
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
DFontRenderingTests.java48 private void fontTestBody(String family, int style, int id) { in fontTestBody() argument
52 boolean thinTestCase = family.endsWith("-thin") && ((style & Typeface.BOLD) == 0); in fontTestBody()
56 final Typeface typeface = Typeface.create(family, style); in fontTestBody()
/cts/tests/tests/net/native/qtaguid/src/
DNativeQtaguidTest.cpp75 void checkNoSocketPointerLeaks(int family) { in checkNoSocketPointerLeaks() argument
76 int sockfd = socket(family, SOCK_STREAM, 0); in checkNoSocketPointerLeaks()
/cts/tests/tests/net/jni/
DNativeMultinetworkJni.cpp96 int extractIpAddressAnswers(uint8_t* buf, size_t bufLen, int family) { in extractIpAddressAnswers() argument
115 if (inet_ntop(family, (const char*) rdata, buffer, sizeof(buffer)) == NULL) { in extractIpAddressAnswers()
123 int expectAnswersValid(JNIEnv* env, int fd, int family, int expectedRcode) { in expectAnswersValid() argument
134 return extractIpAddressAnswers(buf, res, family); in expectAnswersValid()
/cts/tests/tests/net/src/android/net/cts/
DConnectivityManagerTest.java888 private InetAddress getAddrByName(final String hostname, final int family) throws Exception { in getAddrByName() argument
891 if (family == AF_INET && addr instanceof Inet4Address) return addr; in getAddrByName()
893 if (family == AF_INET6 && addr instanceof Inet6Address) return addr; in getAddrByName()
895 if (family == AF_UNSPEC) return addr; in getAddrByName()
901 final int family) throws Exception { in getConnectedSocket() argument
904 final InetAddress addr = getAddrByName(host, family); in getConnectedSocket()
905 if (addr == null) fail("Fail to get destination address for " + family); in getConnectedSocket()
/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/apps/CtsVerifier/assets/report/
Dcompatibility_result.css18 font-family: arial,sans-serif;
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-0844/
Dlocal_poc.h442 unsigned short family; member