Home
last modified time | relevance | path

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

/cts/tests/tests/text/src/android/text/cts/
DTextUtilsTest.java269 SpannableString string1 = new SpannableString("first"); in testConcat() local
273 string1.setSpan(urlSpan, 0, string1.length() - 1, Spanned.SPAN_INCLUSIVE_INCLUSIVE); in testConcat()
278 Spanned strResult = (Spanned) TextUtils.concat(string1, comma, string2); in testConcat()
279 assertEquals(string1.toString() + comma + string2.toString(), strResult.toString()); in testConcat()
287 assertEquals(string1.length() - 1, strResult.getSpanEnd(urlSpan)); in testConcat()
288 assertEquals(string1.length() + comma.length(), strResult.getSpanStart(bgColorSpan)); in testConcat()
291 assertEquals(string1, TextUtils.concat(string1)); in testConcat()
323 final SpannableString string1 = new SpannableString("a"); in testConcat_twoParagraphSpans() local
327 string1.setSpan(span1, 0, string1.length(), Spanned.SPAN_PARAGRAPH); in testConcat_twoParagraphSpans()
330 final Spanned result = (Spanned) TextUtils.concat(string1, string2); in testConcat_twoParagraphSpans()
[all …]