/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; 48 Spanned dest, int dstart, int dend) { in filter()
|
D | DigitsKeyListener.java | 20 import android.text.Spanned; 139 Spanned dest, int dstart, int dend) { in filter()
|
D | HideReturnsTransformationMethod.java | 21 import android.text.Spanned;
|
/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 | AlteredCharSequence.java | 36 if (source instanceof Spanned) in make() 58 implements Spanned 63 mSpanned = (Spanned) source; in AlteredSpanned() 86 private Spanned mSpanned;
|
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 | 437 if (source instanceof Spanned) in stringOrSpannedString() 612 if (cs instanceof Spanned) { in writeToParcel() 616 Spanned sp = (Spanned) cs; in writeToParcel() 658 private static void writeWhere(Parcel p, Spanned sp, Object o) { in writeWhere() 803 if (cs instanceof Spanned) { in dumpSpans() 804 Spanned sp = (Spanned) cs; in dumpSpans() 835 Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in replace() 931 if (text instanceof Spanned) { in getOffsetBefore() 932 ReplacementSpan[] spans = ((Spanned) text).getSpans(offset, offset, in getOffsetBefore() 936 int start = ((Spanned) text).getSpanStart(spans[i]); in getOffsetBefore() [all …]
|
D | Layout.java | 156 mSpannedText = text instanceof Spanned; in Layout() 176 mSpannedText = text instanceof Spanned; in replaceWith() 242 Spanned sp = (Spanned) buf; in drawText() 369 Spanned buffer = (Spanned) mText; in drawBackground() 494 Spanned spanned = (Spanned) mText; in getLineStartPos() 841 if (hasTabOrEmoji && mText instanceof Spanned) { in getHorizontal() 844 TabStopSpan[] tabs = getParagraphSpans((Spanned) mText, start, end, TabStopSpan.class); in getHorizontal() 959 if (hasTabsOrEmoji && mText instanceof Spanned) { in getLineExtent() 962 TabStopSpan[] tabs = getParagraphSpans((Spanned) mText, start, end, TabStopSpan.class); in getLineExtent() 1265 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() 364 if (o instanceof Spanned && in equals() 366 Spanned other = (Spanned) o; in equals()
|
D | SpannableStringBuilder.java | 70 if (text instanceof Spanned) { in SpannableStringBuilder() 71 Spanned sp = (Spanned) text; in SpannableStringBuilder() 321 if ((mSpanFlags[i] & Spanned.SPAN_EXCLUSIVE_EXCLUSIVE) == in change() 322 Spanned.SPAN_EXCLUSIVE_EXCLUSIVE && in change() 359 if (cs instanceof Spanned) { in change() 360 Spanned sp = (Spanned) cs; in change() 485 Spanned.SPAN_POINT_POINT); in replace() 492 Spanned.SPAN_POINT_POINT); in replace() 506 if (text instanceof Spanned) { in hasNonExclusiveExclusiveSpanAt() 507 Spanned spanned = (Spanned) text; in hasNonExclusiveExclusiveSpanAt() [all …]
|
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() 160 private static void withinHtml(StringBuilder out, Spanned text) { in withinHtml() 196 private static void withinDiv(StringBuilder out, Spanned text, in withinDiv() 215 private static String getOpenParaTagWithDirection(Spanned text, int start, int end) { in getOpenParaTagWithDirection() 232 private static void withinBlockquote(StringBuilder out, Spanned text, in withinBlockquote() 256 private static void withinParagraph(StringBuilder out, Spanned text, in withinParagraph() 441 public Spanned convert() { in convert() 599 private static Object getLast(Spanned text, Class kind) { in getLast()
|
D | Spannable.java | 25 extends Spanned
|
D | SpannedString.java | 27 implements CharSequence, GetChars, Spanned
|
/frameworks/base/core/java/android/view/inputmethod/ |
D | BaseInputConnection.java | 28 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() 464 Spanned.SPAN_EXCLUSIVE_EXCLUSIVE | Spanned.SPAN_COMPOSING); in setComposingRegion() 469 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/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/com/android/internal/widget/ |
D | EditableInputConnection.java | 21 import android.text.Spanned; 176 if (text instanceof Spanned) { in commitText() 177 Spanned spanned = ((Spanned) text); in commitText()
|
/frameworks/base/core/java/android/widget/ |
D | MultiAutoCompleteTextView.java | 22 import android.text.Spanned; 275 if (text instanceof Spanned) { in terminateToken() 277 TextUtils.copySpansFrom((Spanned) text, 0, text.length(), in terminateToken()
|