/frameworks/base/core/java/android/text/ |
D | SpanSet.java | 61 final int spanStart = spanned.getSpanStart(span); in init() local 63 if (spanStart == spanEnd) continue; in init() 68 spanStarts[numberOfSpans] = spanStart; in init() 94 final int spanStart = spanStarts[i]; in getNextTransition() local 96 if (spanStart > start && spanStart < limit) limit = spanStart; in getNextTransition()
|
D | SpannableStringBuilder.java | 287 int spanStart = mSpanStarts[i]; in change() local 288 if (spanStart > mGapStart) in change() 289 spanStart -= mGapLength; in change() 296 int ost = spanStart; in change() 300 if (spanStart > start && spanStart <= end) { in change() 301 for (spanStart = end; spanStart < clen; spanStart++) in change() 302 if (spanStart > end && charAt(spanStart - 1) == '\n') in change() 312 if (spanStart != ost || spanEnd != oen) in change() 313 setSpan(false, mSpans[i], spanStart, spanEnd, mSpanFlags[i]); in change() 317 if (spanStart == start) flags |= SPAN_START_AT_START; in change() [all …]
|
D | StaticLayout.java | 272 for (int spanStart = paraStart, spanEnd; spanStart < paraEnd; spanStart = spanEnd) { in generate() 276 int spanLen = spanEnd - spanStart; in generate() 279 spanEnd = spanned.nextSpanTransition(spanStart, paraEnd, in generate() 281 int spanLen = spanEnd - spanStart; in generate() 283 spanned.getSpans(spanStart, spanEnd, MetricAffectingSpan.class); in generate() 293 for (int j = spanStart; j < spanEnd; j++) { in generate() 442 if (here < spanStart) { in generate()
|
D | TextLine.java | 631 int spanStart = runStart; in getOffsetBeforeAfter() local 639 spanLimit = mSpanned.nextSpanTransition(mStart + spanStart, limit, in getOffsetBeforeAfter() 644 spanStart = spanLimit; in getOffsetBeforeAfter() 647 MetricAffectingSpan[] spans = mSpanned.getSpans(mStart + spanStart, in getOffsetBeforeAfter() 665 return after ? spanLimit : spanStart; in getOffsetBeforeAfter() 673 return wp.getTextRunCursor(mChars, spanStart, spanLimit - spanStart, in getOffsetBeforeAfter() 676 return wp.getTextRunCursor(mText, mStart + spanStart, in getOffsetBeforeAfter()
|
D | SpannableStringInternal.java | 221 int spanStart = data[i * COLUMNS + START]; in getSpans() local 224 if (spanStart > queryEnd) { in getSpans() 231 if (spanStart != spanEnd && queryStart != queryEnd) { in getSpans() 232 if (spanStart == queryEnd) { in getSpans()
|
D | TextUtils.java | 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/base/core/java/android/widget/ |
D | SpellChecker.java | 621 final int spanStart = editable.getSpanStart(spellCheckSpan); in parse() local 623 if (spanEnd < spellCheckStart || spellCheckEnd < spanStart) { in parse() 627 if (spanStart <= spellCheckStart && spellCheckEnd <= spanEnd) { in parse() 638 spellCheckStart = Math.min(spanStart, spellCheckStart); in parse() 697 final int spanStart = editable.getSpanStart(spellCheckSpans[i]); in parse() local 698 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 | 2564 final int spanStart = spannable.getSpanStart(suggestionSpan); in updateSuggestions() local 2566 spanUnionStart = Math.min(spanStart, spanUnionStart); in updateSuggestions() 2587 if (spanStart == otherSpanStart && spanEnd == otherSpanEnd) { in updateSuggestions() 2662 final int spanStart = text.getSpanStart(suggestionInfo.suggestionSpan); in highlightTextDifferences() local 2666 suggestionInfo.suggestionStart = spanStart - unionStart; in highlightTextDifferences() 2675 suggestionInfo.text.insert(0, textAsString.substring(unionStart, spanStart)); in highlightTextDifferences() 2701 final int spanStart = editable.getSpanStart(suggestionInfo.suggestionSpan); in onItemClick() local 2703 if (spanStart < 0 || spanEnd <= spanStart) { in onItemClick() 2709 final String originalText = editable.toString().substring(spanStart, spanEnd); in onItemClick() 2723 updateSpellCheckSpans(spanStart, spanEnd, false); in onItemClick() [all …]
|
D | TextView.java | 7646 final int spanStart = text.getSpanStart(spans[i]); in removeIntersectingNonAdjacentSpans() local 7648 if (spanEnd == start || spanStart == end) break; in removeIntersectingNonAdjacentSpans() 7660 final int spanStart = text.getSpanStart(spans[i]); in removeAdjacentSuggestionSpans() local 7662 if (spanEnd == pos || spanStart == pos) { in removeAdjacentSuggestionSpans() 7663 if (SpellChecker.haveWordBoundariesChanged(text, pos, pos, spanStart, spanEnd)) { in removeAdjacentSuggestionSpans()
|
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/ |
D | StaggeredGridLayoutManager.java | 1587 final int spanStart = mSpans[i].getStartLine(def); 1588 if (spanStart > maxStart) { 1589 maxStart = spanStart; 1598 final int spanStart = mSpans[i].getStartLine(def); 1599 if (spanStart < minStart) { 1600 minStart = spanStart;
|
/frameworks/opt/chips/src/com/android/ex/chips/ |
D | RecipientEditTextView.java | 2075 int spanStart = spannable.getSpanStart(recipients[i]); in createMoreChip() local 2077 recipients[i].setOriginalText(text.toString().substring(spanStart, spanEnd)); in createMoreChip() 2157 int spanStart = spannable.getSpanStart(currentChip); in selectChip() local 2160 editable.delete(spanStart, spanEnd); in selectChip() 2284 int spanStart = spannable.getSpanStart(chip); in removeChip() local 2298 if (spanStart >= 0 && toDelete > 0) { in removeChip() 2299 text.delete(spanStart, toDelete); in removeChip()
|