Home
last modified time | relevance | path

Searched refs:spanned (Results 1 – 15 of 15) sorted by relevance

/frameworks/base/core/tests/benchmarks/src/android/text/
DSpannableStringInternalCopyBenchmark.java29 private SpannedString spanned; field in SpannableStringInternalCopyBenchmark
39 spanned = new SpannedString(source); in setUp()
44 spanned = null; in tearDown()
50 new SpannedString(spanned); in timeCopyConstructor()
57 spanned.subSequence(1, spanned.length()-1); in timeSubsequence()
/frameworks/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/impl/
DResourceHelperTest.java85 SpannedString spanned = (SpannedString)parsed; in testParseHtml() local
94 "End text", spanned.toString()); in testParseHtml()
95 Object[] spans = spanned.getSpans(0, spanned.length(), Object.class); in testParseHtml()
98 assertEquals(starts[i], spanned.getSpanStart(spans[i])); in testParseHtml()
99 assertEquals(ends[i], spanned.getSpanEnd(spans[i])); in testParseHtml()
/frameworks/base/core/tests/coretests/src/android/text/
DTextUtilsTest.java530 MockSpanned spanned = new MockSpanned(); in testRemoveEmptySpans() local
532 spanned.test(); in testRemoveEmptySpans()
533 spanned.addSpan().test(); in testRemoveEmptySpans()
534 spanned.addSpan().test(); in testRemoveEmptySpans()
535 spanned.addSpan().test(); in testRemoveEmptySpans()
536 spanned.addEmptySpan().test(); in testRemoveEmptySpans()
537 spanned.addSpan().test(); in testRemoveEmptySpans()
538 spanned.addEmptySpan().test(); in testRemoveEmptySpans()
539 spanned.addEmptySpan().test(); in testRemoveEmptySpans()
540 spanned.addSpan().test(); in testRemoveEmptySpans()
[all …]
/frameworks/base/core/java/android/text/
DSpanSet.java50 public void init(Spanned spanned, int start, int limit) { in init() argument
51 final E[] allSpans = spanned.getSpans(start, limit, classType); in init()
67 final int spanStart = spanned.getSpanStart(span); in init()
68 final int spanEnd = spanned.getSpanEnd(span); in init()
71 final int spanFlag = spanned.getSpanFlags(span); in init()
DTextUtils.java1259 final Spanned spanned = (Spanned) source; in toUpperCase() local
1260 final Object[] spans = spanned.getSpans(0, sourceLength, Object.class); in toUpperCase()
1262 final int sourceStart = spanned.getSpanStart(span); in toUpperCase()
1263 final int sourceEnd = spanned.getSpanEnd(span); in toUpperCase()
1264 final int flags = spanned.getSpanFlags(span); in toUpperCase()
1756 boolean spanned = false; in concat()
1759 spanned = true; in concat()
1764 if (spanned) { in concat()
2036 public static <T> T[] removeEmptySpans(T[] spans, Spanned spanned, Class<T> klass) { in removeEmptySpans() argument
2042 final int start = spanned.getSpanStart(span); in removeEmptySpans()
[all …]
DLayout.java742 Spanned spanned = (Spanned) mText; in getLineStartPos() local
744 int spanEnd = spanned.nextSpanTransition(start, spanned.length(), in getLineStartPos()
746 TabStopSpan[] tabSpans = getParagraphSpans(spanned, start, spanEnd, in getLineStartPos()
2150 Spanned spanned = (Spanned) mText; in getParagraphLeadingMargin() local
2154 int spanEnd = spanned.nextSpanTransition(lineStart, lineEnd, in getParagraphLeadingMargin()
2156 LeadingMarginSpan[] spans = getParagraphSpans(spanned, lineStart, spanEnd, in getParagraphLeadingMargin()
2164 boolean useFirstLineMargin = lineStart == 0 || spanned.charAt(lineStart - 1) == '\n'; in getParagraphLeadingMargin()
2167 int spStart = spanned.getSpanStart(spans[i]); in getParagraphLeadingMargin()
2197 Spanned spanned = (Spanned) text;
2198 LeadingMarginSpan[] spans = getParagraphSpans(spanned, start, end,
[all …]
DStaticLayout.java687 final Spanned spanned = (source instanceof Spanned) ? (Spanned) source : null; in generate()
731 if (spanned != null) { in generate()
732 LeadingMarginSpan[] sp = getParagraphSpans(spanned, paraStart, paraEnd, in generate()
748 chooseHt = getParagraphSpans(spanned, paraStart, paraEnd, LineHeightSpan.class); in generate()
758 int o = spanned.getSpanStart(chooseHt[i]); in generate()
775 if (spanned != null) { in generate()
776 TabStopSpan[] spans = getParagraphSpans(spanned, paraStart, in generate()
DDynamicLayout.java703 final Spanned spanned = (Spanned) text; in contentMayProtrudeFromLineTopOrBottom() local
704 if (spanned.getSpans(start, end, ReplacementSpan.class).length > 0) { in contentMayProtrudeFromLineTopOrBottom()
DSpannableStringBuilder.java588 Spanned spanned = (Spanned) text; in hasNonExclusiveExclusiveSpanAt() local
589 Object[] spans = spanned.getSpans(offset, offset, Object.class); in hasNonExclusiveExclusiveSpanAt()
593 int flags = spanned.getSpanFlags(span); in hasNonExclusiveExclusiveSpanAt()
/frameworks/base/core/tests/coretests/src/android/widget/
DSuggestionsPopupWindowTest.java312 final Spanned spanned = (Spanned) suggestion.getText(); in testTextAppearanceInSuggestionsPopup() local
313 assertNotNull(spanned); in testTextAppearanceInSuggestionsPopup()
322 assertEquals(expectedText, spanned.toString()); in testTextAppearanceInSuggestionsPopup()
325 final TextAppearanceSpan[] taSpan = spanned.getSpans( in testTextAppearanceInSuggestionsPopup()
343 assertEquals(expectedStart, spanned.getSpanStart(taSpan[0])); in testTextAppearanceInSuggestionsPopup()
344 assertEquals(expectedEnd, spanned.getSpanEnd(taSpan[0])); in testTextAppearanceInSuggestionsPopup()
/frameworks/base/core/java/android/content/
DClipData.java1115 Spanned spanned = (Spanned) text; in isStyledText() local
1116 if (TextUtils.hasStyleSpan(spanned)) { in isStyledText()
/frameworks/base/core/java/android/view/accessibility/
DAccessibilityNodeInfo.java2977 Spanned spanned = (Spanned) mText; in getText() local
2979 spanned.getSpans(0, mText.length(), AccessibilityClickableSpan.class); in getText()
2984 spanned.getSpans(0, mText.length(), AccessibilityURLSpan.class); in getText()
/frameworks/ex/common/java/com/android/ex/editstyledtext/
DEditStyledText.java1926 final Spanned spanned = mHtml.fromHtml(html, new Html.ImageGetter() { in SetHtml() local
1971 mEST.setText(spanned); in SetHtml()
/frameworks/base/core/java/android/widget/
DEditor.java1928 Spanned spanned = (Spanned) content; in extractTextInternal() local
1929 Object[] spans = spanned.getSpans(partialStartOffset, in extractTextInternal()
1934 int j = spanned.getSpanStart(spans[i]); in extractTextInternal()
1936 j = spanned.getSpanEnd(spans[i]); in extractTextInternal()
DTextView.java13231 final Spanned spanned = (Spanned) mText; in handleClick() local
13232 final int start = spanned.getSpanStart(clickedSpan); in handleClick()
13233 final int end = spanned.getSpanEnd(clickedSpan); in handleClick()