HomeSort by relevance Sort by last modified time
    Searched refs:Spanned (Results 1 - 25 of 89) sorted by null

1 2 3 4

  /packages/apps/Contacts/src/com/android/contacts/widget/
TextWithHighlighting.java 19 import android.text.Spanned;
22 * A Spanned that highlights a part of text by dimming another part of that text.
24 public interface TextWithHighlighting extends Spanned {
  /frameworks/ex/common/java/com/android/common/
Rfc822InputFilter.java 20 import android.text.Spanned;
33 public CharSequence filter(CharSequence source, int start, int end, Spanned dest,
59 if (source instanceof Spanned) {
  /frameworks/base/core/java/android/text/
InputFilter.java 37 * Note: If <var>source</var> is an instance of {@link Spanned} or
43 Spanned dest, int dstart, int dend);
51 Spanned dest, int dstart, int dend) {
58 if (source instanceof Spanned) {
60 TextUtils.copySpansFrom((Spanned) source,
83 Spanned dest, int dstart, int dend) {
Spannable.java 25 extends Spanned
30 * attached elsewhere. See {@link Spanned} for an explanation of
SpannedString.java 27 implements CharSequence, GetChars, Spanned
AlteredCharSequence.java 36 if (source instanceof Spanned)
58 implements Spanned
63 mSpanned = (Spanned) source;
86 private Spanned mSpanned;
  /packages/apps/Contacts/tests/src/com/android/contacts/format/
SpannedTestUtils.java 20 import android.text.Spanned;
27 * Utility class to check the value of spanned text in text views.
37 String actualHtmlText = Html.toHtml((Spanned) textView.getText());
  /cts/tests/tests/text/src/android/text/method/cts/
MetaKeyKeyListenerTest.java 29 import android.text.Spanned;
54 content.setSpan(Selection.SELECTION_START, 0, 0, Spanned.SPAN_POINT_POINT);
55 content.setSpan(Selection.SELECTION_END, 0, 0, Spanned.SPAN_POINT_POINT);
60 content.setSpan(Selection.SELECTION_START, 1, 1, Spanned.SPAN_POINT_POINT);
61 content.setSpan(Selection.SELECTION_END, 1, 1, Spanned.SPAN_POINT_POINT);
66 content.setSpan(Selection.SELECTION_START, 3, 3, Spanned.SPAN_POINT_POINT);
67 content.setSpan(Selection.SELECTION_END, 3, 3, Spanned.SPAN_POINT_POINT);
85 content.setSpan(Selection.SELECTION_START, 0, 0, Spanned.SPAN_POINT_POINT);
86 content.setSpan(Selection.SELECTION_END, 0, 0, Spanned.SPAN_POINT_POINT);
91 content.setSpan(Selection.SELECTION_START, 1, 1, Spanned.SPAN_POINT_POINT)
    [all...]
DigitsKeyListenerTest.java 33 import android.text.Spanned;
85 * 4. filter Spanned("-a1.b2c3d"), return Spanned("123") and copy spans.
91 args = {CharSequence.class, int.class, int.class, Spanned.class, int.class, int.class}
116 spannableSource.setSpan(what, 0, spannableSource.length(), Spanned.SPAN_POINT_POINT);
117 Spanned filtered = (Spanned) digitsKeyListener.filter(spannableSource,
120 assertEquals(Spanned.SPAN_POINT_POINT, filtered.getSpanFlags(what));
135 * 5. filter Spanned("5-a1-b2c3d"), return Spanned("5123") and copy spans
    [all...]
  /frameworks/base/core/java/android/text/method/
ReplacementTransformationMethod.java 23 import android.text.Spanned;
82 if (source instanceof Spanned) {
84 (Spanned) source,
94 if (source instanceof Spanned) {
95 return new SpannedReplacementCharSequence((Spanned) source,
171 implements Spanned
173 public SpannedReplacementCharSequence(Spanned source, char[] original,
203 private Spanned mSpanned;
HideReturnsTransformationMethod.java 21 import android.text.Spanned;
SingleLineTransformationMethod.java 23 import android.text.Spanned;
PasswordTransformationMethod.java 29 import android.text.Spanned;
151 if (mSource instanceof Spanned) {
152 Spanned sp = (Spanned) mSource;
196 if (mSource instanceof Spanned) {
197 Spanned sp = (Spanned) mSource;
  /development/samples/ApiDemos/src/com/example/android/apis/text/
Link.java 26 import android.text.Spanned;
76 Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
78 Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
  /frameworks/base/core/java/android/text/style/
IconMarginSpan.java 23 import android.text.Spanned;
46 int st = ((Spanned) text).getSpanStart(this);
58 if (end == ((Spanned) text).getSpanEnd(this)) {
DrawableMarginSpan.java 23 import android.text.Spanned;
46 int st = ((Spanned) text).getSpanStart(this);
61 if (end == ((Spanned) text).getSpanEnd(this)) {
  /packages/apps/Contacts/tests/src/com/android/contacts/detail/
ContactDetailDisplayUtilsTest.java 27 import android.text.Spanned;
88 * Asserts that a char sequence is actually a {@link Spanned} matching the one expected.
90 private void assertSpannableEquals(Spanned expected, CharSequence actualCharSequence) {
92 assertTrue("char sequence should be an instance of Spanned",
93 actualCharSequence instanceof Spanned);
94 Spanned actual = (Spanned) actualCharSequence;
  /cts/tests/tests/text/src/android/text/cts/
HtmlTest.java 24 import android.text.Spanned;
60 Spanned spanned = Html.fromHtml(source); local
61 assertSingleTagOnWhileString(spanned);
62 spanned = Html.fromHtml(source, null, null);
63 assertSingleTagOnWhileString(spanned);
66 private void assertSingleTagOnWhileString(Spanned spanned) {
73 Object[] spans = spanned.getSpans(start, end, Object.class);
75 assertEquals(expectStart, spanned.getSpanStart(spans[0]))
94 Spanned spanned = Html.fromHtml(source); local
125 String spanned = Html.fromHtml(source).toString(); local
    [all...]
SpannableStringBuilderTest.java 29 import android.text.Spanned;
113 builder.setSpan(mUnderlineSpan, 2, 4, Spanned.SPAN_INCLUSIVE_INCLUSIVE);
114 builder.setSpan(mUnderlineSpan, 0, 1, Spanned.SPAN_EXCLUSIVE_INCLUSIVE);
115 builder.setSpan(mStrikethroughSpan, 5, 7, Spanned.SPAN_INCLUSIVE_EXCLUSIVE);
117 assertEquals(Spanned.SPAN_EXCLUSIVE_INCLUSIVE, builder.getSpanFlags(mUnderlineSpan));
118 assertEquals(Spanned.SPAN_INCLUSIVE_EXCLUSIVE, builder.getSpanFlags(mStrikethroughSpan));
130 builder.setSpan(mUnderlineSpan, 1, 2, Spanned.SPAN_INCLUSIVE_INCLUSIVE);
131 builder.setSpan(mUnderlineSpan, 3, 4, Spanned.SPAN_INCLUSIVE_INCLUSIVE);
132 builder.setSpan(mStrikethroughSpan, 5, 6, Spanned.SPAN_INCLUSIVE_INCLUSIVE);
133 builder.setSpan(mStrikethroughSpan, 8, 9, Spanned.SPAN_INCLUSIVE_INCLUSIVE)
    [all...]
  /frameworks/base/core/java/com/android/internal/widget/
EditableInputConnection.java 21 import android.text.Spanned;
142 if (text instanceof Spanned) {
143 Spanned spanned = ((Spanned) text); local
144 SuggestionSpan[] spans = spanned.getSpans(0, text.length(), SuggestionSpan.class);
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/compat/
SuggestionSpanUtils.java 25 import android.text.Spanned;
73 Spanned.SPAN_EXCLUSIVE_EXCLUSIVE | Spanned.SPAN_COMPOSING);
109 spannable.setSpan(ss, 0, pickedWord.length(), Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
  /packages/apps/Settings/src/com/android/settings/bluetooth/
Utf8ByteLengthFilter.java 20 import android.text.Spanned;
48 Spanned dest, int dstart, int dend) {
  /packages/apps/Contacts/src/com/android/contacts/util/
HtmlUtils.java 28 import android.text.Spanned;
41 * Converts HTML string to a {@link Spanned} text, adjusting formatting. Any extra new line
44 public static Spanned fromHtml(Context context, String text) {
48 Spanned spanned = Html.fromHtml(text); local
49 return postprocess(context, spanned);
53 * Converts HTML string to a {@link Spanned} text, adjusting formatting and using a custom
69 static Spanned postprocess(Context context, Spanned original) {
79 // SpannableStringBuilder based on the passed Spanned
    [all...]
  /frameworks/base/core/java/android/view/inputmethod/
BaseInputConnection.java 29 import android.text.Spanned;
82 if ((text.getSpanFlags(o)&Spanned.SPAN_COMPOSING) != 0) {
105 if ((fl&(Spanned.SPAN_COMPOSING|Spanned.SPAN_POINT_MARK_MASK))
106 != (Spanned.SPAN_COMPOSING|Spanned.SPAN_EXCLUSIVE_EXCLUSIVE)) {
108 (fl & ~Spanned.SPAN_POINT_MARK_MASK)
109 | Spanned.SPAN_COMPOSING
110 | Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
116 Spanned.SPAN_EXCLUSIVE_EXCLUSIVE | Spanned.SPAN_COMPOSING)
    [all...]
  /packages/apps/Mms/src/com/android/mms/ui/
RecipientsEditor.java 33 import android.text.Spanned;
74 mAffected = ((Spanned) s).getSpans(start, start + count,
273 Spanned text = getText();
288 private static String getNumberAt(Spanned sp, int start, int end, Context context) {
292 private static int getSpanLength(Spanned sp, int start, int end, Context context) {
306 private static String getFieldAt(String field, Spanned sp, int start, int end,
396 if (text instanceof Spanned) {
398 TextUtils.copySpansFrom((Spanned) text, 0, text.length(),
408 Spanned sp = mList.getText();

Completed in 389 milliseconds

1 2 3 4