/packages/apps/Email/tests/src/com/android/emailcommon/utility/ |
D | TextUtilitiesTests.java | 204 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/ |
D | BlueUnderlineTests.java | 33 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/ |
D | SuggestionFormatter.java | 53 for (Object span : spans) { in setSpans() 54 text.setSpan(span, start, end, 0); in setSpans()
|
/packages/apps/Contacts/src/com/android/contacts/util/ |
D | HtmlUtils.java | 100 ImageSpan span = imageSpans[i]; in postprocess() local 101 replaceSpan(builder, span, new ImageSpan(span.getDrawable(), in postprocess()
|
/packages/apps/Phone/src/com/android/phone/ |
D | IccNetworkDepersonalizationPanel.java | 127 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/ |
D | LevenshteinFormatterTest.java | 153 for (SpanFormat span : spans) { in verifyFormatSuggestion() 154 span.verify(s); in verifyFormatSuggestion()
|
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/EN/ |
D | TutorialEN.java | 246 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/ |
D | ScrollerView.java | 227 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/ |
D | TutorialJAJP.java | 318 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/ |
D | TextCandidatesViewManager.java | 1040 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/ |
D | EventInfoFragment.java | 1534 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/ |
D | MessageListItem.java | 610 URLSpan span = getItem(position); in onMessageListItemClick() 611 String url = span.getURL(); in onMessageListItemClick()
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
D | Launcher.java | 1630 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()
|
D | Workspace.java | 3048 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/ |
D | CalendarProvider2.java | 1354 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()
|