/frameworks/base/core/java/android/text/ |
D | SpanSet.java | 66 final int spanStart = spanned.getSpanStart(span); in init() local 68 if (spanStart == spanEnd) continue; in init() 73 spanStarts[numberOfSpans] = spanStart; in init() 105 final int spanStart = spanStarts[i]; in getNextTransition() local 107 if (spanStart > start && spanStart < limit) limit = spanStart; in getNextTransition()
|
D | SpannableStringBuilder.java | 333 int spanStart = mSpanStarts[i]; in change() local 334 if (spanStart > mGapStart) in change() 335 spanStart -= mGapLength; in change() 342 int ost = spanStart; in change() 346 if (spanStart > start && spanStart <= end) { in change() 347 for (spanStart = end; spanStart < clen; spanStart++) in change() 348 if (spanStart > end && charAt(spanStart - 1) == '\n') in change() 358 if (spanStart != ost || spanEnd != oen) { in change() 359 setSpan(false, mSpans[i], spanStart, spanEnd, mSpanFlags[i], in change() 366 if (spanStart == start) flags |= SPAN_START_AT_START; in change() [all …]
|
D | SpannableStringInternal.java | 106 int spanStart = srcData[i * COLUMNS + START]; in copySpans() local 108 if (isOutOfCopyRange(start, end, spanStart, spanEnd)) continue; in copySpans() 131 int spanStart = srcData[i * COLUMNS + START]; in copySpans() local 133 if (isOutOfCopyRange(start, end, spanStart, spanEnd) in copySpans() 137 if (spanStart < start) spanStart = start; in copySpans() 141 mSpanData[j * COLUMNS + START] = spanStart - start; in copySpans() 155 private final boolean isOutOfCopyRange(int start, int end, int spanStart, int spanEnd) { in isOutOfCopyRange() argument 156 if (spanStart > end || spanEnd < start) return true; in isOutOfCopyRange() 157 if (spanStart != spanEnd && start != end) { in isOutOfCopyRange() 158 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 | 727 int spanStart = runStart; 735 spanLimit = mSpanned.nextSpanTransition(mStart + spanStart, limit, 740 spanStart = spanLimit; 743 MetricAffectingSpan[] spans = mSpanned.getSpans(mStart + spanStart, 761 return after ? spanLimit : spanStart; 768 return wp.getTextRunCursor(mChars, spanStart, spanLimit - spanStart, 771 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 | 625 final int spanStart = editable.getSpanStart(spellCheckSpan); in parse() local 627 if (spanEnd < spellCheckStart || spellCheckEnd < spanStart) { in parse() 631 if (spanStart <= spellCheckStart && spellCheckEnd <= spanEnd) { in parse() 642 spellCheckStart = Math.min(spanStart, spellCheckStart); in parse() 701 final int spanStart = editable.getSpanStart(spellCheckSpans[i]); in parse() local 702 if (spanStart == end) { in parse() 758 final int end, final int spanStart, final int spanEnd) { in haveWordBoundariesChanged() argument 760 if (spanEnd != start && spanStart != end) { in haveWordBoundariesChanged() 771 + ">, " + editable + ", " + editable.subSequence(spanStart, spanEnd) + ", " in haveWordBoundariesChanged() 774 } else if (spanStart == end && end > 0) { in haveWordBoundariesChanged() [all …]
|
D | Editor.java | 2309 final int spanStart = spannable.getSpanStart(suggestionSpans[i]); in shouldOfferToShowSuggestions() local 2311 minSpanStart = Math.min(minSpanStart, spanStart); in shouldOfferToShowSuggestions() 2313 if (selectionStart < spanStart || selectionStart > spanEnd) { in shouldOfferToShowSuggestions() 2320 Math.min(unionOfSpansCoveringSelectionStartStart, spanStart); in shouldOfferToShowSuggestions() 2879 final int spanStart = editable.getSpanStart(targetSuggestionSpan); in replaceWithSuggestion() local 2881 if (spanStart < 0 || spanEnd <= spanStart) { in replaceWithSuggestion() 2886 final String originalText = TextUtils.substring(editable, spanStart, spanEnd); in replaceWithSuggestion() 2888 SuggestionSpan[] suggestionSpans = editable.getSpans(spanStart, spanEnd, in replaceWithSuggestion() 2914 mTextView.replaceText_internal(spanStart, spanEnd, suggestion); in replaceWithSuggestion() 2920 final int lengthDelta = suggestion.length() - (spanEnd - spanStart); in replaceWithSuggestion() [all …]
|
D | TextView.java | 10517 final int spanStart = text.getSpanStart(spans[i]); in removeIntersectingNonAdjacentSpans() local 10519 if (spanEnd == start || spanStart == end) break; in removeIntersectingNonAdjacentSpans() 10531 final int spanStart = text.getSpanStart(spans[i]); in removeAdjacentSuggestionSpans() local 10533 if (spanEnd == pos || spanStart == pos) { in removeAdjacentSuggestionSpans() 10534 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 | 5624 int spanStart = ss.getSpanStart(span); in ensureColorSpanContrast() local 5626 boolean fullLength = (spanEnd - spanStart) == charSequence.length(); in ensureColorSpanContrast() 5669 builder.setSpan(resultSpan, spanStart, spanEnd, ss.getSpanFlags(span)); in ensureColorSpanContrast()
|