Home
last modified time | relevance | path

Searched refs:getSpans (Results 1 – 25 of 36) sorted by relevance

12

/frameworks/base/core/tests/coretests/src/android/text/
DSpannableTest.java41 spans = spannable.getSpans(0, 1, Object.class); in testGetSpans()
43 spans = spannable.getSpans(0, 2, Object.class); in testGetSpans()
45 spans = spannable.getSpans(1, 2, Object.class); in testGetSpans()
47 spans = spannable.getSpans(2, 2, Object.class); in testGetSpans()
DSpannedTest.java54 assertEquals(1, ssb.getSpans(0, 4, Object.class).length); in testAppend()
59 assertEquals(0, ssb.getSpans(0, 4, Object.class).length); in testAppend()
60 assertEquals(1, ssb.getSpans(4, 8, Object.class).length); in testAppend()
83 style = s2.getSpans(1, 2, StyleSpan.class); in testWrapParcel()
88 style = s2.getSpans(3, 7, StyleSpan.class); in testWrapParcel()
93 TextAppearanceSpan[] appearance = s2.getSpans(7, 8, in testWrapParcel()
99 TypefaceSpan[] tf = s2.getSpans(8, 9, TypefaceSpan.class); in testWrapParcel()
121 Object[] spans = s.getSpans(0, s.length(), Object.class); in checkPriority()
DTextUtilsTest.java164 spans = result.getSpans(0, result.length(), String.class); in testTemplateSpan()
178 spans = result.getSpans(0, result.length(), String.class); in testTemplateSpan()
497 public <T> T[] getSpans(int start, int end, Class<T> type) { in getSpans() method in TextUtilsTest.MockSpanned
/frameworks/base/core/java/android/text/method/
DTouch.java94 ds = buffer.getSpans(0, buffer.length(), DragState.class); in onTouchEvent()
106 ds = buffer.getSpans(0, buffer.length(), DragState.class); in onTouchEvent()
119 ds = buffer.getSpans(0, buffer.length(), DragState.class); in onTouchEvent()
197 DragState[] ds = buffer.getSpans(0, buffer.length(), DragState.class); in getInitialScrollX()
206 DragState[] ds = buffer.getSpans(0, buffer.length(), DragState.class); in getInitialScrollY()
220 ds = buffer.getSpans(0, buffer.length(), DragState.class); in isActivelySelecting()
236 ds = buffer.getSpans(0, buffer.length(), DragState.class); in isSelectionStarted()
DPasswordTransformationMethod.java47 ViewReference[] vr = sp.getSpans(0, sp.length(), in getTransformation()
79 ViewReference[] vr = sp.getSpans(0, s.length(), in onTextChanged()
132 Visible[] old = sp.getSpans(0, sp.length(), Visible.class); in removeVisibleSpans()
160 Visible[] visible = sp.getSpans(0, sp.length(), Visible.class); in charAt()
201 Visible[] visible = sp.getSpans(0, sp.length(), Visible.class); in getChars()
DLinkMovementMethod.java110 ClickableSpan[] candidates = buffer.getSpans(first, last, ClickableSpan.class); in action()
135 ClickableSpan[] link = buffer.getSpans(selStart, selEnd, ClickableSpan.class); in action()
213 ClickableSpan[] link = buffer.getSpans(off, off, ClickableSpan.class); in onTouchEvent()
DReplacementTransformationMethod.java183 public <T> T[] getSpans(int start, int end, Class<T> type) { in getSpans() method in ReplacementTransformationMethod.SpannedReplacementCharSequence
184 return mSpanned.getSpans(start, end, type); in getSpans()
DMultiTapKeyListener.java219 KeyListener[] methods = content.getSpans(0, content.length(), in onKeyDown()
243 Timeout[] timeout = buf.getSpans(0, buf.length(), Timeout.class); in removeTimeouts()
DQwertyKeyListener.java263 Replaced[] repl = content.getSpans(0, content.length(), in onKeyDown()
320 Replaced[] repl = content.getSpans(selStart - consider, selStart, in onKeyDown()
418 Replaced[] repl = content.getSpans(0, content.length(), Replaced.class); in markAsReplaced()
DTextKeyListener.java168 QwertyKeyListener.Replaced[] repl = e.getSpans(0, e.length(), in clear()
/frameworks/opt/chips/tests/src/com/android/ex/chips/
DChipsTest.java650 mEditable.getSpans(0, mEditable.length(), DrawableRecipientChip.class); in testReplaceChip()
653 .getSpans(0, mEditable.toString().indexOf(second) - 1, DrawableRecipientChip.class); in testReplaceChip()
683 spans = mEditable.getSpans(0, mEditable.length(), DrawableRecipientChip.class); in testReplaceChip()
685 spans = mEditable.getSpans(firstEnd, mEditable.toString().indexOf(third) - 1, in testReplaceChip()
713 spans = mEditable.getSpans(0, mEditable.length(), DrawableRecipientChip.class); in testReplaceChip()
716 .getSpans(secondEnd, mEditable.length(), DrawableRecipientChip.class); in testReplaceChip()
731 … assertEquals(mEditable.getSpans(0, mEditable.length(), DrawableRecipientChip.class).length, 0); in testHandlePaste()
741 … assertEquals(mEditable.getSpans(0, mEditable.length(), DrawableRecipientChip.class).length, 0); in testHandlePaste()
751 … assertEquals(mEditable.getSpans(0, mEditable.length(), DrawableRecipientChip.class).length, 1); in testHandlePaste()
760 … assertEquals(mEditable.getSpans(0, mEditable.length(), DrawableRecipientChip.class).length, 1); in testHandlePaste()
[all …]
/frameworks/base/core/java/android/text/
DSpannableStringInternal.java40 Object[] spans = sp.getSpans(start, end, Object.class); in SpannableStringInternal()
207 public <T> T[] getSpans(int queryStart, int queryEnd, Class<T> kind) { in getSpans() method in SpannableStringInternal
310 SpanWatcher[] recip = getSpans(start, end, SpanWatcher.class); in sendSpanAdded()
319 SpanWatcher[] recip = getSpans(start, end, SpanWatcher.class); in sendSpanRemoved()
328 SpanWatcher[] recip = getSpans(Math.min(s, st), Math.max(e, en), in sendSpanChanged()
370 Object[] otherSpans = other.getSpans(0, other.length(), Object.class); in equals()
DAlteredCharSequence.java66 public <T> T[] getSpans(int start, int end, Class<T> kind) { in getSpans() method in AlteredCharSequence.AlteredSpanned
67 return mSpanned.getSpans(start, end, kind); in getSpans()
DSpanned.java168 public <T> T[] getSpans(int start, int end, Class<T> type); in getSpans() method
DSpannableStringBuilder.java74 Object[] spans = sp.getSpans(start, end, Object.class); in SpannableStringBuilder()
380 Object[] spans = sp.getSpans(csStart, csEnd, Object.class); in change()
482 TextWatcher[] textWatchers = getSpans(start, start + origLen, TextWatcher.class); in replace()
527 Object[] spans = spanned.getSpans(offset, offset, Object.class); in hasNonExclusiveExclusiveSpanAt()
772 public <T> T[] getSpans(int queryStart, int queryEnd, Class<T> kind) { in getSpans() method in SpannableStringBuilder
977 SpanWatcher[] recip = getSpans(start, end, SpanWatcher.class); in sendSpanAdded()
986 SpanWatcher[] recip = getSpans(start, end, SpanWatcher.class); in sendSpanRemoved()
997 SpanWatcher[] spanWatchers = getSpans(Math.min(oldStart, start), in sendSpanChanged()
1300 Object[] otherSpans = other.getSpans(0, other.length(), Object.class); in equals()
DSpanSet.java46 final E[] allSpans = spanned.getSpans(start, limit, classType); in init()
DHtml.java163 ParagraphStyle[] style = text.getSpans(i, next, ParagraphStyle.class); in withinHtml()
198 QuoteSpan[] quotes = text.getSpans(i, next, QuoteSpan.class); in withinDiv()
259 CharacterStyle[] style = text.getSpans(i, next, in withinParagraph()
452 …Object[] obj = mSpannableStringBuilder.getSpans(0, mSpannableStringBuilder.length(), ParagraphStyl… in convert()
601 Object[] objs = text.getSpans(0, text.length(), kind); in getLast()
DTextUtils.java626 Object[] os = sp.getSpans(0, cs.length(), Object.class); in writeToParcel()
818 Object[] os = sp.getSpans(0, cs.length(), Object.class); in dumpSpans()
945 ReplacementSpan[] spans = ((Spanned) text).getSpans(offset, offset, in getOffsetBefore()
982 ReplacementSpan[] spans = ((Spanned) text).getSpans(offset, offset, in getOffsetAfter()
1019 Object[] spans = source.getSpans(start, end, kind); in copySpansFrom()
1296 MetricAffectingSpan[] spans = sp.getSpans( in setPara()
DDynamicLayout.java179 ChangeWatcher[] spans = sp.getSpans(0, sp.length(), ChangeWatcher.class); in DynamicLayout()
232 Object[] force = sp.getSpans(where, where + after, in reflow()
/frameworks/base/core/java/android/view/textservice/
DTextInfo.java76 final SpellCheckSpan[] spans = spannableString.getSpans(0, spannableString.length(), in TextInfo()
/frameworks/ex/common/java/com/android/ex/editstyledtext/
DEditStyledText.java879 getText().getSpans(pos, pos, ForegroundColorSpan.class); in getForegroundColor()
1083 Object[] styles = editable.getSpans(0, len, Object.class); in clearStyles()
1134 HorizontalLineSpan[] lines = txt.getSpans(0, len, HorizontalLineSpan.class); in onRefreshStyles()
1138 MarqueeSpan[] marquees = txt.getSpans(0, len, MarqueeSpan.class); in onRefreshStyles()
1270 if (txt.getSpans(0, len, ParagraphStyle.class).length > 0 in isStyledText()
1271 || txt.getSpans(0, len, QuoteSpan.class).length > 0 in isStyledText()
1272 || txt.getSpans(0, len, CharacterStyle.class).length > 0 in isStyledText()
1328 Object[] spansBefore = txt.getSpans(min, min, Object.class); in updateSpanPreviousFromCursor()
1381 Object[] spansAfter = txt.getSpans(max, max, Object.class); in updateSpanNextToCursor()
1461 buf.getSpans(0, buf.length(), DynamicDrawableSpan.class); in removeImageChar()
[all …]
/frameworks/base/core/java/android/view/inputmethod/
DBaseInputConnection.java78 Object[] sps = text.getSpans(0, text.length(), Object.class); in removeComposingSpans()
95 final Object[] sps = text.getSpans(start, end, Object.class); in setComposingSpans()
599 mDefaultComposingSpans = ((Spanned)style).getSpans( in ensureDefaultComposingSpans()
/frameworks/base/core/java/com/android/internal/widget/
DEditableInputConnection.java179 SuggestionSpan[] spans = spanned.getSpans(0, text.length(), SuggestionSpan.class); in commitText()
/frameworks/base/core/java/com/android/internal/util/
DNotificationColorUtil.java162 Object[] spans = ss.getSpans(0, ss.length(), Object.class); in invertCharSequenceColors()
/frameworks/opt/chips/src/com/android/ex/chips/
DRecipientEditTextView.java386 getText().getSpans(0, getText().length(), DrawableRecipientChip.class); in getSelectedRecipients()
550 getSpannable().getSpans(start, end, DrawableRecipientChip.class); in shrink()
1467 getSpannable().getSpans(start, end, DrawableRecipientChip.class); in alreadyHasChip()
1559 DrawableRecipientChip[] chips = span.getSpans(start, end, DrawableRecipientChip.class); in performFiltering()
1773 getSpannable().getSpans(0, getText().length(), DrawableRecipientChip.class); in findChip()
1925 .getSpans(0, getText().length(), DrawableRecipientChip.class); in getSortedRecipients()
1971 MoreImageSpan[] moreSpans = getSpannable().getSpans(0, getText().length(), in getMoreChip()
2047 ReplacementDrawableSpan[] tempMore = getSpannable().getSpans(0, getText().length(), in createMoreChip()
2379 DrawableRecipientChip[] chips = spannable.getSpans(0, getText().length(), in afterTextChanged()
2446 DrawableRecipientChip[] repl = getSpannable().getSpans(selStart, selStart, in onTextChanged()
[all …]

12