/frameworks/base/core/java/android/text/ |
D | StaticLayout.java | 263 for (int spanStart = paraStart, spanEnd = spanStart, nextSpanStart; in generate() 266 if (spanStart == spanEnd) { in generate() 268 spanEnd = paraEnd; in generate() 270 spanEnd = spanned.nextSpanTransition(spanStart, paraEnd, in generate() 273 int spanLen = spanEnd - spanStart; in generate() 278 spanned.getSpans(spanStart, spanEnd, MetricAffectingSpan.class); in generate() 285 nextSpanStart = spanEnd; in generate() 292 for (int j = spanStart; j < spanEnd; j++) { in generate() 316 && j + 1 < spanEnd) { in generate() 383 (j + 1 >= spanEnd || !Character.isDigit(chs[j + 1 - paraStart]))) || in generate() [all …]
|
D | SpannableStringInternal.java | 220 int spanEnd = data[i * COLUMNS + END]; in getSpans() local 225 if (spanEnd < queryStart) { in getSpans() 229 if (spanStart != spanEnd && queryStart != queryEnd) { in getSpans() 233 if (spanEnd == queryStart) { in getSpans()
|
D | Layout.java | 233 int spanEnd = 0; in draw() local 253 if (start >= spanEnd) { in draw() 256 spanEnd = sp.nextSpanTransition(start, textLength, in draw() 273 spanEnd = 0; in draw() 332 if (start >= spanEnd && (i == first || isFirstParaLine)) { in draw() 333 spanEnd = sp.nextSpanTransition(start, textLength, in draw() 335 spans = getParagraphSpans(sp, start, spanEnd, ParagraphStyle.class); in draw() 461 int spanEnd = spanned.nextSpanTransition(start, spanned.length(), in getLineStartPos() local 463 … TabStopSpan[] tabSpans = getParagraphSpans(spanned, start, spanEnd, TabStopSpan.class); in getLineStartPos() 1455 int spanEnd = spanned.nextSpanTransition(lineStart, lineEnd, in getParagraphLeadingMargin() local [all …]
|
D | TextLine.java | 877 final int spanEnd = spanned.getSpanEnd(span); in SpanSet() local 878 if (spanStart == spanEnd) continue; in SpanSet() 897 spanEnds[j] = spanEnd; in SpanSet() 902 spanEnds[i] = spanEnd; in SpanSet() 914 final int spanEnd = spanEnds[i]; in getNextTransition() local 916 if (spanEnd > start && spanEnd < limit) limit = spanEnd; in getNextTransition()
|
D | SpannableStringBuilder.java | 720 int spanEnd = ends[i]; in getSpans() local 721 if (spanEnd > gapstart) { in getSpans() 722 spanEnd -= gaplen; in getSpans() 724 if (spanEnd < queryStart) { in getSpans() 728 if (spanStart != spanEnd && queryStart != queryEnd) { in getSpans() 731 if (spanEnd == queryStart) in getSpans()
|
D | TextUtils.java | 1248 int spanEnd; in setPara() local 1249 for (int spanStart = 0; spanStart < len; spanStart = spanEnd) { in setPara() 1250 spanEnd = sp.nextSpanTransition(spanStart, len, in setPara() 1253 spanStart, spanEnd, MetricAffectingSpan.class); in setPara() 1255 width += mt.addStyleRun(paint, spans, spanEnd - spanStart, null); in setPara()
|
/frameworks/base/core/java/android/widget/ |
D | SpellChecker.java | 249 final int spanEnd = editable.getSpanEnd(suggestionSpans[i]); in createMisspelledSuggestionSpan() local 250 if (spanStart != start || spanEnd != end) { in createMisspelledSuggestionSpan() 371 final int spanEnd = editable.getSpanEnd(spellCheckSpans[i]); in parse() local 372 if (spanEnd == start) { in parse()
|
D | TextView.java | 9790 final int spanEnd = spannable.getSpanEnd(suggestionSpan); in updateSuggestions() local 9792 spanUnionEnd = Math.max(spanEnd, spanUnionEnd); in updateSuggestions() 9870 final int spanEnd = text.getSpanEnd(suggestionInfo.suggestionSpan); in highlightTextDifferences() local 9882 suggestionInfo.text.append(mText.toString().substring(spanEnd, unionEnd)); in highlightTextDifferences() 9910 final int spanEnd = editable.getSpanEnd(suggestionInfo.suggestionSpan); in onItemClick() local 9911 if (spanStart < 0 || spanEnd < 0) { in onItemClick() 9916 final String originalText = mText.toString().substring(spanStart, spanEnd); in onItemClick() 9925 updateSpellCheckSpans(spanStart, spanEnd); in onItemClick() 9928 SuggestionSpan[] suggestionSpans = editable.getSpans(spanStart, spanEnd, in onItemClick() 9945 editable.replace(spanStart, spanEnd, suggestion); in onItemClick() [all …]
|
/frameworks/ex/chips/src/com/android/ex/chips/ |
D | RecipientEditTextView.java | 1536 int spanEnd = spannable.getSpanEnd(recipients[i]); in createMoreChip() local 1537 recipients[i].setOriginalText(text.toString().substring(spanStart, spanEnd)); in createMoreChip() 1761 int spanEnd = spannable.getSpanEnd(chip); in removeChip() local 1763 int toDelete = spanEnd; in removeChip()
|