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.java35 Spanned dest1 = new SpannedString("dest_without_invalid_char"); in testFilter() local
45 assertNull(loginFilter.filter(source1, 0, source1.length(), dest1, 0, dest1.length())); in testFilter()
58 dest1, 0, dest1.length())); in testFilter()
65 dest1, 0, dest1.length())); in testFilter()
71 result = loginFilter.filter(source2, 0, source2.length(), dest1, 0, dest1.length()); in testFilter()
80 dest1, 0, dest1.length()); in testFilter()
87 loginFilter.filter(null, 0, source1.length(), dest1, 0, dest1.length()); in testFilter()
94 loginFilter.filter(source1, -1, source1.length() + 1, dest1, 0, dest1.length()); in testFilter()
102 loginFilter.filter(source1, source1.length(), 0, dest1, 0, dest1.length())); in testFilter()
105 loginFilter.filter(source1, 0, source1.length(), null, 2, dest1.length()); in testFilter()
[all …]
DTextUtilsTest.java193 SpannableString dest1 = new SpannableString(text); in testCopySpansFrom() local
194 TextUtils.copySpansFrom(source1, 0, source1.length(), Object.class, dest1, 0); in testCopySpansFrom()
195 spans = dest1.getSpans(0, dest1.length(), Object.class); in testCopySpansFrom()
201 assertEquals(0, dest1.getSpanStart(urlSpan)); in testCopySpansFrom()
202 assertEquals(midPos, dest1.getSpanEnd(urlSpan)); in testCopySpansFrom()
203 assertEquals(Spanned.SPAN_INCLUSIVE_INCLUSIVE, dest1.getSpanFlags(urlSpan)); 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()