Searched refs:typeface2 (Results 1 – 2 of 2) sorted by relevance
/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | TypefaceTest.java | 330 Typeface typeface2 = Typeface.createFromAsset(mContext.getAssets(), in testCreateFromAsset_cachesTypeface() local 332 assertNotNull(typeface2); in testCreateFromAsset_cachesTypeface() 333 assertSame("Same font asset should return same Typeface object", typeface1, typeface2); in testCreateFromAsset_cachesTypeface() 339 typeface2, typeface3); in testCreateFromAsset_cachesTypeface() 345 typeface2, typeface4); in testCreateFromAsset_cachesTypeface() 363 Typeface typeface2 = new Typeface.Builder(mContext.getAssets(), in testTypefaceBuilder_AssetSource() local 365 assertNotNull(typeface2); in testTypefaceBuilder_AssetSource() 366 assertSame("Same font asset should return same Typeface object", typeface1, typeface2); in testTypefaceBuilder_AssetSource() 372 typeface2, typeface3); in testTypefaceBuilder_AssetSource() 378 typeface2, typeface4); in testTypefaceBuilder_AssetSource() [all …]
|
/cts/tests/tests/content/src/android/content/res/cts/ |
D | ResourcesTest.java | 823 private Typeface getLargerTypeface(String text, Typeface typeface1, Typeface typeface2) { in getLargerTypeface() argument 828 p2.setTypeface(typeface2); in getLargerTypeface() 834 return typeface2; in getLargerTypeface() 865 Typeface typeface2 = mResources.getFont(R.font.sample_variation_settings_family2); in testGetFont_xmlFileWithVariationSettings() local 866 assertNotNull(typeface2); in testGetFont_xmlFileWithVariationSettings() 868 assertNotSame(typeface1, typeface2); in testGetFont_xmlFileWithVariationSettings() 869 assertEquals(getLargerTypeface("-", typeface1, typeface2), typeface2); in testGetFont_xmlFileWithVariationSettings()
|