/frameworks/base/core/java/android/text/ |
D | SpanSet.java | 63 final int spanStart = spanned.getSpanStart(span); in init() local 65 if (spanStart == spanEnd) continue; in init() 70 spanStarts[numberOfSpans] = spanStart; in init() 102 final int spanStart = spanStarts[i]; in getNextTransition() local 104 if (spanStart > start && spanStart < limit) limit = spanStart; in getNextTransition()
|
D | SpannableStringInternal.java | 92 int spanStart = srcData[i * COLUMNS + START]; in copySpans() local 94 if (isOutOfCopyRange(start, end, spanStart, spanEnd)) continue; in copySpans() 105 int spanStart = srcData[i * COLUMNS + START]; in copySpans() local 107 if (isOutOfCopyRange(start, end, spanStart, spanEnd)) continue; in copySpans() 108 if (spanStart < start) spanStart = start; in copySpans() 112 mSpanData[j * COLUMNS + START] = spanStart - 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 | 332 int spanStart = mSpanStarts[i]; in change() local 333 if (spanStart > mGapStart) in change() 334 spanStart -= mGapLength; in change() 341 int ost = spanStart; in change() 345 if (spanStart > start && spanStart <= end) { in change() 346 for (spanStart = end; spanStart < clen; spanStart++) in change() 347 if (spanStart > end && charAt(spanStart - 1) == '\n') in change() 357 if (spanStart != ost || spanEnd != oen) { in change() 358 setSpan(false, mSpans[i], spanStart, spanEnd, mSpanFlags[i], in change() 365 if (spanStart == start) flags |= SPAN_START_AT_START; in change() [all …]
|
D | StaticLayout.java | 721 for (int spanStart = paraStart, spanEnd; spanStart < paraEnd; spanStart = spanEnd) { 736 int spanLen = spanEnd - spanStart; 739 spanEnd = spanned.nextSpanTransition(spanStart, paraEnd, 741 int spanLen = spanEnd - spanStart; 743 spanned.getSpans(spanStart, spanEnd, MetricAffectingSpan.class); 803 for (int spanStart = paraStart, spanEnd; spanStart < paraEnd; spanStart = spanEnd) { 828 while (breakIndex < breakCount && paraStart + breaks[breakIndex] < spanStart) {
|
D | TextLine.java | 623 int spanStart = runStart; in getOffsetBeforeAfter() local 631 spanLimit = mSpanned.nextSpanTransition(mStart + spanStart, limit, in getOffsetBeforeAfter() 636 spanStart = spanLimit; in getOffsetBeforeAfter() 639 MetricAffectingSpan[] spans = mSpanned.getSpans(mStart + spanStart, in getOffsetBeforeAfter() 657 return after ? spanLimit : spanStart; in getOffsetBeforeAfter() 665 return wp.getTextRunCursor(mChars, spanStart, spanLimit - spanStart, in getOffsetBeforeAfter() 668 return wp.getTextRunCursor(mText, mStart + spanStart, in getOffsetBeforeAfter()
|
D | TextUtils.java | 1415 for (int spanStart = 0; spanStart < len; spanStart = spanEnd) { in setPara() 1416 spanEnd = sp.nextSpanTransition(spanStart, len, in setPara() 1419 spanStart, spanEnd, MetricAffectingSpan.class); in setPara() 1421 width += mt.addStyleRun(paint, spans, spanEnd - spanStart, null); in setPara()
|
/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/support/emoji/core/src/android/support/text/emoji/ |
D | EmojiProcessor.java | 172 final int spanStart = spannable.getSpanStart(span); in process() local 178 if (spanStart != end) { in process() 181 start = Math.min(spanStart, start); in process() 314 final int spanStart = content.getSpanStart(span); in delete() local 316 if ((forwardDelete && spanStart == start) in delete() 318 || (start > spanStart && start < spanEnd)) { in delete() 319 content.delete(spanStart, spanEnd); in delete() 385 int spanStart = editable.getSpanStart(span); in handleDeleteSurroundingText() local 387 start = Math.min(spanStart, start); in handleDeleteSurroundingText()
|
/frameworks/base/core/java/android/widget/ |
D | SpellChecker.java | 622 final int spanStart = editable.getSpanStart(spellCheckSpan); in parse() local 624 if (spanEnd < spellCheckStart || spellCheckEnd < spanStart) { in parse() 628 if (spanStart <= spellCheckStart && spellCheckEnd <= spanEnd) { in parse() 639 spellCheckStart = Math.min(spanStart, spellCheckStart); in parse() 698 final int spanStart = editable.getSpanStart(spellCheckSpans[i]); in parse() local 699 if (spanStart == end) { in parse() 755 final int end, final int spanStart, final int spanEnd) { in haveWordBoundariesChanged() argument 757 if (spanEnd != start && spanStart != end) { in haveWordBoundariesChanged() 768 + ">, " + editable + ", " + editable.subSequence(spanStart, spanEnd) + ", " in haveWordBoundariesChanged() 771 } else if (spanStart == end && end > 0) { in haveWordBoundariesChanged() [all …]
|
D | Editor.java | 2148 final int spanStart = spannable.getSpanStart(suggestionSpans[i]); in shouldOfferToShowSuggestions() local 2150 minSpanStart = Math.min(minSpanStart, spanStart); in shouldOfferToShowSuggestions() 2152 if (selectionStart < spanStart || selectionStart > spanEnd) { in shouldOfferToShowSuggestions() 2159 Math.min(unionOfSpansCoveringSelectionStartStart, spanStart); in shouldOfferToShowSuggestions() 2705 final int spanStart = editable.getSpanStart(targetSuggestionSpan); in replaceWithSuggestion() local 2707 if (spanStart < 0 || spanEnd <= spanStart) { in replaceWithSuggestion() 2712 final String originalText = TextUtils.substring(editable, spanStart, spanEnd); in replaceWithSuggestion() 2714 SuggestionSpan[] suggestionSpans = editable.getSpans(spanStart, spanEnd, in replaceWithSuggestion() 2744 mTextView.replaceText_internal(spanStart, spanEnd, suggestion); in replaceWithSuggestion() 2750 final int lengthDelta = suggestion.length() - (spanEnd - spanStart); in replaceWithSuggestion() [all …]
|
D | TextView.java | 9326 final int spanStart = text.getSpanStart(spans[i]); in removeIntersectingNonAdjacentSpans() local 9328 if (spanEnd == start || spanStart == end) break; in removeIntersectingNonAdjacentSpans() 9340 final int spanStart = text.getSpanStart(spans[i]); in removeAdjacentSuggestionSpans() local 9342 if (spanEnd == pos || spanStart == pos) { in removeAdjacentSuggestionSpans() 9343 if (SpellChecker.haveWordBoundariesChanged(text, pos, pos, spanStart, spanEnd)) { in removeAdjacentSuggestionSpans()
|
/frameworks/opt/setupwizard/library/eclair-mr1/src/com/android/setupwizardlib/util/ |
D | LinkAccessibilityHelper.java | 301 final int spanStart = spannedText.getSpanStart(span); in getBoundsForSpan() local 303 final float xStart = layout.getPrimaryHorizontal(spanStart); in getBoundsForSpan() 305 final int lineStart = layout.getLineForOffset(spanStart); in getBoundsForSpan()
|
/frameworks/opt/chips/src/com/android/ex/chips/ |
D | RecipientEditTextView.java | 2459 int spanStart = spannable.getSpanStart(recipients[i]); in createMoreChip() local 2461 recipients[i].setOriginalText(text.toString().substring(spanStart, spanEnd)); in createMoreChip() 2538 int spanStart = spannable.getSpanStart(currentChip); in selectChip() local 2542 if (spanEnd - spanStart == editable.length() - 1) { in selectChip() 2545 editable.delete(spanStart, spanEnd); in selectChip() 2696 int spanStart = spannable.getSpanStart(chip); in removeChip() local 2710 if (spanStart >= 0 && toDelete > 0) { in removeChip() 2711 text.delete(spanStart, toDelete); in removeChip()
|
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/ |
D | StaggeredGridLayoutManager.java | 1808 final int spanStart = mSpans[i].getStartLine(def); 1809 if (spanStart > maxStart) { 1810 maxStart = spanStart; 1819 final int spanStart = mSpans[i].getStartLine(def); 1820 if (spanStart < minStart) { 1821 minStart = spanStart;
|