Home
last modified time | relevance | path

Searched refs:getSpanStart (Results 1 – 25 of 33) 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/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
/frameworks/base/core/java/android/text/method/
DPasswordTransformationMethod.java153 int st = sp.getSpanStart(TextKeyListener.ACTIVE); in charAt()
163 if (sp.getSpanStart(visible[a].mTransformer) >= 0) { in charAt()
164 st = sp.getSpanStart(visible[a]); in charAt()
198 st = sp.getSpanStart(TextKeyListener.ACTIVE); in getChars()
207 if (sp.getSpanStart(visible[i].mTransformer) >= 0) { in getChars()
208 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.java43 int st = sp.getSpanStart(spans[i]); in SpannableStringInternal()
165 public int getSpanStart(Object what) { in getSpanStart() method in SpannableStringInternal
377 getSpanStart(thisSpan) != other.getSpanStart(otherSpan) || in equals()
383 getSpanStart(thisSpan) != other.getSpanStart(otherSpan) || in equals()
405 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.java81 int st = sp.getSpanStart(spans[i]) - start; in SpannableStringBuilder()
383 int st = sp.getSpanStart(spans[i]); in change()
390 if (getSpanStart(spans[i]) < 0) { in change()
709 public int getSpanStart(Object what) { in getSpanStart() method in SpannableStringBuilder
1307 getSpanStart(thisSpan) != other.getSpanStart(otherSpan) || in equals()
1313 getSpanStart(thisSpan) != other.getSpanStart(otherSpan) || in equals()
1335 hash = hash * 31 + getSpanStart(span); in hashCode()
DTextUtils.java673 p.writeInt(sp.getSpanStart(o)); in writeWhere()
827 printer.println(prefix + cs.subSequence(sp.getSpanStart(o), in dumpSpans()
831 + " (" + sp.getSpanStart(o) + "-" + sp.getSpanEnd(o) in dumpSpans()
857 int start = tb.getSpanStart(sources[i]); in replace()
954 int start = ((Spanned) text).getSpanStart(spans[i]); in getOffsetBefore()
991 int start = ((Spanned) text).getSpanStart(spans[i]); in getOffsetAfter()
1027 int st = source.getSpanStart(spans[i]); in copySpansFrom()
1685 final int start = spanned.getSpanStart(span); in removeEmptySpans()
DSpanSet.java61 final int spanStart = spanned.getSpanStart(span); in init()
DHtml.java454 int start = mSpannableStringBuilder.getSpanStart(obj[i]); in convert()
619 int where = text.getSpanStart(obj); in end()
662 int where = text.getSpanStart(obj); in endFont()
707 int where = text.getSpanStart(obj); in endA()
725 int where = text.getSpanStart(obj); in endHeader()
DLayout.java280 int startLine = getLineForOffset(sp.getSpanStart(spans[n])); in drawText()
1270 int start = ((Spanned) text).getSpanStart(spans[i]); in getOffsetAtStartOf()
1546 int spStart = spanned.getSpanStart(spans[i]); in getParagraphLeadingMargin()
1885 public int getSpanStart(Object tag) {
1886 return mSpanned.getSpanStart(tag);
/frameworks/base/core/java/android/widget/
DSpellChecker.java274 final int start = editable.getSpanStart(spellCheckSpan); in spellCheck()
349 final int spellCheckSpanStart = editable.getSpanStart(spellCheckSpan); in onGetSuggestionsInternal()
455 final int spellCheckSpanStart = editable.getSpanStart(spellCheckSpan); in createMisspelledSuggestionSpan()
521 return ((Editable) mTextView.getText()).getSpanStart(mRange) < 0; in isFinished()
537 Log.d(TAG, "Remove range span." + editable.getSpanStart(editable) in removeRangeSpan()
551 0, editable.getSpanStart(mRange) - MIN_SENTENCE_LENGTH); in parse()
553 start = editable.getSpanStart(mRange); in parse()
621 final int spanStart = editable.getSpanStart(spellCheckSpan); in parse()
697 final int spanStart = editable.getSpanStart(spellCheckSpans[i]); in parse()
748 final int start = editable.getSpanStart(span); in removeSpansAt()
/frameworks/base/core/java/android/text/style/
DIconMarginSpan.java45 int st = ((Spanned) text).getSpanStart(this); in drawLeadingMargin()
DDrawableMarginSpan.java45 int st = ((Spanned) text).getSpanStart(this); in drawLeadingMargin()
DBulletSpan.java84 if (((Spanned) text).getSpanStart(this) == start) { in drawLeadingMargin()
/frameworks/opt/chips/src/com/android/ex/chips/
DRecipientEditTextView.java1440 int end = getSpannable().getSpanStart(last); in sanitizeBetween()
1536 return getSpannable().getSpanStart(chip); in getChipStart()
1933 int firstStart = spannable.getSpanStart(first); in getSortedRecipients()
1934 int secondStart = spannable.getSpanStart(second); in getSortedRecipients()
2069 totalReplaceStart = spannable.getSpanStart(recipients[i]); in createMoreChip()
2075 int spanStart = spannable.getSpanStart(recipients[i]); in createMoreChip()
2157 int spanStart = spannable.getSpanStart(currentChip); in selectChip()
2284 int spanStart = spannable.getSpanStart(chip); in removeChip()
2665 && getSpannable().getSpanStart(chip) != -1) { in onPreExecute()
2710 && getSpannable().getSpanStart(temp) != -1) { in doInBackground()
[all …]
/frameworks/base/core/java/com/android/internal/util/
DNotificationColorUtil.java169 builder.setSpan(resultSpan, ss.getSpanStart(span), ss.getSpanEnd(span), in invertCharSequenceColors()
/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