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

1 2 3 4

  /frameworks/base/core/tests/coretests/src/android/text/
SpannableTest.java 41 spans = spannable.getSpans(0, 1, Object.class);
43 spans = spannable.getSpans(0, 2, Object.class);
45 spans = spannable.getSpans(1, 2, Object.class);
47 spans = spannable.getSpans(2, 2, Object.class);
HtmlTest.java 41 Object[] spans = spanned.getSpans(-1, 100, Object.class);
51 Object[] spans = spanned.getSpans(0, 100, Object.class);
59 Object[] spans = spanned.getSpans(0, 100, Object.class);
83 colors = s.getSpans(0, s.length(), ForegroundColorSpan.class);
88 colors = s.getSpans(0, s.length(), ForegroundColorSpan.class);
93 colors = s.getSpans(0, s.length(), ForegroundColorSpan.class);
105 colors = s.getSpans(0, s.length(), TextAppearanceSpan.class);
110 colors = s.getSpans(0, s.length(), TextAppearanceSpan.class);
115 colors = s.getSpans(0, s.length(), TextAppearanceSpan.class);
120 colors = s.getSpans(0, s.length(), TextAppearanceSpan.class)
    [all...]
SpannedTest.java 54 assertEquals(1, ssb.getSpans(0, 4, Object.class).length);
59 assertEquals(0, ssb.getSpans(0, 4, Object.class).length);
60 assertEquals(1, ssb.getSpans(4, 8, Object.class).length);
83 style = s2.getSpans(1, 2, StyleSpan.class);
88 style = s2.getSpans(3, 7, StyleSpan.class);
93 TextAppearanceSpan[] appearance = s2.getSpans(7, 8,
99 TypefaceSpan[] tf = s2.getSpans(8, 9, TypefaceSpan.class);
121 Object[] spans = s.getSpans(0, s.length(), Object.class);
  /external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/
SpannableStringTest.java 54 Object[] spans = spanStr.getSpans(0, TEST_STRING.length(), Object.class);
67 Object[] spans = spanStr.getSpans(0, TEST_STRING.length(), Object.class);
72 spans = spanStr.getSpans(0, TEST_STRING.length(), URLSpan.class);
77 spans = spanStr.getSpans(11, 35, Object.class);
82 spans = spanStr.getSpans(21, 35, Object.class);
87 spans = spanStr.getSpans(5, 15, Object.class);
124 Object[] spans = spanStr.getSpans(0, TEST_STRING.length(), Object.class);
  /cts/tests/tests/text/src/android/text/util/cts/
LinkifyTest.java 80 URLSpan[] spans = spannable.getSpans(0, spannable.length(), URLSpan.class);
86 spans = spannable.getSpans(0, spannable.length(), URLSpan.class);
106 URLSpan[] spans = ((Spannable)tv.getText()).getSpans(0, text.length(), URLSpan.class);
113 spans = ((Spannable)tv.getText()).getSpans(0, text.length(), URLSpan.class);
133 URLSpan[] spans = ((Spannable) tv.getText()).getSpans(0, text.length(), URLSpan.class);
141 spans = ((Spannable) tv.getText()).getSpans(0, text.length(), URLSpan.class);
163 spans = ((Spannable) tv.getText()).getSpans(0, text.length(), URLSpan.class);
176 URLSpan[] spans = ((Spannable) tv.getText()).getSpans(0, text.length(), URLSpan.class);
200 spans = ((Spannable) tv.getText()).getSpans(0, text.length(), URLSpan.class);
207 spans = ((Spannable) tv.getText()).getSpans(0, text.length(), URLSpan.class)
    [all...]
  /packages/apps/Contacts/tests/src/com/android/contacts/util/
HtmlUtilsTest.java 104 ImageSpan[] imageSpans = ret.getSpans(0, ret.length(), ImageSpan.class);
110 QuoteSpan[] quoteSpans = ret.getSpans(0, ret.length(), QuoteSpan.class);
115 CustomSpan[] customSpans = ret.getSpans(0, ret.length(), CustomSpan.class);
  /frameworks/base/core/java/android/text/
Spanned.java 168 public <T> T[] getSpans(int start, int end, Class<T> type);
AlteredCharSequence.java 66 public <T> T[] getSpans(int start, int end, Class<T> kind) {
67 return mSpanned.getSpans(start, end, kind);
SpannableStringInternal.java 38 Object[] spans = sp.getSpans(start, end, Object.class);
205 public <T> T[] getSpans(int queryStart, int queryEnd, Class<T> kind) {
308 SpanWatcher[] recip = getSpans(start, end, SpanWatcher.class);
317 SpanWatcher[] recip = getSpans(start, end, SpanWatcher.class);
326 SpanWatcher[] recip = getSpans(Math.min(s, st), Math.max(e, en),
368 Object[] otherSpans = other.getSpans(0, other.length(), Object.class);
SpanSet.java 22 * A cached set of spans. Caches the result of {@link Spanned#getSpans(int, int, Class)} and then
46 final E[] allSpans = spanned.getSpans(start, limit, classType);
  /packages/apps/Email/tests/src/com/android/emailcommon/utility/
TextUtilitiesTests.java 202 BackgroundColorSpan[] spans = ssb.getSpans(0, ssb.length(), BackgroundColorSpan.class);
213 spans = ssb.getSpans(0, ssb.length(), BackgroundColorSpan.class);
229 BackgroundColorSpan[] spans = ssb.getSpans(0, ssb.length(), BackgroundColorSpan.class);
245 BackgroundColorSpan[] spans = ssb.getSpans(0, ssb.length(), BackgroundColorSpan.class);
257 BackgroundColorSpan[] spans = ssb.getSpans(0, ssb.length(), BackgroundColorSpan.class);
270 BackgroundColorSpan[] spans = ssb.getSpans(0, ssb.length(), BackgroundColorSpan.class);
  /cts/tests/tests/text/src/android/text/cts/
HtmlTest.java 56 Object[] spans = spanned.getSpans(start, end, Object.class);
76 Object[] spans = spanned.getSpans(start, end, Object.class);
97 colors = s.getSpans(start, end, type);
103 colors = s.getSpans(start, end, type);
109 colors = s.getSpans(start, end, type);
  /frameworks/base/core/java/android/text/method/
PasswordTransformationMethod.java 48 ViewReference[] vr = sp.getSpans(0, sp.length(),
80 ViewReference[] vr = sp.getSpans(0, s.length(),
133 Visible[] old = sp.getSpans(0, sp.length(), Visible.class);
161 Visible[] visible = sp.getSpans(0, sp.length(), Visible.class);
202 Visible[] visible = sp.getSpans(0, sp.length(), Visible.class);
Touch.java 94 ds = buffer.getSpans(0, buffer.length(), DragState.class);
106 ds = buffer.getSpans(0, buffer.length(), DragState.class);
119 ds = buffer.getSpans(0, buffer.length(), DragState.class);
184 DragState[] ds = buffer.getSpans(0, buffer.length(), DragState.class);
193 DragState[] ds = buffer.getSpans(0, buffer.length(), DragState.class);
ReplacementTransformationMethod.java 183 public <T> T[] getSpans(int start, int end, Class<T> type) {
184 return mSpanned.getSpans(start, end, type);
LinkMovementMethod.java 110 ClickableSpan[] candidates = buffer.getSpans(first, last, ClickableSpan.class);
135 ClickableSpan[] link = buffer.getSpans(selStart, selEnd, ClickableSpan.class);
213 ClickableSpan[] link = buffer.getSpans(off, off, ClickableSpan.class);
  /external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/
ShadowHtml.java 33 public <T> T[] getSpans(int start, int end, Class<T> type) {
  /packages/apps/ContactsCommon/src/com/android/contacts/common/format/
SpannedTestUtils.java 71 return value.getSpans(start, end, ForegroundColorSpan.class).length;
  /packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/utils/
SpannableStringUtilsTests.java 50 Object[] spans = result.getSpans(0, result.length(), SuggestionSpan.class);
  /cts/tests/tests/text/src/android/text/method/cts/
LinkMovementMethodTest.java 103 assertTrue("Expected at least 2 spans", 2 <= spannable.getSpans(0, spannable.length(), Object.class).length);
106 assertEquals(1, spannable.getSpans(0, spannable.length(), Object.class).length);
107 Object span = spannable.getSpans(0, spannable.length(), Object.class)[0];
115 assertTrue("Expected at least 3 spans", 3 <= spannable.getSpans(0, spannable.length(), Object.class).length);
118 assertEquals(0, spannable.getSpans(0, spannable.length(), Object.class).length);
125 assertTrue("Expected at least 3 spans", 3 <= spannable.getSpans(0, spannable.length(), Object.class).length);
128 assertEquals(0, spannable.getSpans(0, spannable.length(), Object.class).length);
445 assertTrue("Expected at least 3 spans", 3 <= spannable.getSpans(0, spannable.length(), Object.class).length);
448 assertEquals(0, spannable.getSpans(0, spannable.length(), Object.class).length);
QwertyKeyListenerTest.java 175 Object[] repl = content.getSpans(0, content.length(), Object.class);
179 repl = content.getSpans(0, content.length(), Object.class);
186 repl = content.getSpans(0, content.length(), Object.class);
  /packages/apps/Contacts/src/com/android/contacts/util/
HtmlUtils.java 88 final QuoteSpan[] quoteSpans = builder.getSpans(0, length, QuoteSpan.class);
98 final ImageSpan[] imageSpans = builder.getSpans(0, length, ImageSpan.class);
  /external/chromium_org/chrome/test/android/javatests/src/org/chromium/chrome/test/util/
TranslateUtil.java 38 spannable.getSpans(0, spannable.length() -1, ClickableSpan.class);
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
SpannableStringUtils.java 44 Object[] spans = source.getSpans(start, end, SuggestionSpan.class);
TextRange.java 58 // to the #getSpans() method. The reason we need to get from -1 to +1 is that, the
59 // spans were cut at the cursor position, and #getSpans(start, end) does not return
65 // If we called #getSpans(0, 4) in this case, we would only get the part from 0 to 4
67 // extends from 0 to 7. But if we call #getSpans(-1, 5) we'll get both the 0~4 and
74 final SuggestionSpan[] spans = text.getSpans(mWordAtCursorStartIndex - 1,

Completed in 1575 milliseconds

1 2 3 4