Searched refs:bgColorSpan (Results 1 – 1 of 1) sorted by relevance
/cts/tests/tests/text/src/android/text/cts/ |
D | TextUtilsTest.java | 273 BackgroundColorSpan bgColorSpan = new BackgroundColorSpan(Color.GREEN); in testConcat() local 274 string2.setSpan(bgColorSpan, 0, string2.length() - 1, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in testConcat() 287 assertEquals(string1.length() + comma.length(), strResult.getSpanStart(bgColorSpan)); in testConcat() 288 assertEquals(strResult.length() - 1, strResult.getSpanEnd(bgColorSpan)); in testConcat() 370 BackgroundColorSpan bgColorSpan = new BackgroundColorSpan(Color.GREEN); in testCopySpansFrom() local 371 source1.setSpan(bgColorSpan, midPos - 1, in testCopySpansFrom() 386 assertEquals(midPos - 1, dest1.getSpanStart(bgColorSpan)); in testCopySpansFrom() 387 assertEquals(source1.length() - 1, dest1.getSpanEnd(bgColorSpan)); in testCopySpansFrom() 388 assertEquals(Spanned.SPAN_EXCLUSIVE_EXCLUSIVE, dest1.getSpanFlags(bgColorSpan)); in testCopySpansFrom() 754 BackgroundColorSpan bgColorSpan = new BackgroundColorSpan(Color.GREEN); in testEquals() local [all …]
|