Home
last modified time | relevance | path

Searched refs:spanned (Results 1 – 13 of 13) 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/base/core/tests/coretests/src/android/text/
DTextUtilsTest.java527 MockSpanned spanned = new MockSpanned(); in testRemoveEmptySpans() local
529 spanned.test(); in testRemoveEmptySpans()
530 spanned.addSpan().test(); in testRemoveEmptySpans()
531 spanned.addSpan().test(); in testRemoveEmptySpans()
532 spanned.addSpan().test(); in testRemoveEmptySpans()
533 spanned.addEmptySpan().test(); in testRemoveEmptySpans()
534 spanned.addSpan().test(); in testRemoveEmptySpans()
535 spanned.addEmptySpan().test(); in testRemoveEmptySpans()
536 spanned.addEmptySpan().test(); in testRemoveEmptySpans()
537 spanned.addSpan().test(); in testRemoveEmptySpans()
[all …]
/frameworks/base/core/java/android/text/
DSpanSet.java49 public void init(Spanned spanned, int start, int limit) { in init() argument
50 final E[] allSpans = spanned.getSpans(start, limit, classType); in init()
66 final int spanStart = spanned.getSpanStart(span); in init()
67 final int spanEnd = spanned.getSpanEnd(span); in init()
70 final int spanFlag = spanned.getSpanFlags(span); in init()
DTextUtils.java1205 final Spanned spanned = (Spanned) source; in toUpperCase() local
1206 final Object[] spans = spanned.getSpans(0, sourceLength, Object.class); in toUpperCase()
1208 final int sourceStart = spanned.getSpanStart(span); in toUpperCase()
1209 final int sourceEnd = spanned.getSpanEnd(span); in toUpperCase()
1210 final int flags = spanned.getSpanFlags(span); in toUpperCase()
1702 boolean spanned = false; in concat()
1705 spanned = true; in concat()
1710 if (spanned) { in concat()
1982 public static <T> T[] removeEmptySpans(T[] spans, Spanned spanned, Class<T> klass) { in removeEmptySpans() argument
1988 final int start = spanned.getSpanStart(span); in removeEmptySpans()
[all …]
DLayout.java719 Spanned spanned = (Spanned) mText; in getLineStartPos() local
721 int spanEnd = spanned.nextSpanTransition(start, spanned.length(), in getLineStartPos()
723 TabStopSpan[] tabSpans = getParagraphSpans(spanned, start, spanEnd, in getLineStartPos()
2112 Spanned spanned = (Spanned) mText; in getParagraphLeadingMargin() local
2116 int spanEnd = spanned.nextSpanTransition(lineStart, lineEnd, in getParagraphLeadingMargin()
2118 LeadingMarginSpan[] spans = getParagraphSpans(spanned, lineStart, spanEnd, in getParagraphLeadingMargin()
2126 boolean useFirstLineMargin = lineStart == 0 || spanned.charAt(lineStart - 1) == '\n'; in getParagraphLeadingMargin()
2129 int spStart = spanned.getSpanStart(spans[i]); in getParagraphLeadingMargin()
2159 Spanned spanned = (Spanned) text;
2160 LeadingMarginSpan[] spans = getParagraphSpans(spanned, start, end,
[all …]
DStaticLayout.java654 final Spanned spanned = (source instanceof Spanned) ? (Spanned) source : null; in generate()
697 if (spanned != null) { in generate()
698 LeadingMarginSpan[] sp = getParagraphSpans(spanned, paraStart, paraEnd, in generate()
714 chooseHt = getParagraphSpans(spanned, paraStart, paraEnd, LineHeightSpan.class); in generate()
724 int o = spanned.getSpanStart(chooseHt[i]); in generate()
741 if (spanned != null) { in generate()
742 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.java587 Spanned spanned = (Spanned) text; in hasNonExclusiveExclusiveSpanAt() local
588 Object[] spans = spanned.getSpans(offset, offset, Object.class); in hasNonExclusiveExclusiveSpanAt()
592 int flags = spanned.getSpanFlags(span); in hasNonExclusiveExclusiveSpanAt()
/frameworks/base/core/tests/coretests/src/android/widget/
DSuggestionsPopupWindowTest.java318 final Spanned spanned = (Spanned) suggestion.getText(); in testTextAppearanceInSuggestionsPopup() local
319 assertNotNull(spanned); in testTextAppearanceInSuggestionsPopup()
328 assertEquals(expectedText, spanned.toString()); in testTextAppearanceInSuggestionsPopup()
331 final TextAppearanceSpan[] taSpan = spanned.getSpans( in testTextAppearanceInSuggestionsPopup()
349 assertEquals(expectedStart, spanned.getSpanStart(taSpan[0])); in testTextAppearanceInSuggestionsPopup()
350 assertEquals(expectedEnd, spanned.getSpanEnd(taSpan[0])); in testTextAppearanceInSuggestionsPopup()
/frameworks/base/core/java/android/view/accessibility/
DAccessibilityNodeInfo.java2587 Spanned spanned = (Spanned) mText; in getText() local
2589 spanned.getSpans(0, mText.length(), AccessibilityClickableSpan.class); in getText()
2594 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.java1656 Spanned spanned = (Spanned) content; in extractTextInternal() local
1657 Object[] spans = spanned.getSpans(partialStartOffset, in extractTextInternal()
1662 int j = spanned.getSpanStart(spans[i]); in extractTextInternal()
1664 j = spanned.getSpanEnd(spans[i]); in extractTextInternal()
DTextView.java12496 final Spanned spanned = (Spanned) mText; in handleClick() local
12497 final int start = spanned.getSpanStart(clickedSpan); in handleClick()
12498 final int end = spanned.getSpanEnd(clickedSpan); in handleClick()
12617 Spanned spanned = (Spanned) text; in canPasteAsPlainText() local
12618 if (TextUtils.hasStyleSpan(spanned)) { in canPasteAsPlainText()