Searched refs:getTypeface (Results 1 – 15 of 15) sorted by relevance
80 assertNotNull(tp.getTypeface()); in testUpdateMeasureState_withStyle()81 assertEquals(Typeface.NORMAL, tp.getTypeface().getStyle()); in testUpdateMeasureState_withStyle()85 assertNotNull(tp.getTypeface()); in testUpdateMeasureState_withStyle()86 assertEquals(Typeface.BOLD, tp.getTypeface().getStyle()); in testUpdateMeasureState_withStyle()97 assertNotNull(tp.getTypeface()); in testUpdateMeasureState_withFontWeightAdjustment()98 assertEquals(Typeface.NORMAL, tp.getTypeface().getStyle()); in testUpdateMeasureState_withFontWeightAdjustment()102 assertNotNull(tp.getTypeface()); in testUpdateMeasureState_withFontWeightAdjustment()103 assertEquals(Typeface.BOLD, tp.getTypeface().getStyle()); in testUpdateMeasureState_withFontWeightAdjustment()104 assertEquals(tp.getTypeface().getWeight(), FontStyle.FONT_WEIGHT_MAX); in testUpdateMeasureState_withFontWeightAdjustment()122 assertNotNull(tp.getTypeface()); in testUpdateDrawState_withStyle()[all …]
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()
429 assertEquals(span.getTypeface(), unparceledSpan.getTypeface()); in testWriteReadParcel_WithAllAttributes()537 paint.setTypeface(textView0.getTypeface()); in testSameAsTextView_Typeface()544 assertTypefaceSame(paint.getTypeface(), textView1.getTypeface()); in testSameAsTextView_Typeface()553 paint.setTypeface(textView0.getTypeface()); in testSameAsTextView_TypefaceWithStyle()560 assertTypefaceSame(paint.getTypeface(), textView1.getTypeface()); in testSameAsTextView_TypefaceWithStyle()569 paint.setTypeface(textView0.getTypeface()); in testSameAsTextView_TypefaceWithWeight()577 assertTypefaceSame(paint.getTypeface(), textView1.getTypeface()); in testSameAsTextView_TypefaceWithWeight()587 paint.setTypeface(textView0.getTypeface()); in testSameAsTextView_WeightAndBold()594 assertTypefaceSame(paint.getTypeface(), textView1.getTypeface()); in testSameAsTextView_WeightAndBold()603 paint.setTypeface(textView0.getTypeface()); in testSameAsTextView_FontFamily()[all …]
65 assertNull(textPaint.getTypeface()); in testSet()74 assertEquals(textPaintSrc.getTypeface(), textPaint.getTypeface()); in testSet()
386 + "mTypeface=" + p.getTypeface() + ", " in textPaintToString()
1357 + "mTypeface=" + p.getTypeface() + ", "
38 Typeface typeface = paint.getTypeface(); in testTextPathWithOffset()
365 final int defaultFontWeight = mTextView.getTypeface().getWeight(); in testFontWeightAdjustment_forceBoldTextEnabled_typefaceNull_textIsBolded()377 Typeface forceBoldedPaintTf = mTextView.getPaint().getTypeface(); in testFontWeightAdjustment_forceBoldTextEnabled_typefaceNull_textIsBolded()384 final int defaultFontWeight = mTextView.getTypeface().getWeight(); in testFontWeightAdjustment_forceBoldTextEnabled_textIsBolded()394 Typeface forceBoldedPaintTf = mTextView.getPaint().getTypeface(); in testFontWeightAdjustment_forceBoldTextEnabled_textIsBolded()396 assertEquals(defaultFontWeight, mTextView.getTypeface().getWeight()); in testFontWeightAdjustment_forceBoldTextEnabled_textIsBolded()402 final int defaultFontWeight = mTextView.getTypeface().getWeight(); in testFontWeightAdjustment_forceBoldTextDisabled_textIsUnbolded()416 Typeface forceUnboldedPaintTf = mTextView.getPaint().getTypeface(); in testFontWeightAdjustment_forceBoldTextDisabled_textIsUnbolded()418 assertEquals(defaultFontWeight, mTextView.getTypeface().getWeight()); in testFontWeightAdjustment_forceBoldTextDisabled_textIsUnbolded()433 assertEquals(Typeface.MONOSPACE, mTextView.getTypeface()); in testFontWeightAdjustment_forceBoldTextEnabled_originalTypefaceKeptWhenEnabled()435 Typeface forceBoldedPaintTf = mTextView.getPaint().getTypeface(); in testFontWeightAdjustment_forceBoldTextEnabled_originalTypefaceKeptWhenEnabled()[all …]
96 final Typeface tf = paint.getTypeface(); in makeDifferentParams()
103 Typeface typeface = tv.getTypeface(); in assertFontSelected()
270 assertEquals(t, p2.getTypeface()); in testSet()278 assertEquals(t, p2.getTypeface()); in testSet()292 assertNull(p2.getTypeface()); in testSet()300 assertNull(p2.getTypeface()); in testSet()401 assertEquals(Typeface.DEFAULT, p.getTypeface()); in testAccessTypeface()404 assertEquals(Typeface.DEFAULT_BOLD, p.getTypeface()); in testAccessTypeface()407 assertEquals(Typeface.MONOSPACE, p.getTypeface()); in testAccessTypeface()410 assertNull(p.getTypeface()); in testAccessTypeface()1176 assertEquals(t, p.getTypeface()); in testReset()1188 assertEquals(null, p.getTypeface()); in testReset()[all …]
704 assertEquals(100, paint.getTypeface().getWeight()); in testFontVariationSettings()709 assertEquals(300, paint.getTypeface().getWeight()); in testFontVariationSettings()714 assertEquals(800, paint.getTypeface().getWeight()); in testFontVariationSettings()719 assertEquals(550, paint.getTypeface().getWeight()); in testFontVariationSettings()
160 assertNull("Default user style has no typeface", userStyle.getTypeface()); in testUserStyle()
124 public Typeface getTypeface() { in getTypeface() method in FontsContractTest.TestCallback
16548 method public android.graphics.Typeface getTypeface();49031 method @Nullable public android.graphics.Typeface getTypeface();49266 method @Nullable public android.graphics.Typeface getTypeface();55323 method @Nullable public android.graphics.Typeface getTypeface();60952 method public android.graphics.Typeface getTypeface();