/frameworks/base/core/java/android/text/ |
D | SpanSet.java | 67 final int spanStart = spanned.getSpanStart(span); in init() local 69 if (spanStart == spanEnd) continue; in init() 74 spanStarts[numberOfSpans] = spanStart; in init() 106 final int spanStart = spanStarts[i]; in getNextTransition() local 108 if (spanStart > start && spanStart < limit) limit = spanStart; in getNextTransition()
|
D | SpannableStringBuilder.java | 334 int spanStart = mSpanStarts[i]; in change() local 335 if (spanStart > mGapStart) in change() 336 spanStart -= mGapLength; in change() 343 int ost = spanStart; in change() 347 if (spanStart > start && spanStart <= end) { in change() 348 for (spanStart = end; spanStart < clen; spanStart++) in change() 349 if (spanStart > end && charAt(spanStart - 1) == '\n') in change() 359 if (spanStart != ost || spanEnd != oen) { in change() 360 setSpan(false, mSpans[i], spanStart, spanEnd, mSpanFlags[i], in change() 367 if (spanStart == start) flags |= SPAN_START_AT_START; in change() [all …]
|
D | SpannableStringInternal.java | 109 int spanStart = srcData[i * COLUMNS + START]; in copySpansFromInternal() local 111 if (isOutOfCopyRange(start, end, spanStart, spanEnd)) continue; in copySpansFromInternal() 134 int spanStart = srcData[i * COLUMNS + START]; in copySpansFromInternal() local 136 if (isOutOfCopyRange(start, end, spanStart, spanEnd) in copySpansFromInternal() 140 if (spanStart < start) spanStart = start; in copySpansFromInternal() 144 mSpanData[j * COLUMNS + START] = spanStart - 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 …]
|
D | MeasuredParagraph.java | 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() 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()
|
D | TextLine.java | 783 int spanStart = runStart; 791 spanLimit = mSpanned.nextSpanTransition(mStart + spanStart, limit, 796 spanStart = spanLimit; 799 MetricAffectingSpan[] spans = mSpanned.getSpans(mStart + spanStart, 817 return after ? spanLimit : spanStart; 824 return wp.getTextRunCursor(mChars, spanStart, spanLimit - spanStart, 827 return wp.getTextRunCursor(mText, mStart + spanStart,
|
D | StaticLayout.java | 822 for (int spanStart = paraStart, spanEnd; spanStart < paraEnd; spanStart = spanEnd) { in generate() 847 while (breakIndex < breakCount && paraStart + breaks[breakIndex] < spanStart) { in generate()
|
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/span/ |
D | SpanHelper.java | 31 final int spanStart = spannable.getSpanStart(oldSpan); in replaceSpan() local 34 spannable.setSpan(newSpan, spanStart, spanEnd, 0); in replaceSpan()
|
/frameworks/base/core/java/android/widget/ |
D | SpellChecker.java | 714 final int spanStart = editable.getSpanStart(spellCheckSpan); in parse() local 716 if (spanEnd < spellCheckStart || spellCheckEnd < spanStart) { in parse() 720 if (spanStart <= spellCheckStart && spellCheckEnd <= spanEnd) { in parse() 731 spellCheckStart = Math.min(spanStart, spellCheckStart); in parse() 865 final int end, final int spanStart, final int spanEnd) { 867 if (spanEnd != start && spanStart != end) { 878 + ">, " + editable + ", " + editable.subSequence(spanStart, spanEnd) + ", " 881 } else if (spanStart == end && end > 0) { 887 + ">, " + editable + ", " + editable.subSequence(spanStart, spanEnd) + ", "
|
D | Editor.java | 2543 final int spanStart = spannable.getSpanStart(suggestionSpans[i]); in shouldOfferToShowSuggestions() local 2545 minSpanStart = Math.min(minSpanStart, spanStart); in shouldOfferToShowSuggestions() 2547 if (selectionStart < spanStart || selectionStart > spanEnd) { in shouldOfferToShowSuggestions() 2554 Math.min(unionOfSpansCoveringSelectionStartStart, spanStart); in shouldOfferToShowSuggestions() 3110 final int spanStart = editable.getSpanStart(targetSuggestionSpan); in replaceWithSuggestion() local 3112 if (spanStart < 0 || spanEnd <= spanStart) { in replaceWithSuggestion() 3117 final String originalText = TextUtils.substring(editable, spanStart, spanEnd); in replaceWithSuggestion() 3119 SuggestionSpan[] suggestionSpans = editable.getSpans(spanStart, spanEnd, in replaceWithSuggestion() 3146 mTextView.replaceText_internal(spanStart, spanEnd, suggestion); in replaceWithSuggestion() 3152 final int lengthDelta = suggestion.length() - (spanEnd - spanStart); in replaceWithSuggestion() [all …]
|
D | TextView.java | 10753 final int spanStart = text.getSpanStart(span); in removeIntersectingNonAdjacentSpans() local 10755 if (spanEnd == start || spanStart == end) continue; in removeIntersectingNonAdjacentSpans() 10770 final int spanStart = text.getSpanStart(spans[i]); in removeAdjacentSuggestionSpans() local 10772 if (spanEnd == pos || spanStart == pos) { in removeAdjacentSuggestionSpans() 10773 if (SpellChecker.haveWordBoundariesChanged(text, pos, pos, spanStart, spanEnd)) { in removeAdjacentSuggestionSpans()
|
/frameworks/base/apct-tests/perftests/core/src/android/text/ |
D | TextPerfUtils.java | 109 final int spanStart = prevWordStart; in nextRandomParagraph() local 118 ssb.setSpan(span, spanStart, spanEnd, Spanned.SPAN_INCLUSIVE_EXCLUSIVE); in nextRandomParagraph()
|
/frameworks/opt/setupwizard/library/gingerbread/src/com/android/setupwizardlib/util/ |
D | LinkAccessibilityHelper.java | 262 final int spanStart = spannedText.getSpanStart(span); in getBoundsForSpan() local 264 final float xStart = layout.getPrimaryHorizontal(spanStart); in getBoundsForSpan() 266 final int lineStart = layout.getLineForOffset(spanStart); in getBoundsForSpan()
|
/frameworks/opt/chips/src/com/android/ex/chips/ |
D | RecipientEditTextView.java | 2462 int spanStart = spannable.getSpanStart(recipients[i]); in createMoreChip() local 2464 recipients[i].setOriginalText(text.toString().substring(spanStart, spanEnd)); in createMoreChip() 2541 int spanStart = spannable.getSpanStart(currentChip); in selectChip() local 2545 if (spanEnd - spanStart == editable.length() - 1) { in selectChip() 2548 editable.delete(spanStart, spanEnd); in selectChip() 2699 int spanStart = spannable.getSpanStart(chip); in removeChip() local 2713 if (spanStart >= 0 && toDelete > 0) { in removeChip() 2714 text.delete(spanStart, toDelete); in removeChip()
|
/frameworks/base/core/java/android/app/ |
D | Notification.java | 6188 int spanStart = ss.getSpanStart(span); in ensureColorSpanContrast() local 6190 boolean fullLength = (spanEnd - spanStart) == charSequence.length(); in ensureColorSpanContrast() 6235 builder.setSpan(resultSpan, spanStart, spanEnd, ss.getSpanFlags(span)); in ensureColorSpanContrast()
|