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.java149 BackgroundColorSpan bgColorSpan = new BackgroundColorSpan(Color.GREEN); in testConcat() local
150 string2.setSpan(bgColorSpan, 0, string2.length() - 1, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in testConcat()
163 assertEquals(string1.length() + comma.length(), strResult.getSpanStart(bgColorSpan)); in testConcat()
164 assertEquals(strResult.length() - 1, strResult.getSpanEnd(bgColorSpan)); in testConcat()
188 BackgroundColorSpan bgColorSpan = new BackgroundColorSpan(Color.GREEN); in testCopySpansFrom() local
189 source1.setSpan(bgColorSpan, midPos - 1, in testCopySpansFrom()
204 assertEquals(midPos - 1, dest1.getSpanStart(bgColorSpan)); in testCopySpansFrom()
205 assertEquals(source1.length() - 1, dest1.getSpanEnd(bgColorSpan)); in testCopySpansFrom()
206 assertEquals(Spanned.SPAN_EXCLUSIVE_EXCLUSIVE, dest1.getSpanFlags(bgColorSpan)); in testCopySpansFrom()
546 BackgroundColorSpan bgColorSpan = new BackgroundColorSpan(Color.GREEN); in testEquals() local
[all …]