/cts/tests/tests/text/src/android/text/cts/ |
SpannableStringTest.java | 57 assertEquals(4, spannable.getSpanEnd(null)); 63 assertEquals(2, spannable.getSpanEnd(underlineSpan)); 89 assertEquals(2, spannable.getSpanEnd(underlineSpan)); 94 assertEquals(-1, spannable.getSpanEnd(underlineSpan)); 100 assertEquals(-1, spannable.getSpanEnd(underlineSpan));
|
SpannableStringBuilderTest.java | 130 assertEquals(4, builder.getSpanEnd(null)); 135 assertEquals(2, builder.getSpanEnd(mUnderlineSpan)); 375 assertEquals(2, builder.getSpanEnd(mUnderlineSpan)); 380 assertEquals(-1, builder.getSpanEnd(mUnderlineSpan)); 411 assertEquals(2, builder.getSpanEnd(mUnderlineSpan)); 416 assertEquals(2, builder.getSpanEnd(mUnderlineSpan)); 421 assertEquals(-1, builder.getSpanEnd(mUnderlineSpan)); 439 assertEquals(3, builder.getSpanEnd(mUnderlineSpan)); 440 assertEquals(-1, builder.getSpanEnd(mStrikethroughSpan)); 441 assertEquals(-1, builder.getSpanEnd(null)) [all...] |
/packages/apps/Email/tests/src/com/android/emailcommon/utility/ |
TextUtilitiesTests.java | 206 assertEquals(text.indexOf("bl>e"), ssb.getSpanEnd(span)); 217 assertEquals(text.indexOf(" word"), ssb.getSpanEnd(span)); 220 assertEquals(text.indexOf(" result"), ssb.getSpanEnd(span)); 233 assertEquals(text.indexOf(" be"), ssb.getSpanEnd(span)); 236 assertEquals(text.indexOf("ble"), ssb.getSpanEnd(span)); 249 assertEquals(text.indexOf(" be"), ssb.getSpanEnd(span)); 261 assertEquals(text.indexOf("er is"), ssb.getSpanEnd(span)); 274 assertEquals(text.indexOf("s are visible"), ssb.getSpanEnd(span)); 278 assertEquals(text.indexOf(" are visible"), ssb.getSpanEnd(span));
|
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/ |
SpannableStringTest.java | 113 assertThat(spanStr.getSpanEnd(s1), equalTo(-1)); 114 assertThat(spanStr.getSpanEnd(s2), equalTo(-1)); 117 assertThat(spanStr.getSpanEnd(s1), equalTo(4)); 120 assertThat(spanStr.getSpanEnd(s2), equalTo(TEST_STRING.length()));
|
/frameworks/base/core/java/android/text/ |
Spanned.java | 180 public int getSpanEnd(Object tag);
|
AlteredCharSequence.java | 74 public int getSpanEnd(Object span) { 75 return mSpanned.getSpanEnd(span);
|
SpannableStringInternal.java | 42 int en = sp.getSpanEnd(spans[i]); 177 public int getSpanEnd(Object what) { 376 getSpanEnd(thisSpan) != other.getSpanEnd(otherSpan) || 382 getSpanEnd(thisSpan) != other.getSpanEnd(otherSpan) || 404 hash = hash * 31 + getSpanEnd(span);
|
SpanSet.java | 62 final int spanEnd = spanned.getSpanEnd(span);
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/ |
TextRange.java | 86 int spanEnd = text.getSpanEnd(span); 92 spanEnd = Math.max(spanEnd, text.getSpanEnd(spans[i]));
|
SpannableStringUtils.java | 51 int en = source.getSpanEnd(spans[i]);
|
/frameworks/base/core/tests/coretests/src/android/text/ |
SpannedTest.java | 53 assertEquals(4, ssb.getSpanEnd(o)); 58 assertEquals(8, ssb.getSpanEnd(o)); 86 assertEquals(2, s2.getSpanEnd(style[0])); 91 assertEquals(7, s2.getSpanEnd(style[0])); 97 assertEquals(8, s2.getSpanEnd(appearance[0])); 102 assertEquals(9, s2.getSpanEnd(tf[0]));
|
HtmlTest.java | 45 assertEquals(5, spanned.getSpanEnd(span)); 62 assertEquals(9, spanned.getSpanEnd(spans[0])); 65 assertEquals(9, spanned.getSpanEnd(spans[1])); 68 assertEquals(10, spanned.getSpanEnd(spans[2]));
|
/cts/tests/tests/widget/src/android/widget/cts/ |
DialerFilterTest.java | 268 assertEquals(-1, span.getSpanEnd(tw)); 277 assertEquals(mDialerFilter.getLetters().length(), span.getSpanEnd(tw)); 300 assertEquals(-1, span.getSpanEnd(tw)); 304 assertEquals(mDialerFilter.getDigits().length(), span.getSpanEnd(tw)); 317 assertEquals(-1, span.getSpanEnd(tw)); 326 assertEquals(mDialerFilter.getLetters().length(), span.getSpanEnd(tw)); 340 assertEquals(-1, span.getSpanEnd(tw)); 349 assertEquals(mDialerFilter.getLetters().length(), span.getSpanEnd(tw)); 356 assertEquals(-1, span.getSpanEnd(tw));
|
MultiAutoCompleteTextView_CommaTokenizerTest.java | 132 assertEquals(spannableString.length(), actual.getSpanEnd(what));
|
/frameworks/ex/chips/tests/src/com/android/ex/chips/ |
ChipsTest.java | 258 assertEquals(mEditable.getSpanEnd(moreChip), thirdEnd + 1); 288 assertEquals(view.getText().getSpanEnd(moreChip), view.length()); 322 assertEquals(mEditable.getSpanEnd(moreChip), thirdEnd + 1); 327 assertEquals(mEditable.getSpanEnd(mMockRecips[mMockRecips.length - 3]), firstEnd); 330 assertEquals(mEditable.getSpanEnd(mMockRecips[mMockRecips.length - 1]), thirdEnd); 342 assertEquals(mEditable.getSpanEnd(moreChip), thirdEnd + 1); 347 assertEquals(mEditable.getSpanEnd(mMockRecips[mMockRecips.length - 3]), firstEnd); 350 assertEquals(mEditable.getSpanEnd(mMockRecips[mMockRecips.length - 1]), thirdEnd); 412 assertEquals(mEditable.getSpanEnd(moreChip), tenthEnd + 1); 462 assertEquals(mEditable.getSpanEnd(moreChip), thirdEnd + 1) [all...] |
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowHtml.java | 43 public int getSpanEnd(Object tag) {
|
ShadowSpannableString.java | 66 public int getSpanEnd(Object what) {
|
/frameworks/base/core/java/android/text/method/ |
PasswordTransformationMethod.java | 155 int en = sp.getSpanEnd(TextKeyListener.ACTIVE); 166 en = sp.getSpanEnd(visible[a]); 200 en = sp.getSpanEnd(TextKeyListener.ACTIVE); 210 ends[i] = sp.getSpanEnd(visible[i]);
|
ReplacementTransformationMethod.java | 191 public int getSpanEnd(Object tag) { 192 return mSpanned.getSpanEnd(tag);
|
LinkMovementMethod.java | 150 int end = buffer.getSpanEnd(candidates[i]); 177 bestend = buffer.getSpanEnd(candidates[i]); 221 buffer.getSpanEnd(link[0]));
|
QwertyKeyListener.java | 107 int activeEnd = content.getSpanEnd(TextKeyListener.ACTIVE); 197 int where = content.getSpanEnd(TextKeyListener.CAPPED); 249 content.getSpanEnd(TextKeyListener.INHIBIT_REPLACEMENT) 315 if (content.getSpanEnd(TextKeyListener.LAST_TYPED) == selStart) { 325 int en = content.getSpanEnd(repl[0]);
|
/frameworks/base/core/java/android/text/style/ |
IconMarginSpan.java | 58 if (end == ((Spanned) text).getSpanEnd(this)) {
|
DrawableMarginSpan.java | 61 if (end == ((Spanned) text).getSpanEnd(this)) {
|
/cts/tests/tests/text/src/android/text/method/cts/ |
LinkMovementMethodTest.java | 109 assertEquals(0, spannable.getSpanEnd(span)); 152 mSpannable.getSpanEnd(mClickable0)); 161 Selection.setSelection(mSpannable, mSpannable.getSpanEnd(mClickable0), 180 Selection.setSelection(mSpannable, mSpannable.getSpanEnd(mClickable0), 181 mSpannable.getSpanEnd(mClickable1)); 190 Selection.setSelection(mSpannable, mSpannable.getSpanEnd(mClickable0), 191 mSpannable.getSpanEnd(mClickable1)); 498 spannable.getSpanEnd(clickableSpan)); 503 assertSelection(spannable, spannable.getSpanEnd(clickableSpan),
|
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ |
EllipsizedMultilineTextView.java | 107 final int end = s.getSpanEnd(span);
|