Home
last modified time | relevance | path

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

123

/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()
/frameworks/opt/chips/tests/src/com/android/ex/chips/
DChipsTest.java259 assertEquals(mEditable.getSpanEnd(moreChip), thirdEnd + 1); in testMoreChipPlainText()
289 assertEquals(view.getText().getSpanEnd(moreChip), view.length()); in testTooManyRecips()
323 assertEquals(mEditable.getSpanEnd(moreChip), thirdEnd + 1); in testMoreChip()
328 assertEquals(mEditable.getSpanEnd(mMockRecips[mMockRecips.length - 3]), firstEnd); in testMoreChip()
331 assertEquals(mEditable.getSpanEnd(mMockRecips[mMockRecips.length - 1]), thirdEnd); in testMoreChip()
343 assertEquals(mEditable.getSpanEnd(moreChip), thirdEnd + 1); in testMoreChip()
348 assertEquals(mEditable.getSpanEnd(mMockRecips[mMockRecips.length - 3]), firstEnd); in testMoreChip()
351 assertEquals(mEditable.getSpanEnd(mMockRecips[mMockRecips.length - 1]), thirdEnd); in testMoreChip()
413 assertEquals(mEditable.getSpanEnd(moreChip), tenthEnd + 1); in testMoreChipLotsOfUsers()
463 assertEquals(mEditable.getSpanEnd(moreChip), thirdEnd + 1); in testMoreChipSpecialChars()
[all …]
/frameworks/base/core/tests/coretests/src/com/android/internal/util/
DContrastColorUtilTest.java116 assertThat(result.getSpanEnd(spans[0])).isEqualTo(21); in testBuilder_ensureColorSpanContrast_removesAllFullLengthColorSpans()
120 assertThat(result.getSpanEnd(spans[1])).isEqualTo(31); in testBuilder_ensureColorSpanContrast_removesAllFullLengthColorSpans()
126 assertThat(result.getSpanEnd(spans[2])).isEqualTo(31); in testBuilder_ensureColorSpanContrast_removesAllFullLengthColorSpans()
169 assertThat(result.getSpanEnd(spans[0])).isEqualTo(21); in testBuilder_ensureColorSpanContrast_worksWithComplexInput()
173 assertThat(result.getSpanEnd(spans[1])).isEqualTo(40); in testBuilder_ensureColorSpanContrast_worksWithComplexInput()
181 assertThat(result.getSpanEnd(spans[2])).isEqualTo(31); in testBuilder_ensureColorSpanContrast_worksWithComplexInput()
/frameworks/base/core/java/android/text/method/
DInsertModeTransformationMethod.java349 span -> intersect(getSpanStart(span), getSpanEnd(span), start, end)); in getSpans()
373 || (index == mEnd && mSpannedOriginal.getSpanEnd(tag) == index)) { in getSpanStart()
392 public int getSpanEnd(Object tag) { in getSpanEnd() method in InsertModeTransformationMethod.TransformedText
394 final int index = mSpannedOriginal.getSpanEnd(tag); in getSpanEnd()
405 final int index = mSpannedPlaceholder.getSpanEnd(tag); in getSpanEnd()
434 int spanEnd = getSpanEnd(spans[i]); in nextSpanTransition()
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()
DQwertyKeyListener.java112 int activeEnd = content.getSpanEnd(TextKeyListener.ACTIVE); in onKeyDown()
207 int where = content.getSpanEnd(TextKeyListener.CAPPED); in onKeyDown()
259 content.getSpanEnd(TextKeyListener.INHIBIT_REPLACEMENT) in onKeyDown()
325 if (content.getSpanEnd(TextKeyListener.LAST_TYPED) == selStart) { in onKeyDown()
335 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()
DLinkMovementMethod.java165 int end = buffer.getSpanEnd(candidates[i]); in action()
192 bestEnd = buffer.getSpanEnd(candidates[i]); in action()
255 buffer.getSpanEnd(link)); in onTouchEvent()
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/
DAlteredCharSequence.java76 public int getSpanEnd(Object span) { in getSpanEnd() method in AlteredCharSequence.AlteredSpanned
77 return mSpanned.getSpanEnd(span); in getSpanEnd()
DSpannableStringInternal.java79 int en = src.getSpanEnd(spans[i]); in copySpansFromSpanned()
311 public int getSpanEnd(Object what) { in getSpanEnd() method in SpannableStringInternal
520 getSpanEnd(thisSpan) != other.getSpanEnd(otherSpan) || in equals()
526 getSpanEnd(thisSpan) != other.getSpanEnd(otherSpan) || in equals()
548 hash = hash * 31 + getSpanEnd(span); in hashCode()
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.java68 final int spanEnd = spanned.getSpanEnd(span); in init()
/frameworks/base/core/java/android/text/style/
DSpanUtils.java74 final int end = spannable.getSpanEnd(span); in toggleBold()
160 final int end = spannable.getSpanEnd(span); in toggleItalic()
239 final int end = spannable.getSpanEnd(span); in toggleUnderline()
307 final int end = spannable.getSpanEnd(span); in isCovered()
DIconMarginSpan.java98 if (end == ((Spanned) text).getSpanEnd(this)) { in chooseHeight()
DDrawableMarginSpan.java101 if (end == ((Spanned) text).getSpanEnd(this)) { in chooseHeight()
/frameworks/base/core/tests/coretests/src/android/text/method/
DInsertModeTransformationMethodTest.java476 assertThat(transformedText.getSpanEnd(span1)).isEqualTo(3); in transformedText_getSpanStartAndEnd()
479 assertThat(transformedText.getSpanEnd(span2)).isEqualTo(6); in transformedText_getSpanStartAndEnd()
482 assertThat(transformedText.getSpanEnd(span3)).isEqualTo(7); in transformedText_getSpanStartAndEnd()
485 assertThat(transformedText.getSpanEnd(span4)).isEqualTo(3); in transformedText_getSpanStartAndEnd()
488 assertThat(transformedText.getSpanEnd(span5)).isEqualTo(6); in transformedText_getSpanStartAndEnd()
518 assertThat(transformedText.getSpanEnd(span1)).isEqualTo(3); in transformedText_getSpanStartAndEnd_singleLine()
521 assertThat(transformedText.getSpanEnd(span2)).isEqualTo(5); in transformedText_getSpanStartAndEnd_singleLine()
524 assertThat(transformedText.getSpanEnd(span3)).isEqualTo(6); in transformedText_getSpanStartAndEnd_singleLine()
527 assertThat(transformedText.getSpanEnd(span4)).isEqualTo(3); in transformedText_getSpanStartAndEnd_singleLine()
530 assertThat(transformedText.getSpanEnd(span5)).isEqualTo(5); in transformedText_getSpanStartAndEnd_singleLine()
[all …]
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/span/
DSpanHelper.java32 final int spanEnd = spannable.getSpanEnd(oldSpan); in replaceSpan()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/
DTextViewTransformState.java82 || ownSpanned.getSpanEnd(span) != otherSpanned.getSpanEnd(otherSpan)) { in hasSameSpans()
/frameworks/base/core/java/android/widget/
DSpellChecker.java307 final int end = editable.getSpanEnd(spellCheckSpan); in spellCheck()
408 final int spellCheckSpanEnd = editable.getSpanEnd(spellCheckSpan); in onGetSuggestionsInternal()
455 && editable.getSpanEnd(span) == end in removeErrorSuggestionSpan()
545 final int spellCheckSpanEnd = editable.getSpanEnd(spellCheckSpan); in createMisspelledSuggestionSpan()
689 + editable.getSpanEnd(editable)); in removeRangeSpan()
697 final int textChangeEnd = editable.getSpanEnd(mRange); in parse()
732 final int spanEnd = editable.getSpanEnd(spellCheckSpan); in parse()
786 final int end = editable.getSpanEnd(span); in removeSpansAt()
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/widget/
DUsageProgressBarPreferenceTest.java84 assertThat(summary.getSpanEnd(spans[0])).isEqualTo(2); in setUsageSummary_integerNumber_findAbsoluteSizeSpan()
99 assertThat(summary.getSpanEnd(spans[0])).isEqualTo(4); in setUsageSummary_floatingPointNumber_findAbsoluteSizeSpan()
114 assertThat(summary.getSpanEnd(spans[0])).isEqualTo(4); in setUsageSummary_commaFloatingPointNumber_findAbsoluteSizeSpan()
/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/floatingmenu/
DAnnotationLinkSpan.java70 msg.getSpanEnd(annotationTag), in linkify()

123