Home
last modified time | relevance | path

Searched refs:setSpan (Results 1 – 25 of 69) sorted by relevance

123

/frameworks/base/core/tests/coretests/src/android/text/
DSpannedTest.java48 ss.setSpan(o, 0, ss.length(), Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in testAppend()
67 s.setSpan(mark, 1, 2, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in testWrapParcel()
68 s.setSpan(CharacterStyle.wrap(mark), 3, 7, in testWrapParcel()
70 s.setSpan(new TextAppearanceSpan("mono", 0, -1, null, null), 7, 8, in testWrapParcel()
72 s.setSpan(CharacterStyle.wrap(new TypefaceSpan("mono")), 8, 9, in testWrapParcel()
106 s.setSpan(new Object(), 0, 1, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE | in checkPriority()
108 s.setSpan(new Object(), 0, 1, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE | in checkPriority()
110 s.setSpan(new Object(), 0, 1, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE | in checkPriority()
112 s.setSpan(new Object(), 0, 1, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE | in checkPriority()
114 s.setSpan(new Object(), 0, 1, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE | in checkPriority()
[all …]
DSpannableTest.java32 spannable.setSpan(emptySpan, 1, 1, 0); in testGetSpans()
34 spannable.setSpan(unemptySpan, 1, 2, 0); in testGetSpans()
DTextUtilsTest.java49 foo.setSpan("foo", 1, 2, Spannable.SPAN_EXCLUSIVE_INCLUSIVE); in testBasic()
52 bar.setSpan("bar", 1, 2, Spannable.SPAN_EXCLUSIVE_INCLUSIVE); in testBasic()
55 baz.setSpan("baz", 1, 2, Spannable.SPAN_EXCLUSIVE_INCLUSIVE); in testBasic()
159 template.setSpan("before", 0, 1, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in testTemplateSpan()
160 template.setSpan("during", 1, 3, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in testTemplateSpan()
161 template.setSpan("after", 3, 4, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in testTemplateSpan()
162 template.setSpan("during+after", 1, 4, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in testTemplateSpan()
275 s3.setSpan(new StyleSpan(0), 5, 10, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in testEllipsize()
/frameworks/base/core/java/android/content/res/
DStringBlock.java179 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/
DChipsTest.java193 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/tests/HwAccelerationTest/src/com/android/test/hwui/
DViewPropertyAlphaActivity.java82 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/
DQwertyKeyListener.java207 content.setSpan(TextKeyListener.CAPPED, 0, 0, in onKeyDown()
210 content.setSpan(TextKeyListener.CAPPED, in onKeyDown()
220 content.setSpan(OLD_SEL_START, selStart, selStart, in onKeyDown()
229 content.setSpan(TextKeyListener.LAST_TYPED, in onKeyDown()
235 content.setSpan(TextKeyListener.ACTIVE, oldStart, selEnd, in onKeyDown()
271 content.setSpan(new Replaced(orig), x, oldStart, in onKeyDown()
335 content.setSpan(TextKeyListener.INHIBIT_REPLACEMENT, in onKeyDown()
341 content.setSpan(TextKeyListener.INHIBIT_REPLACEMENT, in onKeyDown()
427 content.setSpan(new Replaced(orig), start, end, in markAsReplaced()
DMultiTapKeyListener.java190 content.setSpan(OLD_SEL_START, selStart, selStart, in onKeyDown()
201 content.setSpan(TextKeyListener.LAST_TYPED, in onKeyDown()
205 content.setSpan(TextKeyListener.ACTIVE, in onKeyDown()
224 content.setSpan(this, 0, content.length(), in onKeyDown()
260 mBuffer.setSpan(Timeout.this, 0, mBuffer.length(), in Timeout()
DMetaKeyKeyListener.java299 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()
DPasswordTransformationMethod.java55 sp.setSpan(new ViewReference(view), 0, 0, in getTransformation()
107 sp.setSpan(new Visible(sp, this), start, start + count, in onTextChanged()
/frameworks/base/tests/BiDiTests/src/com/android/bidi/
DBiDiTestBasic.java84 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/
DSpannableString.java45 public void setSpan(Object what, int start, int end, int flags) { in setSpan() method in SpannableString
46 super.setSpan(what, start, end, flags); in setSpan()
DSpannable.java39 public void setSpan(Object what, int start, int end, int flags); in setSpan() method
DSelection.java76 text.setSpan(SELECTION_START, start, start, in setSelection()
78 text.setSpan(SELECTION_END, stop, stop, in setSelection()
102 text.setSpan(SELECTION_END, index, index, Spanned.SPAN_POINT_POINT); in extendSelection()
DSpannableStringBuilder.java102 setSpan(false, spans[i], st, en, fl); in SpannableStringBuilder()
284 setSpan(what, start, length(), flags); in append()
359 setSpan(false, mSpans[i], spanStart, spanEnd, mSpanFlags[i]); in change()
439 setSpan(false, spans[i], copySpanStart, copySpanEnd, copySpanFlags); in change()
561 setSpan(false, Selection.SELECTION_START, selectionStart, selectionStart, in replace()
570 setSpan(false, Selection.SELECTION_END, selectionEnd, selectionEnd, in replace()
676 public void setSpan(Object what, int start, int end, int flags) { in setSpan() method in SpannableStringBuilder
677 setSpan(true, what, start, end, flags); in setSpan()
683 private void setSpan(boolean send, Object what, int start, int end, int flags) { in setSpan() method in SpannableStringBuilder
/frameworks/opt/setupwizard/library/eclair-mr1/test/src/com/android/setupwizardlib/test/
DRichTextViewTest.java37 ssb.setSpan(link, 1, 2, 0 /* flags */); in testLinkAnnotation()
59 ssb.setSpan(link, 1, 2, 0 /* flags */); in testTextStyle()
/frameworks/opt/timezonepicker/src/com/android/timezonepicker/
DTimeZonePickerUtils.java109 spannableText.setSpan(new ForegroundColorSpan(GMT_TEXT_COLOR), in buildGmtDisplayName()
113 spannableText.setSpan(new ForegroundColorSpan(DST_SYMBOL_COLOR), in buildGmtDisplayName()
DTimeZoneInfo.java176 spannableText.setSpan(new ForegroundColorSpan(GMT_TEXT_COLOR), in getGmtDisplayName()
180 spannableText.setSpan(new ForegroundColorSpan(DST_SYMBOL_COLOR), in getGmtDisplayName()
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/span/
DSpanHelper.java34 spannable.setSpan(newSpan, spanStart, spanEnd, 0); in replaceSpan()
/frameworks/opt/setupwizard/library/test/src/com/android/setupwizardlib/test/
DSpanHelperTest.java33 ssb.setSpan(oldSpan, 2, 5, 0 /* flags */); in testReplaceSpan()
/frameworks/base/core/java/android/view/inputmethod/
DBaseInputConnection.java109 text.setSpan(o, text.getSpanStart(o), text.getSpanEnd(o), in setComposingSpans()
117 text.setSpan(COMPOSING, start, end, in setComposingSpans()
643 content.setSpan(mDefaultComposingSpans[i], a, b, in setComposingRegion()
648 content.setSpan(COMPOSING, a, b, in setComposingRegion()
808 sp.setSpan(mDefaultComposingSpans[i], 0, sp.length(), in replaceText()
/frameworks/base/core/java/com/google/android/util/
DSmileyParser.java73 builder.setSpan(new ImageSpan(context, resid), in getSpannableString()
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
DStreamingTextView.java195 displayText.setSpan(span, wordStart, wordEnd, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in addDottySpans()
204 displayText.setSpan(span, start, end, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in addColorSpan()
/frameworks/base/core/java/android/widget/
DDialerFilter.java362 span.setSpan(watcher, 0, text.length(), Spanned.SPAN_INCLUSIVE_INCLUSIVE); in setLettersWatcher()
368 span.setSpan(watcher, 0, text.length(), Spanned.SPAN_INCLUSIVE_INCLUSIVE); in setDigitsWatcher()
/frameworks/base/core/tests/coretests/src/android/text/method/
DEditorState.java172 spannable.setSpan(new MockReplacementSpan(), replacementSpanStart, replacementSpanEnd, in setByString()

123