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.java274 BackgroundColorSpan bgColorSpan = new BackgroundColorSpan(Color.GREEN); in testConcat() local
275 string2.setSpan(bgColorSpan, 0, string2.length() - 1, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in testConcat()
288 assertEquals(string1.length() + comma.length(), strResult.getSpanStart(bgColorSpan)); in testConcat()
289 assertEquals(strResult.length() - 1, strResult.getSpanEnd(bgColorSpan)); in testConcat()
371 BackgroundColorSpan bgColorSpan = new BackgroundColorSpan(Color.GREEN); in testCopySpansFrom() local
372 source1.setSpan(bgColorSpan, midPos - 1, in testCopySpansFrom()
387 assertEquals(midPos - 1, dest1.getSpanStart(bgColorSpan)); in testCopySpansFrom()
388 assertEquals(source1.length() - 1, dest1.getSpanEnd(bgColorSpan)); in testCopySpansFrom()
389 assertEquals(Spanned.SPAN_EXCLUSIVE_EXCLUSIVE, dest1.getSpanFlags(bgColorSpan)); in testCopySpansFrom()
755 BackgroundColorSpan bgColorSpan = new BackgroundColorSpan(Color.GREEN); in testEquals() local
[all …]