/cts/tests/tests/text/src/android/text/style/cts/ |
D | QuoteSpanTest.java | 38 QuoteSpan span = new QuoteSpan(); in testDefaultConstructor() local 39 assertEquals(calculateLeadingMargin(span.getStripeWidth(), span.getGapWidth()), in testDefaultConstructor() 40 span.getLeadingMargin(true)); in testDefaultConstructor() 41 assertTrue(span.getColor() != 0); in testDefaultConstructor() 42 assertTrue(span.getGapWidth() > 0); in testDefaultConstructor() 43 assertTrue(span.getStripeWidth() > 0); in testDefaultConstructor() 48 QuoteSpan span = new QuoteSpan(Color.RED); in testConstructorFromColor() local 49 assertEquals(calculateLeadingMargin(span.getStripeWidth(), span.getGapWidth()), in testConstructorFromColor() 50 span.getLeadingMargin(true)); in testConstructorFromColor() 51 assertEquals(Color.RED, span.getColor()); in testConstructorFromColor() [all …]
|
D | SuggestionSpanTest.java | 59 final SuggestionSpan span = new SuggestionSpan(context, suggestions, in testConstructorWithContext() local 62 assertEquals(locale, span.getLocaleObject()); in testConstructorWithContext() 63 assertArrayEquals(suggestions, span.getSuggestions()); in testConstructorWithContext() 64 assertEquals(SuggestionSpan.FLAG_AUTO_CORRECTION, span.getFlags()); in testConstructorWithContext() 70 final SuggestionSpan span = new SuggestionSpan(Locale.forLanguageTag("en"), suggestions, in testGetSuggestionSpans() local 73 suggestions, span.getSuggestions()); in testGetSuggestionSpans() 75 final SuggestionSpan clonedSpan = cloneViaParcel(span); in testGetSuggestionSpans() 83 final SuggestionSpan span = new SuggestionSpan(Locale.forLanguageTag("en"), suggestions, in testGetSuggestionSpans_emptySuggestions() local 86 suggestions, span.getSuggestions()); in testGetSuggestionSpans_emptySuggestions() 89 final SuggestionSpan clonedSpan = cloneViaParcel(span); in testGetSuggestionSpans_emptySuggestions() [all …]
|
D | TextAppearanceSpanTest.java | 210 final TextAppearanceSpan span = new TextAppearanceSpan(mContext, in testCreateFromStyle_FontResource() local 214 span.updateDrawState(tp); in testCreateFromStyle_FontResource() 220 final TextAppearanceSpan span = new TextAppearanceSpan(mContext, in testWriteReadParcel_FontResource() local 224 span.writeToParcel(p, 0); in testWriteReadParcel_FontResource() 229 span.updateDrawState(tp); in testWriteReadParcel_FontResource() 237 final TextAppearanceSpan span = new TextAppearanceSpan(mContext, in testWriteReadParcel_FontResource_WithStyle() local 241 span.writeToParcel(p, 0); in testWriteReadParcel_FontResource_WithStyle() 246 span.updateDrawState(tp); in testWriteReadParcel_FontResource_WithStyle() 256 final TextAppearanceSpan span = new TextAppearanceSpan(ctx, in testRestrictContext() local 260 span.updateDrawState(tp); in testRestrictContext()
|
D | LocaleSpanTest.java | 37 final LocaleSpan span = new LocaleSpan(locales); in verifyGetLocales() local 38 assertEquals(locales.get(0), span.getLocale()); in verifyGetLocales() 39 assertEquals(locales, span.getLocales()); in verifyGetLocales() 41 final LocaleSpan cloned = cloneViaParcel(span); in verifyGetLocales()
|
D | TtsSpanTest.java | 64 TtsSpan span = new TtsSpan("test.type.three", mBundle); in testDescribeContents() local 65 span.describeContents(); in testDescribeContents() 70 TtsSpan span = new TtsSpan("test.type.four", mBundle); in testGetSpanTypeId() local 71 span.getSpanTypeId(); in testGetSpanTypeId() 78 TtsSpan span = new TtsSpan("test.type.five", mBundle); in testWriteAndReadParcel() local 79 span.writeToParcel(p, 0); in testWriteAndReadParcel()
|
/cts/tests/tests/text/src/android/text/cts/ |
D | SpannableStringBuilderSpanTest.java | 146 Object span = mSpanSet.mSpans[count]; in verifySpanPositions() local 149 int start = spannable.getSpanStart(span); in verifySpanPositions() 150 int end = spannable.getSpanEnd(span); in verifySpanPositions() 170 mSpanSet.mRecorder.verifyRemoved(span, originalStart, originalEnd); in verifySpanPositions() 243 mSpanSet.mRecorder.verifyChanged(span, originalStart, originalEnd, start, end); in verifySpanPositions() 245 mSpanSet.mRecorder.verifyUnmodified(span); in verifySpanPositions() 260 Object span = mReplacementSpanSet.mSpans[count]; in verifyReplacementSpanPositions() local 263 int start = originalSpannable.getSpanStart(span); in verifyReplacementSpanPositions() 264 int end = originalSpannable.getSpanEnd(span); in verifyReplacementSpanPositions() 273 mReplacementSpanSet.mRecorder.verifyUnmodified(span); in verifyReplacementSpanPositions() [all …]
|
D | InputFilter_AllCapsTest.java | 117 final Object span = new Object(); in testFilter_greekWithSpans() local 118 source.setSpan(span, 0, 2, Spanned.SPAN_INCLUSIVE_INCLUSIVE); // around "ί" in testFilter_greekWithSpans() 130 assertSame(span, resultSpans[0]); in testFilter_greekWithSpans() 131 assertEquals(0, spannedResult.getSpanStart(span)); in testFilter_greekWithSpans() 133 assertEquals(1, spannedResult.getSpanEnd(span)); in testFilter_greekWithSpans() 134 assertEquals(Spanned.SPAN_INCLUSIVE_INCLUSIVE, spannedResult.getSpanFlags(span)); in testFilter_greekWithSpans()
|
D | PrecomputedTextTest.java | 217 final BackgroundColorSpan span = new BackgroundColorSpan(Color.RED); in testSpannedInterface_Spannable() local 222 s.setSpan(span, SPAN_START, SPAN_END, Spanned.SPAN_INCLUSIVE_EXCLUSIVE); in testSpannedInterface_Spannable() 225 assertEquals(SPAN_START, s.getSpanStart(span)); in testSpannedInterface_Spannable() 226 assertEquals(SPAN_END, s.getSpanEnd(span)); in testSpannedInterface_Spannable() 227 assertTrue((s.getSpanFlags(span) & Spanned.SPAN_INCLUSIVE_EXCLUSIVE) != 0); in testSpannedInterface_Spannable() 233 s.removeSpan(span); in testSpannedInterface_Spannable()
|
D | SpannableStringTest.java | 222 final AlignmentSpan.Standard span = new AlignmentSpan.Standard( in testCopyConstructorDoesNotEnforceParagraphStyleConstraint() local 224 original.setSpan(span, 1, original.length() - 1, Spanned.SPAN_PARAGRAPH); in testCopyConstructorDoesNotEnforceParagraphStyleConstraint()
|
D | DynamicLayoutTest.java | 411 final TypefaceSpan span = mock(TypefaceSpan.class); in testReflow_afterSpanChangedShouldNotThrowException() local 412 builder.setSpan(span, 1, 4, SPAN_EXCLUSIVE_EXCLUSIVE); in testReflow_afterSpanChangedShouldNotThrowException()
|
D | SpannableStringBuilderTest.java | 391 final QuoteSpan span = new QuoteSpan(); in testAppend_textWithSpan() local 394 builder.append("planet", span, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in testAppend_textWithSpan() 404 assertSame("Should be the same span instance", span, spans[0]); in testAppend_textWithSpan()
|
D | TextUtilsTest.java | 307 final Object span = new Object(); in testConcat_NullParameters() local 308 piece.setSpan(span, 0, piece.length(), Spanned.SPAN_INCLUSIVE_EXCLUSIVE); in testConcat_NullParameters() 313 assertSame(span, spans[0]); in testConcat_NullParameters()
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | DialerFilterTest.java | 279 Spannable span = (Spannable) mDialerFilter.getLetters(); in testSetLettersWatcher() local 280 assertEquals(-1, span.getSpanStart(mockTextWatcher)); in testSetLettersWatcher() 281 assertEquals(-1, span.getSpanEnd(mockTextWatcher)); in testSetLettersWatcher() 289 span = (Spannable) mDialerFilter.getLetters(); in testSetLettersWatcher() 290 assertEquals(0, span.getSpanStart(mockTextWatcher)); in testSetLettersWatcher() 291 assertEquals(mDialerFilter.getLetters().length(), span.getSpanEnd(mockTextWatcher)); in testSetLettersWatcher() 292 assertEquals("ANDROID", span.toString()); in testSetLettersWatcher() 314 Spannable span = (Spannable) mDialerFilter.getDigits(); in testSetDigitsWatcher() local 315 assertEquals(-1, span.getSpanStart(mockTextWatcher)); in testSetDigitsWatcher() 316 assertEquals(-1, span.getSpanEnd(mockTextWatcher)); in testSetDigitsWatcher() [all …]
|
D | TableRow_LayoutParamsTest.java | 70 assertEquals(1, layoutParams.span); in testConstructor() 78 assertEquals(1, layoutParams.span); in testConstructor() 83 assertEquals(1, layoutParams.span); in testConstructor() 87 assertEquals(1, layoutParams.span); in testConstructor() 93 assertEquals(0, layoutParams.span); in testConstructor() 99 assertEquals(0, layoutParams.span); in testConstructor() 109 assertEquals(2, layoutParams.span); in testConstructor()
|
D | TextViewTest.java | 1677 ImageSpan span = new ImageSpan(drawable); in testSetTextUpdatesHeightAfterRemovingImageSpan() local 1678 text.setSpan(span, 0, 1, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in testSetTextUpdatesHeightAfterRemovingImageSpan() 1688 text.removeSpan(span); in testSetTextUpdatesHeightAfterRemovingImageSpan() 5921 final Object span = sourceSpans[i]; in testAllCaps_SpansArePreserved() local 5922 assertEquals(indexMap[source.getSpanStart(span)], result.getSpanStart(span)); in testAllCaps_SpansArePreserved() 5923 assertEquals(indexMap[source.getSpanEnd(span)], result.getSpanEnd(span)); in testAllCaps_SpansArePreserved() 5924 assertEquals(source.getSpanFlags(span), result.getSpanFlags(span)); in testAllCaps_SpansArePreserved()
|
/cts/tests/tests/text/src/android/text/method/cts/ |
D | DialerKeyListenerTest.java | 51 SpannableString span = new SpannableString(""); // no meta spans in testLookup() local 56 assertEquals(keyChar, mockDialerKeyListener.lookup(keyEvent, span)); in testLookup() 66 SpannableString span = new SpannableString(""); // no meta spans in testLookupNull() local 67 mockDialerKeyListener.lookup(null, span); in testLookupNull()
|
D | SingleLineTransformationMethodTest.java | 83 final AlignmentSpan.Standard span = new AlignmentSpan.Standard( in testSubsequence_doesNotThrowExceptionWithParagraphSpans() local 85 original.setSpan(span, 1, original.length() - 1, Spanned.SPAN_PARAGRAPH); in testSubsequence_doesNotThrowExceptionWithParagraphSpans()
|
D | LinkMovementMethodTest.java | 127 Object span = spannable.getSpans(0, spannable.length(), Object.class)[0]; in testOnTakeFocus() local 128 assertEquals(0, spannable.getSpanStart(span)); in testOnTakeFocus() 129 assertEquals(0, spannable.getSpanEnd(span)); in testOnTakeFocus() 130 assertEquals(Spanned.SPAN_POINT_POINT, spannable.getSpanFlags(span)); in testOnTakeFocus()
|
/cts/tests/libcore/javautilcollections/libs/ |
D | guava-20.0.jar | META-INF/MANIFEST.MF
META-INF/
META-INF/maven/
META- ... |