Home
last modified time | relevance | path

Searched refs:getTypeface (Results 1 – 12 of 12) sorted by relevance

/cts/tests/tests/text/src/android/text/style/cts/
DStyleSpanTest.java69 assertNotNull(tp.getTypeface()); in testUpdateMeasureState()
70 assertEquals(Typeface.NORMAL, tp.getTypeface().getStyle()); in testUpdateMeasureState()
74 assertNotNull(tp.getTypeface()); in testUpdateMeasureState()
75 assertEquals(Typeface.BOLD, tp.getTypeface().getStyle()); in testUpdateMeasureState()
93 assertNotNull(tp.getTypeface()); in testUpdateDrawState()
94 assertEquals(Typeface.NORMAL, tp.getTypeface().getStyle()); in testUpdateDrawState()
98 assertNotNull(tp.getTypeface()); in testUpdateDrawState()
99 assertEquals(Typeface.BOLD, tp.getTypeface().getStyle()); in testUpdateDrawState()
DTypefaceSpanTest.java44 assertEquals(typeface, t.getTypeface()); in testConstructorFromTypeface()
72 assertNull(tp.getTypeface()); in testUpdateMeasureState()
76 assertNotNull(tp.getTypeface()); in testUpdateMeasureState()
78 assertEquals(Typeface.NORMAL, tp.getTypeface().getStyle()); in testUpdateMeasureState()
93 assertNull(tp.getTypeface()); in testUpdateDrawState()
97 assertNotNull(tp.getTypeface()); in testUpdateDrawState()
99 assertEquals(Typeface.NORMAL, tp.getTypeface().getStyle()); in testUpdateDrawState()
DTextAppearanceSpanTest.java420 assertEquals(span.getTypeface(), unparceledSpan.getTypeface()); in testWriteReadParcel_WithAllAttributes()
527 paint.setTypeface(textView0.getTypeface()); in testSameAsTextView_Typeface()
534 assertTypefaceSame(paint.getTypeface(), textView1.getTypeface()); in testSameAsTextView_Typeface()
543 paint.setTypeface(textView0.getTypeface()); in testSameAsTextView_TypefaceWithStyle()
550 assertTypefaceSame(paint.getTypeface(), textView1.getTypeface()); in testSameAsTextView_TypefaceWithStyle()
559 paint.setTypeface(textView0.getTypeface()); in testSameAsTextView_TypefaceWithWeight()
567 assertTypefaceSame(paint.getTypeface(), textView1.getTypeface()); in testSameAsTextView_TypefaceWithWeight()
577 paint.setTypeface(textView0.getTypeface()); in testSameAsTextView_WeightAndBold()
584 assertTypefaceSame(paint.getTypeface(), textView1.getTypeface()); in testSameAsTextView_WeightAndBold()
593 paint.setTypeface(textView0.getTypeface()); in testSameAsTextView_FontFamily()
[all …]
/cts/tests/tests/text/src/android/text/cts/
DTextPaintTest.java64 assertNull(textPaint.getTypeface()); in testSet()
73 assertEquals(textPaintSrc.getTypeface(), textPaint.getTypeface()); in testSet()
DBoringLayoutTest.java374 + "mTypeface=" + p.getTypeface() + ", " in textPaintToString()
DStaticLayoutTest.java1317 + "mTypeface=" + p.getTypeface() + ", "
/cts/tests/accessibility/src/android/view/accessibility/cts/
DCaptioningManagerTest.java126 assertNull("Default user style has no typeface", userStyle.getTypeface()); in testUserStyle()
/cts/tests/tests/graphics/src/android/graphics/cts/
DPaintTest.java261 assertEquals(t, p2.getTypeface()); in testSet()
269 assertEquals(t, p2.getTypeface()); in testSet()
283 assertNull(p2.getTypeface()); in testSet()
291 assertNull(p2.getTypeface()); in testSet()
386 assertEquals(Typeface.DEFAULT, p.getTypeface()); in testAccessTypeface()
389 assertEquals(Typeface.DEFAULT_BOLD, p.getTypeface()); in testAccessTypeface()
392 assertEquals(Typeface.MONOSPACE, p.getTypeface()); in testAccessTypeface()
395 assertNull(p.getTypeface()); in testAccessTypeface()
1147 assertEquals(t, p.getTypeface()); in testReset()
1158 assertEquals(null, p.getTypeface()); in testReset()
[all …]
/cts/tests/tests/widget/src/android/widget/cts/
DTextViewTest.java3328 assertNull(mTextView.getTypeface()); in testTextAttr()
3331 assertSame(Typeface.DEFAULT, mTextView.getTypeface()); in testTextAttr()
3334 assertNull(mTextView.getTypeface()); in testTextAttr()
3339 assertSame(Typeface.BOLD, mTextView.getTypeface().getStyle()); in testTextAttr()
3343 assertSame(Typeface.BOLD, mTextView.getTypeface().getStyle()); in testTextAttr()
3347 assertEquals(Typeface.NORMAL, mTextView.getTypeface().getStyle()); in testTextAttr()
4863 assertEquals(Typeface.BOLD, mTextView.getTypeface().getStyle()); in testDeprecatedSetTextAppearance()
4879 assertEquals(Typeface.NORMAL, mTextView.getTypeface().getStyle()); in testDeprecatedSetTextAppearance()
4882 assertEquals(null, mTextView.getTypeface()); in testDeprecatedSetTextAppearance()
4894 assertEquals(Typeface.BOLD, mTextView.getTypeface().getStyle()); in testSetTextAppearance()
[all …]
DTextViewPrecomputedTextTest.java96 final Typeface tf = paint.getTypeface(); in makeDifferentParams()
DTextViewFontWeightTest.java103 Typeface typeface = tv.getTypeface(); in assertFontSelected()
/cts/tests/tests/provider/src/android/provider/cts/
DFontsContractTest.java124 public Typeface getTypeface() { in getTypeface() method in FontsContractTest.TestCallback