Home
last modified time | relevance | path

Searched refs:spanStart (Results 1 – 13 of 13) sorted by relevance

/frameworks/base/core/java/android/text/
DSpanSet.java63 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()
DSpannableStringInternal.java91 int spanStart = srcData[i * COLUMNS + START]; in copySpans() local
93 if (isOutOfCopyRange(start, end, spanStart, spanEnd)) continue; in copySpans()
104 int spanStart = srcData[i * COLUMNS + START]; in copySpans() local
106 if (isOutOfCopyRange(start, end, spanStart, spanEnd)) continue; in copySpans()
107 if (spanStart < start) spanStart = start; in copySpans()
111 mSpanData[j * COLUMNS + START] = spanStart - start; in copySpans()
124 private final boolean isOutOfCopyRange(int start, int end, int spanStart, int spanEnd) { in isOutOfCopyRange() argument
125 if (spanStart > end || spanEnd < start) return true; in isOutOfCopyRange()
126 if (spanStart != spanEnd && start != end) { in isOutOfCopyRange()
127 if (spanStart == end || spanEnd == start) return true; in isOutOfCopyRange()
[all …]
DSpannableStringBuilder.java333 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()
365 if (spanStart == start) flags |= SPAN_START_AT_START; in change()
[all …]
DTextLine.java601 int spanStart = runStart; in getOffsetBeforeAfter() local
609 spanLimit = mSpanned.nextSpanTransition(mStart + spanStart, limit, in getOffsetBeforeAfter()
614 spanStart = spanLimit; in getOffsetBeforeAfter()
617 MetricAffectingSpan[] spans = mSpanned.getSpans(mStart + spanStart, in getOffsetBeforeAfter()
635 return after ? spanLimit : spanStart; in getOffsetBeforeAfter()
643 return wp.getTextRunCursor(mChars, spanStart, spanLimit - spanStart, in getOffsetBeforeAfter()
646 return wp.getTextRunCursor(mText, mStart + spanStart, in getOffsetBeforeAfter()
DStaticLayout.java703 for (int spanStart = paraStart, spanEnd; spanStart < paraEnd; spanStart = spanEnd) {
718 int spanLen = spanEnd - spanStart;
721 spanEnd = spanned.nextSpanTransition(spanStart, paraEnd,
723 int spanLen = spanEnd - spanStart;
725 spanned.getSpans(spanStart, spanEnd, MetricAffectingSpan.class);
785 for (int spanStart = paraStart, spanEnd; spanStart < paraEnd; spanStart = spanEnd) {
810 while (breakIndex < breakCount && paraStart + breaks[breakIndex] < spanStart) {
DTextUtils.java1293 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/opt/setupwizard/library/main/src/com/android/setupwizardlib/span/
DSpanHelper.java31 final int spanStart = spannable.getSpanStart(oldSpan); in replaceSpan() local
34 spannable.setSpan(newSpan, spanStart, spanEnd, 0); in replaceSpan()
/frameworks/base/core/java/android/widget/
DSpellChecker.java621 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()
754 final int end, final int spanStart, final int spanEnd) { in haveWordBoundariesChanged() argument
756 if (spanEnd != start && spanStart != end) { in haveWordBoundariesChanged()
767 + ">, " + editable + ", " + editable.subSequence(spanStart, spanEnd) + ", " in haveWordBoundariesChanged()
770 } else if (spanStart == end && end > 0) { in haveWordBoundariesChanged()
[all …]
DEditor.java2059 final int spanStart = spannable.getSpanStart(suggestionSpans[i]); in shouldOfferToShowSuggestions() local
2061 minSpanStart = Math.min(minSpanStart, spanStart); in shouldOfferToShowSuggestions()
2063 if (selectionStart < spanStart || selectionStart > spanEnd) { in shouldOfferToShowSuggestions()
2070 Math.min(unionOfSpansCoveringSelectionStartStart, spanStart); in shouldOfferToShowSuggestions()
2603 final int spanStart = editable.getSpanStart(targetSuggestionSpan); in replaceWithSuggestion() local
2605 if (spanStart < 0 || spanEnd <= spanStart) { in replaceWithSuggestion()
2610 final String originalText = TextUtils.substring(editable, spanStart, spanEnd); in replaceWithSuggestion()
2612 SuggestionSpan[] suggestionSpans = editable.getSpans(spanStart, spanEnd, in replaceWithSuggestion()
2642 mTextView.replaceText_internal(spanStart, spanEnd, suggestion); in replaceWithSuggestion()
2648 final int lengthDelta = suggestion.length() - (spanEnd - spanStart); in replaceWithSuggestion()
[all …]
DTextView.java8149 final int spanStart = text.getSpanStart(spans[i]); in removeIntersectingNonAdjacentSpans() local
8151 if (spanEnd == start || spanStart == end) break; in removeIntersectingNonAdjacentSpans()
8163 final int spanStart = text.getSpanStart(spans[i]); in removeAdjacentSuggestionSpans() local
8165 if (spanEnd == pos || spanStart == pos) { in removeAdjacentSuggestionSpans()
8166 if (SpellChecker.haveWordBoundariesChanged(text, pos, pos, spanStart, spanEnd)) { in removeAdjacentSuggestionSpans()
/frameworks/opt/setupwizard/library/eclair-mr1/src/com/android/setupwizardlib/util/
DLinkAccessibilityHelper.java175 final int spanStart = spannedText.getSpanStart(span); in getBoundsForSpan() local
178 final float xStart = layout.getPrimaryHorizontal(spanStart); in getBoundsForSpan()
180 final int lineStart = layout.getLineForOffset(spanStart); in getBoundsForSpan()
/frameworks/opt/chips/src/com/android/ex/chips/
DRecipientEditTextView.java2237 int spanStart = spannable.getSpanStart(recipients[i]); in createMoreChip() local
2239 recipients[i].setOriginalText(text.toString().substring(spanStart, spanEnd)); in createMoreChip()
2316 int spanStart = spannable.getSpanStart(currentChip); in selectChip() local
2320 if (spanEnd - spanStart == editable.length() - 1) { in selectChip()
2323 editable.delete(spanStart, spanEnd); in selectChip()
2474 int spanStart = spannable.getSpanStart(chip); in removeChip() local
2488 if (spanStart >= 0 && toDelete > 0) { in removeChip()
2489 text.delete(spanStart, toDelete); in removeChip()
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/
DStaggeredGridLayoutManager.java1793 final int spanStart = mSpans[i].getStartLine(def);
1794 if (spanStart > maxStart) {
1795 maxStart = spanStart;
1804 final int spanStart = mSpans[i].getStartLine(def);
1805 if (spanStart < minStart) {
1806 minStart = spanStart;