/cts/tests/tests/text/src/android/text/cts/ |
SpannableStringTest.java | 56 assertEquals(1, spannable.getSpanStart(null)); 62 assertEquals(0, spannable.getSpanStart(underlineSpan)); 88 assertEquals(0, spannable.getSpanStart(underlineSpan)); 93 assertEquals(-1, spannable.getSpanStart(underlineSpan)); 99 assertEquals(-1, spannable.getSpanStart(underlineSpan));
|
SpannableStringBuilderTest.java | 129 assertEquals(1, builder.getSpanStart(null)); 134 assertEquals(0, builder.getSpanStart(mUnderlineSpan)); 374 assertEquals(0, builder.getSpanStart(mUnderlineSpan)); 379 assertEquals(-1, builder.getSpanStart(mUnderlineSpan)); 387 assertEquals(1, builder.getSpanStart(mUnderlineSpan)); 388 assertEquals(-1, builder.getSpanStart(mStrikethroughSpan)); 389 assertEquals(-1, builder.getSpanStart(null)); 410 assertEquals(0, builder.getSpanStart(mUnderlineSpan)); 415 assertEquals(0, builder.getSpanStart(mUnderlineSpan)); 420 assertEquals(-1, builder.getSpanStart(mUnderlineSpan)) [all...] |
/frameworks/ex/chips/tests/src/com/android/ex/chips/ |
ChipsTest.java | 212 assertEquals(mEditable.getSpanStart(mMockRecips[mMockRecips.length - 1]), firstStart 257 assertEquals(mEditable.getSpanStart(moreChip), thirdStart); 287 assertEquals(view.getText().getSpanStart(moreChip), secondStart); 317 assertEquals(mEditable.getSpanStart(mMockRecips[mMockRecips.length - 3]), firstStart); 318 assertEquals(mEditable.getSpanStart(mMockRecips[mMockRecips.length - 2]), secondStart); 321 assertEquals(mEditable.getSpanStart(moreChip), thirdStart); 326 assertEquals(mEditable.getSpanStart(mMockRecips[mMockRecips.length - 3]), firstStart); 328 assertEquals(mEditable.getSpanStart(mMockRecips[mMockRecips.length - 2]), secondStart); 329 assertEquals(mEditable.getSpanStart(mMockRecips[mMockRecips.length - 1]), thirdStart); 332 assertEquals(mEditable.getSpanStart(moreChip), -1) [all...] |
/packages/apps/Email/tests/src/com/android/emailcommon/utility/ |
TextUtilitiesTests.java | 205 assertEquals(text.indexOf("visi"), ssb.getSpanStart(span)); 216 assertEquals(text.indexOf("search word"), ssb.getSpanStart(span)); 219 assertEquals(text.indexOf("search result"), ssb.getSpanStart(span)); 232 assertEquals(text.indexOf("should"), ssb.getSpanStart(span)); 235 assertEquals(text.indexOf("visi"), ssb.getSpanStart(span)); 248 assertEquals(text.indexOf("should"), ssb.getSpanStart(span)); 260 assertEquals(text.indexOf("should"), ssb.getSpanStart(span)); 273 assertEquals(text.indexOf("shoulder"), ssb.getSpanStart(span)); 277 assertEquals(text.indexOf("s are visible"), ssb.getSpanStart(span));
|
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/ |
SpannableStringTest.java | 98 assertThat(spanStr.getSpanStart(s1), equalTo(-1)); 99 assertThat(spanStr.getSpanStart(s2), equalTo(-1)); 102 assertThat(spanStr.getSpanStart(s1), equalTo(0)); 105 assertThat(spanStr.getSpanStart(s2), equalTo(2));
|
/frameworks/base/core/java/android/text/ |
Spanned.java | 174 public int getSpanStart(Object tag);
|
AlteredCharSequence.java | 70 public int getSpanStart(Object span) { 71 return mSpanned.getSpanStart(span);
|
SpannableStringInternal.java | 41 int st = sp.getSpanStart(spans[i]); 163 public int getSpanStart(Object what) { 375 getSpanStart(thisSpan) != other.getSpanStart(otherSpan) || 381 getSpanStart(thisSpan) != other.getSpanStart(otherSpan) || 403 hash = hash * 31 + getSpanStart(span);
|
SpanSet.java | 61 final int spanStart = spanned.getSpanStart(span);
|
Selection.java | 39 return ((Spanned) text).getSpanStart(SELECTION_START); 50 return ((Spanned) text).getSpanStart(SELECTION_END); 101 if (text.getSpanStart(SELECTION_END) != index)
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/ |
TextRange.java | 85 int spanStart = text.getSpanStart(span); 91 spanStart = Math.min(spanStart, text.getSpanStart(spans[i]));
|
SpannableStringUtils.java | 50 int st = source.getSpanStart(spans[i]);
|
/frameworks/base/core/java/android/text/method/ |
PasswordTransformationMethod.java | 154 int st = sp.getSpanStart(TextKeyListener.ACTIVE); 164 if (sp.getSpanStart(visible[a].mTransformer) >= 0) { 165 st = sp.getSpanStart(visible[a]); 199 st = sp.getSpanStart(TextKeyListener.ACTIVE); 208 if (sp.getSpanStart(visible[i].mTransformer) >= 0) { 209 starts[i] = sp.getSpanStart(visible[i]);
|
LinkMovementMethod.java | 119 if (buffer.getSpanStart(FROM_BELOW) >= 0) { 154 beststart = buffer.getSpanStart(candidates[i]); 172 int start = buffer.getSpanStart(candidates[i]); 220 buffer.getSpanStart(link[0]),
|
MultiTapKeyListener.java | 102 int activeStart = content.getSpanStart(TextKeyListener.ACTIVE); 195 int oldStart = content.getSpanStart(OLD_SEL_START); 218 if (content.getSpanStart(this) < 0) { 273 int start = buf.getSpanStart(TextKeyListener.ACTIVE);
|
ReplacementTransformationMethod.java | 187 public int getSpanStart(Object tag) { 188 return mSpanned.getSpanStart(tag);
|
/frameworks/base/core/tests/coretests/src/android/text/ |
SpannedTest.java | 52 assertEquals(0, ssb.getSpanStart(o)); 57 assertEquals(4, ssb.getSpanStart(o)); 85 assertEquals(1, s2.getSpanStart(style[0])); 90 assertEquals(3, s2.getSpanStart(style[0])); 96 assertEquals(7, s2.getSpanStart(appearance[0])); 101 assertEquals(8, s2.getSpanStart(tf[0]));
|
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")); 140 assertEquals(start, text.getSpanStart(i)); 502 public int getSpanStart(Object tag) {
|
HtmlTest.java | 44 assertEquals(0, spanned.getSpanStart(span)); 61 assertEquals(7, spanned.getSpanStart(spans[0])); 64 assertEquals(6, spanned.getSpanStart(spans[1])); 67 assertEquals(9, spanned.getSpanStart(spans[2]));
|
/cts/tests/tests/widget/src/android/widget/cts/ |
DialerFilterTest.java | 267 assertEquals(-1, span.getSpanStart(tw)); 276 assertEquals(0, span.getSpanStart(tw)); 299 assertEquals(-1, span.getSpanStart(tw)); 303 assertEquals(0, span.getSpanStart(tw)); 316 assertEquals(-1, span.getSpanStart(tw)); 325 assertEquals(0, span.getSpanStart(tw)); 339 assertEquals(-1, span.getSpanStart(tw)); 348 assertEquals(0, span.getSpanStart(tw)); 355 assertEquals(-1, span.getSpanStart(tw));
|
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowHtml.java | 38 public int getSpanStart(Object tag) {
|
/frameworks/base/core/java/android/text/style/ |
IconMarginSpan.java | 46 int st = ((Spanned) text).getSpanStart(this);
|
DrawableMarginSpan.java | 46 int st = ((Spanned) text).getSpanStart(this);
|
/external/chromium_org/chrome/test/android/javatests/src/org/chromium/chrome/test/util/ |
TranslateUtil.java | 47 int x = spannable.getSpanStart(clickable[0]) + 1;
|
/frameworks/base/core/java/android/widget/ |
SpellChecker.java | 282 final int start = editable.getSpanStart(spellCheckSpan); 353 final int spellCheckSpanStart = editable.getSpanStart(spellCheckSpan); 459 final int spellCheckSpanStart = editable.getSpanStart(spellCheckSpan); 525 return ((Editable) mTextView.getText()).getSpanStart(mRange) < 0; 541 Log.d(TAG, "Remove range span." + editable.getSpanStart(editable) 555 0, editable.getSpanStart(mRange) - MIN_SENTENCE_LENGTH); 557 start = editable.getSpanStart(mRange); 625 final int spanStart = editable.getSpanStart(spellCheckSpan); 701 final int spanStart = editable.getSpanStart(spellCheckSpans[i]); 752 final int start = editable.getSpanStart(span) [all...] |