Home
last modified time | relevance | path

Searched refs:span (Results 1 – 15 of 15) sorted by relevance

/packages/apps/Email/tests/src/com/android/emailcommon/utility/
DTextUtilitiesTests.java204 BackgroundColorSpan span = spans[0]; in testHighlightSingleTermText() local
205 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 …]
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/
DBlueUnderlineTests.java33 final SpanGetter span = new SpanGetter(mTextView.getText(), SuggestionSpan.class); in testBlueUnderline() local
34 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()
104 final SpanGetter span = new SpanGetter(mTextView.getText(), SuggestionSpan.class); in testBlueUnderlineDisappearsWhenCursorMoved() local
105 assertNull("blue underline removed when cursor is moved", span.mSpan); in testBlueUnderlineDisappearsWhenCursorMoved()
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
DSuggestionFormatter.java53 for (Object span : spans) { in setSpans()
54 text.setSpan(span, start, end, 0); in setSpans()
/packages/apps/Contacts/src/com/android/contacts/util/
DHtmlUtils.java100 ImageSpan span = imageSpans[i]; in postprocess() local
101 replaceSpan(builder, span, new ImageSpan(span.getDrawable(), in postprocess()
/packages/apps/Phone/src/com/android/phone/
DIccNetworkDepersonalizationPanel.java127 Spannable span = (Spannable) text; in onCreate() local
128 span.setSpan(mPinEntryWatcher, 0, text.length(), Spannable.SPAN_INCLUSIVE_INCLUSIVE); in onCreate()
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/
DLevenshteinFormatterTest.java153 for (SpanFormat span : spans) { in verifyFormatSuggestion()
154 span.verify(s); in verifyFormatSuggestion()
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/EN/
DTutorialEN.java246 ImageSpan span = new ImageSpan(mIme, imageResourceId, in setSpan() local
248 spannable.setSpan(span, target, target + 1, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in setSpan()
/packages/apps/Browser/src/com/android/browser/view/
DScrollerView.java227 final int span = getChildAt(0).getRight() - mScrollX - bottomEdge; in getBottomFadingEdgeStrength() local
228 if (span < length) { in getBottomFadingEdgeStrength()
229 return span / (float) length; in getBottomFadingEdgeStrength()
234 final int span = getChildAt(0).getBottom() - mScrollY - bottomEdge; in getBottomFadingEdgeStrength() local
235 if (span < length) { in getBottomFadingEdgeStrength()
236 return span / (float) length; in getBottomFadingEdgeStrength()
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/JAJP/
DTutorialJAJP.java318 ImageSpan span = new ImageSpan(mIme, imageResourceId, in setSpan() local
320 spannable.setSpan(span, target, target + 1, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in setSpan()
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/
DTextCandidatesViewManager.java1040 ImageSpan span = null; in setCandidate() local
1042 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()
/packages/apps/Calendar/src/com/android/calendar/
DEventInfoFragment.java1534 URLSpan span = new URLSpan("tel:" + dialBuilder.toString()); in linkifyTextView() local
1536 spanText.setSpan(span, start, end, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in linkifyTextView()
1574 for (URLSpan span : spanList) { in spanWillOverlap()
1575 int existingStart = spanText.getSpanStart(span); in spanWillOverlap()
1576 int existingEnd = spanText.getSpanEnd(span); in spanWillOverlap()
/packages/apps/Mms/src/com/android/mms/ui/
DMessageListItem.java610 URLSpan span = getItem(position); in onMessageListItemClick()
611 String url = span.getURL(); in onMessageListItemClick()
/packages/apps/Launcher2/src/com/android/launcher2/
DLauncher.java1630 int[] cell, int[] span, int[] loc) { in addAppWidgetFromDrop() argument
1642 if (span != null) { in addAppWidgetFromDrop()
1643 mPendingAddInfo.spanX = span[0]; in addAppWidgetFromDrop()
1644 mPendingAddInfo.spanY = span[1]; in addAppWidgetFromDrop()
DWorkspace.java3048 int span[] = new int[2];
3049 span[0] = item.spanX;
3050 span[1] = item.spanY;
3052 container, screen, mTargetCell, span, null);
/packages/providers/CalendarProvider/src/com/android/providers/calendar/
DCalendarProvider2.java1354 long span = end - begin; in acquireInstanceRangeLocked() local
1355 if (span < MINIMUM_EXPANSION_SPAN) { in acquireInstanceRangeLocked()
1356 long additionalRange = (MINIMUM_EXPANSION_SPAN - span) / 2; in acquireInstanceRangeLocked()