Searched refs:span2 (Results 1 – 4 of 4) sorted by relevance
/cts/tests/tests/text/src/android/text/style/cts/ |
D | SuggestionSpanTest.java | 126 final SuggestionSpan span2 = cloneViaParcel(span1); in testEquals_returnsTrueForDeserializedInstances() local 128 assertTrue("(De)serialized instances should be equal", span1.equals(span2)); in testEquals_returnsTrueForDeserializedInstances() 135 final SuggestionSpan span2 = cloneViaParcel(span1); in testEquals_returnsTrueIfTheFlagsAreDifferent() local 136 span2.setFlags(SuggestionSpan.FLAG_EASY_CORRECT); in testEquals_returnsTrueIfTheFlagsAreDifferent() 139 SuggestionSpan.FLAG_EASY_CORRECT, span2.getFlags()); in testEquals_returnsTrueIfTheFlagsAreDifferent() 141 assertTrue("Instances with different flags should be equal", span1.equals(span2)); in testEquals_returnsTrueIfTheFlagsAreDifferent() 159 final SuggestionSpan span2 = new SuggestionSpan(null, anyLocale, anySuggestions, anyFlags, in testEquals_returnsFalseIfCreationTimeIsNotSame() local 162 assertFalse("Instances created at different time should not be equal", span2.equals(span1)); in testEquals_returnsFalseIfCreationTimeIsNotSame()
|
/cts/tests/tests/text/src/android/text/cts/ |
D | SpannableStringTest.java | 248 final Object span2 = new Object(); in testEquals() local 252 ss1.setSpan(span2, 1, 5, 0); in testEquals() 258 ss2.setSpan(span2, 1, 5, 0); in testEquals() 268 final Object span2 = new Object(); in testEqualsWithPriority() local 272 ss1.setSpan(span2, 1, 5, Spanned.SPAN_PRIORITY); in testEqualsWithPriority() 277 ss2.setSpan(span2, 1, 5, Spanned.SPAN_PRIORITY); in testEqualsWithPriority() 288 final Object span2 = new Object(); in testEqualsWithDifferentSequence() local 292 ss1.setSpan(span2, 1, 5, Spanned.SPAN_PRIORITY); in testEqualsWithDifferentSequence() 295 ss2.setSpan(span2, 1, 5, Spanned.SPAN_PRIORITY); in testEqualsWithDifferentSequence()
|
D | SpannableStringBuilderTest.java | 603 UnderlineSpan span2 = new UnderlineSpan(); in testGetSpans() local 605 builder.setSpan(span2, 4, 8, Spanned.SPAN_MARK_POINT); in testGetSpans() 614 assertSame(span2, underlineSpans[1]); in testGetSpans() 780 final Object span2 = new Object(); in testEquals() local 784 bd1.setSpan(span2, 1, 5, 0); in testEquals() 790 bd2.setSpan(span2, 1, 5, 0); in testEquals() 801 final Object span2 = new Object(); in testEqualsWithPriority() local 805 bd1.setSpan(span2, 1, 5, Spanned.SPAN_PRIORITY); in testEqualsWithPriority() 810 bd2.setSpan(span2, 1, 5, Spanned.SPAN_PRIORITY); in testEqualsWithPriority() 822 final Object span2 = new Object(); in testEqualsWithDifferentSequence() local [all …]
|
D | TextUtilsTest.java | 326 final Object span2 = new Object(); in testConcat_twoParagraphSpans() local 328 string2.setSpan(span2, 0, string2.length(), Spanned.SPAN_PARAGRAPH); in testConcat_twoParagraphSpans() 346 final Object span2 = new Object(); in testConcat_oneParagraphSpanAndOneInclusiveSpan() local 348 string2.setSpan(span2, 0, string2.length(), Spanned.SPAN_INCLUSIVE_INCLUSIVE); in testConcat_oneParagraphSpanAndOneInclusiveSpan() 357 assertSame(span2, spans[1]); in testConcat_oneParagraphSpanAndOneInclusiveSpan()
|