Home
last modified time | relevance | path

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

12

/frameworks/ex/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.java52 assertEquals(0, ssb.getSpanStart(o)); in testAppend()
57 assertEquals(4, ssb.getSpanStart(o)); in testAppend()
85 assertEquals(1, s2.getSpanStart(style[0])); in testWrapParcel()
90 assertEquals(3, s2.getSpanStart(style[0])); in testWrapParcel()
96 assertEquals(7, s2.getSpanStart(appearance[0])); in testWrapParcel()
101 assertEquals(8, s2.getSpanStart(tf[0])); in testWrapParcel()
DTextUtilsTest.java59 assertEquals(1, ((Spanned) TextUtils.concat(foo)).getSpanStart("foo")); in testBasic()
61 assertEquals(1, ((Spanned) TextUtils.concat(foo, bar)).getSpanStart("foo")); in testBasic()
62 assertEquals(4, ((Spanned) TextUtils.concat(foo, bar)).getSpanStart("bar")); in testBasic()
64 assertEquals(1, ((Spanned) TextUtils.concat(foo, bar, baz)).getSpanStart("foo")); in testBasic()
65 assertEquals(4, ((Spanned) TextUtils.concat(foo, bar, baz)).getSpanStart("bar")); in testBasic()
66 assertEquals(7, ((Spanned) TextUtils.concat(foo, bar, baz)).getSpanStart("baz")); in testBasic()
140 assertEquals(start, text.getSpanStart(i)); in checkContains()
502 public int getSpanStart(Object tag) { in getSpanStart() method in TextUtilsTest.MockSpanned
DHtmlTest.java44 assertEquals(0, spanned.getSpanStart(span)); in testSingleTagOnWhileString()
61 assertEquals(7, spanned.getSpanStart(spans[0])); in testBadHtml()
64 assertEquals(6, spanned.getSpanStart(spans[1])); in testBadHtml()
67 assertEquals(9, spanned.getSpanStart(spans[2])); in testBadHtml()
/frameworks/base/core/java/android/text/method/
DPasswordTransformationMethod.java154 int st = sp.getSpanStart(TextKeyListener.ACTIVE); in charAt()
164 if (sp.getSpanStart(visible[a].mTransformer) >= 0) { in charAt()
165 st = sp.getSpanStart(visible[a]); in charAt()
199 st = sp.getSpanStart(TextKeyListener.ACTIVE); in getChars()
208 if (sp.getSpanStart(visible[i].mTransformer) >= 0) { in getChars()
209 starts[i] = sp.getSpanStart(visible[i]); in getChars()
DLinkMovementMethod.java119 if (buffer.getSpanStart(FROM_BELOW) >= 0) { in action()
154 beststart = buffer.getSpanStart(candidates[i]); in action()
172 int start = buffer.getSpanStart(candidates[i]); in action()
220 buffer.getSpanStart(link[0]), in onTouchEvent()
DMultiTapKeyListener.java102 int activeStart = content.getSpanStart(TextKeyListener.ACTIVE); in onKeyDown()
195 int oldStart = content.getSpanStart(OLD_SEL_START); in onKeyDown()
218 if (content.getSpanStart(this) < 0) { in onKeyDown()
273 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.java106 int activeStart = content.getSpanStart(TextKeyListener.ACTIVE); in onKeyDown()
225 int oldStart = content.getSpanStart(OLD_SEL_START); in onKeyDown()
324 int st = content.getSpanStart(repl[0]); in onKeyDown()
339 en = content.getSpanStart(TextKeyListener.INHIBIT_REPLACEMENT); in onKeyDown()
/frameworks/base/core/java/android/text/
DSpannableStringInternal.java41 int st = sp.getSpanStart(spans[i]); in SpannableStringInternal()
163 public int getSpanStart(Object what) { in getSpanStart() method in SpannableStringInternal
375 getSpanStart(thisSpan) != other.getSpanStart(otherSpan) || in equals()
381 getSpanStart(thisSpan) != other.getSpanStart(otherSpan) || in equals()
403 hash = hash * 31 + getSpanStart(span); in hashCode()
DAlteredCharSequence.java70 public int getSpanStart(Object span) { in getSpanStart() method in AlteredCharSequence.AlteredSpanned
71 return mSpanned.getSpanStart(span); in getSpanStart()
DSpanned.java174 public int getSpanStart(Object tag); in getSpanStart() method
DSelection.java39 return ((Spanned) text).getSpanStart(SELECTION_START); in getSelectionStart()
50 return ((Spanned) text).getSpanStart(SELECTION_END); in getSelectionEnd()
101 if (text.getSpanStart(SELECTION_END) != index) in extendSelection()
DSpannableStringBuilder.java79 int st = sp.getSpanStart(spans[i]) - start; in SpannableStringBuilder()
364 int st = sp.getSpanStart(spans[i]); in change()
371 if (getSpanStart(spans[i]) < 0) { in change()
707 public int getSpanStart(Object what) { in getSpanStart() method in SpannableStringBuilder
1305 getSpanStart(thisSpan) != other.getSpanStart(otherSpan) || in equals()
1311 getSpanStart(thisSpan) != other.getSpanStart(otherSpan) || in equals()
1333 hash = hash * 31 + getSpanStart(span); in hashCode()
DSpanSet.java61 final int spanStart = spanned.getSpanStart(span); in init()
DTextUtils.java659 p.writeInt(sp.getSpanStart(o)); in writeWhere()
809 printer.println(prefix + cs.subSequence(sp.getSpanStart(o), in dumpSpans()
813 + " (" + sp.getSpanStart(o) + "-" + sp.getSpanEnd(o) in dumpSpans()
839 int start = tb.getSpanStart(sources[i]); in replace()
936 int start = ((Spanned) text).getSpanStart(spans[i]); in getOffsetBefore()
973 int start = ((Spanned) text).getSpanStart(spans[i]); in getOffsetAfter()
1009 int st = source.getSpanStart(spans[i]); in copySpansFrom()
1672 final int start = spanned.getSpanStart(span); in removeEmptySpans()
DHtml.java457 int start = mSpannableStringBuilder.getSpanStart(obj[i]); in convert()
622 int where = text.getSpanStart(obj); in end()
665 int where = text.getSpanStart(obj); in endFont()
710 int where = text.getSpanStart(obj); in endA()
728 int where = text.getSpanStart(obj); in endHeader()
/frameworks/base/core/java/android/widget/
DSpellChecker.java282 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()
752 final int start = editable.getSpanStart(span); in removeSpansAt()
/frameworks/base/core/java/android/text/style/
DIconMarginSpan.java46 int st = ((Spanned) text).getSpanStart(this); in drawLeadingMargin()
DDrawableMarginSpan.java46 int st = ((Spanned) text).getSpanStart(this); in drawLeadingMargin()
DBulletSpan.java84 if (((Spanned) text).getSpanStart(this) == start) { in drawLeadingMargin()
/frameworks/ex/chips/src/com/android/ex/chips/
DRecipientEditTextView.java1259 int end = getSpannable().getSpanStart(last); in sanitizeBetween()
1355 return getSpannable().getSpanStart(chip); in getChipStart()
1757 int firstStart = spannable.getSpanStart(first); in getSortedRecipients()
1758 int secondStart = spannable.getSpanStart(second); in getSortedRecipients()
1892 totalReplaceStart = spannable.getSpanStart(recipients[i]); in createMoreChip()
1898 int spanStart = spannable.getSpanStart(recipients[i]); in createMoreChip()
1980 int spanStart = spannable.getSpanStart(currentChip); in selectChip()
2135 int spanStart = spannable.getSpanStart(chip); in removeChip()
2492 && getSpannable().getSpanStart(chip) != -1) { in onPreExecute()
2538 && getSpannable().getSpanStart(temp) != -1) { in doInBackground()
[all …]
/frameworks/base/core/java/com/android/internal/notification/
DDemoContactNotificationScorer.java79 sss.add(spannableString.subSequence(spannableString.getSpanStart(spanObj), in extractSpannedStrings()
/frameworks/ex/common/java/com/android/ex/editstyledtext/
DEditStyledText.java1089 int start = editable.getSpanStart(style); in clearStyles()
1332 int spanstart = txt.getSpanStart(span); in updateSpanPreviousFromCursor()
1354 int spanstart = txt.getSpanStart(span); in updateSpanPreviousFromCursor()
1384 int spanstart = txt.getSpanStart(span); in updateSpanNextToCursor()
1399 int spanstart = txt.getSpanStart(span); in updateSpanNextToCursor()
1465 int start = buf.getSpanStart(style); in removeImageChar()
1536 int start = mCopyBuffer.getSpanStart(style); in pasteFromClipboard()
1784 + spannable.getSpanStart(style) + "," in dumpSpannableString()
2741 int start = text.getSpanStart(parent); in renewColor()
/frameworks/base/core/java/android/view/inputmethod/
DBaseInputConnection.java107 text.setSpan(o, text.getSpanStart(o), text.getSpanEnd(o), in setComposingSpans()
120 return text.getSpanStart(COMPOSING); in getComposingSpanStart()

12