Home
last modified time | relevance | path

Searched refs:spanStart (Results 1 – 16 of 16) 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.java92 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 …]
DSpannableStringBuilder.java332 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 …]
DStaticLayout.java734 for (int spanStart = paraStart, spanEnd; spanStart < paraEnd; spanStart = spanEnd) {
749 int spanLen = spanEnd - spanStart;
752 spanEnd = spanned.nextSpanTransition(spanStart, paraEnd,
754 int spanLen = spanEnd - spanStart;
756 spanned.getSpans(spanStart, spanEnd, MetricAffectingSpan.class);
816 for (int spanStart = paraStart, spanEnd; spanStart < paraEnd; spanStart = spanEnd) {
841 while (breakIndex < breakCount && paraStart + breaks[breakIndex] < spanStart) {
DTextLine.java727 int spanStart = runStart; in getOffsetBeforeAfter() local
735 spanLimit = mSpanned.nextSpanTransition(mStart + spanStart, limit, in getOffsetBeforeAfter()
740 spanStart = spanLimit; in getOffsetBeforeAfter()
743 MetricAffectingSpan[] spans = mSpanned.getSpans(mStart + spanStart, in getOffsetBeforeAfter()
761 return after ? spanLimit : spanStart; in getOffsetBeforeAfter()
769 return wp.getTextRunCursor(mChars, spanStart, spanLimit - spanStart, in getOffsetBeforeAfter()
772 return wp.getTextRunCursor(mText, mStart + spanStart, in getOffsetBeforeAfter()
DTextUtils.java1494 for (int spanStart = 0; spanStart < len; spanStart = spanEnd) { in setPara()
1495 spanEnd = sp.nextSpanTransition(spanStart, len, in setPara()
1498 spanStart, spanEnd, MetricAffectingSpan.class); in setPara()
1500 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/support/emoji/core/src/android/support/text/emoji/
DEmojiProcessor.java166 final int spanStart = spannable.getSpanStart(span); in process() local
172 if (spanStart != end) { in process()
175 start = Math.min(spanStart, start); in process()
308 final int spanStart = content.getSpanStart(span); in delete() local
310 if ((forwardDelete && spanStart == start) in delete()
312 || (start > spanStart && start < spanEnd)) { in delete()
313 content.delete(spanStart, spanEnd); in delete()
380 int spanStart = editable.getSpanStart(span); in handleDeleteSurroundingText() local
382 start = Math.min(spanStart, start); in handleDeleteSurroundingText()
/frameworks/base/core/java/android/widget/
DSpellChecker.java622 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 …]
DEditor.java2156 final int spanStart = spannable.getSpanStart(suggestionSpans[i]); in shouldOfferToShowSuggestions() local
2158 minSpanStart = Math.min(minSpanStart, spanStart); in shouldOfferToShowSuggestions()
2160 if (selectionStart < spanStart || selectionStart > spanEnd) { in shouldOfferToShowSuggestions()
2167 Math.min(unionOfSpansCoveringSelectionStartStart, spanStart); in shouldOfferToShowSuggestions()
2713 final int spanStart = editable.getSpanStart(targetSuggestionSpan); in replaceWithSuggestion() local
2715 if (spanStart < 0 || spanEnd <= spanStart) { in replaceWithSuggestion()
2720 final String originalText = TextUtils.substring(editable, spanStart, spanEnd); in replaceWithSuggestion()
2722 SuggestionSpan[] suggestionSpans = editable.getSpans(spanStart, spanEnd, in replaceWithSuggestion()
2752 mTextView.replaceText_internal(spanStart, spanEnd, suggestion); in replaceWithSuggestion()
2758 final int lengthDelta = suggestion.length() - (spanEnd - spanStart); in replaceWithSuggestion()
[all …]
DTextView.java9348 final int spanStart = text.getSpanStart(spans[i]); in removeIntersectingNonAdjacentSpans() local
9350 if (spanEnd == start || spanStart == end) break; in removeIntersectingNonAdjacentSpans()
9362 final int spanStart = text.getSpanStart(spans[i]); in removeAdjacentSuggestionSpans() local
9364 if (spanEnd == pos || spanStart == pos) { in removeAdjacentSuggestionSpans()
9365 if (SpellChecker.haveWordBoundariesChanged(text, pos, pos, spanStart, spanEnd)) { in removeAdjacentSuggestionSpans()
/frameworks/base/core/tests/coretests/src/android/text/
DStaticLayoutLineBreakingTest.java357 for (int spanStart = 0; spanStart < text.length(); spanStart++) { in testWithOneSpan()
358 for (int spanEnd = spanStart; spanEnd < text.length(); spanEnd++) { in testWithOneSpan()
360 ssb.setSpan(metricAffectingSpan, spanStart, spanEnd, in testWithOneSpan()
/frameworks/opt/setupwizard/library/gingerbread/src/com/android/setupwizardlib/util/
DLinkAccessibilityHelper.java300 final int spanStart = spannedText.getSpanStart(span); in getBoundsForSpan() local
302 final float xStart = layout.getPrimaryHorizontal(spanStart); in getBoundsForSpan()
304 final int lineStart = layout.getLineForOffset(spanStart); in getBoundsForSpan()
/frameworks/opt/chips/src/com/android/ex/chips/
DRecipientEditTextView.java2459 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/
DStaggeredGridLayoutManager.java1808 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;
/frameworks/base/core/java/android/app/
DNotification.java4730 int spanStart = ss.getSpanStart(span); in ensureColorSpanContrast() local
4732 boolean fullLength = (spanEnd - spanStart) == charSequence.length(); in ensureColorSpanContrast()
4772 builder.setSpan(resultSpan, spanStart, spanEnd, ss.getSpanFlags(span)); in ensureColorSpanContrast()