Home
last modified time | relevance | path

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

/cts/tests/tests/text/src/android/text/cts/
DLoginFilterTest.java51 String source1 = "source_without_invalid_char"; in testFilter() local
59 assertNull(loginFilter.filter(source1, 0, source1.length(), dest1, 0, dest1.length())); in testFilter()
65 assertNull(loginFilter.filter(source1, 0, source1.length(), dest2, 5, 6)); 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()
125 loginFilter.filter(source1, 0, source1.length(), dest1, -1, dest1.length() + 1); in testFilter()
128 loginFilter.filter(source1, 0, source1.length(), dest1, dest1.length(), 0); in testFilter()
DTextUtilsTest.java366 SpannableString source1 = new SpannableString(text); in testCopySpansFrom() local
367 int midPos = source1.length() / 2; in testCopySpansFrom()
370 source1.setSpan(urlSpan, 0, midPos, Spanned.SPAN_INCLUSIVE_INCLUSIVE); in testCopySpansFrom()
372 source1.setSpan(bgColorSpan, midPos - 1, in testCopySpansFrom()
373 source1.length() - 1, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in testCopySpansFrom()
377 TextUtils.copySpansFrom(source1, 0, source1.length(), Object.class, dest1, 0); in testCopySpansFrom()
388 assertEquals(source1.length() - 1, dest1.getSpanEnd(bgColorSpan)); in testCopySpansFrom()