Home
last modified time | relevance | path

Searched refs:getSpanEnd (Results 1 – 25 of 45) sorted by relevance

12

/frameworks/opt/chips/tests/src/com/android/ex/chips/
DChipsTest.java258 assertEquals(mEditable.getSpanEnd(moreChip), thirdEnd + 1); in testMoreChipPlainText()
288 assertEquals(view.getText().getSpanEnd(moreChip), view.length()); in testTooManyRecips()
322 assertEquals(mEditable.getSpanEnd(moreChip), thirdEnd + 1); in testMoreChip()
327 assertEquals(mEditable.getSpanEnd(mMockRecips[mMockRecips.length - 3]), firstEnd); in testMoreChip()
330 assertEquals(mEditable.getSpanEnd(mMockRecips[mMockRecips.length - 1]), thirdEnd); in testMoreChip()
342 assertEquals(mEditable.getSpanEnd(moreChip), thirdEnd + 1); in testMoreChip()
347 assertEquals(mEditable.getSpanEnd(mMockRecips[mMockRecips.length - 3]), firstEnd); in testMoreChip()
350 assertEquals(mEditable.getSpanEnd(mMockRecips[mMockRecips.length - 1]), thirdEnd); in testMoreChip()
412 assertEquals(mEditable.getSpanEnd(moreChip), tenthEnd + 1); in testMoreChipLotsOfUsers()
462 assertEquals(mEditable.getSpanEnd(moreChip), thirdEnd + 1); in testMoreChipSpecialChars()
[all …]
/frameworks/base/core/tests/coretests/src/android/text/
DSpannedTest.java63 assertEquals(4, ssb.getSpanEnd(o)); in testAppend()
68 assertEquals(8, ssb.getSpanEnd(o)); in testAppend()
96 assertEquals(2, s2.getSpanEnd(style[0])); in testWrapParcel()
101 assertEquals(7, s2.getSpanEnd(style[0])); in testWrapParcel()
107 assertEquals(8, s2.getSpanEnd(appearance[0])); in testWrapParcel()
112 assertEquals(9, s2.getSpanEnd(tf[0])); in testWrapParcel()
DSpannedStringNoCopyTest.java120 public int getSpanEnd(Object tag) { in getSpanEnd() method in SpannedStringNoCopyTest.CustomSpanned
121 return mText.getSpanEnd(tag); in getSpanEnd()
DSpannableStringNoCopyTest.java130 public int getSpanEnd(Object tag) { in getSpanEnd() method in SpannableStringNoCopyTest.CustomSpannable
131 return mText.getSpanEnd(tag); in getSpanEnd()
DTextUtilsTest.java158 assertEquals(end, text.getSpanEnd(i)); in checkContains()
613 public int getSpanEnd(Object tag) { in getSpanEnd() method in TextUtilsTest.MockSpanned
690 assertEquals(2, spanned.getSpanEnd(span)); in testToUpperCase()
745 assertEquals(indexMap[source.getSpanEnd(span)], result.getSpanEnd(span)); in testToUpperCase_SpansArePreserved()
/frameworks/base/core/java/android/text/method/
DPasswordTransformationMethod.java156 int en = sp.getSpanEnd(TextKeyListener.ACTIVE); in charAt()
167 en = sp.getSpanEnd(visible[a]); in charAt()
201 en = sp.getSpanEnd(TextKeyListener.ACTIVE); in getChars()
211 ends[i] = sp.getSpanEnd(visible[i]); in getChars()
DLinkMovementMethod.java161 int end = buffer.getSpanEnd(candidates[i]); in action()
188 bestEnd = buffer.getSpanEnd(candidates[i]); in action()
243 buffer.getSpanEnd(link)); in onTouchEvent()
DQwertyKeyListener.java112 int activeEnd = content.getSpanEnd(TextKeyListener.ACTIVE); in onKeyDown()
202 int where = content.getSpanEnd(TextKeyListener.CAPPED); in onKeyDown()
254 content.getSpanEnd(TextKeyListener.INHIBIT_REPLACEMENT) in onKeyDown()
320 if (content.getSpanEnd(TextKeyListener.LAST_TYPED) == selStart) { in onKeyDown()
330 int en = content.getSpanEnd(repl[0]); in onKeyDown()
DReplacementTransformationMethod.java191 public int getSpanEnd(Object tag) { in getSpanEnd() method in ReplacementTransformationMethod.SpannedReplacementCharSequence
192 return mSpanned.getSpanEnd(tag); in getSpanEnd()
DMultiTapKeyListener.java106 int activeEnd = content.getSpanEnd(TextKeyListener.ACTIVE); in onKeyDown()
277 int end = buf.getSpanEnd(TextKeyListener.ACTIVE); in run()
/frameworks/base/core/java/android/text/
DSpannableStringInternal.java77 int en = src.getSpanEnd(spans[i]); in copySpansFromSpanned()
309 public int getSpanEnd(Object what) { in getSpanEnd() method in SpannableStringInternal
518 getSpanEnd(thisSpan) != other.getSpanEnd(otherSpan) || in equals()
524 getSpanEnd(thisSpan) != other.getSpanEnd(otherSpan) || in equals()
546 hash = hash * 31 + getSpanEnd(span); in hashCode()
DAlteredCharSequence.java76 public int getSpanEnd(Object span) { in getSpanEnd() method in AlteredCharSequence.AlteredSpanned
77 return mSpanned.getSpanEnd(span); in getSpanEnd()
DInputFilter.java148 public int getSpanEnd(Object tag) { in getSpanEnd() method in InputFilter.AllCaps.CharSequenceWrapper
149 return ((Spanned) mSource).getSpanEnd(tag) - mStart; in getSpanEnd()
DSpanned.java182 public int getSpanEnd(Object tag); in getSpanEnd() method
DSpanSet.java67 final int spanEnd = spanned.getSpanEnd(span); in init()
DTextUtils.java797 p.writeInt(sp.getSpanEnd(o)); in writeWhere()
971 sp.getSpanEnd(o)) + ": " in dumpSpans()
974 + " (" + sp.getSpanStart(o) + "-" + sp.getSpanEnd(o) in dumpSpans()
1001 int end = tb.getSpanEnd(sources[i]); in replace()
1098 int end = ((Spanned) text).getSpanEnd(spans[i]); in getOffsetBefore()
1135 int end = ((Spanned) text).getSpanEnd(spans[i]); in getOffsetAfter()
1171 int en = source.getSpanEnd(spans[i]); in copySpansFrom()
1216 final int sourceEnd = spanned.getSpanEnd(span); in toUpperCase()
1996 final int end = spanned.getSpanEnd(span); in removeEmptySpans()
DSpannableStringBuilder.java89 int en = sp.getSpanEnd(spans[i]) - start; in SpannableStringBuilder()
424 int en = sp.getSpanEnd(spans[i]); in change()
826 public int getSpanEnd(Object what) { in getSpanEnd() method in SpannableStringBuilder
1624 getSpanEnd(thisSpan) != other.getSpanEnd(otherSpan) || in equals()
1630 getSpanEnd(thisSpan) != other.getSpanEnd(otherSpan) || in equals()
1652 hash = hash * 31 + getSpanEnd(span); in hashCode()
DPrecomputedText.java683 public int getSpanEnd(Object tag) { in getSpanEnd() method in PrecomputedText
684 return mText.getSpanEnd(tag); in getSpanEnd()
/frameworks/base/core/java/android/widget/
DSpellChecker.java278 final int end = editable.getSpanEnd(spellCheckSpan); in spellCheck()
354 final int spellCheckSpanEnd = editable.getSpanEnd(spellCheckSpan); in onGetSuggestionsInternal()
460 final int spellCheckSpanEnd = editable.getSpanEnd(spellCheckSpan); in createMisspelledSuggestionSpan()
542 + editable.getSpanEnd(editable)); in removeRangeSpan()
560 final int end = editable.getSpanEnd(mRange); in parse()
626 final int spanEnd = editable.getSpanEnd(spellCheckSpan); in parse()
691 final int spanEnd = editable.getSpanEnd(spellCheckSpans[i]); in parse()
750 final int end = editable.getSpanEnd(span); in removeSpansAt()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/
DTextViewTransformState.java82 || ownSpanned.getSpanEnd(span) != otherSpanned.getSpanEnd(otherSpan)) { in hasSameSpans()
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/span/
DSpanHelper.java32 final int spanEnd = spannable.getSpanEnd(oldSpan); in replaceSpan()
/frameworks/base/core/java/android/text/style/
DIconMarginSpan.java98 if (end == ((Spanned) text).getSpanEnd(this)) { in chooseHeight()
DDrawableMarginSpan.java101 if (end == ((Spanned) text).getSpanEnd(this)) { in chooseHeight()
/frameworks/opt/setupwizard/library/gingerbread/src/com/android/setupwizardlib/util/
DLinkAccessibilityHelper.java248 spannedText.getSpanStart(span), spannedText.getSpanEnd(span)); in getTextForSpan()
263 final int spanEnd = spannedText.getSpanEnd(span); in getBoundsForSpan()
/frameworks/opt/chips/src/com/android/ex/chips/
DRecipientEditTextView.java544 if (mSelectedChip == null && last != null && start < getSpannable().getSpanEnd(last)) { in onSelectionChanged()
546 setSelection(Math.min(getSpannable().getSpanEnd(last) + 1, getText().length())); in onSelectionChanged()
1434 end = spannable.getSpanEnd(mMoreChip); in sanitizeEnd()
1436 end = getSpannable().getSpanEnd(getLastChip()); in sanitizeEnd()
1752 startLooking = getSpannable().getSpanEnd(beforeLast); in sanitizeBetween()
1864 return getSpannable().getSpanEnd(chip); in getChipEnd()
2459 totalReplaceEnd = spannable.getSpanEnd(recipients[i]); in createMoreChip()
2463 int spanEnd = spannable.getSpanEnd(recipients[i]); in createMoreChip()
2502 int end = span.getSpanEnd(recipients[recipients.length - 1]); in removeMoreChip()
2542 int spanEnd = spannable.getSpanEnd(currentChip); in selectChip()
[all …]

12