/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/SampleLocationAttribution/src/com/example/android/locationattribution/ |
D | MainActivity.java | 204 for(URLSpan span: textAppInfo.getSpans(0, textAppInfo.length(), URLSpan.class)) { 205 int start = textAppInfo.getSpanStart(span); 206 int end = textAppInfo.getSpanEnd(span); 207 textAppInfo.removeSpan(span); 208 textAppInfo.setSpan(new AppInfoTextLinkClickableSpan(span.getURL()), start, end, 0);
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/common/ |
D | AccessibilityContextMenuMaker.java | 98 for (ClickableSpan span : spans) { in populateMenuContent() 99 int s = spanned.getSpanStart(span); in populateMenuContent() 100 int t = spanned.getSpanEnd(span); in populateMenuContent() 102 span.onClick(textView); in populateMenuContent()
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/compat/ |
D | LocaleSpanCompatUtilsTests.java | 56 final Object span = spanned.getSpans(0, spanned.length(), Object.class)[index]; in assertLocaleSpan() local 57 assertEquals(expectedLocale, LocaleSpanCompatUtils.getLocaleFromLocaleSpan(span)); in assertLocaleSpan() 58 assertEquals(expectedStart, spanned.getSpanStart(span)); in assertLocaleSpan() 59 assertEquals(expectedEnd, spanned.getSpanEnd(span)); in assertLocaleSpan() 60 assertEquals(expectedSpanFlags, spanned.getSpanFlags(span)); in assertLocaleSpan()
|
/packages/apps/Dialer/java/com/android/dialer/searchfragment/common/ |
D | QueryBoldingUtil.java | 162 SpannableString span = new SpannableString(s); in getBoldedString() local 163 span.setSpan( in getBoldedString() 165 return span; in getBoldedString()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/biometrics/fingerprint/ |
D | FingerprintEnrollIntroduction.java | 37 import com.google.android.setupdesign.span.LinkSpan; 163 public void onClick(LinkSpan span) { in onClick() argument 164 if ("url".equals(span.getId())) { in onClick()
|
/packages/apps/Settings/src/com/android/settings/biometrics/fingerprint/ |
D | FingerprintEnrollIntroduction.java | 37 import com.google.android.setupdesign.span.LinkSpan; 163 public void onClick(LinkSpan span) { in onClick() argument 164 if ("url".equals(span.getId())) { in onClick()
|
/packages/apps/EmergencyInfo/tests/unit/src/com/android/emergency/preferences/ |
D | EmergencyListPreferenceTest.java | 143 TtsSpan[] span = entry.getSpans(0, in testContentDescriptions() local 145 assertThat(span.length).isEqualTo(1); in testContentDescriptions() 147 span[0].getArgs().get(TtsSpan.ARG_TEXT)); in testContentDescriptions()
|
/packages/apps/DeskClock/src/com/android/deskclock/ |
D | FormattedTextUtils.java | 37 public static CharSequence formatText(CharSequence text, Object span) { in formatText() argument 43 formattedText.setSpan(span, 0, formattedText.length(), Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in formatText()
|
/packages/apps/Dialer/java/com/android/voicemail/impl/protocol/ |
D | Vvm3Subscriber.java | 355 for (URLSpan span : spans) { in findSubscribeLink() 356 String text = doc.subSequence(doc.getSpanStart(span), doc.getSpanEnd(span)).toString(); in findSubscribeLink() 359 return span.getURL(); in findSubscribeLink()
|
/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/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/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/deviceinfo/imei/ |
D | ImeiInfoDialogController.java | 61 final TtsSpan span = new TtsSpan.DigitsBuilder(text.toString()).build(); in getTextAsDigits() local 62 spannable.setSpan(span, 0, spannable.length(), Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in getTextAsDigits()
|
/packages/apps/Settings/src/com/android/settings/deviceinfo/imei/ |
D | ImeiInfoDialogController.java | 62 final TtsSpan span = new TtsSpan.DigitsBuilder(text.toString()).build(); in getTextAsDigits() local 63 spannable.setSpan(span, 0, spannable.length(), Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in getTextAsDigits()
|
/packages/apps/Settings/src/com/android/settings/biometrics/face/ |
D | FaceEnrollIntroduction.java | 36 import com.google.android.setupdesign.span.LinkSpan; 215 public void onClick(LinkSpan span) { in onClick() argument
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/slice/ |
D | WifiSlice.java | 204 final Spannable span = new SpannableString(name); in getAccessPointName() local 207 span.setSpan(new ForegroundColorSpan(color), 0, name.length(), in getAccessPointName() 209 return span; in getAccessPointName()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/biometrics/ |
D | BiometricEnrollIntroduction.java | 37 import com.google.android.setupdesign.span.LinkSpan; 121 public abstract void onClick(LinkSpan span); in onClick() argument
|
/packages/apps/Settings/src/com/android/settings/biometrics/ |
D | BiometricEnrollIntroduction.java | 38 import com.google.android.setupdesign.span.LinkSpan; 124 public abstract void onClick(LinkSpan span); in onClick() argument
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/biometrics/face/ |
D | FaceEnrollIntroduction.java | 40 import com.google.android.setupdesign.span.LinkSpan; 230 public void onClick(LinkSpan span) { in onClick() argument
|
/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/QuickSearchBox/tests/src/com/android/quicksearchbox/ |
D | LevenshteinFormatterTest.java | 153 for (SpanFormat span : spans) { in verifyFormatSuggestion() 154 span.verify(s); in verifyFormatSuggestion()
|
/packages/services/Telephony/src/com/android/phone/ |
D | IccNetworkDepersonalizationPanel.java | 192 Spannable span = (Spannable) text; in onCreate() local 193 span.setSpan(mPinEntryWatcher, 0, text.length(), Spannable.SPAN_INCLUSIVE_INCLUSIVE); in onCreate()
|