Home
last modified time | relevance | path

Searched refs:spanned (Results 1 – 12 of 12) 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.java427 MockSpanned spanned = new MockSpanned(); in testRemoveEmptySpans() local
429 spanned.test(); in testRemoveEmptySpans()
430 spanned.addSpan().test(); in testRemoveEmptySpans()
431 spanned.addSpan().test(); in testRemoveEmptySpans()
432 spanned.addSpan().test(); in testRemoveEmptySpans()
433 spanned.addEmptySpan().test(); in testRemoveEmptySpans()
434 spanned.addSpan().test(); in testRemoveEmptySpans()
435 spanned.addEmptySpan().test(); in testRemoveEmptySpans()
436 spanned.addEmptySpan().test(); in testRemoveEmptySpans()
437 spanned.addSpan().test(); in testRemoveEmptySpans()
[all …]
/frameworks/base/core/java/android/text/
DSpanSet.java46 public void init(Spanned spanned, int start, int limit) { in init() argument
47 final E[] allSpans = spanned.getSpans(start, limit, classType); in init()
63 final int spanStart = spanned.getSpanStart(span); in init()
64 final int spanEnd = spanned.getSpanEnd(span); in init()
67 final int spanFlag = spanned.getSpanFlags(span); in init()
DMeasuredText.java119 Spanned spanned = (Spanned) text; in setPara() local
120 ReplacementSpan[] spans = spanned.getSpans(start, end, in setPara()
124 int startInPara = spanned.getSpanStart(spans[i]) - start; in setPara()
125 int endInPara = spanned.getSpanEnd(spans[i]) - start; in setPara()
DStaticLayout.java593 Spanned spanned = null;
595 spanned = (Spanned) source;
611 if (spanned != null) {
612 LeadingMarginSpan[] sp = getParagraphSpans(spanned, paraStart, paraEnd,
628 chooseHt = getParagraphSpans(spanned, paraStart, paraEnd, LineHeightSpan.class);
639 int o = spanned.getSpanStart(chooseHt[i]);
664 if (spanned != null) {
665 TabStopSpan[] spans = getParagraphSpans(spanned, paraStart,
716 if (spanned == null) {
721 spanEnd = spanned.nextSpanTransition(spanStart, paraEnd,
[all …]
DLayout.java541 Spanned spanned = (Spanned) mText; in getLineStartPos() local
543 int spanEnd = spanned.nextSpanTransition(start, spanned.length(), in getLineStartPos()
545 TabStopSpan[] tabSpans = getParagraphSpans(spanned, start, spanEnd, in getLineStartPos()
1646 Spanned spanned = (Spanned) mText; in getParagraphLeadingMargin() local
1650 int spanEnd = spanned.nextSpanTransition(lineStart, lineEnd, in getParagraphLeadingMargin()
1652 LeadingMarginSpan[] spans = getParagraphSpans(spanned, lineStart, spanEnd, in getParagraphLeadingMargin()
1661 spanned.charAt(lineStart - 1) == '\n'; in getParagraphLeadingMargin()
1666 int spStart = spanned.getSpanStart(spans[i]); in getParagraphLeadingMargin()
1705 Spanned spanned = (Spanned) text;
1706 LeadingMarginSpan[] spans = getParagraphSpans(spanned, start, end,
[all …]
DTextUtils.java1401 boolean spanned = false; in concat()
1404 spanned = true; in concat()
1414 if (!spanned) { in concat()
1686 public static <T> T[] removeEmptySpans(T[] spans, Spanned spanned, Class<T> klass) { in removeEmptySpans() argument
1692 final int start = spanned.getSpanStart(span); in removeEmptySpans()
1693 final int end = spanned.getSpanEnd(span); in removeEmptySpans()
DSpannableStringBuilder.java589 Spanned spanned = (Spanned) text; in hasNonExclusiveExclusiveSpanAt() local
590 Object[] spans = spanned.getSpans(offset, offset, Object.class); in hasNonExclusiveExclusiveSpanAt()
594 int flags = spanned.getSpanFlags(span); in hasNonExclusiveExclusiveSpanAt()
/frameworks/base/core/tests/coretests/src/android/widget/
DSuggestionsPopupWindowTest.java316 final Spanned spanned = (Spanned) suggestion.getText(); in testTextAppearanceInSuggestionsPopup()
317 assertNotNull(spanned); in testTextAppearanceInSuggestionsPopup()
326 assertEquals(expectedText, spanned.toString()); in testTextAppearanceInSuggestionsPopup()
329 final TextAppearanceSpan[] taSpan = spanned.getSpans( in testTextAppearanceInSuggestionsPopup()
347 assertEquals(expectedStart, spanned.getSpanStart(taSpan[0])); in testTextAppearanceInSuggestionsPopup()
348 assertEquals(expectedEnd, spanned.getSpanEnd(taSpan[0])); in testTextAppearanceInSuggestionsPopup()
/frameworks/base/core/java/com/android/internal/widget/
DEditableInputConnection.java177 Spanned spanned = ((Spanned) text); in commitText() local
178 SuggestionSpan[] spans = spanned.getSpans(0, text.length(), SuggestionSpan.class); in commitText()
/frameworks/base/core/java/android/widget/
DEditor.java1513 Spanned spanned = (Spanned)content; in extractTextInternal() local
1514 Object[] spans = spanned.getSpans(partialStartOffset, in extractTextInternal()
1519 int j = spanned.getSpanStart(spans[i]); in extractTextInternal()
1521 j = spanned.getSpanEnd(spans[i]); in extractTextInternal()
/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()