Home
last modified time | relevance | path

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

/cts/tests/tests/text/src/android/text/cts/
DLoginFilterTest.java49 Spanned dest1 = new SpannedString("dest_without_invalid_char"); in testFilter() local
59 assertNull(loginFilter.filter(source1, 0, source1.length(), dest1, 0, dest1.length())); in testFilter()
72 dest1, 0, dest1.length())); in testFilter()
79 dest1, 0, dest1.length())); in testFilter()
85 result = loginFilter.filter(source2, 0, source2.length(), dest1, 0, dest1.length()); in testFilter()
94 dest1, 0, dest1.length()); in testFilter()
101 loginFilter.filter(null, 0, source1.length(), dest1, 0, dest1.length()); in testFilter()
108 loginFilter.filter(source1, -1, source1.length() + 1, dest1, 0, dest1.length()); in testFilter()
116 loginFilter.filter(source1, source1.length(), 0, dest1, 0, dest1.length())); in testFilter()
119 loginFilter.filter(source1, 0, source1.length(), null, 2, dest1.length()); in testFilter()
[all …]
DTextUtilsTest.java376 SpannableString dest1 = new SpannableString(text); in testCopySpansFrom() local
377 TextUtils.copySpansFrom(source1, 0, source1.length(), Object.class, dest1, 0); in testCopySpansFrom()
378 spans = dest1.getSpans(0, dest1.length(), Object.class); in testCopySpansFrom()
384 assertEquals(0, dest1.getSpanStart(urlSpan)); in testCopySpansFrom()
385 assertEquals(midPos, dest1.getSpanEnd(urlSpan)); in testCopySpansFrom()
386 assertEquals(Spanned.SPAN_INCLUSIVE_INCLUSIVE, dest1.getSpanFlags(urlSpan)); 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()