Home
last modified time | relevance | path

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

12

/frameworks/ex/chips/tests/src/com/android/ex/chips/
DChipsTest.java177 assertEquals(mEditable.getSpanEnd(moreChip), thirdEnd); in testMoreChip()
182 assertEquals(mEditable.getSpanEnd(mMockRecips[mMockRecips.length - 3]), firstEnd); in testMoreChip()
185 assertEquals(mEditable.getSpanEnd(mMockRecips[mMockRecips.length - 1]), thirdEnd); in testMoreChip()
197 assertEquals(mEditable.getSpanEnd(moreChip), thirdEnd); in testMoreChip()
202 assertEquals(mEditable.getSpanEnd(mMockRecips[mMockRecips.length - 3]), firstEnd); in testMoreChip()
205 assertEquals(mEditable.getSpanEnd(mMockRecips[mMockRecips.length - 1]), thirdEnd); in testMoreChip()
267 assertEquals(mEditable.getSpanEnd(moreChip), tenthEnd); in testMoreChipLotsOfUsers()
317 assertEquals(mEditable.getSpanEnd(moreChip), thirdEnd); in testMoreChipSpecialChars()
322 assertEquals(mEditable.getSpanEnd(mMockRecips[mMockRecips.length - 3]), firstEnd); in testMoreChipSpecialChars()
325 assertEquals(mEditable.getSpanEnd(mMockRecips[mMockRecips.length - 1]), thirdEnd); in testMoreChipSpecialChars()
[all …]
/frameworks/base/core/tests/coretests/src/android/text/
DSpannedTest.java53 assertEquals(4, ssb.getSpanEnd(o)); in testAppend()
58 assertEquals(8, ssb.getSpanEnd(o)); in testAppend()
86 assertEquals(2, s2.getSpanEnd(style[0])); in testWrapParcel()
91 assertEquals(7, s2.getSpanEnd(style[0])); in testWrapParcel()
97 assertEquals(8, s2.getSpanEnd(appearance[0])); in testWrapParcel()
102 assertEquals(9, s2.getSpanEnd(tf[0])); in testWrapParcel()
DHtmlTest.java45 assertEquals(5, spanned.getSpanEnd(span)); in testSingleTagOnWhileString()
62 assertEquals(9, spanned.getSpanEnd(spans[0])); in testBadHtml()
65 assertEquals(9, spanned.getSpanEnd(spans[1])); in testBadHtml()
68 assertEquals(10, spanned.getSpanEnd(spans[2])); in testBadHtml()
DTextUtilsTest.java141 assertEquals(end, text.getSpanEnd(i)); in checkContains()
507 public int getSpanEnd(Object tag) { in getSpanEnd() method in TextUtilsTest.MockSpanned
/frameworks/base/core/java/android/text/method/
DPasswordTransformationMethod.java155 int en = sp.getSpanEnd(TextKeyListener.ACTIVE); in charAt()
166 en = sp.getSpanEnd(visible[a]); in charAt()
200 en = sp.getSpanEnd(TextKeyListener.ACTIVE); in getChars()
210 ends[i] = sp.getSpanEnd(visible[i]); in getChars()
DLinkMovementMethod.java145 int end = buffer.getSpanEnd(candidates[i]); in action()
172 bestend = buffer.getSpanEnd(candidates[i]); in action()
216 buffer.getSpanEnd(link[0])); in onTouchEvent()
DQwertyKeyListener.java103 int activeEnd = content.getSpanEnd(TextKeyListener.ACTIVE); in onKeyDown()
192 int where = content.getSpanEnd(TextKeyListener.CAPPED); in onKeyDown()
244 content.getSpanEnd(TextKeyListener.INHIBIT_REPLACEMENT) in onKeyDown()
310 if (content.getSpanEnd(TextKeyListener.LAST_TYPED) == selStart) { in onKeyDown()
320 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.java99 int activeEnd = content.getSpanEnd(TextKeyListener.ACTIVE); in onKeyDown()
270 int end = buf.getSpanEnd(TextKeyListener.ACTIVE); in run()
/frameworks/base/core/java/android/widget/
DSpellChecker.java181 final int end = editable.getSpanEnd(spellCheckSpan); in spellCheck()
241 final int end = editable.getSpanEnd(spellCheckSpan); in createMisspelledSuggestionSpan()
249 final int spanEnd = editable.getSpanEnd(suggestionSpans[i]); in createMisspelledSuggestionSpan()
324 final int end = editable.getSpanEnd(mRange); in parse()
371 final int spanEnd = editable.getSpanEnd(spellCheckSpans[i]); in parse()
423 final int end = editable.getSpanEnd(span); in removeSpansAt()
DTextView.java5640 j = spanned.getSpanEnd(spans[i]); in extractTextInternal()
7560 final int e = text.getSpanEnd(spans[i]); in removeIntersectingSpans()
7937 int end = editable.getSpanEnd(mEasyEditSpan); in deleteText()
7947 return editable.getSpanEnd(mEasyEditSpan); in getTextOffset()
8841 selectionEnd = ((Spanned) mText).getSpanEnd(urlSpan); in selectCurrentWord()
9701 int end = spannable.getSpanEnd(suggestionSpan); in getSuggestionSpans()
9790 final int spanEnd = spannable.getSpanEnd(suggestionSpan); in updateSuggestions()
9826 final int misspelledEnd = spannable.getSpanEnd(misspelledSpan); in updateSuggestions()
9870 final int spanEnd = text.getSpanEnd(suggestionInfo.suggestionSpan); in highlightTextDifferences()
9894 int spanUnionEnd = editable.getSpanEnd(mSuggestionRangeSpan); in onItemClick()
[all …]
/frameworks/base/core/java/android/text/
DAlteredCharSequence.java74 public int getSpanEnd(Object span) { in getSpanEnd() method in AlteredCharSequence.AlteredSpanned
75 return mSpanned.getSpanEnd(span); in getSpanEnd()
DSpanned.java164 public int getSpanEnd(Object tag); in getSpanEnd() method
DTextUtils.java638 p.writeInt(sp.getSpanEnd(o)); in writeWhere()
784 sp.getSpanEnd(o)) + ": " in dumpSpans()
787 + " (" + sp.getSpanStart(o) + "-" + sp.getSpanEnd(o) in dumpSpans()
814 int end = tb.getSpanEnd(sources[i]); in replace()
911 int end = ((Spanned) text).getSpanEnd(spans[i]); in getOffsetBefore()
948 int end = ((Spanned) text).getSpanEnd(spans[i]); in getOffsetAfter()
984 int en = source.getSpanEnd(spans[i]); in copySpansFrom()
1638 final int end = spanned.getSpanEnd(span); in removeEmptySpans()
DSpannableStringInternal.java42 int en = sp.getSpanEnd(spans[i]); in SpannableStringInternal()
177 public int getSpanEnd(Object what) { in getSpanEnd() method in SpannableStringInternal
DMeasuredText.java111 int endInPara = spanned.getSpanEnd(spans[i]) - start; in setPara()
DSpannableStringBuilder.java77 int en = sp.getSpanEnd(spans[i]) - start; in SpannableStringBuilder()
333 int en = sp.getSpanEnd(spans[i]); in change()
655 public int getSpanEnd(Object what) { in getSpanEnd() method in SpannableStringBuilder
DDynamicLayout.java235 int en = sp.getSpanEnd(force[i]); in reflow()
DLayout.java1214 int end = ((Spanned) text).getSpanEnd(spans[i]); in getOffsetAtStartOf()
1797 public int getSpanEnd(Object tag) { in getSpanEnd() method in Layout.SpannedEllipsizer
1798 return mSpanned.getSpanEnd(tag); in getSpanEnd()
DHtml.java424 int end = mSpannableStringBuilder.getSpanEnd(obj[i]); in convert()
/frameworks/base/core/java/android/text/style/
DIconMarginSpan.java58 if (end == ((Spanned) text).getSpanEnd(this)) { in chooseHeight()
DDrawableMarginSpan.java61 if (end == ((Spanned) text).getSpanEnd(this)) { in chooseHeight()
/frameworks/ex/chips/src/com/android/ex/chips/
DRecipientEditTextView.java266 setSelection(Math.min(span.getSpanEnd(chips[chips.length - 1]) + 1, textLength)); in onSelectionChanged()
750 end = getSpannable().getSpanEnd(lastSpan); in sanitizeSpannable()
1024 startLooking = getSpannable().getSpanEnd(beforeLast); in sanitizeBetween()
1104 return getSpannable().getSpanEnd(chip); in getChipEnd()
1532 totalReplaceEnd = spannable.getSpanEnd(recipients[i]); in createMoreChip()
1536 int spanEnd = spannable.getSpanEnd(recipients[i]); in createMoreChip()
1568 int end = span.getSpanEnd(recipients[recipients.length - 1]); in removeMoreChip()
1761 int spanEnd = spannable.getSpanEnd(chip); in removeChip()
1971 end = oldText.getSpanEnd(chip); in doInBackground()
/frameworks/base/core/java/android/view/inputmethod/
DBaseInputConnection.java107 text.setSpan(o, text.getSpanStart(o), text.getSpanEnd(o), in setComposingSpans()
124 return text.getSpanEnd(COMPOSING); in getComposingSpanEnd()
/frameworks/ex/common/java/com/android/ex/editstyledtext/
DEditStyledText.java1090 int end = editable.getSpanEnd(style); in clearStyles()
1333 int spanend = txt.getSpanEnd(span); in updateSpanPreviousFromCursor()
1355 int spanend = txt.getSpanEnd(span); in updateSpanPreviousFromCursor()
1385 int spanend = txt.getSpanEnd(span); in updateSpanNextToCursor()
1466 int end = buf.getSpanEnd(style); in removeImageChar()
1785 + spannable.getSpanEnd(style) + "," in dumpSpannableString()
2742 int end = text.getSpanEnd(parent); in renewColor()

12