Home
last modified time | relevance | path

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

12

/frameworks/ex/chips/tests/src/com/android/ex/chips/
DChipsTest.java143 assertEquals(mEditable.getSpanStart(mMockRecips[mMockRecips.length - 1]), firstStart in testSanitizeBetween()
172 assertEquals(mEditable.getSpanStart(mMockRecips[mMockRecips.length - 3]), firstStart); in testMoreChip()
173 assertEquals(mEditable.getSpanStart(mMockRecips[mMockRecips.length - 2]), secondStart); in testMoreChip()
176 assertEquals(mEditable.getSpanStart(moreChip), thirdStart); in testMoreChip()
181 assertEquals(mEditable.getSpanStart(mMockRecips[mMockRecips.length - 3]), firstStart); in testMoreChip()
183 assertEquals(mEditable.getSpanStart(mMockRecips[mMockRecips.length - 2]), secondStart); in testMoreChip()
184 assertEquals(mEditable.getSpanStart(mMockRecips[mMockRecips.length - 1]), thirdStart); in testMoreChip()
187 assertEquals(mEditable.getSpanStart(moreChip), -1); in testMoreChip()
192 assertEquals(mEditable.getSpanStart(mMockRecips[mMockRecips.length - 3]), firstStart); in testMoreChip()
193 assertEquals(mEditable.getSpanStart(mMockRecips[mMockRecips.length - 2]), secondStart); 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.java114 if (buffer.getSpanStart(FROM_BELOW) >= 0) { in action()
149 beststart = buffer.getSpanStart(candidates[i]); in action()
167 int start = buffer.getSpanStart(candidates[i]); in action()
215 buffer.getSpanStart(link[0]), in onTouchEvent()
DMultiTapKeyListener.java98 int activeStart = content.getSpanStart(TextKeyListener.ACTIVE); in onKeyDown()
191 int oldStart = content.getSpanStart(OLD_SEL_START); in onKeyDown()
214 if (content.getSpanStart(this) < 0) { in onKeyDown()
269 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.java102 int activeStart = content.getSpanStart(TextKeyListener.ACTIVE); in onKeyDown()
220 int oldStart = content.getSpanStart(OLD_SEL_START); in onKeyDown()
319 int st = content.getSpanStart(repl[0]); in onKeyDown()
334 en = content.getSpanStart(TextKeyListener.INHIBIT_REPLACEMENT); in onKeyDown()
/frameworks/base/core/java/android/widget/
DSpellChecker.java180 final int start = editable.getSpanStart(spellCheckSpan); in spellCheck()
240 final int start = editable.getSpanStart(spellCheckSpan); in createMisspelledSuggestionSpan()
248 final int spanStart = editable.getSpanStart(suggestionSpans[i]); in createMisspelledSuggestionSpan()
317 return ((Editable) mTextView.getText()).getSpanStart(mRange) < 0; in isDone()
323 final int start = editable.getSpanStart(mRange); in parse()
381 final int spanStart = editable.getSpanStart(spellCheckSpans[i]); in parse()
421 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()
DSpanned.java158 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()
DTextUtils.java637 p.writeInt(sp.getSpanStart(o)); in writeWhere()
783 printer.println(prefix + cs.subSequence(sp.getSpanStart(o), in dumpSpans()
787 + " (" + sp.getSpanStart(o) + "-" + sp.getSpanEnd(o) in dumpSpans()
813 int start = tb.getSpanStart(sources[i]); in replace()
910 int start = ((Spanned) text).getSpanStart(spans[i]); in getOffsetBefore()
947 int start = ((Spanned) text).getSpanStart(spans[i]); in getOffsetAfter()
983 int st = source.getSpanStart(spans[i]); in copySpansFrom()
1637 final int start = spanned.getSpanStart(span); in removeEmptySpans()
DHtml.java423 int start = mSpannableStringBuilder.getSpanStart(obj[i]); in convert()
588 int where = text.getSpanStart(obj); in end()
633 int where = text.getSpanStart(obj); in endFont()
678 int where = text.getSpanStart(obj); in endA()
696 int where = text.getSpanStart(obj); in endHeader()
DSpannableStringInternal.java41 int st = sp.getSpanStart(spans[i]); in SpannableStringInternal()
163 public int getSpanStart(Object what) { in getSpanStart() method in SpannableStringInternal
DLayout.java357 int startLine = getLineForOffset(sp.getSpanStart(margin)); in draw()
1213 int start = ((Spanned) text).getSpanStart(spans[i]); in getOffsetAtStartOf()
1472 int spStart = spanned.getSpanStart(span); in getParagraphLeadingMargin()
1793 public int getSpanStart(Object tag) { in getSpanStart() method in Layout.SpannedEllipsizer
1794 return mSpanned.getSpanStart(tag); in getSpanStart()
DSpannableStringBuilder.java76 int st = sp.getSpanStart(spans[i]) - start; in SpannableStringBuilder()
332 int st = sp.getSpanStart(spans[i]); in change()
340 if (getSpanStart(spans[i]) < 0) { in change()
633 public int getSpanStart(Object what) { in getSpanStart() method in SpannableStringBuilder
DMeasuredText.java110 int startInPara = spanned.getSpanStart(spans[i]) - start; in setPara()
/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.java1022 int end = getSpannable().getSpanStart(last); in sanitizeBetween()
1100 return getSpannable().getSpanStart(chip); in getChipStart()
1417 int firstStart = spannable.getSpanStart(first); in getSortedRecipients()
1418 int secondStart = spannable.getSpanStart(second); in getSortedRecipients()
1529 totalReplaceStart = spannable.getSpanStart(recipients[i]); in createMoreChip()
1535 int spanStart = spannable.getSpanStart(recipients[i]); in createMoreChip()
1760 int spanStart = spannable.getSpanStart(chip); in removeChip()
1948 && getSpannable().getSpanStart(temp) != -1) { in doInBackground()
1969 start = oldText.getSpanStart(chip); in doInBackground()
2007 && getSpannable().getSpanStart(temp) != -1) { in doInBackground()
/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