Home
last modified time | relevance | path

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

/appcompat/appcompat/src/androidTest/java/androidx/appcompat/widget/
DAppCompatTextViewTest.java261 assertNotNull(textView.getTypeface()); in testFontResources_setInStringFamilyName()
265 assertEquals(Typeface.SANS_SERIF, textView.getTypeface()); in testFontResources_setInStringFamilyName()
268 assertNotNull(textView.getTypeface()); in testFontResources_setInStringFamilyName()
270 assertEquals(Typeface.SANS_SERIF, textView.getTypeface()); in testFontResources_setInStringFamilyName()
279 assertEquals(expected, textView.getTypeface()); in testFontResources_setInXmlFamilyName()
287 assertEquals(expected, textView.getTypeface()); in testFontResourcesXml_setInXmlFamilyName()
295 assertNotEquals(Typeface.DEFAULT, textView.getTypeface()); in testFontResourcesXml_setInXmlFamilyNameWithTextStyle()
303 assertNotEquals(Typeface.DEFAULT, textView.getTypeface()); in testFontResourcesXml_setInXmlFamilyNameWithTextStyle2()
311 assertEquals(expected, textView.getTypeface()); in testFontResources_setInXmlStyle()
319 assertEquals(expected, textView.getTypeface()); in testFontResourcesXml_setInXmlStyle()
[all …]
DAppCompatButtonTest.java108 assertEquals(expected, button.getTypeface()); in testFontResources()
DAppCompatToggleButtonTest.java65 assertEquals(expected, toggleButton.getTypeface()); in testFontResources()
DAppCompatRadioButtonTest.java70 assertEquals(expected, radioButton.getTypeface()); in testFontResources()
DAppCompatCheckBoxTest.java70 assertEquals(expected, checkBox.getTypeface()); in testFontResources()
DSwitchCompatTest.java77 assertEquals(expected, switchButton.getTypeface()); in testFontResources()
DAppCompatCheckedTextViewTest.java77 assertEquals(expected, textView.getTypeface()); in testFontResources()
DAppCompatBaseAutoSizeTest.java551 if (autoSizeView.getTypeface() == Typeface.MONOSPACE) {
567 autoSizeView.setTypeface(autoSizeView.getTypeface());
/appcompat/appcompat/src/main/java/androidx/appcompat/widget/
DAppCompatTextView.java257 if (mLastKnownTypefaceSetOnPaint != getPaint().getTypeface()) { in setFontVariationSettings()
261 baseTypeface = getPaint().getTypeface(); in setFontVariationSettings()
840 public @Nullable Typeface getTypeface() { in getTypeface() method in AppCompatTextView
DSwitchCompat.java432 if ((mTextPaint.getTypeface() != null && !mTextPaint.getTypeface().equals(typeface)) in setSwitchTypeface()
433 || (mTextPaint.getTypeface() == null && typeface != null)) { in setSwitchTypeface()
DAppCompatTextHelper.java848 result = paint.getTypeface();
/appcompat/appcompat/src/androidTest/java/androidx/appcompat/app/
DAlertDialogTest.java1461 final Typeface typeface = textView.getTypeface(); in matchesSafely()