Searched refs:getTypeface (Results 1 – 12 of 12) sorted by relevance
/cts/tests/tests/text/src/android/text/style/cts/ |
D | StyleSpanTest.java | 69 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()
|
D | TypefaceSpanTest.java | 44 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()
|
D | TextAppearanceSpanTest.java | 420 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/ |
D | TextPaintTest.java | 64 assertNull(textPaint.getTypeface()); in testSet() 73 assertEquals(textPaintSrc.getTypeface(), textPaint.getTypeface()); in testSet()
|
D | BoringLayoutTest.java | 374 + "mTypeface=" + p.getTypeface() + ", " in textPaintToString()
|
D | StaticLayoutTest.java | 1317 + "mTypeface=" + p.getTypeface() + ", "
|
/cts/tests/accessibility/src/android/view/accessibility/cts/ |
D | CaptioningManagerTest.java | 126 assertNull("Default user style has no typeface", userStyle.getTypeface()); in testUserStyle()
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | PaintTest.java | 261 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/ |
D | TextViewTest.java | 3328 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 …]
|
D | TextViewPrecomputedTextTest.java | 96 final Typeface tf = paint.getTypeface(); in makeDifferentParams()
|
D | TextViewFontWeightTest.java | 103 Typeface typeface = tv.getTypeface(); in assertFontSelected()
|
/cts/tests/tests/provider/src/android/provider/cts/ |
D | FontsContractTest.java | 124 public Typeface getTypeface() { in getTypeface() method in FontsContractTest.TestCallback
|