/frameworks/base/core/tests/coretests/src/android/text/ |
D | SpannedTest.java | 57 ss.setSpan(o, 0, ss.length(), Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in testAppend() 76 s.setSpan(mark, 1, 2, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in testWrapParcel() 77 s.setSpan(CharacterStyle.wrap(mark), 3, 7, in testWrapParcel() 79 s.setSpan(new TextAppearanceSpan("mono", 0, -1, null, null), 7, 8, in testWrapParcel() 81 s.setSpan(CharacterStyle.wrap(new TypefaceSpan("mono")), 8, 9, in testWrapParcel() 115 s.setSpan(new Object(), 0, 1, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE | in checkPriority() 117 s.setSpan(new Object(), 0, 1, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE | in checkPriority() 119 s.setSpan(new Object(), 0, 1, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE | in checkPriority() 121 s.setSpan(new Object(), 0, 1, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE | in checkPriority() 123 s.setSpan(new Object(), 0, 1, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE | in checkPriority() [all …]
|
D | SpannableStringNoCopyTest.java | 38 first.setSpan(new QuoteSpan(), 0, 2, Spanned.SPAN_PARAGRAPH); in testCopyConstructor_copyNoCopySpans_SpannableStringInternalImpl() 39 first.setSpan(new NoCopySpan.Concrete(), 2, 4, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in testCopyConstructor_copyNoCopySpans_SpannableStringInternalImpl() 40 first.setSpan(new UnderlineSpan(), 0, first.length(), Spanned.SPAN_PRIORITY); in testCopyConstructor_copyNoCopySpans_SpannableStringInternalImpl() 52 first.setSpan(new QuoteSpan(), 0, 2, Spanned.SPAN_PARAGRAPH); in testCopyConstructor_doesNotCopyNoCopySpans_SpannableStringInternalImpl() 53 first.setSpan(new NoCopySpan.Concrete(), 2, 4, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in testCopyConstructor_doesNotCopyNoCopySpans_SpannableStringInternalImpl() 54 first.setSpan(new UnderlineSpan(), 0, first.length(), Spanned.SPAN_PRIORITY); in testCopyConstructor_doesNotCopyNoCopySpans_SpannableStringInternalImpl() 70 first.setSpan(new QuoteSpan(), 0, 2, Spanned.SPAN_PARAGRAPH); in testCopyConstructor_copyNoCopySpans_OtherSpannableImpl() 71 first.setSpan(new NoCopySpan.Concrete(), 2, 4, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in testCopyConstructor_copyNoCopySpans_OtherSpannableImpl() 72 first.setSpan(new UnderlineSpan(), 0, first.length(), Spanned.SPAN_PRIORITY); in testCopyConstructor_copyNoCopySpans_OtherSpannableImpl() 84 first.setSpan(new QuoteSpan(), 0, 2, Spanned.SPAN_PARAGRAPH); in testCopyConstructor_doesNotCopyNoCopySpans_OtherSpannableImpl() [all …]
|
D | SpannedStringNoCopyTest.java | 38 first.setSpan(new QuoteSpan(), 0, 2, Spanned.SPAN_PARAGRAPH); in testCopyConstructor_copyNoCopySpans_SpannableStringInternalImpl() 39 first.setSpan(new NoCopySpan.Concrete(), 2, 4, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in testCopyConstructor_copyNoCopySpans_SpannableStringInternalImpl() 40 first.setSpan(new UnderlineSpan(), 0, first.length(), Spanned.SPAN_PRIORITY); in testCopyConstructor_copyNoCopySpans_SpannableStringInternalImpl() 52 first.setSpan(new QuoteSpan(), 0, 2, Spanned.SPAN_PARAGRAPH); in testCopyConstructor_doesNotCopyNoCopySpans_SpannableStringInternalImpl() 53 first.setSpan(new NoCopySpan.Concrete(), 2, 4, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in testCopyConstructor_doesNotCopyNoCopySpans_SpannableStringInternalImpl() 54 first.setSpan(new UnderlineSpan(), 0, first.length(), Spanned.SPAN_PRIORITY); in testCopyConstructor_doesNotCopyNoCopySpans_SpannableStringInternalImpl() 70 first.setSpan(new QuoteSpan(), 0, 2, Spanned.SPAN_PARAGRAPH); in testCopyConstructor_copyNoCopySpans_OtherSpannedImpl() 71 first.setSpan(new NoCopySpan.Concrete(), 2, 4, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in testCopyConstructor_copyNoCopySpans_OtherSpannedImpl() 72 first.setSpan(new UnderlineSpan(), 0, first.length(), Spanned.SPAN_PRIORITY); in testCopyConstructor_copyNoCopySpans_OtherSpannedImpl() 84 first.setSpan(new QuoteSpan(), 0, 2, Spanned.SPAN_PARAGRAPH); in testCopyConstructor_doesNotCopyNoCopySpans_OtherSpannedImpl() [all …]
|
D | SpannableTest.java | 42 spannable.setSpan(emptySpan, 1, 1, 0); in testGetSpans() 44 spannable.setSpan(unemptySpan, 1, 2, 0); in testGetSpans() 65 spannable.setSpan(emptySpan, 1, 1, 0); in testRemoveSpanWithIntermediateFlag() 67 spannable.setSpan(unemptySpan, 1, 2, 0); in testRemoveSpanWithIntermediateFlag() 83 spannable.setSpan(watcher, 0, 2, 0); in testRemoveSpanWithIntermediateFlag()
|
D | SpannableStringBuilderTest.java | 52 builder.setSpan(first, 2, 4, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in testGetSpans_sortsByPriorityEvenWhenSortParamIsFalse() 53 builder.setSpan(second, 1, text.length(), Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in testGetSpans_sortsByPriorityEvenWhenSortParamIsFalse() 54 builder.setSpan(third, 2, text.length(), 1 << Spanned.SPAN_PRIORITY_SHIFT); in testGetSpans_sortsByPriorityEvenWhenSortParamIsFalse() 55 builder.setSpan(fourth, 0, text.length(), 2 << Spanned.SPAN_PRIORITY_SHIFT); in testGetSpans_sortsByPriorityEvenWhenSortParamIsFalse()
|
D | TextUtilsTest.java | 63 foo.setSpan("foo", 1, 2, Spannable.SPAN_EXCLUSIVE_INCLUSIVE); in testBasic() 66 bar.setSpan("bar", 1, 2, Spannable.SPAN_EXCLUSIVE_INCLUSIVE); in testBasic() 69 baz.setSpan("baz", 1, 2, Spannable.SPAN_EXCLUSIVE_INCLUSIVE); in testBasic() 173 template.setSpan("before", 0, 1, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in testTemplateSpan() 174 template.setSpan("during", 1, 3, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in testTemplateSpan() 175 template.setSpan("after", 3, 4, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in testTemplateSpan() 176 template.setSpan("during+after", 1, 4, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in testTemplateSpan() 290 s3.setSpan(new StyleSpan(0), 5, 10, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in testEllipsize() 679 str.setSpan(span, 1, 2, Spanned.SPAN_INCLUSIVE_INCLUSIVE); in testToUpperCase() 704 str.setSpan(new Object(), 1, 2, Spanned.SPAN_INCLUSIVE_INCLUSIVE); in testToUpperCase() [all …]
|
D | DynamicLayoutTest.java | 82 builder.setSpan(new MockReplacementSpan(), 0, 4, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in testGetBlocksAlwaysNeedToBeRedrawn_replacementSpan() 86 builder.setSpan(new MockReplacementSpan(), 9, 13, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in testGetBlocksAlwaysNeedToBeRedrawn_replacementSpan() 198 spannable.setSpan(new MockReplacementSpan(), 4, 6, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in testReflow_afterSpannableEdit() 199 spannable.setSpan(new MockReplacementSpan(), 10, length, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in testReflow_afterSpannableEdit()
|
/frameworks/base/core/java/android/content/res/ |
D | StringBlock.java | 179 buffer.setSpan(new StyleSpan(Typeface.BOLD), in applyStyles() 183 buffer.setSpan(new StyleSpan(Typeface.ITALIC), in applyStyles() 187 buffer.setSpan(new UnderlineSpan(), in applyStyles() 191 buffer.setSpan(new TypefaceSpan("monospace"), in applyStyles() 195 buffer.setSpan(new RelativeSizeSpan(1.25f), in applyStyles() 199 buffer.setSpan(new RelativeSizeSpan(0.8f), in applyStyles() 203 buffer.setSpan(new SubscriptSpan(), in applyStyles() 207 buffer.setSpan(new SuperscriptSpan(), in applyStyles() 211 buffer.setSpan(new StrikethroughSpan(), in applyStyles() 218 buffer.setSpan(TextUtils.TruncateAt.MARQUEE, in applyStyles() [all …]
|
/frameworks/opt/chips/tests/src/com/android/ex/chips/ |
D | ChipsTest.java | 193 mEditable.setSpan(mMockRecips[mMockRecips.length - 2], firstStart, firstEnd, 0); in testSanitizeBetween() 194 mEditable.setSpan(mMockRecips[mMockRecips.length - 1], secondStart, secondEnd, 0); in testSanitizeBetween() 209 mEditable.setSpan(mMockRecips[mMockRecips.length - 1], firstStart, firstEnd, 0); in testSanitizeBetween() 230 mEditable.setSpan(mMockRecips[mMockRecips.length - 2], firstStart, firstEnd, 0); in testSanitizeEnd() 231 mEditable.setSpan(mMockRecips[mMockRecips.length - 1], secondStart, secondEnd, 0); in testSanitizeEnd() 311 mEditable.setSpan(mMockRecips[mMockRecips.length - 3], firstStart, firstEnd, 0); in testMoreChip() 312 mEditable.setSpan(mMockRecips[mMockRecips.length - 2], secondStart, secondEnd, 0); in testMoreChip() 313 mEditable.setSpan(mMockRecips[mMockRecips.length - 1], thirdStart, thirdEnd, 0); in testMoreChip() 393 mEditable.setSpan(mMockRecips[mMockRecips.length - 10], firstStart, firstEnd, 0); in testMoreChipLotsOfUsers() 394 mEditable.setSpan(mMockRecips[mMockRecips.length - 9], secondStart, secondEnd, 0); in testMoreChipLotsOfUsers() [all …]
|
/frameworks/support/emoji/core/src/androidTest/java/androidx/emoji/widget/ |
D | SpannableBuilderTest.java | 79 spannable.setSpan(span1, 0, 1, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in testSubSequence() 80 spannable.setSpan(span2, 2, 3, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in testSubSequence() 94 spannable.setSpan(mWatcher, 1, 2, Spanned.SPAN_INCLUSIVE_INCLUSIVE); in testSetAndGetSpan() 117 spannable.setSpan(mWatcher, 1, 2, Spanned.SPAN_INCLUSIVE_INCLUSIVE); in testNextSpanTransition() 126 spannable.setSpan(mWatcher, 0, spannable.length(), Spanned.SPAN_INCLUSIVE_INCLUSIVE); in testBlocksSpanCallbacks_forEmojiSpans() 127 spannable.setSpan(span, 1, 2, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in testBlocksSpanCallbacks_forEmojiSpans() 158 spannable.setSpan(mWatcher, 0, spannable.length(), Spanned.SPAN_INCLUSIVE_INCLUSIVE); in testDoesNotBlockSpanCallbacks_forNonEmojiSpans() 159 spannable.setSpan(span, 1, 2, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in testDoesNotBlockSpanCallbacks_forNonEmojiSpans() 189 spannable.setSpan(textWatcher, 0, spannable.length(), Spanned.SPAN_INCLUSIVE_INCLUSIVE); in testDoesNotBlockSpanCallbacksForOtherWatchers() 190 spannable.setSpan(spanWatcher, 0, spannable.length(), Spanned.SPAN_INCLUSIVE_INCLUSIVE); in testDoesNotBlockSpanCallbacksForOtherWatchers() [all …]
|
/frameworks/support/core/ktx/src/main/java/androidx/core/text/ |
D | SpannableString.kt | 33 setSpan(span, 0, length, SPAN_INCLUSIVE_EXCLUSIVE) in toSpannable() 54 setSpan(span, start, end, SPAN_INCLUSIVE_EXCLUSIVE) in set() 71 setSpan(span, range.start, range.endInclusive, SPAN_INCLUSIVE_EXCLUSIVE) in set()
|
D | SpannableStringBuilder.kt | 57 for (span in spans) setSpan(span, start, length, SPAN_INCLUSIVE_EXCLUSIVE) in inSpans() 74 setSpan(span, start, length, SPAN_INCLUSIVE_EXCLUSIVE) in inSpans()
|
/frameworks/opt/setupwizard/library/test/robotest/src/com/android/setupwizardlib/view/ |
D | RichTextViewTest.java | 62 ssb.setSpan(link, 1, 2, 0 /* flags */); in testLinkAnnotation() 86 ssb.setSpan(link, 1, 2, 0 /* flags */); in testOnLinkClickListener() 108 ssb.setSpan(link, 1, 2, 0 /* flags */); in testLegacyContextOnClickListener() 125 ssb.setSpan(link, 0, 2, 0 /* flags */); in onTouchEvent_clickOnLinks_shouldReturnTrue() 144 ssb.setSpan(link, 0, 2, 0 /* flags */); in onTouchEvent_clickOutsideLinks_shouldReturnFalse() 163 ssb.setSpan(link, 1, 2, 0 /* flags */); in testTextStyle() 184 spannableStringBuilder.setSpan(testLink, 0, 3, 0); in testTextContainingLinksAreFocusable() 217 spannableStringBuilder.setSpan(new Annotation("link", "focus:on_me"), 0, 1, 0); in testRichTextViewFocusChangesWithTextChange()
|
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
D | ViewPropertyAlphaActivity.java | 82 text.setSpan(new BackgroundColorSpan(Color.RED), 0, 3, in onCreate() 84 text.setSpan(new ForegroundColorSpan(Color.BLUE), 4, 9, in onCreate() 86 text.setSpan(new SuggestionSpan(this, new String[]{"longer"}, 3), 11, 16, in onCreate() 88 text.setSpan(new UnderlineSpan(), 17, 20, in onCreate() 90 text.setSpan(new ImageSpan(this, R.drawable.icon), 21, 22, in onCreate()
|
/frameworks/base/tests/BiDiTests/src/com/android/bidi/ |
D | BiDiTestBasic.java | 84 url.setSpan(new ForegroundColorSpan(0xfff00fff), in useSpans() 90 url.setSpan(new ForegroundColorSpan(0xff548aff), in useSpans() 96 url.setSpan(new ForegroundColorSpan(0xfff00fff), in useSpans()
|
/frameworks/base/core/java/android/text/method/ |
D | QwertyKeyListener.java | 212 content.setSpan(TextKeyListener.CAPPED, 0, 0, in onKeyDown() 215 content.setSpan(TextKeyListener.CAPPED, in onKeyDown() 225 content.setSpan(OLD_SEL_START, selStart, selStart, in onKeyDown() 234 content.setSpan(TextKeyListener.LAST_TYPED, in onKeyDown() 240 content.setSpan(TextKeyListener.ACTIVE, oldStart, selEnd, in onKeyDown() 276 content.setSpan(new Replaced(orig), x, oldStart, in onKeyDown() 340 content.setSpan(TextKeyListener.INHIBIT_REPLACEMENT, in onKeyDown() 346 content.setSpan(TextKeyListener.INHIBIT_REPLACEMENT, in onKeyDown() 432 content.setSpan(new Replaced(orig), start, end, in markAsReplaced()
|
D | MultiTapKeyListener.java | 193 content.setSpan(OLD_SEL_START, selStart, selStart, in onKeyDown() 204 content.setSpan(TextKeyListener.LAST_TYPED, in onKeyDown() 208 content.setSpan(TextKeyListener.ACTIVE, in onKeyDown() 227 content.setSpan(this, 0, content.length(), in onKeyDown() 263 mBuffer.setSpan(Timeout.this, 0, mBuffer.length(), in Timeout()
|
D | MetaKeyKeyListener.java | 299 content.setSpan(what, 0, 0, USED); in adjust() 351 content.setSpan(what, 0, 0, LOCKED); in press() 357 content.setSpan(what, 0, 0, PRESSED); in press() 365 content.setSpan(SELECTING, 0, 0, PRESSED); in startSelecting() 408 content.setSpan(what, 0, 0, RELEASED); in release()
|
/frameworks/base/apct-tests/perftests/core/src/android/text/ |
D | NonEditableTextGenerator.java | 73 spannable.setSpan(new BulletSpan(), 0, spannable.length(), SPAN_INCLUSIVE_INCLUSIVE); in createSpannable() 76 spannable.setSpan(new Object(), 0, spannable.length(), SPAN_INCLUSIVE_INCLUSIVE); in createSpannable() 77 spannable.setSpan(new Object(), 0, 1, SPAN_INCLUSIVE_INCLUSIVE); in createSpannable()
|
/frameworks/base/core/java/android/text/ |
D | SpannableString.java | 59 public void setSpan(Object what, int start, int end, int flags) { in setSpan() method in SpannableString 60 super.setSpan(what, start, end, flags); in setSpan()
|
D | Selection.java | 93 text.setSpan(SELECTION_START, start, start, in setSelection() 95 text.setSpan(SELECTION_END, stop, stop, Spanned.SPAN_POINT_POINT); in setSelection() 109 text.setSpan(SELECTION_MEMORY, memory, memory, Spanned.SPAN_POINT_POINT); in updateMemory() 113 text.setSpan(watcher, 0, text.length(), Spanned.SPAN_INCLUSIVE_INCLUSIVE); in updateMemory() 174 text.setSpan(SELECTION_END, index, index, Spanned.SPAN_POINT_POINT); in extendSelection()
|
D | Spannable.java | 39 public void setSpan(Object what, int start, int end, int flags); in setSpan() method
|
/frameworks/support/core/ktx/src/androidTest/java/androidx/core/text/ |
D | SpannedStringTest.kt | 38 s.setSpan(bold, 0, 5, SPAN_INCLUSIVE_EXCLUSIVE) in toSpanned() 39 s.setSpan(underline, 7, 12, SPAN_INCLUSIVE_EXCLUSIVE) in toSpanned()
|
/frameworks/opt/setupwizard/library/gingerbread/test/instrumentation/src/com/android/setupwizardlib/util/ |
D | LinkAccessibilityHelperTest.java | 153 ssb.setSpan(LINK_SPAN, 1, 2, 0 /* flags */); in testRtlLayout() 174 ssb.setSpan(LINK_SPAN, 51, 74, 0 /* flags */); in testMultilineLink() 196 ssb.setSpan(LINK_SPAN, 50, 100, 0 /* flags */); in testRtlMultilineLink() 221 ssb.setSpan(LINK_SPAN, in testBidiMultilineLink() 307 ssb.setSpan(LINK_SPAN, 1, 2, 0 /* flags */); in initTextView()
|
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/span/ |
D | SpanHelper.java | 34 spannable.setSpan(newSpan, spanStart, spanEnd, 0); in replaceSpan()
|