Home
last modified time | relevance | path

Searched refs:getSpanStart (Results 1 – 25 of 43) 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.java61 assertEquals(1, ((Spanned) TextUtils.concat(foo)).getSpanStart("foo")); in testBasic()
63 assertEquals(1, ((Spanned) TextUtils.concat(foo, bar)).getSpanStart("foo")); in testBasic()
64 assertEquals(4, ((Spanned) TextUtils.concat(foo, bar)).getSpanStart("bar")); in testBasic()
66 assertEquals(1, ((Spanned) TextUtils.concat(foo, bar, baz)).getSpanStart("foo")); in testBasic()
67 assertEquals(4, ((Spanned) TextUtils.concat(foo, bar, baz)).getSpanStart("bar")); in testBasic()
68 assertEquals(7, ((Spanned) TextUtils.concat(foo, bar, baz)).getSpanStart("baz")); in testBasic()
142 assertEquals(start, text.getSpanStart(i)); in checkContains()
505 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()
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/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()
744 final int start = editable.getSpanStart(span); in removeSpansAt()
/frameworks/opt/setupwizard/library/eclair-mr1/src/com/android/setupwizardlib/util/
DLinkAccessibilityHelper.java78 return spannedText.getSpanStart(linkSpan); in getVirtualViewAt()
92 virtualViewIds.add(spannedText.getSpanStart(span)); in getVisibleVirtualViews()
160 return spannedText.subSequence(spannedText.getSpanStart(span), in getTextForSpan()
175 final int spanStart = spannedText.getSpanStart(span); in getBoundsForSpan()
/frameworks/base/core/java/android/text/
DSpannableStringInternal.java59 int st = src.getSpanStart(spans[i]); in copySpans()
241 public int getSpanStart(Object what) { in getSpanStart() method in SpannableStringInternal
454 getSpanStart(thisSpan) != other.getSpanStart(otherSpan) || in equals()
460 getSpanStart(thisSpan) != other.getSpanStart(otherSpan) || in equals()
482 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()
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()
DSpanned.java176 public int getSpanStart(Object tag); in getSpanStart() method
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()
1692 final int start = spanned.getSpanStart(span); in removeEmptySpans()
DSpannableStringBuilder.java88 int st = sp.getSpanStart(spans[i]) - start; in SpannableStringBuilder()
422 int st = sp.getSpanStart(spans[i]); in change()
429 if (getSpanStart(spans[i]) < 0) { in change()
815 public int getSpanStart(Object what) { in getSpanStart() method in SpannableStringBuilder
1554 getSpanStart(thisSpan) != other.getSpanStart(otherSpan) || in equals()
1560 getSpanStart(thisSpan) != other.getSpanStart(otherSpan) || in equals()
1582 hash = hash * 31 + getSpanStart(span); in hashCode()
DSpanSet.java63 final int spanStart = spanned.getSpanStart(span); in init()
DLayout.java322 int startLine = getLineForOffset(sp.getSpanStart(spans[n])); in drawText()
1390 int start = ((Spanned) text).getSpanStart(spans[i]); in getOffsetAtStartOf()
1666 int spStart = spanned.getSpanStart(spans[i]); in getParagraphLeadingMargin()
2009 public int getSpanStart(Object tag) {
2010 return mSpanned.getSpanStart(tag);
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/span/
DSpanHelper.java31 final int spanStart = spannable.getSpanStart(oldSpan); in replaceSpan()
/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.java94 if (((Spanned) text).getSpanStart(this) == start) { in drawLeadingMargin()
/frameworks/opt/chips/src/com/android/ex/chips/
DRecipientEditTextView.java1598 int end = getSpannable().getSpanStart(last); in sanitizeBetween()
1691 return getSpannable().getSpanStart(chip); in getChipStart()
2097 int firstStart = spannable.getSpanStart(first); in getSortedRecipients()
2098 int secondStart = spannable.getSpanStart(second); in getSortedRecipients()
2232 totalReplaceStart = spannable.getSpanStart(recipients[i]); in createMoreChip()
2238 int spanStart = spannable.getSpanStart(recipients[i]); in createMoreChip()
2317 int spanStart = spannable.getSpanStart(currentChip); in selectChip()
2475 int spanStart = spannable.getSpanStart(chip); in removeChip()
2644 int deleteStart = editable.getSpanStart(toDelete); in onTextChanged()
2857 && getSpannable().getSpanStart(chip) != -1) { in onPreExecute()
[all …]
/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()

12