Searched refs:typeface1 (Results 1 – 3 of 3) sorted by relevance
/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | TypefaceTest.java | 326 Typeface typeface1 = Typeface.createFromAsset(mContext.getAssets(), in testCreateFromAsset_cachesTypeface() local 328 assertNotNull(typeface1); in testCreateFromAsset_cachesTypeface() 333 assertSame("Same font asset should return same Typeface object", typeface1, typeface2); in testCreateFromAsset_cachesTypeface() 359 Typeface typeface1 = new Typeface.Builder(mContext.getAssets(), in testTypefaceBuilder_AssetSource() local 361 assertNotNull(typeface1); in testTypefaceBuilder_AssetSource() 366 assertSame("Same font asset should return same Typeface object", typeface1, typeface2); in testTypefaceBuilder_AssetSource() 405 Typeface typeface1 = new Typeface.Builder(obtainPath()).build(); in testTypefaceBuilder_FileSource() local 406 assertNotNull(typeface1); in testTypefaceBuilder_FileSource() 415 assertNotSame(typeface1, typeface3); in testTypefaceBuilder_FileSource()
|
/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 825 p1.setTypeface(typeface1); in getLargerTypeface() 832 return typeface1; in getLargerTypeface() 863 Typeface typeface1 = mResources.getFont(R.font.sample_variation_settings_family1); in testGetFont_xmlFileWithVariationSettings() local 864 assertNotNull(typeface1); in testGetFont_xmlFileWithVariationSettings() 868 assertNotSame(typeface1, typeface2); in testGetFont_xmlFileWithVariationSettings() 869 assertEquals(getLargerTypeface("-", typeface1, typeface2), typeface2); in testGetFont_xmlFileWithVariationSettings()
|
/cts/tests/tests/text/src/android/text/style/cts/ |
D | TextAppearanceSpanTest.java | 480 private void assertTypefaceSame(Typeface typeface0, Typeface typeface1) { in assertTypefaceSame() argument 501 paint1.setTypeface(typeface1); in assertTypefaceSame()
|