Home
last modified time | relevance | path

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

123

/frameworks/opt/setupwizard/library/eclair-mr1/src/com/android/setupwizardlib/util/
DLinkAccessibilityHelper.java24 import android.text.Spanned;
72 if (text instanceof Spanned) { in getVirtualViewAt()
73 final Spanned spannedText = (Spanned) text; in getVirtualViewAt()
87 if (text instanceof Spanned) { in getVisibleVirtualViews()
88 final Spanned spannedText = (Spanned) text; in getVisibleVirtualViews()
146 if (text instanceof Spanned) { in getSpanForOffset()
147 Spanned spannedText = (Spanned) text; in getSpanForOffset()
158 if (text instanceof Spanned) { in getTextForSpan()
159 Spanned spannedText = (Spanned) text; in getTextForSpan()
171 if (text instanceof Spanned) { in getBoundsForSpan()
[all …]
/frameworks/base/core/java/android/text/method/
DReplacementTransformationMethod.java23 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;
DPasswordTransformationMethod.java28 import android.text.Spanned;
150 if (mSource instanceof Spanned) { in charAt()
151 Spanned sp = (Spanned) mSource; in charAt()
195 if (mSource instanceof Spanned) { in getChars()
196 Spanned sp = (Spanned) mSource; in getChars()
DNumberKeyListener.java26 import android.text.Spanned;
48 Spanned dest, int dstart, int dend) { in filter()
/frameworks/opt/setupwizard/library/eclair-mr1/test/src/com/android/setupwizardlib/test/
DRichTextViewTest.java23 import android.text.Spanned;
43 assertTrue("Text should be spanned", text instanceof Spanned); in testLinkAnnotation()
45 Object[] spans = ((Spanned) text).getSpans(0, text.length(), Annotation.class); in testLinkAnnotation()
48 spans = ((Spanned) text).getSpans(0, text.length(), LinkSpan.class); in testLinkAnnotation()
65 assertTrue("Text should be spanned", text instanceof Spanned); in testTextStyle()
67 Object[] spans = ((Spanned) text).getSpans(0, text.length(), Annotation.class); in testTextStyle()
70 spans = ((Spanned) text).getSpans(0, text.length(), TextAppearanceSpan.class); in testTextStyle()
/frameworks/base/core/java/android/text/
DInputFilter.java43 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()
84 public CharSequence filter(CharSequence source, int start, int end, Spanned dest, in filter()
DTextUtils.java440 if (source instanceof Spanned) in stringOrSpannedString()
626 if (cs instanceof Spanned) { in writeToParcel()
630 Spanned sp = (Spanned) cs; in writeToParcel()
672 private static void writeWhere(Parcel p, Spanned sp, Object o) { in writeWhere()
821 if (cs instanceof Spanned) { in dumpSpans()
822 Spanned sp = (Spanned) cs; in dumpSpans()
853 Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in replace()
949 if (text instanceof Spanned) { in getOffsetBefore()
950 ReplacementSpan[] spans = ((Spanned) text).getSpans(offset, offset, in getOffsetBefore()
954 int start = ((Spanned) text).getSpanStart(spans[i]); in getOffsetBefore()
[all …]
DSelection.java38 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()
DAlteredCharSequence.java36 if (source instanceof Spanned) in make()
58 implements Spanned
63 mSpanned = (Spanned) source; in AlteredSpanned()
86 private Spanned mSpanned;
DHtml.java187 public static Spanned fromHtml(String source) { in fromHtml()
198 public static Spanned fromHtml(String source, int flags) { in fromHtml()
218 public static Spanned fromHtml(String source, ImageGetter imageGetter, TagHandler tagHandler) { in fromHtml()
230 public static Spanned fromHtml(String source, int flags, ImageGetter imageGetter, in fromHtml()
252 public static String toHtml(Spanned text) { in toHtml()
266 public static String toHtml(Spanned text, int option) { in toHtml()
281 private static void withinHtml(StringBuilder out, Spanned text, int option) { in withinHtml()
290 private static void encodeTextAlignmentByDiv(StringBuilder out, Spanned text, int option) { in encodeTextAlignmentByDiv()
326 private static void withinDiv(StringBuilder out, Spanned text, int start, int end, in withinDiv()
345 private static String getTextDirection(Spanned text, int start, int end) { in getTextDirection()
[all …]
DLayout.java199 mSpannedText = text instanceof Spanned; in Layout()
219 mSpannedText = text instanceof Spanned; in replaceWith()
285 Spanned sp = (Spanned) buf; in drawText()
421 Spanned buffer = (Spanned) mText; in drawBackground()
541 Spanned spanned = (Spanned) mText; in getLineStartPos()
932 if (hasTab && mText instanceof Spanned) { in getHorizontal()
935 TabStopSpan[] tabs = getParagraphSpans((Spanned) mText, start, end, TabStopSpan.class); in getHorizontal()
1050 if (hasTabs && mText instanceof Spanned) { in getLineExtent()
1053 TabStopSpan[] tabs = getParagraphSpans((Spanned) mText, start, end, TabStopSpan.class); in getLineExtent()
1386 ReplacementSpan[] spans = ((Spanned) text).getSpans(offset, offset, in getOffsetAtStartOf()
[all …]
DSpannableStringInternal.java39 if (source instanceof Spanned) { in SpannableStringInternal()
43 copySpans((Spanned) source, start, end); in SpannableStringInternal()
55 private final void copySpans(Spanned src, int start, int end) { in copySpans()
326 int prio = data[i * COLUMNS + FLAGS] & Spanned.SPAN_PRIORITY; in getSpans()
331 int p = getSpanFlags(ret[j]) & Spanned.SPAN_PRIORITY; in getSpans()
443 if (o instanceof Spanned && in equals()
445 Spanned other = (Spanned) o; in equals()
DSpannableStringBuilder.java78 if (text instanceof Spanned) { in SpannableStringBuilder()
79 Spanned sp = (Spanned) text; in SpannableStringBuilder()
308 if ((mSpanFlags[i] & Spanned.SPAN_EXCLUSIVE_EXCLUSIVE) == in removeSpansForChange()
309 Spanned.SPAN_EXCLUSIVE_EXCLUSIVE && in removeSpansForChange()
416 if (cs instanceof Spanned) { in change()
417 Spanned sp = (Spanned) cs; in change()
561 Spanned.SPAN_POINT_POINT); in replace()
570 Spanned.SPAN_POINT_POINT); in replace()
587 if (text instanceof Spanned) { in hasNonExclusiveExclusiveSpanAt()
588 Spanned spanned = (Spanned) text; in hasNonExclusiveExclusiveSpanAt()
[all …]
/frameworks/base/core/java/android/view/inputmethod/
DBaseInputConnection.java30 import android.text.Spanned;
84 if ((text.getSpanFlags(o)&Spanned.SPAN_COMPOSING) != 0) { in removeComposingSpans()
107 if ((fl&(Spanned.SPAN_COMPOSING|Spanned.SPAN_POINT_MARK_MASK)) in setComposingSpans()
108 != (Spanned.SPAN_COMPOSING|Spanned.SPAN_EXCLUSIVE_EXCLUSIVE)) { in setComposingSpans()
110 (fl & ~Spanned.SPAN_POINT_MARK_MASK) in setComposingSpans()
111 | Spanned.SPAN_COMPOSING in setComposingSpans()
112 | Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in setComposingSpans()
118 Spanned.SPAN_EXCLUSIVE_EXCLUSIVE | Spanned.SPAN_COMPOSING); in setComposingSpans()
644 Spanned.SPAN_EXCLUSIVE_EXCLUSIVE | Spanned.SPAN_COMPOSING); in setComposingRegion()
649 Spanned.SPAN_EXCLUSIVE_EXCLUSIVE | Spanned.SPAN_COMPOSING); in setComposingRegion()
[all …]
/frameworks/ex/common/java/com/android/common/
DRfc822InputFilter.java20 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/opt/setupwizard/library/eclair-mr1/src/com/android/setupwizardlib/view/
DRichTextView.java23 import android.text.Spanned;
61 if (text instanceof Spanned) { in getRichText()
131 if (text instanceof Spanned) { in hasLinks()
133 ((Spanned) text).getSpans(0, text.length(), ClickableSpan.class); in hasLinks()
/frameworks/base/core/java/android/text/style/
DIconMarginSpan.java22 import android.text.Spanned;
45 int st = ((Spanned) text).getSpanStart(this); in drawLeadingMargin()
57 if (end == ((Spanned) text).getSpanEnd(this)) { in chooseHeight()
DDrawableMarginSpan.java22 import android.text.Spanned;
45 int st = ((Spanned) text).getSpanStart(this); in drawLeadingMargin()
60 if (end == ((Spanned) text).getSpanEnd(this)) { in chooseHeight()
DBulletSpan.java26 import android.text.Spanned;
94 if (((Spanned) text).getSpanStart(this) == start) { in drawLeadingMargin()
/frameworks/base/core/tests/coretests/src/android/text/
DTextUtilsTest.java61 assertEquals(1, ((Spanned) TextUtils.concat(foo)).getSpanStart("foo")); in testBasic()
63 assertEquals(1, ((Spanned) TextUtils.concat(foo, bar)).getSpanStart("foo")); in testBasic()
64 assertEquals(4, ((Spanned) TextUtils.concat(foo, bar)).getSpanStart("bar")); in testBasic()
66 assertEquals(1, ((Spanned) TextUtils.concat(foo, bar, baz)).getSpanStart("foo")); in testBasic()
67 assertEquals(4, ((Spanned) TextUtils.concat(foo, bar, baz)).getSpanStart("bar")); in testBasic()
68 assertEquals(7, ((Spanned) TextUtils.concat(foo, bar, baz)).getSpanStart("baz")); in testBasic()
138 private void checkContains(Spanned text, String[] spans, String spanName, in checkContains()
153 Spanned result; in testTemplateSpan()
164 result = (Spanned) TextUtils.expandTemplate(template, "foo"); in testTemplateSpan()
178 result = (Spanned) TextUtils.expandTemplate(template, ""); in testTemplateSpan()
[all …]
DSpannedTest.java79 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/support/core-utils/tests/java/android/support/v4/text/
DBidiFormatterTest.java22 import android.text.Spanned;
205 CS_EN_HE.setSpan(RELATIVE_SIZE_SPAN, 0, EN.length(), Spanned.SPAN_INCLUSIVE_INCLUSIVE); in testCharSequenceApis()
207 Spanned wrapped; in testCharSequenceApis()
210 wrapped = (Spanned) LTR_FMT.unicodeWrap(CS_EN_HE); in testCharSequenceApis()
218 wrapped = (Spanned) LTR_FMT.unicodeWrap(CS_EN_HE, TextDirectionHeuristicsCompat.LTR); in testCharSequenceApis()
226 wrapped = (Spanned) LTR_FMT.unicodeWrap(CS_EN_HE, false); in testCharSequenceApis()
234 wrapped = (Spanned) LTR_FMT.unicodeWrap(CS_EN_HE, TextDirectionHeuristicsCompat.LTR, false); in testCharSequenceApis()
/frameworks/base/core/java/com/android/internal/widget/
DEditableInputConnection.java21 import android.text.Spanned;
176 if (text instanceof Spanned) { in commitText()
177 Spanned spanned = ((Spanned) text); in commitText()
DTextViewInputDisabler.java20 import android.text.Spanned;
34 public CharSequence filter(CharSequence source, int start, int end, Spanned dest,
/frameworks/base/core/java/android/widget/
DMultiAutoCompleteTextView.java22 import android.text.Spanned;
271 if (text instanceof Spanned) { in terminateToken()
273 TextUtils.copySpansFrom((Spanned) text, 0, text.length(), in terminateToken()

123