/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 | SpannableStringBuilder.java | 330 int spanEnd = mSpanEnds[i]; in change() local 331 if (spanEnd > mGapStart) in change() 332 spanEnd -= mGapLength; in change() 336 int oen = spanEnd; in change() 345 if (spanEnd > start && spanEnd <= end) { in change() 346 for (spanEnd = end; spanEnd < clen; spanEnd++) in change() 347 if (spanEnd > end && charAt(spanEnd - 1) == '\n') in change() 351 if (spanStart != ost || spanEnd != oen) { in change() 352 setSpan(false, mSpans[i], spanStart, spanEnd, mSpanFlags[i]); in change() 360 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; 779 for (int spanStart = paraStart, spanEnd; spanStart < paraEnd; spanStart = spanEnd) { 781 spanEnd = spanEndCache[spanEndCacheIndex++]; 808 while (breakIndex < breakCount && paraStart + breaks[breakIndex] <= spanEnd) { [all …]
|
D | Layout.java | 272 int spanEnd = 0; in drawText() local 313 if (start >= spanEnd && (lineNum == firstLine || isFirstParaLine)) { in drawText() 314 spanEnd = sp.nextSpanTransition(start, textLength, in drawText() 316 spans = getParagraphSpans(sp, start, spanEnd, ParagraphStyle.class); in drawText() 445 int spanEnd = 0; in drawBackground() local 457 if (start >= spanEnd) { in drawBackground() 460 spanEnd = mLineBackgroundSpans.getNextTransition(start, textLength); in drawBackground() 557 int spanEnd = spanned.nextSpanTransition(start, spanned.length(), in getLineStartPos() local 559 TabStopSpan[] tabSpans = getParagraphSpans(spanned, start, spanEnd, in getLineStartPos() 1610 int spanEnd = spanned.nextSpanTransition(lineStart, lineEnd, in getParagraphLeadingMargin() local [all …]
|
D | SpannableStringInternal.java | 218 int spanEnd = data[i * COLUMNS + END]; in getSpans() local 223 if (spanEnd < queryStart) { in getSpans() 227 if (spanStart != spanEnd && queryStart != queryEnd) { in getSpans() 231 if (spanEnd == queryStart) { in getSpans()
|
D | TextUtils.java | 1297 int spanEnd; in setPara() local 1298 for (int spanStart = 0; spanStart < len; spanStart = spanEnd) { in setPara() 1299 spanEnd = sp.nextSpanTransition(spanStart, len, in setPara() 1302 spanStart, spanEnd, MetricAffectingSpan.class); in setPara() 1304 width += mt.addStyleRun(paint, spans, spanEnd - spanStart, null); in setPara()
|
/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 | 1871 final int spanEnd = spannable.getSpanEnd(suggestionSpans[i]); in shouldOfferToShowSuggestions() local 1873 maxSpanEnd = Math.max(maxSpanEnd, spanEnd); in shouldOfferToShowSuggestions() 1874 if (selectionStart < spanStart || selectionStart > spanEnd) { in shouldOfferToShowSuggestions() 1883 Math.max(unionOfSpansCoveringSelectionStartEnd, spanEnd); in shouldOfferToShowSuggestions() 2881 final int spanEnd = spannable.getSpanEnd(suggestionSpan); in updateSuggestions() local 2883 spanUnionEnd = Math.max(spanEnd, spanUnionEnd); in updateSuggestions() 2903 if (spanStart == otherSpanStart && spanEnd == otherSpanEnd) { in updateSuggestions() 2979 final int spanEnd = text.getSpanEnd(suggestionInfo.suggestionSpan); in highlightTextDifferences() local 2992 suggestionInfo.text.append(textAsString.substring(spanEnd, unionEnd)); in highlightTextDifferences() 3018 final int spanEnd = editable.getSpanEnd(suggestionInfo.suggestionSpan); in onItemClick() local [all …]
|
D | TextView.java | 7956 final int spanEnd = text.getSpanEnd(spans[i]); in removeIntersectingNonAdjacentSpans() local 7957 if (spanEnd == start || spanStart == end) break; in removeIntersectingNonAdjacentSpans() 7970 final int spanEnd = text.getSpanEnd(spans[i]); in removeAdjacentSuggestionSpans() local 7971 if (spanEnd == pos || spanStart == pos) { in removeAdjacentSuggestionSpans() 7972 if (SpellChecker.haveWordBoundariesChanged(text, pos, pos, spanStart, spanEnd)) { in removeAdjacentSuggestionSpans()
|
/frameworks/base/tools/aapt2/ |
D | StringPool.cpp | 368 uint32_t* spanEnd = out->nextBlock<uint32_t>(); in flatten() local 369 *spanEnd = android::ResStringPool_span::END; in flatten()
|
/frameworks/opt/chips/src/com/android/ex/chips/ |
D | RecipientEditTextView.java | 2124 int spanEnd = spannable.getSpanEnd(recipients[i]); in createMoreChip() local 2125 recipients[i].setOriginalText(text.toString().substring(spanStart, spanEnd)); in createMoreChip() 2203 int spanEnd = spannable.getSpanEnd(currentChip); in selectChip() local 2206 if (spanEnd - spanStart == editable.length() - 1) { in selectChip() 2207 spanEnd++; in selectChip() 2209 editable.delete(spanStart, spanEnd); in selectChip() 2323 int spanEnd = spannable.getSpanEnd(chip); in removeChip() local 2325 int toDelete = spanEnd; in removeChip()
|
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/ |
D | StaggeredGridLayoutManager.java | 1696 final int spanEnd = mSpans[i].getEndLine(def); 1697 if (spanEnd > maxEnd) { 1698 maxEnd = spanEnd; 1707 final int spanEnd = mSpans[i].getEndLine(def); 1708 if (spanEnd < minEnd) { 1709 minEnd = spanEnd;
|