HomeSort by relevance Sort by last modified time
    Searched refs:spanned (Results 1 - 23 of 23) sorted by null

  /cts/tests/tests/text/src/android/text/cts/
SpannedStringTest.java 35 SpannedString spanned = SpannedString.valueOf(text); local
36 assertEquals(text, spanned.toString());
38 spanned = new SpannedString(text);
39 assertSame(spanned, SpannedString.valueOf(spanned));
50 SpannedString spanned = new SpannedString(text); local
52 CharSequence subSequence = spanned.subSequence(0, 2);
56 subSequence = spanned.subSequence(0, text.length());
61 spanned.subSequence(-1, text.length() + 1);
67 spanned.subSequence(2, 0)
    [all...]
HtmlTest.java 24 import android.text.Spanned;
43 Spanned spanned = Html.fromHtml(source); local
44 assertSingleTagOnWhileString(spanned);
45 spanned = Html.fromHtml(source, null, null);
46 assertSingleTagOnWhileString(spanned);
49 private void assertSingleTagOnWhileString(Spanned spanned) {
56 Object[] spans = spanned.getSpans(start, end, Object.class);
58 assertEquals(expectStart, spanned.getSpanStart(spans[0]))
65 Spanned spanned = Html.fromHtml(source); local
84 String spanned = Html.fromHtml(source).toString(); local
    [all...]
AlteredCharSequenceTest.java 21 import android.text.Spanned;
108 MockSpanned spanned = new MockSpanned("This is a spanned."); local
109 mAlteredCharSequence = AlteredCharSequence.make(spanned, sub, 0, sub.length);
140 class MockSpanned implements Spanned {
TextUtilsTest.java 35 import android.text.Spanned;
151 string1.setSpan(urlSpan, 0, string1.length() - 1, Spanned.SPAN_INCLUSIVE_INCLUSIVE);
153 string2.setSpan(bgColorSpan, 0, string2.length() - 1, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
156 Spanned strResult = (Spanned) TextUtils.concat(string1, comma, string2);
190 source1.setSpan(urlSpan, 0, midPos, Spanned.SPAN_INCLUSIVE_INCLUSIVE);
193 source1.length() - 1, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
206 assertEquals(Spanned.SPAN_INCLUSIVE_INCLUSIVE, dest1.getSpanFlags(urlSpan));
209 assertEquals(Spanned.SPAN_EXCLUSIVE_EXCLUSIVE, dest1.getSpanFlags(bgColorSpan));
212 source2.setSpan(urlSpan, 0, source2.length() - 1, Spanned.SPAN_EXCLUSIVE_INCLUSIVE)
2030 SpannableString spanned = new SpannableString(source); local
    [all...]
  /frameworks/base/core/java/android/text/
SpanSet.java 22 * A cached set of spans. Caches the result of {@link Spanned#getSpans(int, int, Class)} and then
23 * provides faster access to {@link Spanned#nextSpanTransition(int, int, Class)}.
45 public void init(Spanned spanned, int start, int limit) {
46 final E[] allSpans = spanned.getSpans(start, limit, classType);
61 final int spanStart = spanned.getSpanStart(span);
62 final int spanEnd = spanned.getSpanEnd(span);
65 final int spanFlag = spanned.getSpanFlags(span);
90 * Similar to {@link Spanned#nextSpanTransition(int, int, Class)}
MeasuredText.java 108 if (text instanceof Spanned) {
109 Spanned spanned = (Spanned) text; local
110 ReplacementSpan[] spans = spanned.getSpans(start, end,
114 int startInPara = spanned.getSpanStart(spans[i]) - start;
115 int endInPara = spanned.getSpanEnd(spans[i]) - start;
StaticLayout.java 106 : (source instanceof Spanned)
174 Spanned spanned = null; local
175 if (source instanceof Spanned)
176 spanned = (Spanned) source;
194 if (spanned != null) {
195 LeadingMarginSpan[] sp = getParagraphSpans(spanned, paraStart, paraEnd,
208 int lmsFirstLine = getLineForOffset(spanned.getSpanStart(lms2));
213 chooseHt = getParagraphSpans(spanned, paraStart, paraEnd, LineHeightSpan.class)
    [all...]
Layout.java 156 mSpannedText = text instanceof Spanned;
176 mSpannedText = text instanceof Spanned;
242 Spanned sp = (Spanned) buf;
369 Spanned buffer = (Spanned) mText;
430 // a non-spanned transformation of a spanned editing buffer.
494 Spanned spanned = (Spanned) mText local
1525 Spanned spanned = (Spanned) mText; local
    [all...]
TextUtils.java 437 if (source instanceof Spanned)
612 if (cs instanceof Spanned) {
616 Spanned sp = (Spanned) cs;
658 private static void writeWhere(Parcel p, Spanned sp, Object o) {
799 * be printed one span per line. If the CharSequence is not a Spanned,
803 if (cs instanceof Spanned) {
804 Spanned sp = (Spanned) cs;
835 Spanned.SPAN_EXCLUSIVE_EXCLUSIVE)
    [all...]
SpannableStringBuilder.java 70 if (text instanceof Spanned) {
71 Spanned sp = (Spanned) text;
321 if ((mSpanFlags[i] & Spanned.SPAN_EXCLUSIVE_EXCLUSIVE) ==
322 Spanned.SPAN_EXCLUSIVE_EXCLUSIVE &&
359 if (cs instanceof Spanned) {
360 Spanned sp = (Spanned) cs;
485 Spanned.SPAN_POINT_POINT);
492 Spanned.SPAN_POINT_POINT)
507 Spanned spanned = (Spanned) text; local
    [all...]
  /frameworks/base/core/tests/coretests/src/android/text/
HtmlTest.java 40 Spanned spanned = Html.fromHtml("<b>hello</b>"); local
41 Object[] spans = spanned.getSpans(-1, 100, Object.class);
44 assertEquals(0, spanned.getSpanStart(span));
45 assertEquals(5, spanned.getSpanEnd(span));
50 Spanned spanned = Html.fromHtml("Hello <font color=\"#ff00ff00\"></font>"); local
51 Object[] spans = spanned.getSpans(0, 100, Object.class);
58 Spanned spanned = Html.fromHtml("Hello <b>b<i>bi</b>i</i>") local
73 String spanned = Html.fromHtml("&copy; &gt; &lt").toString(); local
    [all...]
TextUtilsTest.java 59 assertEquals(1, ((Spanned) TextUtils.concat(foo)).getSpanStart("foo"));
61 assertEquals(1, ((Spanned) TextUtils.concat(foo, bar)).getSpanStart("foo"));
62 assertEquals(4, ((Spanned) TextUtils.concat(foo, bar)).getSpanStart("bar"));
64 assertEquals(1, ((Spanned) TextUtils.concat(foo, bar, baz)).getSpanStart("foo"));
65 assertEquals(4, ((Spanned) TextUtils.concat(foo, bar, baz)).getSpanStart("bar"));
66 assertEquals(7, ((Spanned) TextUtils.concat(foo, bar, baz)).getSpanStart("baz"));
136 private void checkContains(Spanned text, String[] spans, String spanName,
151 Spanned result;
162 result = (Spanned) TextUtils.expandTemplate(template, "foo");
176 result = (Spanned) TextUtils.expandTemplate(template, "")
424 MockSpanned spanned = new MockSpanned(); local
    [all...]
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
SpannableStringUtils.java 21 import android.text.Spanned;
42 public static void copyNonParagraphSuggestionSpansFrom(Spanned source, int start, int end,
79 boolean spanned = false;
81 if (text[i] instanceof Spanned) {
82 spanned = true;
92 if (!spanned) {
101 if (text[i] instanceof Spanned) {
102 copyNonParagraphSuggestionSpansFrom((Spanned) text[i], 0, len, ss, off);
  /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);
  /packages/apps/Contacts/src/com/android/contacts/util/
HtmlUtils.java 25 import android.text.Spanned;
42 * Converts HTML string to a {@link Spanned} text, adjusting formatting. Any extra new line
45 public static Spanned fromHtml(Context context, String text) {
49 Spanned spanned = Html.fromHtml(text); local
50 return postprocess(context, spanned);
54 * Converts HTML string to a {@link Spanned} text, adjusting formatting and using a custom
70 static Spanned postprocess(Context context, Spanned original) {
80 // SpannableStringBuilder based on the passed Spanned
    [all...]
  /packages/apps/UnifiedEmail/src/com/android/mail/browse/
FolderSpan.java 23 import android.text.Spanned;
60 * A reference to the enclosing Spanned object to collect other CharacterStyle spans and take
63 private final Spanned mSpanned;
66 public FolderSpan(Spanned spanned, FolderSpanDimensions dims) {
67 mSpanned = spanned;
  /packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/
LevenshteinFormatterTest.java 24 import android.text.Spanned;
152 Spanned s = mFormatter.formatSuggestion(query, suggestion);
350 public void verify(Spanned spanned) {
351 String spannedText = spanned.subSequence(mStart, mEnd).toString();
353 MockStyleSpan[] spans = spanned.getSpans(mStart, mEnd, MockStyleSpan.class);
  /external/libvorbis/doc/
a1-encapsulation-ogg.tex 121 subsequent block. A page that is entirely spanned by a single
  /frameworks/base/core/java/android/widget/
Editor.java 61 import android.text.Spanned;
661 URLSpan[] urlSpans = ((Spanned) mTextView.getText()).
665 selectionStart = ((Spanned) mTextView.getText()).getSpanStart(urlSpan);
666 selectionEnd = ((Spanned) mTextView.getText()).getSpanEnd(urlSpan);
1137 Spanned spanned = (Spanned)content; local
    [all...]
  /frameworks/ex/common/java/com/android/ex/editstyledtext/
EditStyledText.java 57 import android.text.Spanned;
398 public String toHtml(Spanned text);
400 public String toHtml(Spanned text, boolean escapeNonAsciiChar);
402 public String toHtml(Spanned text, boolean escapeNonAsciiChar, int width, float scale);
404 public Spanned fromHtml(String string);
406 public Spanned fromHtml(String source, ImageGetter imageGetter, TagHandler tagHandler);
1926 final Spanned spanned = mHtml.fromHtml(html, new Html.ImageGetter() { local
    [all...]
  /external/chromium_org/chrome/third_party/chromevox/
chromeVoxChromeBackgroundScript.js     [all...]
chromeVoxChromeOptionsScript.js     [all...]
chromeVoxChromePageScript.js     [all...]

Completed in 424 milliseconds