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.java37 String source1 = "source_without_invalid_char"; in testFilter() local
45 assertNull(loginFilter.filter(source1, 0, source1.length(), dest1, 0, dest1.length())); in testFilter()
51 assertNull(loginFilter.filter(source1, 0, source1.length(), dest2, 5, 6)); 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()
111 loginFilter.filter(source1, 0, source1.length(), dest1, -1, dest1.length() + 1); in testFilter()
114 loginFilter.filter(source1, 0, source1.length(), dest1, dest1.length(), 0); in testFilter()
DTextUtilsTest.java183 SpannableString source1 = new SpannableString(text); in testCopySpansFrom() local
184 int midPos = source1.length() / 2; in testCopySpansFrom()
187 source1.setSpan(urlSpan, 0, midPos, Spanned.SPAN_INCLUSIVE_INCLUSIVE); in testCopySpansFrom()
189 source1.setSpan(bgColorSpan, midPos - 1, in testCopySpansFrom()
190 source1.length() - 1, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in testCopySpansFrom()
194 TextUtils.copySpansFrom(source1, 0, source1.length(), Object.class, dest1, 0); in testCopySpansFrom()
205 assertEquals(source1.length() - 1, dest1.getSpanEnd(bgColorSpan)); in testCopySpansFrom()