Home
last modified time | relevance | path

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

123

/frameworks/base/core/tests/coretests/src/android/text/
DSpannedTest.java64 assertEquals(1, ssb.getSpans(0, 4, Object.class).length); in testAppend()
69 assertEquals(0, ssb.getSpans(0, 4, Object.class).length); in testAppend()
70 assertEquals(1, ssb.getSpans(4, 8, Object.class).length); in testAppend()
93 style = s2.getSpans(1, 2, StyleSpan.class); in testWrapParcel()
98 style = s2.getSpans(3, 7, StyleSpan.class); in testWrapParcel()
103 TextAppearanceSpan[] appearance = s2.getSpans(7, 8, in testWrapParcel()
109 TypefaceSpan[] tf = s2.getSpans(8, 9, TypefaceSpan.class); in testWrapParcel()
131 Object[] spans = s.getSpans(0, s.length(), Object.class); in checkPriority()
DSpannedStringNoCopyTest.java45 final Object[] spans = copied.getSpans(0, copied.length(), Object.class); in testCopyConstructor_copyNoCopySpans_SpannableStringInternalImpl()
59 final Object[] spans = copied.getSpans(0, copied.length(), Object.class); in testCopyConstructor_doesNotCopyNoCopySpans_SpannableStringInternalImpl()
77 final Object[] spans = copied.getSpans(0, copied.length(), Object.class); in testCopyConstructor_copyNoCopySpans_OtherSpannedImpl()
92 final Object[] spans = copied.getSpans(0, copied.length(), Object.class); in testCopyConstructor_doesNotCopyNoCopySpans_OtherSpannedImpl()
110 public <T> T[] getSpans(int start, int end, Class<T> type) { in getSpans() method in SpannedStringNoCopyTest.CustomSpanned
111 return mText.getSpans(start, end, type); in getSpans()
DSpannableStringNoCopyTest.java45 final Object[] spans = copied.getSpans(0, copied.length(), Object.class); in testCopyConstructor_copyNoCopySpans_SpannableStringInternalImpl()
59 final Object[] spans = copied.getSpans(0, copied.length(), Object.class); in testCopyConstructor_doesNotCopyNoCopySpans_SpannableStringInternalImpl()
77 final Object[] spans = copied.getSpans(0, copied.length(), Object.class); in testCopyConstructor_copyNoCopySpans_OtherSpannableImpl()
92 final Object[] spans = copied.getSpans(0, copied.length(), Object.class); in testCopyConstructor_doesNotCopyNoCopySpans_OtherSpannableImpl()
120 public <T> T[] getSpans(int start, int end, Class<T> type) { in getSpans() method in SpannableStringNoCopyTest.CustomSpannable
121 return mText.getSpans(start, end, type); in getSpans()
DSpannableTest.java52 spans = spannable.getSpans(0, 1, Object.class); in testGetSpans()
54 spans = spannable.getSpans(0, 2, Object.class); in testGetSpans()
56 spans = spannable.getSpans(1, 2, Object.class); in testGetSpans()
58 spans = spannable.getSpans(2, 2, Object.class); in testGetSpans()
DTextUtilsTest.java181 spans = result.getSpans(0, result.length(), String.class); in testTemplateSpan()
195 spans = result.getSpans(0, result.length(), String.class); in testTemplateSpan()
603 public <T> T[] getSpans(int start, int end, Class<T> type) { in getSpans() method in TextUtilsTest.MockSpanned
686 final Object[] resultSpans = spanned.getSpans(0, result.length(), Object.class); in testToUpperCase()
732 final Object[] sourceSpans = source.getSpans(0, source.length(), Object.class); in testToUpperCase_SpansArePreserved()
739 final Object[] resultSpans = result.getSpans(0, result.length(), Object.class); in testToUpperCase_SpansArePreserved()
DSpannableStringBuilderTest.java57 Object[] spans = builder.getSpans(0, text.length(), Object.class, false); in testGetSpans_sortsByPriorityEvenWhenSortParamIsFalse()
/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()
185 DragState[] ds = buffer.getSpans(0, buffer.length(), DragState.class); in getInitialScrollX()
194 DragState[] ds = buffer.getSpans(0, buffer.length(), DragState.class); in getInitialScrollY()
DPasswordTransformationMethod.java49 ViewReference[] vr = sp.getSpans(0, sp.length(), in getTransformation()
81 ViewReference[] vr = sp.getSpans(0, s.length(), in onTextChanged()
134 Visible[] old = sp.getSpans(0, sp.length(), Visible.class); in removeVisibleSpans()
162 Visible[] visible = sp.getSpans(0, sp.length(), Visible.class); in charAt()
203 Visible[] visible = sp.getSpans(0, sp.length(), Visible.class); in getChars()
DLinkMovementMethod.java115 ClickableSpan[] candidates = buffer.getSpans(first, last, ClickableSpan.class); in action()
140 ClickableSpan[] links = buffer.getSpans(selStart, selEnd, ClickableSpan.class); in action()
223 ClickableSpan[] links = 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()
/frameworks/opt/setupwizard/library/test/robotest/src/com/android/setupwizardlib/view/
DRichTextViewTest.java63 Object[] spans = ((Spanned) text).getSpans(0, text.length(), Annotation.class); in testLinkAnnotation()
66 spans = ((Spanned) text).getSpans(0, text.length(), LinkSpan.class); in testLinkAnnotation()
89 LinkSpan[] spans = ((Spanned) text).getSpans(0, text.length(), LinkSpan.class); in testOnLinkClickListener()
108 LinkSpan[] spans = ((Spanned) text).getSpans(0, text.length(), LinkSpan.class); in testLegacyContextOnClickListener()
162 Object[] spans = ((Spanned) text).getSpans(0, text.length(), Annotation.class); in testTextStyle()
165 spans = ((Spanned) text).getSpans(0, text.length(), TextAppearanceSpan.class); in testTextStyle()
/frameworks/base/core/tests/coretests/src/android/text/util/
DLinkifyTest.java114 URLSpan[] spans = spannable.getSpans(0, spannable.length(), URLSpan.class); in testAddLinks_addsLinksWhenDefaultSchemeIsNull()
125 URLSpan[] spans = spannable.getSpans(0, spannable.length(), URLSpan.class); in testAddLinks_addsLinksWhenSchemesArrayIsNull()
138 URLSpan[] spans = spannable.getSpans(0, spannable.length(), URLSpan.class); in testAddLinks_prependsDefaultSchemeToBeginingOfLink()
149 URLSpan[] spans = spannable.getSpans(0, spannable.length(), URLSpan.class); in testAddLinks_doesNotPrependSchemeIfSchemeExists()
/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.java69 Object[] spans = src.getSpans(start, end, Object.class); in copySpans()
338 public <T> T[] getSpans(int queryStart, int queryEnd, Class<T> kind) { in getSpans() method in SpannableStringInternal
444 SpanWatcher[] recip = getSpans(start, end, SpanWatcher.class); in sendSpanAdded()
454 SpanWatcher[] recip = getSpans(start, end, SpanWatcher.class); in sendSpanRemoved()
464 SpanWatcher[] recip = getSpans(Math.min(s, st), Math.max(e, en), in sendSpanChanged()
508 final Object[] otherSpans = other.getSpans(0, other.length(), Object.class); in equals()
509 final Object[] thisSpans = getSpans(0, 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()
DInputFilter.java140 public <T> T[] getSpans(int start, int end, Class<T> type) { in getSpans() method in InputFilter.AllCaps.CharSequenceWrapper
141 return ((Spanned) mSource).getSpans(mStart + start, mStart + end, type); in getSpans()
DSpanned.java170 public <T> T[] getSpans(int start, int end, Class<T> type); in getSpans() method
DSpannableStringBuilder.java81 Object[] spans = sp.getSpans(start, end, Object.class); in SpannableStringBuilder()
420 Object[] spans = sp.getSpans(csStart, csEnd, Object.class); in change()
535 TextWatcher[] textWatchers = getSpans(start, start + origLen, TextWatcher.class); in replace()
588 Object[] spans = spanned.getSpans(offset, offset, Object.class); in hasNonExclusiveExclusiveSpanAt()
848 public <T> T[] getSpans(int queryStart, int queryEnd, @Nullable Class<T> kind) { in getSpans() method in SpannableStringBuilder
849 return getSpans(queryStart, queryEnd, kind, true); in getSpans()
867 public <T> T[] getSpans(int queryStart, int queryEnd, @Nullable Class<T> kind, in getSpans() method in SpannableStringBuilder
1283 SpanWatcher[] recip = getSpans(start, end, SpanWatcher.class); in sendSpanAdded()
1292 SpanWatcher[] recip = getSpans(start, end, SpanWatcher.class); in sendSpanRemoved()
1303 SpanWatcher[] spanWatchers = getSpans(Math.min(oldStart, start), in sendSpanChanged()
[all …]
/frameworks/opt/setupwizard/library/platform/src/com/android/setupwizardlib/view/
DRichTextView.java67 final Annotation[] spans = spannable.getSpans(0, spannable.length(), Annotation.class); in getRichText()
136 ((Spanned) text).getSpans(0, text.length(), ClickableSpan.class); in hasLinks()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/
DTextViewTransformState.java69 Object[] spans = ownSpanned.getSpans(0, ownSpanned.length(), Object.class); in hasSameSpans()
71 Object[] otherSpans = otherSpanned.getSpans(0, otherSpanned.length(), Object.class); in hasSameSpans()
/frameworks/opt/setupwizard/library/gingerbread/src/com/android/setupwizardlib/view/
DRichTextView.java67 final Annotation[] spans = spannable.getSpans(0, spannable.length(), Annotation.class); in getRichText()
150 ((Spanned) text).getSpans(0, text.length(), ClickableSpan.class); in hasLinks()
/frameworks/opt/setupwizard/library/gingerbread/src/com/android/setupwizardlib/util/
DLinkAccessibilityHelper.java162 ClickableSpan[] linkSpans = spannedText.getSpans(offset, offset, ClickableSpan.class); in getVirtualViewAt()
177 spannedText.getSpans(0, spannedText.length(), ClickableSpan.class); in getVisibleVirtualViews()
235 ClickableSpan[] spans = spannedText.getSpans(offset, offset, ClickableSpan.class); in getSpanForOffset()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/widget/
DLinkTextView.java45 ((Spanned) text).getSpans(0, text.length(), ClickableSpan.class); in setText()
/frameworks/opt/setupwizard/library/test/instrumentation/src/com/android/setupwizardlib/test/
DSpanHelperTest.java43 final Object[] spans = ssb.getSpans(0, ssb.length(), Object.class); in testReplaceSpan()
/frameworks/base/core/tests/benchmarks/src/android/text/
DSpannableStringBuilderBenchmark.java58 builder.getSpans(0, builder.length(), clazz); in timeGetSpans()

123