Home
last modified time | relevance | path

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

12

/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/
DBlueUnderlineTests.java35 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/
DAndroidSpellCheckerServiceTest.java35 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/
DTextRange.java80 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()
DCursorAnchorInfoUtils.java151 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/
DMainActivity.java204 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/
DAccessibilityContextMenuMaker.java98 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/
DLocaleSpanCompatUtilsTests.java56 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/
DQueryBoldingUtil.java162 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/
DFingerprintEnrollIntroduction.java37 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/
DFingerprintEnrollIntroduction.java37 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/
DEmergencyListPreferenceTest.java143 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/
DFormattedTextUtils.java37 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/
DVvm3Subscriber.java355 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/
DSuggestionFormatter.java53 for (Object span : spans) { in setSpans()
54 text.setSpan(span, start, end, 0); in setSpans()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DRichInputConnection.java317 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/
DImeiInfoDialogController.java61 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/
DImeiInfoDialogController.java62 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/
DFaceEnrollIntroduction.java36 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/
DWifiSlice.java204 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/
DBiometricEnrollIntroduction.java37 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/
DBiometricEnrollIntroduction.java38 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/
DFaceEnrollIntroduction.java40 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/
DInputLogic.java1575 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/
DLevenshteinFormatterTest.java153 for (SpanFormat span : spans) { in verifyFormatSuggestion()
154 span.verify(s); in verifyFormatSuggestion()
/packages/services/Telephony/src/com/android/phone/
DIccNetworkDepersonalizationPanel.java192 Spannable span = (Spannable) text; in onCreate() local
193 span.setSpan(mPinEntryWatcher, 0, text.length(), Spannable.SPAN_INCLUSIVE_INCLUSIVE); in onCreate()

12