/frameworks/base/core/tests/coretests/src/android/text/ |
D | SpannedTest.java | 48 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 …]
|
D | HtmlTest.java | 161 s.setSpan(new QuoteSpan(), 0, s.length(), Spannable.SPAN_PARAGRAPH); in testBlockquote() 165 s.setSpan(new QuoteSpan(), 0, 7, Spannable.SPAN_PARAGRAPH); in testBlockquote() 188 s.setSpan(new StyleSpan(Typeface.BOLD), 6, s.length() - 6, in testMarkup() 193 s.setSpan(new StyleSpan(Typeface.ITALIC), 6, s.length() - 6, in testMarkup() 198 s.setSpan(new TypefaceSpan("monospace"), 6, s.length() - 6, in testMarkup() 203 s.setSpan(new SuperscriptSpan(), 6, s.length() - 6, in testMarkup() 208 s.setSpan(new SubscriptSpan(), 6, s.length() - 6, in testMarkup() 213 s.setSpan(new UnderlineSpan(), 6, s.length() - 6, in testMarkup() 218 s.setSpan(new StrikethroughSpan(), 6, s.length() - 6, in testMarkup() 223 s.setSpan(new URLSpan("http://www.google.com"), 6, s.length() - 6, in testMarkup()
|
D | SpannableTest.java | 32 spannable.setSpan(emptySpan, 1, 1, 0); in testGetSpans() 34 spannable.setSpan(unemptySpan, 1, 2, 0); in testGetSpans()
|
D | TextUtilsTest.java | 47 foo.setSpan("foo", 1, 2, Spannable.SPAN_EXCLUSIVE_INCLUSIVE); in testBasic() 50 bar.setSpan("bar", 1, 2, Spannable.SPAN_EXCLUSIVE_INCLUSIVE); in testBasic() 53 baz.setSpan("baz", 1, 2, Spannable.SPAN_EXCLUSIVE_INCLUSIVE); in testBasic() 157 template.setSpan("before", 0, 1, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in testTemplateSpan() 158 template.setSpan("during", 1, 3, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in testTemplateSpan() 159 template.setSpan("after", 3, 4, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in testTemplateSpan() 160 template.setSpan("during+after", 1, 4, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in testTemplateSpan() 273 s3.setSpan(new StyleSpan(0), 5, 10, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in testEllipsize()
|
/frameworks/ex/chips/tests/src/com/android/ex/chips/ |
D | ChipsTest.java | 183 mEditable.setSpan(mMockRecips[mMockRecips.length - 2], firstStart, firstEnd, 0); in testSanitizeBetween() 184 mEditable.setSpan(mMockRecips[mMockRecips.length - 1], secondStart, secondEnd, 0); in testSanitizeBetween() 199 mEditable.setSpan(mMockRecips[mMockRecips.length - 1], firstStart, firstEnd, 0); in testSanitizeBetween() 220 mEditable.setSpan(mMockRecips[mMockRecips.length - 2], firstStart, firstEnd, 0); in testSanitizeEnd() 221 mEditable.setSpan(mMockRecips[mMockRecips.length - 1], secondStart, secondEnd, 0); in testSanitizeEnd() 301 mEditable.setSpan(mMockRecips[mMockRecips.length - 3], firstStart, firstEnd, 0); in testMoreChip() 302 mEditable.setSpan(mMockRecips[mMockRecips.length - 2], secondStart, secondEnd, 0); in testMoreChip() 303 mEditable.setSpan(mMockRecips[mMockRecips.length - 1], thirdStart, thirdEnd, 0); in testMoreChip() 383 mEditable.setSpan(mMockRecips[mMockRecips.length - 10], firstStart, firstEnd, 0); in testMoreChipLotsOfUsers() 384 mEditable.setSpan(mMockRecips[mMockRecips.length - 9], secondStart, secondEnd, 0); in testMoreChipLotsOfUsers() [all …]
|
/frameworks/base/core/java/android/content/res/ |
D | StringBlock.java | 174 buffer.setSpan(new StyleSpan(Typeface.BOLD), in applyStyles() 178 buffer.setSpan(new StyleSpan(Typeface.ITALIC), in applyStyles() 182 buffer.setSpan(new UnderlineSpan(), in applyStyles() 186 buffer.setSpan(new TypefaceSpan("monospace"), in applyStyles() 190 buffer.setSpan(new RelativeSizeSpan(1.25f), in applyStyles() 194 buffer.setSpan(new RelativeSizeSpan(0.8f), in applyStyles() 198 buffer.setSpan(new SubscriptSpan(), in applyStyles() 202 buffer.setSpan(new SuperscriptSpan(), in applyStyles() 206 buffer.setSpan(new StrikethroughSpan(), in applyStyles() 213 buffer.setSpan(TextUtils.TruncateAt.MARQUEE, in applyStyles() [all …]
|
/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 | 206 content.setSpan(TextKeyListener.CAPPED, 0, 0, in onKeyDown() 209 content.setSpan(TextKeyListener.CAPPED, in onKeyDown() 219 content.setSpan(OLD_SEL_START, selStart, selStart, in onKeyDown() 228 content.setSpan(TextKeyListener.LAST_TYPED, in onKeyDown() 234 content.setSpan(TextKeyListener.ACTIVE, oldStart, selEnd, in onKeyDown() 270 content.setSpan(new Replaced(orig), x, oldStart, in onKeyDown() 334 content.setSpan(TextKeyListener.INHIBIT_REPLACEMENT, in onKeyDown() 340 content.setSpan(TextKeyListener.INHIBIT_REPLACEMENT, in onKeyDown() 426 content.setSpan(new Replaced(orig), start, end, in markAsReplaced()
|
D | MultiTapKeyListener.java | 190 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()
|
D | MetaKeyKeyListener.java | 240 content.setSpan(what, 0, 0, USED); in adjust() 292 content.setSpan(what, 0, 0, LOCKED); in press() 298 content.setSpan(what, 0, 0, PRESSED); in press() 306 content.setSpan(SELECTING, 0, 0, PRESSED); in startSelecting() 349 content.setSpan(what, 0, 0, RELEASED); in release()
|
D | PasswordTransformationMethod.java | 56 sp.setSpan(new ViewReference(view), 0, 0, in getTransformation() 108 sp.setSpan(new Visible(sp, this), start, start + count, in onTextChanged()
|
/frameworks/base/core/java/android/text/ |
D | SpannableString.java | 45 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()
|
D | Html.java | 461 mSpannableStringBuilder.setSpan(obj[i], start, end, Spannable.SPAN_PARAGRAPH); in convert() 605 text.setSpan(mark, len, len, Spannable.SPAN_MARK_MARK); in start() 617 text.setSpan(repl, where, len, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in end() 641 text.setSpan(new ImageSpan(d, src), len, text.length(), in startImg() 651 text.setSpan(new Font(color, face), len, len, Spannable.SPAN_MARK_MARK); in startFont() 671 text.setSpan(new TextAppearanceSpan(null, 0, 0, colors, null), in endFont() 678 text.setSpan(new ForegroundColorSpan(c | 0xFF000000), in endFont() 686 text.setSpan(new TypefaceSpan(f.mFace), where, len, in endFont() 696 text.setSpan(new Href(href), len, len, Spannable.SPAN_MARK_MARK); in startA() 710 text.setSpan(new URLSpan(h.mHref), where, len, in endA() [all …]
|
D | Spannable.java | 39 public void setSpan(Object what, int start, int end, int flags); in setSpan() method
|
D | Selection.java | 76 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()
|
D | SpannableStringBuilder.java | 93 setSpan(false, spans[i], st, en, fl); in SpannableStringBuilder() 294 setSpan(false, mSpans[i], spanStart, spanEnd, mSpanFlags[i]); in change() 372 setSpan(false, spans[i], st - csStart + start, en - csStart + start, in change() 484 setSpan(false, Selection.SELECTION_START, selectionStart, selectionStart, in replace() 491 setSpan(false, Selection.SELECTION_END, selectionEnd, selectionEnd, in replace() 587 public void setSpan(Object what, int start, int end, int flags) { in setSpan() method in SpannableStringBuilder 588 setSpan(true, what, start, end, flags); in setSpan() 591 private void setSpan(boolean send, Object what, int start, int end, int flags) { in setSpan() method in SpannableStringBuilder
|
D | SpannableStringInternal.java | 50 setSpan(spans[i], st - start, en - start, fl); in SpannableStringInternal() 73 /* package */ void setSpan(Object what, int start, int end, int flags) { in setSpan() method in SpannableStringInternal
|
/frameworks/base/core/java/android/view/inputmethod/ |
D | BaseInputConnection.java | 106 text.setSpan(o, text.getSpanStart(o), text.getSpanEnd(o), in setComposingSpans() 114 text.setSpan(COMPOSING, start, end, in setComposingSpans() 461 content.setSpan(mDefaultComposingSpans[i], a, b, in setComposingRegion() 466 content.setSpan(COMPOSING, a, b, in setComposingRegion() 636 sp.setSpan(mDefaultComposingSpans[i], 0, sp.length(), in replaceText()
|
/frameworks/base/core/java/com/google/android/util/ |
D | SmileyParser.java | 73 builder.setSpan(new ImageSpan(context, resid), in getSpannableString()
|
/frameworks/base/core/java/android/widget/ |
D | DialerFilter.java | 364 span.setSpan(watcher, 0, text.length(), Spanned.SPAN_INCLUSIVE_INCLUSIVE); in setLettersWatcher() 370 span.setSpan(watcher, 0, text.length(), Spanned.SPAN_INCLUSIVE_INCLUSIVE); in setDigitsWatcher()
|
D | SpellChecker.java | 202 editable.setSpan(spellCheckSpan, start, end, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in addSpellCheckSpan() 498 editable.setSpan(suggestionSpan, start, end, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in createMisspelledSuggestionSpan() 533 editable.setSpan(mRange, start, end, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in setRangeSpan()
|
/frameworks/ex/chips/src/com/android/ex/chips/ |
D | RecipientEditTextView.java | 876 chipText.setSpan(chip, 0, textLength, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in createReplacementChip() 1539 chipText.setSpan(chip, 0, textLength, in createChip() 1715 chipText.setSpan(moreSpan, 0, chipText.length(), Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in createMoreChipPlainText() 1789 chipText.setSpan(moreSpan, 0, chipText.length(), Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in createMoreChip() 1829 editable.setSpan(chip, chipStart, chipEnd, in removeMoreChip() 1878 editable.setSpan(newChip, start, end, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in selectChip() 1903 editable.setSpan(newChip, start, end, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in selectChip() 1959 editable.setSpan(constructChipSpan(chip.getEntry(), start, false), start, end, in unselectChip() 2362 text.setSpan(replacement, start, end, in doInBackground()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | Clock.java | 194 formatted.setSpan(style, magic1, magic2, in getSmallTime()
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | TransportControlView.java | 304 str.setSpan(new ForegroundColorSpan(0xffffffff), 0, trackTitleLength, in populateMetadata() 309 str.setSpan(new ForegroundColorSpan(0x7fffffff), trackTitleLength, sb.length(), in populateMetadata()
|