Home
last modified time | relevance | path

Searched refs:imageSpan (Results 1 – 2 of 2) sorted by relevance

/cts/tests/tests/text/src/android/text/style/cts/
DImageSpanTest.java100 ImageSpan imageSpan = new ImageSpan(d); in testGetSource() local
101 assertNull(imageSpan.getSource()); in testGetSource()
104 imageSpan = new ImageSpan(d, source); in testGetSource()
105 assertEquals(source, imageSpan.getSource()); in testGetSource()
108 imageSpan = new ImageSpan(mContext, Uri.parse(source)); in testGetSource()
109 assertEquals(source, imageSpan.getSource()); in testGetSource()
116 ImageSpan imageSpan = new ImageSpan(drawable); in testGetDrawable() local
117 assertSame(drawable, imageSpan.getDrawable()); in testGetDrawable()
120 imageSpan = new ImageSpan(mContext, R.drawable.pass); in testGetDrawable()
121 BitmapDrawable resultDrawable = (BitmapDrawable) imageSpan.getDrawable(); in testGetDrawable()
[all …]
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/
DAccessibilityTextActionTest.java252 final ImageSpan imageSpan = new ImageSpan(mActivity, bitmap); in testImageSpan_accessibilityServiceShouldSeeContentDescription() local
254 imageSpan.setContentDescription(contentDescription); in testImageSpan_accessibilityServiceShouldSeeContentDescription()
257 textWithImageSpan.setSpan(imageSpan, /* start= */0, /* end= */1, /* flags= */0); in testImageSpan_accessibilityServiceShouldSeeContentDescription()