/frameworks/ex/chips/tests/src/com/android/ex/chips/ |
D | ChipsTest.java | 143 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/ |
D | SpannedTest.java | 52 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()
|
D | TextUtilsTest.java | 59 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
|
D | HtmlTest.java | 44 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/ |
D | PasswordTransformationMethod.java | 154 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()
|
D | LinkMovementMethod.java | 114 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()
|
D | MultiTapKeyListener.java | 98 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()
|
D | ReplacementTransformationMethod.java | 187 public int getSpanStart(Object tag) { in getSpanStart() method in ReplacementTransformationMethod.SpannedReplacementCharSequence 188 return mSpanned.getSpanStart(tag); in getSpanStart()
|
D | QwertyKeyListener.java | 102 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/ |
D | SpellChecker.java | 180 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/ |
D | AlteredCharSequence.java | 70 public int getSpanStart(Object span) { in getSpanStart() method in AlteredCharSequence.AlteredSpanned 71 return mSpanned.getSpanStart(span); in getSpanStart()
|
D | Spanned.java | 158 public int getSpanStart(Object tag); in getSpanStart() method
|
D | Selection.java | 39 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()
|
D | TextUtils.java | 637 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()
|
D | Html.java | 423 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()
|
D | SpannableStringInternal.java | 41 int st = sp.getSpanStart(spans[i]); in SpannableStringInternal() 163 public int getSpanStart(Object what) { in getSpanStart() method in SpannableStringInternal
|
D | Layout.java | 357 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()
|
D | SpannableStringBuilder.java | 76 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
|
D | MeasuredText.java | 110 int startInPara = spanned.getSpanStart(spans[i]) - start; in setPara()
|
/frameworks/base/core/java/android/text/style/ |
D | IconMarginSpan.java | 46 int st = ((Spanned) text).getSpanStart(this); in drawLeadingMargin()
|
D | DrawableMarginSpan.java | 46 int st = ((Spanned) text).getSpanStart(this); in drawLeadingMargin()
|
D | BulletSpan.java | 84 if (((Spanned) text).getSpanStart(this) == start) { in drawLeadingMargin()
|
/frameworks/ex/chips/src/com/android/ex/chips/ |
D | RecipientEditTextView.java | 1022 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/ |
D | EditStyledText.java | 1089 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/ |
D | BaseInputConnection.java | 107 text.setSpan(o, text.getSpanStart(o), text.getSpanEnd(o), in setComposingSpans() 120 return text.getSpanStart(COMPOSING); in getComposingSpanStart()
|