/packages/apps/Email/tests/src/com/android/emailcommon/utility/ |
D | TextUtilitiesTests.java | 207 BackgroundColorSpan span = spans[0]; in brokentestHighlightSingleTermText() local 208 assertEquals(text.indexOf("visi"), ssb.getSpanStart(span)); in brokentestHighlightSingleTermText() 209 assertEquals(text.indexOf("bl>e"), ssb.getSpanEnd(span)); in brokentestHighlightSingleTermText() 218 span = spans[0]; in brokentestHighlightSingleTermText() 219 assertEquals(text.indexOf("search word"), ssb.getSpanStart(span)); in brokentestHighlightSingleTermText() 220 assertEquals(text.indexOf(" word"), ssb.getSpanEnd(span)); in brokentestHighlightSingleTermText() 221 span = spans[1]; in brokentestHighlightSingleTermText() 222 assertEquals(text.indexOf("search result"), ssb.getSpanStart(span)); in brokentestHighlightSingleTermText() 223 assertEquals(text.indexOf(" result"), ssb.getSpanEnd(span)); in brokentestHighlightSingleTermText() 234 BackgroundColorSpan span = spans[0]; in brokentestHighlightTwoTermText() local [all …]
|
/packages/apps/Settings/src/com/android/settings/widget/ |
D | LinkAccessibilityHelper.java | 68 for (ClickableSpan span : linkSpans) { in getVisibleVirtualViews() 69 virtualViewIds.add(spannedText.getSpanStart(span)); in getVisibleVirtualViews() 76 final ClickableSpan span = getSpanForOffset(virtualViewId); in onPopulateEventForVirtualView() local 77 if (span != null) { in onPopulateEventForVirtualView() 78 event.setContentDescription(getTextForSpan(span)); in onPopulateEventForVirtualView() 87 final ClickableSpan span = getSpanForOffset(virtualViewId); in onPopulateNodeForVirtualView() local 88 if (span != null) { in onPopulateNodeForVirtualView() 89 info.setContentDescription(getTextForSpan(span)); in onPopulateNodeForVirtualView() 96 getBoundsForSpan(span, mTempRect); in onPopulateNodeForVirtualView() 98 info.setBoundsInParent(getBoundsForSpan(span, mTempRect)); in onPopulateNodeForVirtualView() [all …]
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/ |
D | BlueUnderlineTests.java | 35 final SpanGetter span = new SpanGetter(mEditText.getText(), SuggestionSpan.class); in testBlueUnderline() local 36 assertEquals("show blue underline, span start", EXPECTED_SPAN_START, span.mStart); in testBlueUnderline() 37 assertEquals("show blue underline, span end", EXPECTED_SPAN_END, span.mEnd); in testBlueUnderline() 38 assertEquals("show blue underline, span color", true, span.isAutoCorrectionIndicator()); in testBlueUnderline() 109 final SpanGetter span = new SpanGetter(mEditText.getText(), SuggestionSpan.class); in testBlueUnderlineDisappearsWhenCursorMoved() local 111 span.isAutoCorrectionIndicator()); in testBlueUnderlineDisappearsWhenCursorMoved() 124 SpanGetter span = new SpanGetter(mEditText.getText(), UnderlineSpan.class); in testComposingStopsOnSpace() local 125 assertNull("should not be composing, so should not have an underline span", span.mSpan); in testComposingStopsOnSpace()
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/spellcheck/ |
D | AndroidSpellCheckerServiceTest.java | 35 final SpanGetter span = new SpanGetter(mEditText.getText(), SuggestionSpan.class); in testSpellchecker() local 37 final String[] suggestions = span.getSuggestions(); in testSpellchecker() 55 final SpanGetter span = new SpanGetter(mEditText.getText(), SuggestionSpan.class); in testRussianSpellchecker() local 57 assertNull(span.getSpan()); in testRussianSpellchecker() 69 final SpanGetter span = new SpanGetter(mEditText.getText(), SuggestionSpan.class); in testSpellcheckWithPeriods() local 71 final String[] suggestions = span.getSuggestions(); in testSpellcheckWithPeriods()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/ |
D | TextRange.java | 80 final SuggestionSpan span = spans[readIndex]; in getSuggestionSpansAtWord() local 83 if (null == span) continue; in getSuggestionSpansAtWord() 86 int spanStart = text.getSpanStart(span); in getSuggestionSpansAtWord() 87 int spanEnd = text.getSpanEnd(span); in getSuggestionSpansAtWord() 89 if (span.equals(spans[i])) { in getSuggestionSpansAtWord()
|
D | CursorAnchorInfoUtils.java | 151 for (Object span : spans) { in extractFromTextViewInternal() 152 final int spanFlag = spannable.getSpanFlags(span); in extractFromTextViewInternal() 155 spannable.getSpanStart(span)); in extractFromTextViewInternal() 156 composingTextEnd = Math.max(composingTextEnd, spannable.getSpanEnd(span)); in extractFromTextViewInternal()
|
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ |
D | EllipsizedMultilineTextView.java | 105 final Object span = spans[i]; in setText() local 106 final int start = s.getSpanStart(span); in setText() 107 final int end = s.getSpanEnd(span); in setText() 108 final int flags = s.getSpanFlags(span); in setText() 110 builder.setSpan(span, start, Math.min(end, destLen), flags); in setText()
|
/packages/apps/UnifiedEmail/src/com/android/mail/utils/ |
D | StyleUtils.java | 50 for (URLSpan span : urls) { in stripUnderlinesAndLinkUrls() 51 final int start = input.getSpanStart(span); in stripUnderlinesAndLinkUrls() 52 final int end = input.getSpanEnd(span); in stripUnderlinesAndLinkUrls() 53 input.removeSpan(span); in stripUnderlinesAndLinkUrls()
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/compat/ |
D | LocaleSpanCompatUtilsTests.java | 46 final Object span = spanned.getSpans(0, spanned.length(), Object.class)[index]; in assertLocaleSpan() local 47 assertEquals(expectedLocale, LocaleSpanCompatUtils.getLocaleFromLocaleSpan(span)); in assertLocaleSpan() 48 assertEquals(expectedStart, spanned.getSpanStart(span)); in assertLocaleSpan() 49 assertEquals(expectedEnd, spanned.getSpanEnd(span)); in assertLocaleSpan() 50 assertEquals(expectedSpanFlags, spanned.getSpanFlags(span)); in assertLocaleSpan()
|
/packages/apps/UnifiedEmail/src/com/android/mail/browse/ |
D | SendersView.java | 190 final Object span; in createMessageInfo() local 193 span = sSendingStyleSpan; in createMessageInfo() 196 span = sSendingStyleSpan; in createMessageInfo() 199 span = sFailedStyleSpan; in createMessageInfo() 202 appendMessageInfo(messageInfo, statusText, span, appendSplitToken, conv.read); in createMessageInfo() 219 Object span, boolean appendSplitToken, boolean convRead) { in appendMessageInfo() argument 230 sb.setSpan(span, startIndex, sb.length(), Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in appendMessageInfo()
|
D | SubjectAndFolderView.java | 204 final FolderSpan span = new FolderSpan(name, fgColor, bgColor, mFolderDrawableResources, in addSpan() local 208 sb.setSpan(span, start, start + name.length(), Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in addSpan()
|
D | MessageHeaderView.java | 1350 for (URLSpan span : urls) { in stripUnderlines() 1351 final int start = spannable.getSpanStart(span); in stripUnderlines() 1352 final int end = spannable.getSpanEnd(span); in stripUnderlines() 1353 spannable.removeSpan(span); in stripUnderlines() 1354 span = new EmailAddressSpan(account, span.getURL().substring(7)); in stripUnderlines() 1355 spannable.setSpan(span, start, end, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in stripUnderlines()
|
/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/EmergencyInfo/tests/src/com/android/emergency/preferences/ |
D | EmergencyListPreferenceTest.java | 168 TtsSpan[] span = entry.getSpans(0, in testContentDescriptions() local 170 assertEquals(1, span.length); in testContentDescriptions() 171 assertEquals(span[0].getArgs().get(TtsSpan.ARG_TEXT), in testContentDescriptions()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
D | RichInputConnection.java | 317 for (final CharacterStyle span : spans) { in commitText() 318 final int spanStart = mTempObjectForCommitText.getSpanStart(span); in commitText() 319 final int spanEnd = mTempObjectForCommitText.getSpanEnd(span); in commitText() 320 final int spanFlags = mTempObjectForCommitText.getSpanFlags(span); in commitText() 330 mTempObjectForCommitText.setSpan(span, spanStart, spanEnd + 1, spanFlags); in commitText()
|
/packages/services/Telephony/src/com/android/phone/ |
D | IccNetworkDepersonalizationPanel.java | 150 Spannable span = (Spannable) text; in onCreate() local 151 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/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/ |
D | InputLogic.java | 1575 for (final SuggestionSpan span : range.getSuggestionSpansAtWord()) { in restartSuggestionsOnWordTouchedByCursor() 1576 for (final String s : span.getSuggestions()) { in restartSuggestionsOnWordTouchedByCursor() 1680 for (final Object span : spans) { in revertCommit() 1684 if (span instanceof SuggestionSpan) { in revertCommit() 1685 final SuggestionSpan suggestionSpan = (SuggestionSpan)span; in revertCommit() 1693 textToCommit.setSpan(span, 0 /* start */, lastCharIndex /* end */, in revertCommit() 1694 committedWordWithSuggestionSpans.getSpanFlags(span)); in revertCommit()
|
/packages/apps/Calendar/src/com/android/calendar/ |
D | Utils.java | 1845 URLSpan span = new URLSpan("geo:0,0?q=" + coordMatcher.group()); in extendedLinkify() local 1846 spanText.setSpan(span, start, end, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in extendedLinkify() 1892 URLSpan span = new URLSpan("tel:" + dialBuilder.toString()); in extendedLinkify() local 1894 spanText.setSpan(span, start, end, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in extendedLinkify() 2068 for (URLSpan span : spanList) { in spanWillOverlap() 2069 int existingStart = spanText.getSpanStart(span); in spanWillOverlap() 2070 int existingEnd = spanText.getSpanEnd(span); in spanWillOverlap()
|
/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/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/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/apps/Gallery2/src/com/android/photos/views/ |
D | GalleryThumbnailView.java | 707 public int span = 1; field in GalleryThumbnailView.LayoutParams 754 span = a.getInteger(SPAN_INDEX, 1); in LayoutParams()
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | Launcher.java | 2249 int span[] = new int[2]; in addPendingItem() local 2250 span[0] = spanX; in addPendingItem() 2251 span[1] = spanY; in addPendingItem() 2253 container, screenId, cell, span); in addPendingItem() local 2295 int[] cell, int[] span) { in addAppWidgetFromDrop() argument 2307 if (span != null) { in addAppWidgetFromDrop() 2308 mPendingAddInfo.spanX = span[0]; in addAppWidgetFromDrop() 2309 mPendingAddInfo.spanY = span[1]; in addAppWidgetFromDrop()
|
/packages/apps/TV/usbtuner/libs/ |
D | exoplayer_1.5.6.jar | ... .android.exoplayer.upstream.cache.CacheSpan span
public void onSpanRemoved (com.google.android. ... |