Home
last modified time | relevance | path

Searched refs:spanEnd (Results 1 – 15 of 15) sorted by relevance

/frameworks/base/core/java/android/text/
DSpanSet.java68 final int spanEnd = spanned.getSpanEnd(span); in init() local
69 if (spanStart == spanEnd) continue; in init()
75 spanEnds[numberOfSpans] = spanEnd; in init()
107 final int spanEnd = spanEnds[i]; in getNextTransition() local
109 if (spanEnd > start && spanEnd < limit) limit = spanEnd; in getNextTransition()
DSpannableStringBuilder.java338 int spanEnd = mSpanEnds[i]; in change() local
339 if (spanEnd > mGapStart) in change()
340 spanEnd -= mGapLength; in change()
344 int oen = spanEnd; in change()
353 if (spanEnd > start && spanEnd <= end) { in change()
354 for (spanEnd = end; spanEnd < clen; spanEnd++) in change()
355 if (spanEnd > end && charAt(spanEnd - 1) == '\n') in change()
359 if (spanStart != ost || spanEnd != oen) { in change()
360 setSpan(false, mSpans[i], spanStart, spanEnd, mSpanFlags[i], in change()
369 if (spanEnd == start) flags |= SPAN_END_AT_START; in change()
[all …]
DSpannableStringInternal.java110 int spanEnd = srcData[i * COLUMNS + END]; in copySpansFromInternal() local
111 if (isOutOfCopyRange(start, end, spanStart, spanEnd)) continue; in copySpansFromInternal()
135 int spanEnd = srcData[i * COLUMNS + END]; in copySpansFromInternal() local
136 if (isOutOfCopyRange(start, end, spanStart, spanEnd) in copySpansFromInternal()
141 if (spanEnd > end) spanEnd = end; in copySpansFromInternal()
145 mSpanData[j * COLUMNS + END] = spanEnd - start; in copySpansFromInternal()
158 private final boolean isOutOfCopyRange(int start, int end, int spanStart, int spanEnd) { in isOutOfCopyRange() argument
159 if (spanStart > end || spanEnd < start) return true; in isOutOfCopyRange()
160 if (spanStart != spanEnd && start != end) { in isOutOfCopyRange()
161 if (spanStart == end || spanEnd == start) return true; in isOutOfCopyRange()
[all …]
DMeasuredParagraph.java368 int spanEnd; in buildForMeasurement() local
369 for (int spanStart = start; spanStart < end; spanStart = spanEnd) { in buildForMeasurement()
370 spanEnd = mt.mSpanned.nextSpanTransition(spanStart, end, MetricAffectingSpan.class); in buildForMeasurement()
371 MetricAffectingSpan[] spans = mt.mSpanned.getSpans(spanStart, spanEnd, in buildForMeasurement()
375 paint, null /* line break config */, spans, spanStart, spanEnd, in buildForMeasurement()
435 int spanEnd; in buildForStaticLayout() local
436 for (int spanStart = start; spanStart < end; spanStart = spanEnd) { in buildForStaticLayout()
437 spanEnd = mt.mSpanned.nextSpanTransition(spanStart, end, in buildForStaticLayout()
439 MetricAffectingSpan[] spans = mt.mSpanned.getSpans(spanStart, spanEnd, in buildForStaticLayout()
444 mt.applyMetricsAffectingSpan(paint, lineBreakConfig, spans, spanStart, spanEnd, in buildForStaticLayout()
[all …]
DLayout.java371 final int spanEnd = sp.nextSpanTransition(start, mText.length(), in getJustifyWidth() local
373 spans = getParagraphSpans(sp, start, spanEnd, ParagraphStyle.class); in getJustifyWidth()
444 int spanEnd = 0; in drawText() local
489 if (start >= spanEnd && (lineNum == firstLine || isFirstParaLine)) { in drawText()
490 spanEnd = sp.nextSpanTransition(start, textLength, in drawText()
492 spans = getParagraphSpans(sp, start, spanEnd, ParagraphStyle.class); in drawText()
631 int spanEnd = 0; in drawBackground() local
643 if (end >= spanEnd) { in drawBackground()
646 spanEnd = mLineBackgroundSpans.getNextTransition(start, textLength); in drawBackground()
744 int spanEnd = spanned.nextSpanTransition(start, spanned.length(), in getLineStartPos() local
[all …]
DStaticLayout.java856 for (int spanStart = paraStart, spanEnd; spanStart < paraEnd; spanStart = spanEnd) { in generate()
858 spanEnd = spanEndCache[spanEndCacheIndex++]; in generate()
885 while (breakIndex < breakCount && paraStart + breaks[breakIndex] <= spanEnd) { in generate()
917 if (endPos < spanEnd) { in generate()
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/span/
DSpanHelper.java32 final int spanEnd = spannable.getSpanEnd(oldSpan); in replaceSpan() local
34 spannable.setSpan(newSpan, spanStart, spanEnd, 0); in replaceSpan()
/frameworks/base/apct-tests/perftests/core/src/android/text/
DTextPerfUtils.java110 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/base/core/java/android/widget/
DSpellChecker.java732 final int spanEnd = editable.getSpanEnd(spellCheckSpan); in parse() local
733 if (spanEnd < spellCheckStart || spellCheckEnd < spanStart) { in parse()
737 if (spanStart <= spellCheckStart && spellCheckEnd <= spanEnd) { in parse()
749 spellCheckEnd = Math.max(spanEnd, spellCheckEnd); in parse()
882 final int end, final int spanStart, final int spanEnd) {
884 if (spanEnd != start && spanStart != end) {
889 } else if (spanEnd == start && start < editable.length()) {
895 + ">, " + editable + ", " + editable.subSequence(spanStart, spanEnd) + ", "
904 + ">, " + editable + ", " + editable.subSequence(spanStart, spanEnd) + ", "
DEditor.java2585 final int spanEnd = spannable.getSpanEnd(suggestionSpans[i]); in shouldOfferToShowSuggestions() local
2587 maxSpanEnd = Math.max(maxSpanEnd, spanEnd); in shouldOfferToShowSuggestions()
2588 if (selectionStart < spanStart || selectionStart > spanEnd) { in shouldOfferToShowSuggestions()
2597 Math.max(unionOfSpansCoveringSelectionStartEnd, spanEnd); in shouldOfferToShowSuggestions()
3165 final int spanEnd = editable.getSpanEnd(targetSuggestionSpan); in replaceWithSuggestion() local
3166 if (spanStart < 0 || spanEnd <= spanStart) { in replaceWithSuggestion()
3171 final String originalText = TextUtils.substring(editable, spanStart, spanEnd); in replaceWithSuggestion()
3173 SuggestionSpan[] suggestionSpans = editable.getSpans(spanStart, spanEnd, in replaceWithSuggestion()
3200 mTextView.replaceText_internal(spanStart, spanEnd, suggestion); in replaceWithSuggestion()
3206 final int lengthDelta = suggestion.length() - (spanEnd - spanStart); in replaceWithSuggestion()
[all …]
DTextView.java11030 final int spanEnd = text.getSpanEnd(span); in removeIntersectingNonAdjacentSpans() local
11031 if (spanEnd == start || spanStart == end) continue; in removeIntersectingNonAdjacentSpans()
11047 final int spanEnd = text.getSpanEnd(spans[i]); in removeAdjacentSuggestionSpans() local
11048 if (spanEnd == pos || spanStart == pos) { in removeAdjacentSuggestionSpans()
11049 if (SpellChecker.haveWordBoundariesChanged(text, pos, pos, spanStart, spanEnd)) { in removeAdjacentSuggestionSpans()
/frameworks/opt/setupwizard/library/gingerbread/src/com/android/setupwizardlib/util/
DLinkAccessibilityHelper.java263 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/
DStringPool.cpp485 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/
DRecipientEditTextView.java2463 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/
DNotification.java6325 int spanEnd = ss.getSpanEnd(span); in getFullLengthSpanColor() local
6326 boolean fullLength = (spanEnd - spanStart) == charSequence.length(); in getFullLengthSpanColor()
6364 int spanEnd = ss.getSpanEnd(span); in ensureColorSpanContrast() local
6365 boolean fullLength = (spanEnd - spanStart) == charSequence.length(); in ensureColorSpanContrast()
6409 builder.setSpan(resultSpan, spanStart, spanEnd, ss.getSpanFlags(span)); in ensureColorSpanContrast()