Home
last modified time | relevance | path

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

12

/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/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()
DArrowKeyMovementMethod.java260 final int startOffset = buffer.getSpanStart(LAST_TAP_DOWN); in onTouchEvent()
289 final int startOffset = buffer.getSpanStart(LAST_TAP_DOWN); in onTouchEvent()
/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.java76 assertEquals(1, ((Spanned) TextUtils.concat(foo)).getSpanStart("foo")); in testBasic()
78 assertEquals(1, ((Spanned) TextUtils.concat(foo, bar)).getSpanStart("foo")); in testBasic()
79 assertEquals(4, ((Spanned) TextUtils.concat(foo, bar)).getSpanStart("bar")); in testBasic()
81 assertEquals(1, ((Spanned) TextUtils.concat(foo, bar, baz)).getSpanStart("foo")); in testBasic()
82 assertEquals(4, ((Spanned) TextUtils.concat(foo, bar, baz)).getSpanStart("bar")); in testBasic()
83 assertEquals(7, ((Spanned) TextUtils.concat(foo, bar, baz)).getSpanStart("baz")); in testBasic()
157 assertEquals(start, text.getSpanStart(i)); in checkContains()
608 public int getSpanStart(Object tag) { in getSpanStart() method in TextUtilsTest.MockSpanned
689 assertEquals(1, spanned.getSpanStart(span)); in testToUpperCase()
744 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/widget/
DSpellChecker.java277 final int start = editable.getSpanStart(spellCheckSpan); in spellCheck()
353 final int spellCheckSpanStart = editable.getSpanStart(spellCheckSpan); in onGetSuggestionsInternal()
459 final int spellCheckSpanStart = editable.getSpanStart(spellCheckSpan); in createMisspelledSuggestionSpan()
525 return ((Editable) mTextView.getText()).getSpanStart(mRange) < 0; in isFinished()
541 Log.d(TAG, "Remove range span." + editable.getSpanStart(editable) in removeRangeSpan()
555 0, editable.getSpanStart(mRange) - MIN_SENTENCE_LENGTH); in parse()
557 start = editable.getSpanStart(mRange); in parse()
625 final int spanStart = editable.getSpanStart(spellCheckSpan); in parse()
701 final int spanStart = editable.getSpanStart(spellCheckSpans[i]); in parse()
748 final int start = editable.getSpanStart(span); in removeSpansAt()
/frameworks/base/core/java/android/text/
DAlteredCharSequence.java70 public int getSpanStart(Object span) { in getSpanStart() method in AlteredCharSequence.AlteredSpanned
71 return mSpanned.getSpanStart(span); in getSpanStart()
DSpannableStringInternal.java75 int st = src.getSpanStart(spans[i]); in copySpans()
293 public int getSpanStart(Object what) { in getSpanStart() method in SpannableStringInternal
516 getSpanStart(thisSpan) != other.getSpanStart(otherSpan) || in equals()
522 getSpanStart(thisSpan) != other.getSpanStart(otherSpan) || in equals()
544 hash = hash * 31 + getSpanStart(span); in hashCode()
DInputFilter.java144 public int getSpanStart(Object tag) { in getSpanStart() method in InputFilter.AllCaps.CharSequenceWrapper
145 return ((Spanned) mSource).getSpanStart(tag) - mStart; 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()
DSpanned.java176 public int getSpanStart(Object tag); in getSpanStart() method
DSpanSet.java65 final int spanStart = spanned.getSpanStart(span); in init()
DSpannableStringBuilder.java88 int st = sp.getSpanStart(spans[i]) - start; in SpannableStringBuilder()
423 int st = sp.getSpanStart(spans[i]); in change()
430 if (getSpanStart(spans[i]) < 0) { in change()
816 public int getSpanStart(Object what) { in getSpanStart() method in SpannableStringBuilder
1623 getSpanStart(thisSpan) != other.getSpanStart(otherSpan) || in equals()
1629 getSpanStart(thisSpan) != other.getSpanStart(otherSpan) || in equals()
1651 hash = hash * 31 + getSpanStart(span); in hashCode()
DTextUtils.java793 p.writeInt(sp.getSpanStart(o)); in writeWhere()
963 printer.println(prefix + cs.subSequence(sp.getSpanStart(o), in dumpSpans()
967 + " (" + sp.getSpanStart(o) + "-" + sp.getSpanEnd(o) in dumpSpans()
993 int start = tb.getSpanStart(sources[i]); in replace()
1090 int start = ((Spanned) text).getSpanStart(spans[i]); in getOffsetBefore()
1127 int start = ((Spanned) text).getSpanStart(spans[i]); in getOffsetAfter()
1163 int st = source.getSpanStart(spans[i]); in copySpansFrom()
1208 final int sourceStart = spanned.getSpanStart(span); in toUpperCase()
1988 final int start = spanned.getSpanStart(span); in removeEmptySpans()
/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/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/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()

12