Home
last modified time | relevance | path

Searched refs:getSpanStart (Results 1 – 25 of 57) sorted by relevance

123

/frameworks/opt/chips/tests/src/com/android/ex/chips/
DChipsTest.java212 assertEquals(mEditable.getSpanStart(mMockRecips[mMockRecips.length - 1]), firstStart in testSanitizeBetween()
257 assertEquals(mEditable.getSpanStart(moreChip), thirdStart); in testMoreChipPlainText()
287 assertEquals(view.getText().getSpanStart(moreChip), secondStart); in testTooManyRecips()
317 assertEquals(mEditable.getSpanStart(mMockRecips[mMockRecips.length - 3]), firstStart); in testMoreChip()
318 assertEquals(mEditable.getSpanStart(mMockRecips[mMockRecips.length - 2]), secondStart); in testMoreChip()
321 assertEquals(mEditable.getSpanStart(moreChip), thirdStart); in testMoreChip()
326 assertEquals(mEditable.getSpanStart(mMockRecips[mMockRecips.length - 3]), firstStart); in testMoreChip()
328 assertEquals(mEditable.getSpanStart(mMockRecips[mMockRecips.length - 2]), secondStart); in testMoreChip()
329 assertEquals(mEditable.getSpanStart(mMockRecips[mMockRecips.length - 1]), thirdStart); in testMoreChip()
332 assertEquals(mEditable.getSpanStart(moreChip), -1); in testMoreChip()
[all …]
/frameworks/base/core/tests/coretests/src/android/text/
DSpannedTest.java62 assertEquals(0, ssb.getSpanStart(o)); in testAppend()
67 assertEquals(4, ssb.getSpanStart(o)); in testAppend()
95 assertEquals(1, s2.getSpanStart(style[0])); in testWrapParcel()
100 assertEquals(3, s2.getSpanStart(style[0])); in testWrapParcel()
106 assertEquals(7, s2.getSpanStart(appearance[0])); in testWrapParcel()
111 assertEquals(8, s2.getSpanStart(tf[0])); in testWrapParcel()
DTextUtilsTest.java79 assertEquals(1, ((Spanned) TextUtils.concat(foo)).getSpanStart("foo")); in testBasic()
81 assertEquals(1, ((Spanned) TextUtils.concat(foo, bar)).getSpanStart("foo")); in testBasic()
82 assertEquals(4, ((Spanned) TextUtils.concat(foo, bar)).getSpanStart("bar")); in testBasic()
84 assertEquals(1, ((Spanned) TextUtils.concat(foo, bar, baz)).getSpanStart("foo")); in testBasic()
85 assertEquals(4, ((Spanned) TextUtils.concat(foo, bar, baz)).getSpanStart("bar")); in testBasic()
86 assertEquals(7, ((Spanned) TextUtils.concat(foo, bar, baz)).getSpanStart("baz")); in testBasic()
160 assertEquals(start, text.getSpanStart(i)); in checkContains()
611 public int getSpanStart(Object tag) { in getSpanStart() method in TextUtilsTest.MockSpanned
692 assertEquals(1, spanned.getSpanStart(span)); in testToUpperCase()
747 assertEquals(indexMap[source.getSpanStart(span)], result.getSpanStart(span)); in testToUpperCase_SpansArePreserved()
DSpannedStringNoCopyTest.java115 public int getSpanStart(Object tag) { in getSpanStart() method in SpannedStringNoCopyTest.CustomSpanned
116 return mText.getSpanStart(tag); in getSpanStart()
DSpannableStringNoCopyTest.java125 public int getSpanStart(Object tag) { in getSpanStart() method in SpannableStringNoCopyTest.CustomSpannable
126 return mText.getSpanStart(tag); in getSpanStart()
/frameworks/base/core/java/android/text/method/
DPasswordTransformationMethod.java155 int st = sp.getSpanStart(TextKeyListener.ACTIVE); in charAt()
165 if (sp.getSpanStart(visible[a].mTransformer) >= 0) { in charAt()
166 st = sp.getSpanStart(visible[a]); in charAt()
200 st = sp.getSpanStart(TextKeyListener.ACTIVE); in getChars()
209 if (sp.getSpanStart(visible[i].mTransformer) >= 0) { in getChars()
210 starts[i] = sp.getSpanStart(visible[i]); in getChars()
DLinkMovementMethod.java124 if (buffer.getSpanStart(FROM_BELOW) >= 0) { in action()
165 bestStart = buffer.getSpanStart(candidates[i]); in action()
183 int start = buffer.getSpanStart(candidates[i]); in action()
242 buffer.getSpanStart(link), in onTouchEvent()
DMultiTapKeyListener.java105 int activeStart = content.getSpanStart(TextKeyListener.ACTIVE); in onKeyDown()
198 int oldStart = content.getSpanStart(OLD_SEL_START); in onKeyDown()
221 if (content.getSpanStart(this) < 0) { in onKeyDown()
276 int start = buf.getSpanStart(TextKeyListener.ACTIVE); in run()
DReplacementTransformationMethod.java187 public int getSpanStart(Object tag) { in getSpanStart() method in ReplacementTransformationMethod.SpannedReplacementCharSequence
188 return mSpanned.getSpanStart(tag); in getSpanStart()
DQwertyKeyListener.java111 int activeStart = content.getSpanStart(TextKeyListener.ACTIVE); in onKeyDown()
230 int oldStart = content.getSpanStart(OLD_SEL_START); in onKeyDown()
329 int st = content.getSpanStart(repl[0]); in onKeyDown()
344 en = content.getSpanStart(TextKeyListener.INHIBIT_REPLACEMENT); in onKeyDown()
/frameworks/base/core/java/android/text/
DSpannableStringInternal.java78 int st = src.getSpanStart(spans[i]); in copySpansFromSpanned()
296 public int getSpanStart(Object what) { in getSpanStart() method in SpannableStringInternal
519 getSpanStart(thisSpan) != other.getSpanStart(otherSpan) || in equals()
525 getSpanStart(thisSpan) != other.getSpanStart(otherSpan) || in equals()
547 hash = hash * 31 + getSpanStart(span); in hashCode()
DAlteredCharSequence.java72 public int getSpanStart(Object span) { in getSpanStart() method in AlteredCharSequence.AlteredSpanned
73 return mSpanned.getSpanStart(span); in getSpanStart()
DSelection.java42 return ((Spanned) text).getSpanStart(SELECTION_START); in getSelectionStart()
53 return ((Spanned) text).getSpanStart(SELECTION_END); in getSelectionEnd()
60 return ((Spanned) text).getSpanStart(SELECTION_MEMORY); in getSelectionMemory()
174 if (text.getSpanStart(SELECTION_END) != index) { in extendSelection()
DInputFilter.java144 public int getSpanStart(Object tag) { in getSpanStart() method in InputFilter.AllCaps.CharSequenceWrapper
145 return ((Spanned) mSource).getSpanStart(tag) - mStart; in getSpanStart()
DSpanned.java176 public int getSpanStart(Object tag); in getSpanStart() method
DSpanSet.java67 final int spanStart = spanned.getSpanStart(span); in init()
/frameworks/opt/setupwizard/library/gingerbread/src/com/android/setupwizardlib/util/
DLinkAccessibilityHelper.java165 return spannedText.getSpanStart(linkSpan); in getVirtualViewAt()
179 virtualViewIds.add(spannedText.getSpanStart(span)); in getVisibleVirtualViews()
248 spannedText.getSpanStart(span), spannedText.getSpanEnd(span)); in getTextForSpan()
262 final int spanStart = spannedText.getSpanStart(span); in getBoundsForSpan()
/frameworks/base/core/java/android/widget/
DSpellChecker.java306 final int start = editable.getSpanStart(spellCheckSpan); in spellCheck()
380 final int spellCheckSpanStart = editable.getSpanStart(spellCheckSpan); in onGetSuggestionsInternal()
454 if (editable.getSpanStart(span) == start in removeErrorSuggestionSpan()
544 final int spellCheckSpanStart = editable.getSpanStart(spellCheckSpan); in createMisspelledSuggestionSpan()
671 return ((Editable) mTextView.getText()).getSpanStart(mRange) < 0; in isFinished()
688 Log.d(TAG, "Remove range span." + editable.getSpanStart(editable) in removeRangeSpan()
696 final int textChangeStart = editable.getSpanStart(mRange); in parse()
731 final int spanStart = editable.getSpanStart(spellCheckSpan); in parse()
784 final int start = editable.getSpanStart(span); in removeSpansAt()
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/span/
DSpanHelper.java31 final int spanStart = spannable.getSpanStart(oldSpan); in replaceSpan()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/
DTextViewTransformState.java81 if (ownSpanned.getSpanStart(span) != otherSpanned.getSpanStart(otherSpan) in hasSameSpans()
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/widget/
DUsageProgressBarPreferenceTest.java81 assertThat(summary.getSpanStart(spans[0])).isEqualTo(0); in setUsageSummary_integerNumber_findAbsoluteSizeSpan()
96 assertThat(summary.getSpanStart(spans[0])).isEqualTo(0); in setUsageSummary_floatingPointNumber_findAbsoluteSizeSpan()
111 assertThat(summary.getSpanStart(spans[0])).isEqualTo(0); in setUsageSummary_commaFloatingPointNumber_findAbsoluteSizeSpan()
/frameworks/base/core/java/com/android/internal/accessibility/util/
DAccessibilityUtils.java239 || (a.getSpanStart(thisSpan) != b.getSpanStart(otherSpan)) in parcelableSpansEquals()
/frameworks/base/core/java/android/text/style/
DIconMarginSpan.java84 int st = ((Spanned) text).getSpanStart(this); in drawLeadingMargin()
DDrawableMarginSpan.java85 int st = ((Spanned) text).getSpanStart(this); in drawLeadingMargin()
/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/floatingmenu/
DAnnotationLinkSpan.java69 msg.getSpanStart(annotationTag), in linkify()

123