/frameworks/base/core/java/android/text/ |
D | SpanSet.java | 64 final int spanEnd = spanned.getSpanEnd(span); in init() local 65 if (spanStart == spanEnd) continue; in init() 71 spanEnds[numberOfSpans] = spanEnd; in init() 103 final int spanEnd = spanEnds[i]; in getNextTransition() local 105 if (spanEnd > start && spanEnd < limit) limit = spanEnd; in getNextTransition()
|
D | SpannableStringInternal.java | 93 int spanEnd = srcData[i * COLUMNS + END]; in copySpans() local 94 if (isOutOfCopyRange(start, end, spanStart, spanEnd)) continue; in copySpans() 106 int spanEnd = srcData[i * COLUMNS + END]; in copySpans() local 107 if (isOutOfCopyRange(start, end, spanStart, spanEnd)) continue; in copySpans() 109 if (spanEnd > end) spanEnd = end; in copySpans() 113 mSpanData[j * COLUMNS + END] = spanEnd - start; in copySpans() 125 private final boolean isOutOfCopyRange(int start, int end, int spanStart, int spanEnd) { in isOutOfCopyRange() argument 126 if (spanStart > end || spanEnd < start) return true; in isOutOfCopyRange() 127 if (spanStart != spanEnd && start != end) { in isOutOfCopyRange() 128 if (spanStart == end || spanEnd == start) return true; in isOutOfCopyRange() [all …]
|
D | SpannableStringBuilder.java | 336 int spanEnd = mSpanEnds[i]; in change() local 337 if (spanEnd > mGapStart) in change() 338 spanEnd -= mGapLength; in change() 342 int oen = spanEnd; in change() 351 if (spanEnd > start && spanEnd <= end) { in change() 352 for (spanEnd = end; spanEnd < clen; spanEnd++) in change() 353 if (spanEnd > end && charAt(spanEnd - 1) == '\n') in change() 357 if (spanStart != ost || spanEnd != oen) { in change() 358 setSpan(false, mSpans[i], spanStart, spanEnd, mSpanFlags[i]); in change() 366 if (spanEnd == start) flags |= SPAN_END_AT_START; in change() [all …]
|
D | StaticLayout.java | 703 for (int spanStart = paraStart, spanEnd; spanStart < paraEnd; spanStart = spanEnd) { 717 spanEnd = paraEnd; 718 int spanLen = spanEnd - spanStart; 721 spanEnd = spanned.nextSpanTransition(spanStart, paraEnd, 723 int spanLen = spanEnd - spanStart; 725 spanned.getSpans(spanStart, spanEnd, MetricAffectingSpan.class); 738 spanEndCache[spanEndCacheCount] = spanEnd; 785 for (int spanStart = paraStart, spanEnd; spanStart < paraEnd; spanStart = spanEnd) { 787 spanEnd = spanEndCache[spanEndCacheIndex++]; 814 while (breakIndex < breakCount && paraStart + breaks[breakIndex] <= spanEnd) { [all …]
|
D | Layout.java | 258 int spanEnd = 0; in drawText() local 299 if (start >= spanEnd && (lineNum == firstLine || isFirstParaLine)) { in drawText() 300 spanEnd = sp.nextSpanTransition(start, textLength, in drawText() 302 spans = getParagraphSpans(sp, start, spanEnd, ParagraphStyle.class); in drawText() 431 int spanEnd = 0; in drawBackground() local 443 if (start >= spanEnd) { in drawBackground() 446 spanEnd = mLineBackgroundSpans.getNextTransition(start, textLength); in drawBackground() 543 int spanEnd = spanned.nextSpanTransition(start, spanned.length(), in getLineStartPos() local 545 TabStopSpan[] tabSpans = getParagraphSpans(spanned, start, spanEnd, in getLineStartPos() 1650 int spanEnd = spanned.nextSpanTransition(lineStart, lineEnd, in getParagraphLeadingMargin() local [all …]
|
D | TextUtils.java | 1292 int spanEnd; in setPara() local 1293 for (int spanStart = 0; spanStart < len; spanStart = spanEnd) { in setPara() 1294 spanEnd = sp.nextSpanTransition(spanStart, len, in setPara() 1297 spanStart, spanEnd, MetricAffectingSpan.class); in setPara() 1299 width += mt.addStyleRun(paint, spans, spanEnd - spanStart, null); in setPara()
|
/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 | 622 final int spanEnd = editable.getSpanEnd(spellCheckSpan); in parse() local 623 if (spanEnd < spellCheckStart || spellCheckEnd < spanStart) { in parse() 627 if (spanStart <= spellCheckStart && spellCheckEnd <= spanEnd) { in parse() 639 spellCheckEnd = Math.max(spanEnd, spellCheckEnd); in parse() 687 final int spanEnd = editable.getSpanEnd(spellCheckSpans[i]); in parse() local 688 if (spanEnd == start) { in parse() 754 final int end, final int spanStart, final int spanEnd) { in haveWordBoundariesChanged() argument 756 if (spanEnd != start && spanStart != end) { in haveWordBoundariesChanged() 761 } else if (spanEnd == start && start < editable.length()) { in haveWordBoundariesChanged() 767 + ">, " + editable + ", " + editable.subSequence(spanStart, spanEnd) + ", " in haveWordBoundariesChanged() [all …]
|
D | Editor.java | 2060 final int spanEnd = spannable.getSpanEnd(suggestionSpans[i]); in shouldOfferToShowSuggestions() local 2062 maxSpanEnd = Math.max(maxSpanEnd, spanEnd); in shouldOfferToShowSuggestions() 2063 if (selectionStart < spanStart || selectionStart > spanEnd) { in shouldOfferToShowSuggestions() 2072 Math.max(unionOfSpansCoveringSelectionStartEnd, spanEnd); in shouldOfferToShowSuggestions() 2604 final int spanEnd = editable.getSpanEnd(targetSuggestionSpan); in replaceWithSuggestion() local 2605 if (spanStart < 0 || spanEnd <= spanStart) { in replaceWithSuggestion() 2610 final String originalText = TextUtils.substring(editable, spanStart, spanEnd); in replaceWithSuggestion() 2612 SuggestionSpan[] suggestionSpans = editable.getSpans(spanStart, spanEnd, in replaceWithSuggestion() 2642 mTextView.replaceText_internal(spanStart, spanEnd, suggestion); in replaceWithSuggestion() 2648 final int lengthDelta = suggestion.length() - (spanEnd - spanStart); in replaceWithSuggestion() [all …]
|
D | TextView.java | 8155 final int spanEnd = text.getSpanEnd(spans[i]); in removeIntersectingNonAdjacentSpans() local 8156 if (spanEnd == start || spanStart == end) break; in removeIntersectingNonAdjacentSpans() 8169 final int spanEnd = text.getSpanEnd(spans[i]); in removeAdjacentSuggestionSpans() local 8170 if (spanEnd == pos || spanStart == pos) { in removeAdjacentSuggestionSpans() 8171 if (SpellChecker.haveWordBoundariesChanged(text, pos, pos, spanStart, spanEnd)) { in removeAdjacentSuggestionSpans()
|
/frameworks/opt/setupwizard/library/eclair-mr1/src/com/android/setupwizardlib/util/ |
D | LinkAccessibilityHelper.java | 176 final int spanEnd = spannedText.getSpanEnd(span); in getBoundsForSpan() local 178 final float xEnd = layout.getPrimaryHorizontal(spanEnd); in getBoundsForSpan() 180 final int lineEnd = layout.getLineForOffset(spanEnd); in getBoundsForSpan()
|
/frameworks/base/tools/aapt2/ |
D | StringPool.cpp | 381 uint32_t* spanEnd = out->nextBlock<uint32_t>(); in flatten() local 382 *spanEnd = android::ResStringPool_span::END; in flatten()
|
/frameworks/opt/chips/src/com/android/ex/chips/ |
D | RecipientEditTextView.java | 2450 int spanEnd = spannable.getSpanEnd(recipients[i]); in createMoreChip() local 2451 recipients[i].setOriginalText(text.toString().substring(spanStart, spanEnd)); in createMoreChip() 2529 int spanEnd = spannable.getSpanEnd(currentChip); in selectChip() local 2532 if (spanEnd - spanStart == editable.length() - 1) { in selectChip() 2533 spanEnd++; in selectChip() 2535 editable.delete(spanStart, spanEnd); in selectChip() 2687 int spanEnd = spannable.getSpanEnd(chip); in removeChip() local 2689 int toDelete = spanEnd; in removeChip()
|
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/ |
D | StaggeredGridLayoutManager.java | 1848 final int spanEnd = mSpans[i].getEndLine(def); 1849 if (spanEnd > maxEnd) { 1850 maxEnd = spanEnd; 1859 final int spanEnd = mSpans[i].getEndLine(def); 1860 if (spanEnd < minEnd) { 1861 minEnd = spanEnd;
|
/frameworks/base/core/java/android/app/ |
D | Notification.java | 3810 int spanEnd = ss.getSpanEnd(span); in ensureColorSpanContrast() local 3811 boolean fullLength = (spanEnd - spanStart) == charSequence.length(); in ensureColorSpanContrast() 3851 builder.setSpan(resultSpan, spanStart, spanEnd, ss.getSpanFlags(span)); in ensureColorSpanContrast()
|