/cts/tests/tests/text/src/android/text/cts/ |
SpannedStringTest.java | 57 SpannedString spanned = SpannedString.valueOf(text); local 58 assertEquals(text, spanned.toString()); 60 spanned = new SpannedString(text); 61 assertSame(spanned, SpannedString.valueOf(spanned)); 80 SpannedString spanned = new SpannedString(text); local 82 CharSequence subSequence = spanned.subSequence(0, 2); 86 subSequence = spanned.subSequence(0, text.length()); 91 spanned.subSequence(-1, text.length() + 1); 97 spanned.subSequence(2, 0) [all...] |
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...] |
AlteredCharSequenceTest.java | 21 import android.text.Spanned; 132 MockSpanned spanned = new MockSpanned("This is a spanned."); local 133 mAlteredCharSequence = AlteredCharSequence.make(spanned, sub, 0, sub.length); 174 class MockSpanned implements Spanned {
|
/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("© > <").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...] |
/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);
|
/frameworks/base/core/java/android/text/ |
MeasuredText.java | 104 if (text instanceof Spanned) { 105 Spanned spanned = (Spanned) text; local 106 ReplacementSpan[] spans = spanned.getSpans(start, end, 110 int startInPara = spanned.getSpanStart(spans[i]) - start; 111 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 | 158 mSpannedText = text instanceof Spanned; 178 mSpannedText = text instanceof Spanned; 241 Spanned sp = (Spanned) buf; 280 // a non-spanned transformation of a spanned editing buffer. 318 Spanned sp = (Spanned) buf; 459 Spanned spanned = (Spanned) mText local 1451 Spanned spanned = (Spanned) mText; local [all...] |
TextLine.java | 60 private Spanned mSpanned; 148 if (text instanceof Spanned) { 149 mSpanned = (Spanned) text; [all...] |
TextUtils.java | 428 if (source instanceof Spanned) 597 if (cs instanceof Spanned) { 601 Spanned sp = (Spanned) cs; 636 private static void writeWhere(Parcel p, Spanned sp, Object o) { 773 * be printed one span per line. If the CharSequence is not a Spanned, 777 if (cs instanceof Spanned) { 778 Spanned sp = (Spanned) cs; 809 Spanned.SPAN_EXCLUSIVE_EXCLUSIVE) [all...] |
/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...] |
/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/webkit/LayoutTests/dom/html/level2/html/ |
HTMLTableCellElement15.js | 78 The colSpan attribute specifies the number of columns spanned by a table
|
HTMLTableCellElement16.js | 78 The colSpan attribute specifies the number of columns spanned by a
|
HTMLTableCellElement23.js | 78 The rowSpan attribute specifies the number of rows spanned by a table
|
HTMLTableCellElement24.js | 78 The rowSpan attribute specifies the number of rows spanned by a
|
table25.js | 78 Number of columns spanned by cell.
|
table28.js | 78 Number of rows spanned by cell.
|
/external/webkit/LayoutTests/dom/xhtml/level2/html/ |
HTMLTableCellElement15.js | 78 The colSpan attribute specifies the number of columns spanned by a table
|
HTMLTableCellElement16.js | 78 The colSpan attribute specifies the number of columns spanned by a
|
HTMLTableCellElement23.js | 78 The rowSpan attribute specifies the number of rows spanned by a table
|
HTMLTableCellElement24.js | 78 The rowSpan attribute specifies the number of rows spanned by a
|
table25.js | 78 Number of columns spanned by cell.
|
table28.js | 78 Number of rows spanned by cell.
|