Home
last modified time | relevance | path

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

/cts/tests/tests/text/src/android/text/cts/
DTextUtilsTest.java152 BackgroundColorSpan bgColorSpan = new BackgroundColorSpan(Color.GREEN); in testConcat() local
153 string2.setSpan(bgColorSpan, 0, string2.length() - 1, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in testConcat()
166 assertEquals(string1.length() + comma.length(), strResult.getSpanStart(bgColorSpan)); in testConcat()
167 assertEquals(strResult.length() - 1, strResult.getSpanEnd(bgColorSpan)); in testConcat()
191 BackgroundColorSpan bgColorSpan = new BackgroundColorSpan(Color.GREEN); in testCopySpansFrom() local
192 source1.setSpan(bgColorSpan, midPos - 1, in testCopySpansFrom()
207 assertEquals(midPos - 1, dest1.getSpanStart(bgColorSpan)); in testCopySpansFrom()
208 assertEquals(source1.length() - 1, dest1.getSpanEnd(bgColorSpan)); in testCopySpansFrom()
209 assertEquals(Spanned.SPAN_EXCLUSIVE_EXCLUSIVE, dest1.getSpanFlags(bgColorSpan)); in testCopySpansFrom()
549 BackgroundColorSpan bgColorSpan = new BackgroundColorSpan(Color.GREEN); in testEquals() local
[all …]