Home
last modified time | relevance | path

Searched refs:span1 (Results 1 – 5 of 5) sorted by relevance

/cts/tests/tests/text/src/android/text/style/cts/
DSuggestionSpanTest.java124 final SuggestionSpan span1 = new SuggestionSpan(null, Locale.forLanguageTag("en"), in testEquals_returnsTrueForDeserializedInstances() local
126 final SuggestionSpan span2 = cloneViaParcel(span1); in testEquals_returnsTrueForDeserializedInstances()
128 assertTrue("(De)serialized instances should be equal", span1.equals(span2)); in testEquals_returnsTrueForDeserializedInstances()
133 final SuggestionSpan span1 = new SuggestionSpan(null, Locale.forLanguageTag("en"), in testEquals_returnsTrueIfTheFlagsAreDifferent() local
135 final SuggestionSpan span2 = cloneViaParcel(span1); in testEquals_returnsTrueIfTheFlagsAreDifferent()
141 assertTrue("Instances with different flags should be equal", span1.equals(span2)); in testEquals_returnsTrueIfTheFlagsAreDifferent()
151 final SuggestionSpan span1 = 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/
DSpannableStringTest.java247 final Object span1 = new Object(); in testEquals() local
251 ss1.setSpan(span1, 0, 5, 0); in testEquals()
257 ss2.setSpan(span1, 0, 5, 0); in testEquals()
267 final Object span1 = new Object(); in testEqualsWithPriority() local
271 ss1.setSpan(span1, 0, 5, 0); in testEqualsWithPriority()
278 ss2.setSpan(span1, 0, 5, 0); in testEqualsWithPriority()
287 final Object span1 = new Object(); in testEqualsWithDifferentSequence() local
291 ss1.setSpan(span1, 0, 5, Spanned.SPAN_PRIORITY); in testEqualsWithDifferentSequence()
296 ss2.setSpan(span1, 0, 5, Spanned.SPAN_PRIORITY); in testEqualsWithDifferentSequence()
DSpannableStringBuilderTest.java602 UnderlineSpan span1 = new UnderlineSpan(); in testGetSpans() local
604 builder.setSpan(span1, 1, 2, Spanned.SPAN_POINT_POINT); in testGetSpans()
613 assertSame(span1, underlineSpans[0]); in testGetSpans()
779 final Object span1 = new Object(); in testEquals() local
783 bd1.setSpan(span1, 0, 5, 0); in testEquals()
789 bd2.setSpan(span1, 0, 5, 0); in testEquals()
800 final Object span1 = new Object(); in testEqualsWithPriority() local
804 bd1.setSpan(span1, 0, 5, 0); in testEqualsWithPriority()
811 bd2.setSpan(span1, 0, 5, 0); in testEqualsWithPriority()
821 final Object span1 = new Object(); in testEqualsWithDifferentSequence() local
[all …]
DTextUtilsTest.java325 final Object span1 = new Object(); in testConcat_twoParagraphSpans() local
327 string1.setSpan(span1, 0, string1.length(), Spanned.SPAN_PARAGRAPH); in testConcat_twoParagraphSpans()
334 assertSame(span1, spans[0]); in testConcat_twoParagraphSpans()
345 final Object span1 = new Object(); in testConcat_oneParagraphSpanAndOneInclusiveSpan() local
347 string1.setSpan(span1, 0, string1.length(), Spanned.SPAN_PARAGRAPH); in testConcat_oneParagraphSpanAndOneInclusiveSpan()
354 assertSame(span1, spans[0]); in testConcat_oneParagraphSpanAndOneInclusiveSpan()
/cts/tests/accessibility/src/android/view/accessibility/cts/
DAccessibilityNodeInfoTest.java256 final ImageSpan span1 = new ImageSpan(getContext(), bitmap); in testParcelTextImageSpans_haveSameContentDescriptions() local
257 span1.setContentDescription("Span1 contentDescription"); in testParcelTextImageSpans_haveSameContentDescriptions()
271 stringWithSpans.setSpan(span1, span1Start, span1End, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in testParcelTextImageSpans_haveSameContentDescriptions()
282 assertEquals(span1.getContentDescription(), actualSpans[0].getContentDescription()); in testParcelTextImageSpans_haveSameContentDescriptions()