HomeSort by relevance Sort by last modified time
    Searched refs:Spanned (Results 26 - 50 of 150) sorted by null

12 3 4 5 6

  /development/samples/browseable/TextLinkify/src/com.example.android.textlinkify/
MainActivity.java 24 import android.text.Spanned;
122 Spanned.SPAN_INCLUSIVE_INCLUSIVE);
124 Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
  /external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/
ShadowHtml.java 4 import android.text.Spanned;
13 public static Spanned fromHtml(String source) {
25 private static class SpannedThatActsLikeString implements Spanned {
  /frameworks/base/core/java/android/text/style/
IconMarginSpan.java 22 import android.text.Spanned;
45 int st = ((Spanned) text).getSpanStart(this);
57 if (end == ((Spanned) text).getSpanEnd(this)) {
DrawableMarginSpan.java 22 import android.text.Spanned;
45 int st = ((Spanned) text).getSpanStart(this);
60 if (end == ((Spanned) text).getSpanEnd(this)) {
  /packages/apps/Settings/src/com/android/settings/widget/
LinkTextView.java 21 import android.text.Spanned;
48 if (text instanceof Spanned) {
50 ((Spanned) text).getSpans(0, text.length(), ClickableSpan.class);
  /cts/tests/tests/text/src/android/text/cts/
SpannableStringTest.java 22 import android.text.Spanned;
140 first.setSpan(quoteSpan, 0, 2, Spanned.SPAN_PARAGRAPH);
141 first.setSpan(localeSpan, 2, 4, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
142 first.setSpan(underlineSpan, 0, first.length(), Spanned.SPAN_PRIORITY);
144 Spanned second = (Spanned) first.subSequence(2,4);
151 {underlineSpan, 0, second.length(), Spanned.SPAN_PRIORITY},
152 {localeSpan, 0, 2, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE}};
167 first.setSpan(new QuoteSpan(), 0, 2, Spanned.SPAN_PARAGRAPH);
168 first.setSpan(new LocaleSpan(Locale.US), 2, 4, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE)
    [all...]
SpannableStringBuilderTest.java 26 import android.text.Spanned;
96 builder.setSpan(mUnderlineSpan, 2, 4, Spanned.SPAN_INCLUSIVE_INCLUSIVE);
97 builder.setSpan(mUnderlineSpan, 0, 1, Spanned.SPAN_EXCLUSIVE_INCLUSIVE);
98 builder.setSpan(mStrikethroughSpan, 5, 7, Spanned.SPAN_INCLUSIVE_EXCLUSIVE);
100 assertEquals(Spanned.SPAN_EXCLUSIVE_INCLUSIVE, builder.getSpanFlags(mUnderlineSpan));
101 assertEquals(Spanned.SPAN_INCLUSIVE_EXCLUSIVE, builder.getSpanFlags(mStrikethroughSpan));
108 builder.setSpan(mUnderlineSpan, 1, 2, Spanned.SPAN_INCLUSIVE_INCLUSIVE);
109 builder.setSpan(mUnderlineSpan, 3, 4, Spanned.SPAN_INCLUSIVE_INCLUSIVE);
110 builder.setSpan(mStrikethroughSpan, 5, 6, Spanned.SPAN_INCLUSIVE_INCLUSIVE);
111 builder.setSpan(mStrikethroughSpan, 8, 9, Spanned.SPAN_INCLUSIVE_INCLUSIVE)
    [all...]
SpannableStringBuilderSpanTest.java 28 import android.text.Spanned;
84 int flags[] = { Spanned.SPAN_EXCLUSIVE_EXCLUSIVE, Spanned.SPAN_INCLUSIVE_INCLUSIVE,
85 Spanned.SPAN_EXCLUSIVE_INCLUSIVE, Spanned.SPAN_INCLUSIVE_EXCLUSIVE };
151 flag == Spanned.SPAN_EXCLUSIVE_EXCLUSIVE &&
167 case Spanned.SPAN_EXCLUSIVE_EXCLUSIVE:
168 case Spanned.SPAN_EXCLUSIVE_INCLUSIVE:
176 case Spanned.SPAN_INCLUSIVE_INCLUSIVE:
177 case Spanned.SPAN_INCLUSIVE_EXCLUSIVE
    [all...]
HtmlTest.java 29 import android.text.Spanned;
51 Spanned spanned = Html.fromHtml(source); local
52 assertSingleTagOnWhileString(spanned);
53 spanned = Html.fromHtml(source, null, null);
54 assertSingleTagOnWhileString(spanned);
57 private void assertSingleTagOnWhileString(Spanned spanned) {
64 Object[] spans = spanned.getSpans(start, end, Object.class);
66 assertEquals(expectStart, spanned.getSpanStart(spans[0]))
73 Spanned spanned = Html.fromHtml(source); local
92 String spanned = Html.fromHtml(source).toString(); local
361 Spanned spanned = Html.fromHtml(source); local
383 Spanned spanned = Html.fromHtml(source); local
    [all...]
LoginFilterTest.java 22 import android.text.Spanned;
35 Spanned dest1 = new SpannedString("dest_without_invalid_char");
36 Spanned dest2 = new SpannedString("&*dest_with_invalid_char#$");
39 Spanned spannedSource = new SpannedString("&*spanned_source_with_invalid_char#$");
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/compat/
LocaleSpanCompatUtils.java 20 import android.text.Spanned;
131 isStartExclusive = ((spanFlag & Spanned.SPAN_EXCLUSIVE_EXCLUSIVE) ==
132 Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
136 isEndExclusive = ((spanFlag & Spanned.SPAN_EXCLUSIVE_EXCLUSIVE) ==
137 Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
205 return (originalFlag & ~Spanned.SPAN_POINT_MARK_MASK) |
212 return isEndExclusive ? Spanned.SPAN_EXCLUSIVE_EXCLUSIVE
213 : Spanned.SPAN_EXCLUSIVE_INCLUSIVE;
215 return isEndExclusive ? Spanned.SPAN_INCLUSIVE_EXCLUSIVE
216 : Spanned.SPAN_INCLUSIVE_INCLUSIVE
    [all...]
SuggestionSpanUtils.java 22 import android.text.Spanned;
69 Spanned.SPAN_EXCLUSIVE_EXCLUSIVE | Spanned.SPAN_COMPOSING);
98 spannable.setSpan(suggestionSpan, 0, pickedWord.length(), Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
  /frameworks/base/core/java/android/text/
AlteredCharSequence.java 36 if (source instanceof Spanned)
58 implements Spanned
63 mSpanned = (Spanned) source;
86 private Spanned mSpanned;
Spanned.java 25 public interface Spanned
Selection.java 38 if (text instanceof Spanned)
39 return ((Spanned) text).getSpanStart(SELECTION_START);
49 if (text instanceof Spanned)
50 return ((Spanned) text).getSpanStart(SELECTION_END);
77 Spanned.SPAN_POINT_POINT|Spanned.SPAN_INTERMEDIATE);
79 Spanned.SPAN_POINT_POINT);
102 text.setSpan(SELECTION_END, index, index, Spanned.SPAN_POINT_POINT);
  /packages/apps/UnifiedEmail/src/com/android/mail/ui/
EllipsizedMultilineTextView.java 24 import android.text.Spanned;
97 // Merely assembling the Spanned pieces together would result in duplicate CharacterStyle
98 // spans in the assembled version if a CharacterStyle spanned across the lastLineStart
100 if (text instanceof Spanned) {
101 final Spanned s = (Spanned) text;
  /packages/apps/UnifiedEmail/src/com/android/mail/utils/
HtmlUtils.java 22 import android.text.Spanned;
48 * @return processed HTML as a Spanned
50 public static Spanned htmlToSpan(String html, HtmlTree.ConverterFactory factory) {
55 final Spanned spanned = htmlTree.getSpanned(); local
59 spanned.length());
60 return spanned;
64 * Class that handles converting the html into a Spanned.
77 public static class SpannedConverter implements HtmlTree.Converter<Spanned> {
163 mBuilder.setSpan(marker, start, end, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE)
    [all...]
  /packages/apps/Settings/src/com/android/settings/bluetooth/
Utf8ByteLengthFilter.java 20 import android.text.Spanned;
48 Spanned dest, int dstart, int dend) {
  /cts/tests/tests/text/src/android/text/method/cts/
NumberKeyListenerTest.java 24 import android.text.Spanned;
47 * 5. Filter Spanned("12345 Android"), return Spanned("12345") and copy spans.
73 spannableSource.setSpan(what, 0, spannableSource.length(), Spanned.SPAN_POINT_POINT);
74 Spanned filtered = (Spanned) mMockNumberKeyListener.filter(spannableSource,
77 assertEquals(Spanned.SPAN_POINT_POINT, filtered.getSpanFlags(what));
  /frameworks/base/core/java/android/view/inputmethod/
BaseInputConnection.java 30 import android.text.Spanned;
84 if ((text.getSpanFlags(o)&Spanned.SPAN_COMPOSING) != 0) {
107 if ((fl&(Spanned.SPAN_COMPOSING|Spanned.SPAN_POINT_MARK_MASK))
108 != (Spanned.SPAN_COMPOSING|Spanned.SPAN_EXCLUSIVE_EXCLUSIVE)) {
110 (fl & ~Spanned.SPAN_POINT_MARK_MASK)
111 | Spanned.SPAN_COMPOSING
112 | Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
118 Spanned.SPAN_EXCLUSIVE_EXCLUSIVE | Spanned.SPAN_COMPOSING)
    [all...]
  /frameworks/base/core/java/android/text/method/
PasswordTransformationMethod.java 28 import android.text.Spanned;
150 if (mSource instanceof Spanned) {
151 Spanned sp = (Spanned) mSource;
195 if (mSource instanceof Spanned) {
196 Spanned sp = (Spanned) mSource;
  /cts/tests/tests/text/src/android/text/style/cts/
IconMarginSpanTest.java 26 import android.text.Spanned;
57 Spanned text = Html.fromHtml("<b>hello</b>");
81 Spanned text = Html.fromHtml("cts test.");
  /packages/apps/UnifiedEmail/src/com/android/mail/browse/
BadgeSpan.java 24 import android.text.Spanned;
51 * A reference to the enclosing Spanned object to collect other CharacterStyle spans and take
54 private final Spanned mSpanned;
57 public BadgeSpan(Spanned spanned, BadgeSpanDimensions dims) {
58 mSpanned = spanned;
  /frameworks/base/core/java/com/android/internal/widget/
EditableInputConnection.java 21 import android.text.Spanned;
176 if (text instanceof Spanned) {
177 Spanned spanned = ((Spanned) text); local
178 SuggestionSpan[] spans = spanned.getSpans(0, text.length(), SuggestionSpan.class);
  /frameworks/base/core/tests/benchmarks/src/android/text/
SpannableStringInternalCopyBenchmark.java 29 private SpannedString spanned; field in class:SpannableStringInternalCopyBenchmark
38 Spanned source = Html.fromHtml(strBuilder.toString());
39 spanned = new SpannedString(source);
44 spanned = null;
50 new SpannedString(spanned);
57 spanned.subSequence(1, spanned.length()-1);

Completed in 927 milliseconds

12 3 4 5 6