Home
last modified time | relevance | path

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

/cts/tests/tests/text/src/android/text/style/cts/
DSuggestionSpanTest.java124 final SuggestionSpan span2 = cloneViaParcel(span1); in testEquals_returnsTrueForDeserializedInstances() local
126 assertTrue("(De)serialized instances should be equal", span1.equals(span2)); in testEquals_returnsTrueForDeserializedInstances()
133 final SuggestionSpan span2 = cloneViaParcel(span1); in testEquals_returnsTrueIfTheFlagsAreDifferent() local
134 span2.setFlags(SuggestionSpan.FLAG_EASY_CORRECT); in testEquals_returnsTrueIfTheFlagsAreDifferent()
137 SuggestionSpan.FLAG_EASY_CORRECT, span2.getFlags()); in testEquals_returnsTrueIfTheFlagsAreDifferent()
139 assertTrue("Instances with different flags should be equal", span1.equals(span2)); in testEquals_returnsTrueIfTheFlagsAreDifferent()
157 final SuggestionSpan span2 = new SuggestionSpan(null, anyLocale, anySuggestions, anyFlags, in testEquals_returnsFalseIfCreationTimeIsNotSame() local
160 assertFalse("Instances created at different time should not be equal", span2.equals(span1)); in testEquals_returnsFalseIfCreationTimeIsNotSame()
/cts/tests/tests/text/src/android/text/cts/
DSpannableStringBuilderTest.java601 UnderlineSpan span2 = new UnderlineSpan(); in testGetSpans() local
603 builder.setSpan(span2, 4, 8, Spanned.SPAN_MARK_POINT); in testGetSpans()
612 assertSame(span2, underlineSpans[1]); in testGetSpans()
DTextUtilsTest.java325 final Object span2 = new Object(); in testConcat_twoParagraphSpans() local
327 string2.setSpan(span2, 0, string2.length(), Spanned.SPAN_PARAGRAPH); in testConcat_twoParagraphSpans()
345 final Object span2 = new Object(); in testConcat_oneParagraphSpanAndOneInclusiveSpan() local
347 string2.setSpan(span2, 0, string2.length(), Spanned.SPAN_INCLUSIVE_INCLUSIVE); in testConcat_oneParagraphSpanAndOneInclusiveSpan()
356 assertSame(span2, spans[1]); in testConcat_oneParagraphSpanAndOneInclusiveSpan()