/frameworks/base/core/tests/coretests/src/android/text/ |
D | SpannedTest.java | 58 ss.setSpan(o, 0, ss.length(), Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in testAppend() 77 s.setSpan(mark, 1, 2, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in testWrapParcel() 78 s.setSpan(CharacterStyle.wrap(mark), 3, 7, in testWrapParcel() 80 s.setSpan(new TextAppearanceSpan("mono", 0, -1, null, null), 7, 8, in testWrapParcel() 82 s.setSpan(CharacterStyle.wrap(new TypefaceSpan("mono")), 8, 9, in testWrapParcel() 116 s.setSpan(new Object(), 0, 1, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE | in checkPriority() 118 s.setSpan(new Object(), 0, 1, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE | in checkPriority() 120 s.setSpan(new Object(), 0, 1, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE | in checkPriority() 122 s.setSpan(new Object(), 0, 1, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE | in checkPriority() 124 s.setSpan(new Object(), 0, 1, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE | in checkPriority() [all …]
|
D | SpannableStringNoCopyTest.java | 39 first.setSpan(new QuoteSpan(), 0, 2, Spanned.SPAN_PARAGRAPH); in testCopyConstructor_copyNoCopySpans_SpannableStringInternalImpl() 40 first.setSpan(new NoCopySpan.Concrete(), 2, 4, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in testCopyConstructor_copyNoCopySpans_SpannableStringInternalImpl() 41 first.setSpan(new UnderlineSpan(), 0, first.length(), Spanned.SPAN_PRIORITY); in testCopyConstructor_copyNoCopySpans_SpannableStringInternalImpl() 53 first.setSpan(new QuoteSpan(), 0, 2, Spanned.SPAN_PARAGRAPH); in testCopyConstructor_doesNotCopyNoCopySpans_SpannableStringInternalImpl() 54 first.setSpan(new NoCopySpan.Concrete(), 2, 4, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in testCopyConstructor_doesNotCopyNoCopySpans_SpannableStringInternalImpl() 55 first.setSpan(new UnderlineSpan(), 0, first.length(), Spanned.SPAN_PRIORITY); in testCopyConstructor_doesNotCopyNoCopySpans_SpannableStringInternalImpl() 71 first.setSpan(new QuoteSpan(), 0, 2, Spanned.SPAN_PARAGRAPH); in testCopyConstructor_copyNoCopySpans_OtherSpannableImpl() 72 first.setSpan(new NoCopySpan.Concrete(), 2, 4, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in testCopyConstructor_copyNoCopySpans_OtherSpannableImpl() 73 first.setSpan(new UnderlineSpan(), 0, first.length(), Spanned.SPAN_PRIORITY); in testCopyConstructor_copyNoCopySpans_OtherSpannableImpl() 85 first.setSpan(new QuoteSpan(), 0, 2, Spanned.SPAN_PARAGRAPH); in testCopyConstructor_doesNotCopyNoCopySpans_OtherSpannableImpl() [all …]
|
D | SpannedStringNoCopyTest.java | 39 first.setSpan(new QuoteSpan(), 0, 2, Spanned.SPAN_PARAGRAPH); in testCopyConstructor_copyNoCopySpans_SpannableStringInternalImpl() 40 first.setSpan(new NoCopySpan.Concrete(), 2, 4, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in testCopyConstructor_copyNoCopySpans_SpannableStringInternalImpl() 41 first.setSpan(new UnderlineSpan(), 0, first.length(), Spanned.SPAN_PRIORITY); in testCopyConstructor_copyNoCopySpans_SpannableStringInternalImpl() 53 first.setSpan(new QuoteSpan(), 0, 2, Spanned.SPAN_PARAGRAPH); in testCopyConstructor_doesNotCopyNoCopySpans_SpannableStringInternalImpl() 54 first.setSpan(new NoCopySpan.Concrete(), 2, 4, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in testCopyConstructor_doesNotCopyNoCopySpans_SpannableStringInternalImpl() 55 first.setSpan(new UnderlineSpan(), 0, first.length(), Spanned.SPAN_PRIORITY); in testCopyConstructor_doesNotCopyNoCopySpans_SpannableStringInternalImpl() 71 first.setSpan(new QuoteSpan(), 0, 2, Spanned.SPAN_PARAGRAPH); in testCopyConstructor_copyNoCopySpans_OtherSpannedImpl() 72 first.setSpan(new NoCopySpan.Concrete(), 2, 4, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in testCopyConstructor_copyNoCopySpans_OtherSpannedImpl() 73 first.setSpan(new UnderlineSpan(), 0, first.length(), Spanned.SPAN_PRIORITY); in testCopyConstructor_copyNoCopySpans_OtherSpannedImpl() 85 first.setSpan(new QuoteSpan(), 0, 2, Spanned.SPAN_PARAGRAPH); in testCopyConstructor_doesNotCopyNoCopySpans_OtherSpannedImpl() [all …]
|
D | SpannableTest.java | 43 spannable.setSpan(emptySpan, 1, 1, 0); in testGetSpans() 45 spannable.setSpan(unemptySpan, 1, 2, 0); in testGetSpans() 66 spannable.setSpan(emptySpan, 1, 1, 0); in testRemoveSpanWithIntermediateFlag() 68 spannable.setSpan(unemptySpan, 1, 2, 0); in testRemoveSpanWithIntermediateFlag() 84 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 | 64 foo.setSpan("foo", 1, 2, Spannable.SPAN_EXCLUSIVE_INCLUSIVE); in testBasic() 67 bar.setSpan("bar", 1, 2, Spannable.SPAN_EXCLUSIVE_INCLUSIVE); in testBasic() 70 baz.setSpan("baz", 1, 2, Spannable.SPAN_EXCLUSIVE_INCLUSIVE); in testBasic() 174 template.setSpan("before", 0, 1, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in testTemplateSpan() 175 template.setSpan("during", 1, 3, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in testTemplateSpan() 176 template.setSpan("after", 3, 4, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in testTemplateSpan() 177 template.setSpan("during+after", 1, 4, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in testTemplateSpan() 291 s3.setSpan(new StyleSpan(0), 5, 10, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in testEllipsize() 680 str.setSpan(span, 1, 2, Spanned.SPAN_INCLUSIVE_INCLUSIVE); in testToUpperCase() 705 str.setSpan(new Object(), 1, 2, Spanned.SPAN_INCLUSIVE_INCLUSIVE); in testToUpperCase() [all …]
|
D | DynamicLayoutTest.java | 83 builder.setSpan(new MockReplacementSpan(), 0, 4, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in testGetBlocksAlwaysNeedToBeRedrawn_replacementSpan() 87 builder.setSpan(new MockReplacementSpan(), 9, 13, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in testGetBlocksAlwaysNeedToBeRedrawn_replacementSpan() 199 spannable.setSpan(new MockReplacementSpan(), 4, 6, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in testReflow_afterSpannableEdit() 200 spannable.setSpan(new MockReplacementSpan(), 10, length, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in testReflow_afterSpannableEdit()
|
D | TextLineTest.java | 275 text.setSpan(span, 9, 12, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in testHandleRun_ellipsizedReplacementSpan_isSkipped() 291 text.setSpan(span, 1, 5, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in testHandleRun_notEllipsizedReplacementSpan_isNotSkipped() 307 text.setSpan(span, 7, 11, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in testHandleRun_halfEllipsizedReplacementSpan_isNotSkipped()
|
/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/base/core/java/android/content/res/ |
D | StringBlock.java | 217 buffer.setSpan(new StyleSpan(Typeface.BOLD), in applyStyles() 221 buffer.setSpan(new StyleSpan(Typeface.ITALIC), in applyStyles() 225 buffer.setSpan(new UnderlineSpan(), in applyStyles() 229 buffer.setSpan(new TypefaceSpan("monospace"), in applyStyles() 233 buffer.setSpan(new RelativeSizeSpan(1.25f), in applyStyles() 237 buffer.setSpan(new RelativeSizeSpan(0.8f), in applyStyles() 241 buffer.setSpan(new SubscriptSpan(), in applyStyles() 245 buffer.setSpan(new SuperscriptSpan(), in applyStyles() 249 buffer.setSpan(new StrikethroughSpan(), in applyStyles() 256 buffer.setSpan(TextUtils.TruncateAt.MARQUEE, in applyStyles() [all …]
|
/frameworks/opt/setupwizard/library/test/robotest/src/com/android/setupwizardlib/view/ |
D | RichTextViewTest.java | 53 ssb.setSpan(link, 1, 2, 0 /* flags */); in testLinkAnnotation() 78 ssb.setSpan(link, 1, 2, 0 /* flags */); in testOnLinkClickListener() 100 ssb.setSpan(link, 1, 2, 0 /* flags */); in testLegacyContextOnClickListener() 118 ssb.setSpan(link, 0, 2, 0 /* flags */); in onTouchEvent_clickOnLinks_shouldReturnTrue() 136 ssb.setSpan(link, 0, 2, 0 /* flags */); in onTouchEvent_clickOutsideLinks_shouldReturnFalse() 154 ssb.setSpan(link, 1, 2, 0 /* flags */); in testTextStyle() 174 spannableStringBuilder.setSpan(testLink, 0, 3, 0); in testTextContainingLinksAreFocusable() 203 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/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 | 300 content.setSpan(what, 0, 0, USED); in adjust() 352 content.setSpan(what, 0, 0, LOCKED); in press() 358 content.setSpan(what, 0, 0, PRESSED); in press() 367 content.setSpan(SELECTING, 0, 0, PRESSED); in startSelecting() 411 content.setSpan(what, 0, 0, RELEASED); in release()
|
/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/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 | 94 text.setSpan(SELECTION_START, start, start, in setSelection() 96 text.setSpan(SELECTION_END, stop, stop, Spanned.SPAN_POINT_POINT); in setSelection() 110 text.setSpan(SELECTION_MEMORY, memory, memory, Spanned.SPAN_POINT_POINT); in updateMemory() 114 text.setSpan(watcher, 0, text.length(), Spanned.SPAN_INCLUSIVE_INCLUSIVE); in updateMemory() 175 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/opt/setupwizard/library/gingerbread/test/instrumentation/src/com/android/setupwizardlib/util/ |
D | LinkAccessibilityHelperTest.java | 152 ssb.setSpan(LINK_SPAN, 1, 2, 0 /* flags */); in testRtlLayout() 176 ssb.setSpan(LINK_SPAN, 51, 74, 0 /* flags */); in testMultilineLink() 203 ssb.setSpan(LINK_SPAN, 50, 100, 0 /* flags */); in testRtlMultilineLink() 232 ssb.setSpan( in testBidiMultilineLink() 303 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()
|
/frameworks/opt/timezonepicker/src/com/android/timezonepicker/ |
D | TimeZonePickerUtils.java | 109 spannableText.setSpan(new ForegroundColorSpan(GMT_TEXT_COLOR), in buildGmtDisplayName() 113 spannableText.setSpan(new ForegroundColorSpan(DST_SYMBOL_COLOR), in buildGmtDisplayName()
|
/frameworks/base/core/java/android/view/textclassifier/ |
D | TextLinksParams.java | 135 text.setSpan(span, link.getStart(), link.getEnd(), in apply() 140 text.setSpan(span, link.getStart(), link.getEnd(), in apply()
|
/frameworks/base/core/java/android/view/inputmethod/ |
D | BaseInputConnection.java | 108 text.setSpan(o, text.getSpanStart(o), text.getSpanEnd(o), in setComposingSpans() 116 text.setSpan(COMPOSING, start, end, in setComposingSpans() 642 content.setSpan(mDefaultComposingSpans[i], a, b, in setComposingRegion() 647 content.setSpan(COMPOSING, a, b, in setComposingRegion() 807 sp.setSpan(mDefaultComposingSpans[i], 0, sp.length(), in replaceText()
|