Searched refs:span (Results 1 – 25 of 27) sorted by relevance
12
204 BackgroundColorSpan span = spans[0]; in testHighlightSingleTermText() local205 assertEquals(text.indexOf("visi"), ssb.getSpanStart(span)); in testHighlightSingleTermText()206 assertEquals(text.indexOf("bl>e"), ssb.getSpanEnd(span)); in testHighlightSingleTermText()215 span = spans[0]; in testHighlightSingleTermText()216 assertEquals(text.indexOf("search word"), ssb.getSpanStart(span)); in testHighlightSingleTermText()217 assertEquals(text.indexOf(" word"), ssb.getSpanEnd(span)); in testHighlightSingleTermText()218 span = spans[1]; in testHighlightSingleTermText()219 assertEquals(text.indexOf("search result"), ssb.getSpanStart(span)); in testHighlightSingleTermText()220 assertEquals(text.indexOf(" result"), ssb.getSpanEnd(span)); in testHighlightSingleTermText()231 BackgroundColorSpan span = spans[0]; in testHighlightTwoTermText() local[all …]
33 final SpanGetter span = new SpanGetter(mEditText.getText(), SuggestionSpan.class); in testBlueUnderline() local34 assertEquals("show blue underline, span start", EXPECTED_SPAN_START, span.mStart); in testBlueUnderline()35 assertEquals("show blue underline, span end", EXPECTED_SPAN_END, span.mEnd); in testBlueUnderline()36 assertEquals("show blue underline, span color", true, span.isAutoCorrectionIndicator()); in testBlueUnderline()106 final SpanGetter span = new SpanGetter(mEditText.getText(), SuggestionSpan.class); in testBlueUnderlineDisappearsWhenCursorMoved() local107 assertNull("blue underline removed when cursor is moved", span.mSpan); in testBlueUnderlineDisappearsWhenCursorMoved()120 SpanGetter span = new SpanGetter(mEditText.getText(), UnderlineSpan.class); in testComposingStopsOnSpace() local121 assertNull("should not be composing, so should not have an underline span", span.mSpan); in testComposingStopsOnSpace()
35 final SpanGetter span = new SpanGetter(mEditText.getText(), SuggestionSpan.class); in testSpellchecker() local37 final String[] suggestions = span.getSuggestions(); in testSpellchecker()55 final SpanGetter span = new SpanGetter(mEditText.getText(), SuggestionSpan.class); in testRussianSpellchecker() local57 final String[] suggestions = span.getSuggestions(); in testRussianSpellchecker()
100 ImageSpan span = imageSpans[i]; in postprocess() local101 replaceSpan(builder, span, new ImageSpan(span.getDrawable(), in postprocess()
227 final int span = getChildAt(0).getRight() - mScrollX - bottomEdge; in getBottomFadingEdgeStrength() local228 if (span < length) { in getBottomFadingEdgeStrength()229 return span / (float) length; in getBottomFadingEdgeStrength()234 final int span = getChildAt(0).getBottom() - mScrollY - bottomEdge; in getBottomFadingEdgeStrength() local235 if (span < length) { in getBottomFadingEdgeStrength()236 return span / (float) length; in getBottomFadingEdgeStrength()
1815 URLSpan span = new URLSpan("geo:0,0?q=" + coordMatcher.group()); in extendedLinkify() local1816 spanText.setSpan(span, start, end, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in extendedLinkify()1862 URLSpan span = new URLSpan("tel:" + dialBuilder.toString()); in extendedLinkify() local1864 spanText.setSpan(span, start, end, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in extendedLinkify()2038 for (URLSpan span : spanList) { in spanWillOverlap()2039 int existingStart = spanText.getSpanStart(span); in spanWillOverlap()2040 int existingEnd = spanText.getSpanEnd(span); in spanWillOverlap()
1040 ImageSpan span = null; in setCandidate() local1042 span = new ImageSpan(mWnn, R.drawable.word_half_space, in setCandidate()1045 span = new ImageSpan(mWnn, R.drawable.word_full_space, in setCandidate()1049 if (span != null) { in setCandidate()1051 spannable.setSpan(span, 1, 2, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in setCandidate()
53 for (Object span : spans) { in setSpans()54 text.setSpan(span, start, end, 0); in setSpans()
127 Spannable span = (Spannable) text; in onCreate() local128 span.setSpan(mPinEntryWatcher, 0, text.length(), Spannable.SPAN_INCLUSIVE_INCLUSIVE); in onCreate()
153 for (SpanFormat span : spans) { in verifyFormatSuggestion()154 span.verify(s); in verifyFormatSuggestion()
246 ImageSpan span = new ImageSpan(mIme, imageResourceId, in setSpan() local248 spannable.setSpan(span, target, target + 1, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in setSpan()
172 final int span = getChildAt(0).getRight() - mScrollX - rightEdge; in getRightFadingEdgeStrength() local173 if (span < length) { in getRightFadingEdgeStrength()174 return span / (float) length; in getRightFadingEdgeStrength()
318 ImageSpan span = new ImageSpan(mIme, imageResourceId, in setSpan() local320 spannable.setSpan(span, target, target + 1, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in setSpan()
707 public int span = 1; field in GalleryThumbnailView.LayoutParams754 span = a.getInteger(SPAN_INDEX, 1); in LayoutParams()
639 URLSpan span = getItem(position); in onMessageListItemClick()640 String url = span.getURL(); in onMessageListItemClick()
1811 int[] cell, int[] span, int[] loc) { in addAppWidgetFromDrop() argument1823 if (span != null) { in addAppWidgetFromDrop()1824 mPendingAddInfo.spanX = span[0]; in addAppWidgetFromDrop()1825 mPendingAddInfo.spanY = span[1]; in addAppWidgetFromDrop()
3081 int span[] = new int[2];3082 span[0] = item.spanX;3083 span[1] = item.spanY;3085 container, screen, mTargetCell, span, null);
2475 SuggestionSpan span = (SuggestionSpan)object; in restartSuggestionsOnWordTouchedByCursor() local2476 for (String s : span.getSuggestions()) { in restartSuggestionsOnWordTouchedByCursor()
1367 long span = end - begin; in acquireInstanceRangeLocked() local1368 if (span < MINIMUM_EXPANSION_SPAN) { in acquireInstanceRangeLocked()1369 long additionalRange = (MINIMUM_EXPANSION_SPAN - span) / 2; in acquireInstanceRangeLocked()
1dictionary=main:en_us,locale=en_US,description=English (US),date ...