/frameworks/base/core/java/android/text/method/ |
D | ReplacementTransformationMethod.java | 23 import android.text.Spanned; 82 if (source instanceof Spanned) { in getTransformation() 84 (Spanned) source, in getTransformation() 94 if (source instanceof Spanned) { in getTransformation() 95 return new SpannedReplacementCharSequence((Spanned) source, in getTransformation() 171 implements Spanned 173 public SpannedReplacementCharSequence(Spanned source, char[] original, in SpannedReplacementCharSequence() 203 private Spanned mSpanned;
|
D | PasswordTransformationMethod.java | 29 import android.text.Spanned; 151 if (mSource instanceof Spanned) { in charAt() 152 Spanned sp = (Spanned) mSource; in charAt() 196 if (mSource instanceof Spanned) { in getChars() 197 Spanned sp = (Spanned) mSource; in getChars()
|
D | NumberKeyListener.java | 26 import android.text.Spanned; 44 Spanned dest, int dstart, int dend) { in filter()
|
D | DigitsKeyListener.java | 20 import android.text.Spanned; 126 Spanned dest, int dstart, int dend) { in filter()
|
D | MetaKeyKeyListener.java | 22 import android.text.Spanned; 192 if (!(text instanceof Spanned)) { in getActive() 196 Spanned sp = (Spanned) text; in getActive()
|
/frameworks/base/core/java/android/text/ |
D | InputFilter.java | 43 Spanned dest, int dstart, int dend); in filter() 51 Spanned dest, int dstart, int dend) { in filter() 58 if (source instanceof Spanned) { in filter() 60 TextUtils.copySpansFrom((Spanned) source, in filter() 83 Spanned dest, int dstart, int dend) { in filter()
|
D | Selection.java | 38 if (text instanceof Spanned) in getSelectionStart() 39 return ((Spanned) text).getSpanStart(SELECTION_START); in getSelectionStart() 49 if (text instanceof Spanned) in getSelectionEnd() 50 return ((Spanned) text).getSpanStart(SELECTION_END); in getSelectionEnd() 77 Spanned.SPAN_POINT_POINT|Spanned.SPAN_INTERMEDIATE); in setSelection() 79 Spanned.SPAN_POINT_POINT); in setSelection() 102 text.setSpan(SELECTION_END, index, index, Spanned.SPAN_POINT_POINT); in extendSelection()
|
D | TextUtils.java | 428 if (source instanceof Spanned) in stringOrSpannedString() 597 if (cs instanceof Spanned) { in writeToParcel() 601 Spanned sp = (Spanned) cs; in writeToParcel() 636 private static void writeWhere(Parcel p, Spanned sp, Object o) { in writeWhere() 777 if (cs instanceof Spanned) { in dumpSpans() 778 Spanned sp = (Spanned) cs; in dumpSpans() 809 Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in replace() 905 if (text instanceof Spanned) { in getOffsetBefore() 906 ReplacementSpan[] spans = ((Spanned) text).getSpans(offset, offset, in getOffsetBefore() 910 int start = ((Spanned) text).getSpanStart(spans[i]); in getOffsetBefore() [all …]
|
D | AlteredCharSequence.java | 36 if (source instanceof Spanned) in make() 58 implements Spanned 63 mSpanned = (Spanned) source; in AlteredSpanned() 86 private Spanned mSpanned;
|
D | Layout.java | 158 mSpannedText = text instanceof Spanned; in Layout() 178 mSpannedText = text instanceof Spanned; in replaceWith() 241 Spanned sp = (Spanned) buf; in draw() 318 Spanned sp = (Spanned) buf; in draw() 459 Spanned spanned = (Spanned) mText; in getLineStartPos() 788 if (hasTabOrEmoji && mText instanceof Spanned) { in getHorizontal() 791 TabStopSpan[] tabs = getParagraphSpans((Spanned) mText, start, end, TabStopSpan.class); in getHorizontal() 903 if (hasTabsOrEmoji && mText instanceof Spanned) { in getLineExtent() 906 TabStopSpan[] tabs = getParagraphSpans((Spanned) mText, start, end, TabStopSpan.class); in getLineExtent() 1209 ReplacementSpan[] spans = ((Spanned) text).getSpans(offset, offset, in getOffsetAtStartOf() [all …]
|
D | SpannableStringInternal.java | 36 if (source instanceof Spanned) { in SpannableStringInternal() 37 Spanned sp = (Spanned) source; in SpannableStringInternal() 247 int prio = data[i * COLUMNS + FLAGS] & Spanned.SPAN_PRIORITY; in getSpans() 252 int p = getSpanFlags(ret[j]) & Spanned.SPAN_PRIORITY; in getSpans()
|
D | Html.java | 101 public static Spanned fromHtml(String source) { in fromHtml() 123 public static Spanned fromHtml(String source, ImageGetter imageGetter, in fromHtml() 145 public static String toHtml(Spanned text) { in toHtml() 151 private static void withinHtml(StringBuilder out, Spanned text) { in withinHtml() 187 private static void withinDiv(StringBuilder out, Spanned text, in withinDiv() 206 private static void withinBlockquote(StringBuilder out, Spanned text, in withinBlockquote() 230 private static void withinParagraph(StringBuilder out, Spanned text, in withinParagraph() 358 private static void withinStyle(StringBuilder out, Spanned text, in withinStyle() 407 public Spanned convert() { in convert() 565 private static Object getLast(Spanned text, Class kind) { in getLast()
|
D | Spannable.java | 25 extends Spanned
|
D | MeasuredText.java | 104 if (text instanceof Spanned) { in setPara() 105 Spanned spanned = (Spanned) text; in setPara()
|
/frameworks/base/core/java/android/view/inputmethod/ |
D | BaseInputConnection.java | 29 import android.text.Spanned; 82 if ((text.getSpanFlags(o)&Spanned.SPAN_COMPOSING) != 0) { in removeComposingSpans() 105 if ((fl&(Spanned.SPAN_COMPOSING|Spanned.SPAN_POINT_MARK_MASK)) in setComposingSpans() 106 != (Spanned.SPAN_COMPOSING|Spanned.SPAN_EXCLUSIVE_EXCLUSIVE)) { in setComposingSpans() 108 (fl & ~Spanned.SPAN_POINT_MARK_MASK) in setComposingSpans() 109 | Spanned.SPAN_COMPOSING in setComposingSpans() 110 | Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in setComposingSpans() 116 Spanned.SPAN_EXCLUSIVE_EXCLUSIVE | Spanned.SPAN_COMPOSING); in setComposingSpans() 452 Spanned.SPAN_EXCLUSIVE_EXCLUSIVE | Spanned.SPAN_COMPOSING); in setComposingRegion() 457 Spanned.SPAN_EXCLUSIVE_EXCLUSIVE | Spanned.SPAN_COMPOSING); in setComposingRegion() [all …]
|
/frameworks/ex/common/java/com/android/common/ |
D | Rfc822InputFilter.java | 20 import android.text.Spanned; 33 public CharSequence filter(CharSequence source, int start, int end, Spanned dest, in filter() 59 if (source instanceof Spanned) { in filter()
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | EditableInputConnection.java | 21 import android.text.Spanned; 142 if (text instanceof Spanned) { in commitText() 143 Spanned spanned = ((Spanned) text); in commitText()
|
/frameworks/base/core/java/android/text/style/ |
D | IconMarginSpan.java | 23 import android.text.Spanned; 46 int st = ((Spanned) text).getSpanStart(this); in drawLeadingMargin() 58 if (end == ((Spanned) text).getSpanEnd(this)) { in chooseHeight()
|
D | DrawableMarginSpan.java | 23 import android.text.Spanned; 46 int st = ((Spanned) text).getSpanStart(this); in drawLeadingMargin() 61 if (end == ((Spanned) text).getSpanEnd(this)) { in chooseHeight()
|
D | BulletSpan.java | 26 import android.text.Spanned; 84 if (((Spanned) text).getSpanStart(this) == start) { in drawLeadingMargin()
|
/frameworks/base/core/tests/coretests/src/android/text/ |
D | TextUtilsTest.java | 59 assertEquals(1, ((Spanned) TextUtils.concat(foo)).getSpanStart("foo")); in testBasic() 61 assertEquals(1, ((Spanned) TextUtils.concat(foo, bar)).getSpanStart("foo")); in testBasic() 62 assertEquals(4, ((Spanned) TextUtils.concat(foo, bar)).getSpanStart("bar")); in testBasic() 64 assertEquals(1, ((Spanned) TextUtils.concat(foo, bar, baz)).getSpanStart("foo")); in testBasic() 65 assertEquals(4, ((Spanned) TextUtils.concat(foo, bar, baz)).getSpanStart("bar")); in testBasic() 66 assertEquals(7, ((Spanned) TextUtils.concat(foo, bar, baz)).getSpanStart("baz")); in testBasic() 136 private void checkContains(Spanned text, String[] spans, String spanName, in checkContains() 151 Spanned result; in testTemplateSpan() 162 result = (Spanned) TextUtils.expandTemplate(template, "foo"); in testTemplateSpan() 176 result = (Spanned) TextUtils.expandTemplate(template, ""); in testTemplateSpan() [all …]
|
D | HtmlTest.java | 40 Spanned spanned = Html.fromHtml("<b>hello</b>"); in testSingleTagOnWhileString() 50 Spanned spanned = Html.fromHtml("Hello <font color=\"#ff00ff00\"></font>"); in testEmptyFontTag() 58 Spanned spanned = Html.fromHtml("Hello <b>b<i>bi</b>i</i>"); in testBadHtml() 79 Spanned s; in testColor() 101 Spanned s; in testResourceColor() 231 Spanned s; in testImg() 241 Spanned s; in testUtf8()
|
D | SpannedTest.java | 79 Spanned s2 = (Spanned) TextUtils.CHAR_SEQUENCE_CREATOR. in testWrapParcel() 124 assertEquals((s.getSpanFlags(spans[i]) & Spanned.SPAN_PRIORITY) >= in checkPriority() 125 (s.getSpanFlags(spans[i + 1]) & Spanned.SPAN_PRIORITY), in checkPriority()
|
/frameworks/base/core/java/android/widget/ |
D | MultiAutoCompleteTextView.java | 22 import android.text.Spanned; 262 if (text instanceof Spanned) { in terminateToken() 264 TextUtils.copySpansFrom((Spanned) text, 0, text.length(), in terminateToken()
|
D | SpellChecker.java | 22 import android.text.Spanned; 124 editable.setSpan(mSpellCheckSpans[index], start, end, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in addSpellCheckSpan() 297 editable.setSpan(suggestionSpan, start, end, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in createMisspelledSuggestionSpan() 309 Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in init() 409 editable.setSpan(mRange, wordStart, end, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in parse()
|