/frameworks/base/core/java/android/text/ |
D | SpanSet.java | 67 final int spanEnd = spanned.getSpanEnd(span); in init() local 68 if (spanStart == spanEnd) continue; in init() 74 spanEnds[numberOfSpans] = spanEnd; in init() 106 final int spanEnd = spanEnds[i]; in getNextTransition() local 108 if (spanEnd > start && spanEnd < limit) limit = spanEnd; in getNextTransition()
|
D | SpannableStringBuilder.java | 337 int spanEnd = mSpanEnds[i]; in change() local 338 if (spanEnd > mGapStart) in change() 339 spanEnd -= mGapLength; in change() 343 int oen = spanEnd; in change() 352 if (spanEnd > start && spanEnd <= end) { in change() 353 for (spanEnd = end; spanEnd < clen; spanEnd++) in change() 354 if (spanEnd > end && charAt(spanEnd - 1) == '\n') in change() 358 if (spanStart != ost || spanEnd != oen) { in change() 359 setSpan(false, mSpans[i], spanStart, spanEnd, mSpanFlags[i], in change() 368 if (spanEnd == start) flags |= SPAN_END_AT_START; in change() [all …]
|
D | SpannableStringInternal.java | 108 int spanEnd = srcData[i * COLUMNS + END]; in copySpansFromInternal() local 109 if (isOutOfCopyRange(start, end, spanStart, spanEnd)) continue; in copySpansFromInternal() 133 int spanEnd = srcData[i * COLUMNS + END]; in copySpansFromInternal() local 134 if (isOutOfCopyRange(start, end, spanStart, spanEnd) in copySpansFromInternal() 139 if (spanEnd > end) spanEnd = end; in copySpansFromInternal() 143 mSpanData[j * COLUMNS + END] = spanEnd - start; in copySpansFromInternal() 156 private final boolean isOutOfCopyRange(int start, int end, int spanStart, int spanEnd) { in isOutOfCopyRange() argument 157 if (spanStart > end || spanEnd < start) return true; in isOutOfCopyRange() 158 if (spanStart != spanEnd && start != end) { in isOutOfCopyRange() 159 if (spanStart == end || spanEnd == start) return true; in isOutOfCopyRange() [all …]
|
D | MeasuredParagraph.java | 356 int spanEnd; in buildForMeasurement() local 357 for (int spanStart = start; spanStart < end; spanStart = spanEnd) { in buildForMeasurement() 358 spanEnd = mt.mSpanned.nextSpanTransition(spanStart, end, MetricAffectingSpan.class); in buildForMeasurement() 359 MetricAffectingSpan[] spans = mt.mSpanned.getSpans(spanStart, spanEnd, in buildForMeasurement() 363 paint, spans, spanStart, spanEnd, null /* native builder ptr */); in buildForMeasurement() 419 int spanEnd; in buildForStaticLayout() local 420 for (int spanStart = start; spanStart < end; spanStart = spanEnd) { in buildForStaticLayout() 421 spanEnd = mt.mSpanned.nextSpanTransition(spanStart, end, in buildForStaticLayout() 423 MetricAffectingSpan[] spans = mt.mSpanned.getSpans(spanStart, spanEnd, in buildForStaticLayout() 427 mt.applyMetricsAffectingSpan(paint, spans, spanStart, spanEnd, builder); in buildForStaticLayout() [all …]
|
D | Layout.java | 349 final int spanEnd = sp.nextSpanTransition(start, mText.length(), in getJustifyWidth() local 351 spans = getParagraphSpans(sp, start, spanEnd, ParagraphStyle.class); in getJustifyWidth() 422 int spanEnd = 0; in drawText() local 467 if (start >= spanEnd && (lineNum == firstLine || isFirstParaLine)) { in drawText() 468 spanEnd = sp.nextSpanTransition(start, textLength, in drawText() 470 spans = getParagraphSpans(sp, start, spanEnd, ParagraphStyle.class); in drawText() 608 int spanEnd = 0; in drawBackground() local 620 if (end >= spanEnd) { in drawBackground() 623 spanEnd = mLineBackgroundSpans.getNextTransition(start, textLength); in drawBackground() 721 int spanEnd = spanned.nextSpanTransition(start, spanned.length(), in getLineStartPos() local [all …]
|
D | StaticLayout.java | 822 for (int spanStart = paraStart, spanEnd; spanStart < paraEnd; spanStart = spanEnd) { in generate() 824 spanEnd = spanEndCache[spanEndCacheIndex++]; in generate() 851 while (breakIndex < breakCount && paraStart + breaks[breakIndex] <= spanEnd) { in generate() 871 if (endPos < spanEnd) { in generate()
|
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/span/ |
D | SpanHelper.java | 32 final int spanEnd = spannable.getSpanEnd(oldSpan); in replaceSpan() local 34 spannable.setSpan(newSpan, spanStart, spanEnd, 0); in replaceSpan()
|
/frameworks/base/core/java/android/widget/ |
D | SpellChecker.java | 626 final int spanEnd = editable.getSpanEnd(spellCheckSpan); in parse() local 627 if (spanEnd < spellCheckStart || spellCheckEnd < spanStart) { in parse() 631 if (spanStart <= spellCheckStart && spellCheckEnd <= spanEnd) { in parse() 643 spellCheckEnd = Math.max(spanEnd, spellCheckEnd); in parse() 691 final int spanEnd = editable.getSpanEnd(spellCheckSpans[i]); in parse() local 692 if (spanEnd == start) { in parse() 758 final int end, final int spanStart, final int spanEnd) { in haveWordBoundariesChanged() argument 760 if (spanEnd != start && spanStart != end) { in haveWordBoundariesChanged() 765 } else if (spanEnd == start && start < editable.length()) { in haveWordBoundariesChanged() 771 + ">, " + editable + ", " + editable.subSequence(spanStart, spanEnd) + ", " in haveWordBoundariesChanged() [all …]
|
D | Editor.java | 2447 final int spanEnd = spannable.getSpanEnd(suggestionSpans[i]); in shouldOfferToShowSuggestions() local 2449 maxSpanEnd = Math.max(maxSpanEnd, spanEnd); in shouldOfferToShowSuggestions() 2450 if (selectionStart < spanStart || selectionStart > spanEnd) { in shouldOfferToShowSuggestions() 2459 Math.max(unionOfSpansCoveringSelectionStartEnd, spanEnd); in shouldOfferToShowSuggestions() 3026 final int spanEnd = editable.getSpanEnd(targetSuggestionSpan); in replaceWithSuggestion() local 3027 if (spanStart < 0 || spanEnd <= spanStart) { in replaceWithSuggestion() 3032 final String originalText = TextUtils.substring(editable, spanStart, spanEnd); in replaceWithSuggestion() 3034 SuggestionSpan[] suggestionSpans = editable.getSpans(spanStart, spanEnd, in replaceWithSuggestion() 3060 mTextView.replaceText_internal(spanStart, spanEnd, suggestion); in replaceWithSuggestion() 3066 final int lengthDelta = suggestion.length() - (spanEnd - spanStart); in replaceWithSuggestion() [all …]
|
D | TextView.java | 10546 final int spanEnd = text.getSpanEnd(spans[i]); in removeIntersectingNonAdjacentSpans() local 10547 if (spanEnd == start || spanStart == end) break; in removeIntersectingNonAdjacentSpans() 10560 final int spanEnd = text.getSpanEnd(spans[i]); in removeAdjacentSuggestionSpans() local 10561 if (spanEnd == pos || spanStart == pos) { in removeAdjacentSuggestionSpans() 10562 if (SpellChecker.haveWordBoundariesChanged(text, pos, pos, spanStart, spanEnd)) { in removeAdjacentSuggestionSpans()
|
/frameworks/base/apct-tests/perftests/core/src/android/text/ |
D | TextPerfUtils.java | 110 final int spanEnd = wordOffsets.get(i); in nextRandomParagraph() local 118 ssb.setSpan(span, spanStart, spanEnd, Spanned.SPAN_INCLUSIVE_EXCLUSIVE); in nextRandomParagraph() 119 prevWordStart = spanEnd; in nextRandomParagraph()
|
/frameworks/opt/setupwizard/library/gingerbread/src/com/android/setupwizardlib/util/ |
D | LinkAccessibilityHelper.java | 263 final int spanEnd = spannedText.getSpanEnd(span); in getBoundsForSpan() local 265 final float xEnd = layout.getPrimaryHorizontal(spanEnd); in getBoundsForSpan() 267 final int lineEnd = layout.getLineForOffset(spanEnd); in getBoundsForSpan()
|
/frameworks/base/tools/aapt2/ |
D | StringPool.cpp | 485 uint32_t* spanEnd = out->NextBlock<uint32_t>(); in Flatten() local 486 *spanEnd = android::ResStringPool_span::END; in Flatten()
|
/frameworks/opt/chips/src/com/android/ex/chips/ |
D | RecipientEditTextView.java | 2463 int spanEnd = spannable.getSpanEnd(recipients[i]); in createMoreChip() local 2464 recipients[i].setOriginalText(text.toString().substring(spanStart, spanEnd)); in createMoreChip() 2542 int spanEnd = spannable.getSpanEnd(currentChip); in selectChip() local 2545 if (spanEnd - spanStart == editable.length() - 1) { in selectChip() 2546 spanEnd++; in selectChip() 2548 editable.delete(spanStart, spanEnd); in selectChip() 2700 int spanEnd = spannable.getSpanEnd(chip); in removeChip() local 2702 int toDelete = spanEnd; in removeChip()
|
/frameworks/base/core/java/android/app/ |
D | Notification.java | 5756 int spanEnd = ss.getSpanEnd(span); in ensureColorSpanContrast() local 5757 boolean fullLength = (spanEnd - spanStart) == charSequence.length(); in ensureColorSpanContrast() 5800 builder.setSpan(resultSpan, spanStart, spanEnd, ss.getSpanFlags(span)); in ensureColorSpanContrast()
|