/frameworks/base/core/tests/benchmarks/src/android/text/ |
D | SpannableStringInternalCopyBenchmark.java | 29 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/ |
D | ResourceHelperTest.java | 85 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/ |
D | TextUtilsTest.java | 530 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/ |
D | SpanSet.java | 50 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()
|
D | SpanColors.java | 49 public void init(TextPaint workPaint, Spanned spanned, int start, int end) { in init() argument 51 mCharacterStyleSpanSet.init(spanned, start, end); in init()
|
D | TextUtils.java | 1295 final Spanned spanned = (Spanned) source; in toUpperCase() local 1296 final Object[] spans = spanned.getSpans(0, sourceLength, Object.class); in toUpperCase() 1298 final int sourceStart = spanned.getSpanStart(span); in toUpperCase() 1299 final int sourceEnd = spanned.getSpanEnd(span); in toUpperCase() 1300 final int flags = spanned.getSpanFlags(span); in toUpperCase() 1803 boolean spanned = false; in concat() 1806 spanned = true; in concat() 1811 if (spanned) { in concat() 2089 public static <T> T[] removeEmptySpans(T[] spans, Spanned spanned, Class<T> klass) { in removeEmptySpans() argument 2095 final int start = spanned.getSpanStart(span); in removeEmptySpans() [all …]
|
D | StaticLayout.java | 836 final Spanned spanned = (source instanceof Spanned) ? (Spanned) source : null; in generate() 880 if (spanned != null) { in generate() 881 LeadingMarginSpan[] sp = getParagraphSpans(spanned, paraStart, paraEnd, in generate() 897 chooseHt = getParagraphSpans(spanned, paraStart, paraEnd, LineHeightSpan.class); in generate() 907 int o = spanned.getSpanStart(chooseHt[i]); in generate() 924 if (spanned != null) { in generate() 925 TabStopSpan[] spans = getParagraphSpans(spanned, paraStart, in generate()
|
D | Layout.java | 1176 Spanned spanned = (Spanned) mText; in getLineStartPos() local 1178 int spanEnd = spanned.nextSpanTransition(start, spanned.length(), in getLineStartPos() 1180 TabStopSpan[] tabSpans = getParagraphSpans(spanned, start, spanEnd, in getLineStartPos() 3189 Spanned spanned = (Spanned) mText; in getParagraphLeadingMargin() local 3193 int spanEnd = spanned.nextSpanTransition(lineStart, lineEnd, in getParagraphLeadingMargin() 3195 LeadingMarginSpan[] spans = getParagraphSpans(spanned, lineStart, spanEnd, in getParagraphLeadingMargin() 3203 boolean useFirstLineMargin = lineStart == 0 || spanned.charAt(lineStart - 1) == '\n'; in getParagraphLeadingMargin() 3206 int spStart = spanned.getSpanStart(spans[i]); in getParagraphLeadingMargin() 3236 Spanned spanned = (Spanned) text; 3237 LeadingMarginSpan[] spans = getParagraphSpans(spanned, start, end, [all …]
|
D | SpannableStringBuilder.java | 588 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()
|
D | DynamicLayout.java | 846 final Spanned spanned = (Spanned) text; in contentMayProtrudeFromLineTopOrBottom() local 847 if (spanned.getSpans(start, end, ReplacementSpan.class).length > 0) { in contentMayProtrudeFromLineTopOrBottom()
|
/frameworks/base/core/tests/coretests/src/android/widget/ |
D | SuggestionsPopupWindowTest.java | 312 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/tests/coretests/src/android/text/method/ |
D | InsertModeTransformationMethodTest.java | 912 private static <T> void assertNextSpanTransition(Spanned spanned, int[] transitions, in assertNextSpanTransition() argument 918 spanned.nextSpanTransition(currentTransition, spanned.length(), type); in assertNextSpanTransition() 922 assertThat(currentTransition).isEqualTo(spanned.length()); in assertNextSpanTransition()
|
/frameworks/base/core/java/android/content/ |
D | ClipData.java | 1227 Spanned spanned = (Spanned) text; in isStyledText() local 1228 if (TextUtils.hasStyleSpan(spanned)) { in isStyledText()
|
/frameworks/base/core/java/android/view/accessibility/ |
D | AccessibilityNodeInfo.java | 3296 Spanned spanned = (Spanned) mText; in getText() local 3298 spanned.getSpans(0, mText.length(), AccessibilityClickableSpan.class); in getText() 3303 spanned.getSpans(0, mText.length(), AccessibilityURLSpan.class); in getText()
|
/frameworks/ex/common/java/com/android/ex/editstyledtext/ |
D | EditStyledText.java | 1926 final Spanned spanned = mHtml.fromHtml(html, new Html.ImageGetter() { in SetHtml() local 1971 mEST.setText(spanned); in SetHtml()
|
/frameworks/base/core/java/android/widget/ |
D | Editor.java | 1973 Spanned spanned = (Spanned) content; in extractTextInternal() local 1974 Object[] spans = spanned.getSpans(partialStartOffset, in extractTextInternal() 1979 int j = spanned.getSpanStart(spans[i]); in extractTextInternal() 1981 j = spanned.getSpanEnd(spans[i]); in extractTextInternal()
|
D | TextView.java | 15353 final Spanned spanned = (Spanned) mText; in handleClick() local 15354 final int start = spanned.getSpanStart(clickedSpan); in handleClick() 15355 final int end = spanned.getSpanEnd(clickedSpan); in handleClick()
|