/frameworks/base/core/tests/coretests/src/android/text/ |
D | SpannedTest.java | 63 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()
|
D | SpannedStringNoCopyTest.java | 120 public int getSpanEnd(Object tag) { in getSpanEnd() method in SpannedStringNoCopyTest.CustomSpanned 121 return mText.getSpanEnd(tag); in getSpanEnd()
|
D | SpannableStringNoCopyTest.java | 130 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/ |
D | ChipsTest.java | 259 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/ |
D | ContrastColorUtilTest.java | 116 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/ |
D | InsertModeTransformationMethod.java | 349 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()
|
D | PasswordTransformationMethod.java | 156 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()
|
D | QwertyKeyListener.java | 112 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()
|
D | ReplacementTransformationMethod.java | 191 public int getSpanEnd(Object tag) { in getSpanEnd() method in ReplacementTransformationMethod.SpannedReplacementCharSequence 192 return mSpanned.getSpanEnd(tag); in getSpanEnd()
|
D | LinkMovementMethod.java | 165 int end = buffer.getSpanEnd(candidates[i]); in action() 192 bestEnd = buffer.getSpanEnd(candidates[i]); in action() 255 buffer.getSpanEnd(link)); in onTouchEvent()
|
D | MultiTapKeyListener.java | 106 int activeEnd = content.getSpanEnd(TextKeyListener.ACTIVE); in onKeyDown() 277 int end = buf.getSpanEnd(TextKeyListener.ACTIVE); in run()
|
/frameworks/base/core/java/android/text/ |
D | AlteredCharSequence.java | 76 public int getSpanEnd(Object span) { in getSpanEnd() method in AlteredCharSequence.AlteredSpanned 77 return mSpanned.getSpanEnd(span); in getSpanEnd()
|
D | SpannableStringInternal.java | 79 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()
|
D | InputFilter.java | 148 public int getSpanEnd(Object tag) { in getSpanEnd() method in InputFilter.AllCaps.CharSequenceWrapper 149 return ((Spanned) mSource).getSpanEnd(tag) - mStart; in getSpanEnd()
|
D | Spanned.java | 182 public int getSpanEnd(Object tag); in getSpanEnd() method
|
D | SpanSet.java | 68 final int spanEnd = spanned.getSpanEnd(span); in init()
|
/frameworks/base/core/java/android/text/style/ |
D | SpanUtils.java | 74 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()
|
D | IconMarginSpan.java | 98 if (end == ((Spanned) text).getSpanEnd(this)) { in chooseHeight()
|
D | DrawableMarginSpan.java | 101 if (end == ((Spanned) text).getSpanEnd(this)) { in chooseHeight()
|
/frameworks/base/core/tests/coretests/src/android/text/method/ |
D | InsertModeTransformationMethodTest.java | 476 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/ |
D | SpanHelper.java | 32 final int spanEnd = spannable.getSpanEnd(oldSpan); in replaceSpan()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/ |
D | TextViewTransformState.java | 82 || ownSpanned.getSpanEnd(span) != otherSpanned.getSpanEnd(otherSpan)) { in hasSameSpans()
|
/frameworks/base/core/java/android/widget/ |
D | SpellChecker.java | 307 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/ |
D | UsageProgressBarPreferenceTest.java | 84 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/ |
D | AnnotationLinkSpan.java | 70 msg.getSpanEnd(annotationTag), in linkify()
|