Home
last modified time | relevance | path

Searched refs:spannable (Results 1 – 25 of 30) sorted by relevance

12

/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/compat/
DLocaleSpanCompatUtils.java78 public static void updateLocaleSpan(final Spannable spannable, final int start, in updateLocaleSpan() argument
96 final int searchEnd = Math.min(end + 1, spannable.length()); in updateLocaleSpan()
98 final Object[] existingLocaleSpans = spannable.getSpans(searchStart, searchEnd, in updateLocaleSpan()
112 removeLocaleSpanFromRange(existingLocaleSpan, spannable, start, end); in updateLocaleSpan()
115 final int spanStart = spannable.getSpanStart(existingLocaleSpan); in updateLocaleSpan()
116 final int spanEnd = spannable.getSpanEnd(existingLocaleSpan); in updateLocaleSpan()
128 final int spanFlag = spannable.getSpanFlags(existingLocaleSpan); in updateLocaleSpan()
150 originalLocaleSpanFlag = spannable.getSpanFlags(localeSpan); in updateLocaleSpan()
153 spannable.removeSpan(existingLocaleSpansToBeMerged.get(i)); in updateLocaleSpan()
158 spannable.setSpan(localeSpan, newStart, newEnd, localeSpanFlag); in updateLocaleSpan()
[all …]
DSuggestionSpanUtils.java65 final Spannable spannable = new SpannableString(text); in getTextWithAutoCorrectionIndicatorUnderline() local
68 spannable.setSpan(suggestionSpan, 0, text.length(), in getTextWithAutoCorrectionIndicatorUnderline()
70 return spannable; in getTextWithAutoCorrectionIndicatorUnderline()
97 final Spannable spannable = new SpannableString(pickedWord); in getTextWithSuggestionSpan() local
98 spannable.setSpan(suggestionSpan, 0, pickedWord.length(), Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in getTextWithSuggestionSpan()
99 return spannable; in getTextWithSuggestionSpan()
/packages/apps/Contacts/tests/src/com/android/contacts/format/
DSpannedTestUtils.java58 Spanned spannable = (Spanned) seq; in assertPrefixSpan() local
61 Assert.assertEquals(0, getNumForegroundColorSpansBetween(spannable, 0, start - 1)); in assertPrefixSpan()
63 Assert.assertEquals(1, getNumForegroundColorSpansBetween(spannable, start, end)); in assertPrefixSpan()
64 Assert.assertEquals(0, getNumForegroundColorSpansBetween(spannable, end + 1, in assertPrefixSpan()
65 spannable.length() - 1)); in assertPrefixSpan()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
DCursorAnchorInfoUtils.java149 final Spannable spannable = (Spannable) text; in extractFromTextViewInternal() local
150 final Object[] spans = spannable.getSpans(0, text.length(), Object.class); 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/Contacts/src/com/android/contacts/compat/
DPhoneNumberUtilsCompat.java108 Spannable spannable = Spannable.Factory.getInstance().newSpannable(phoneNumber); in createTtsSpannableInternal() local
109 addTtsSpanInternal(spannable, 0, spannable.length()); in createTtsSpannableInternal()
110 return spannable; in createTtsSpannableInternal()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/deviceinfo/imei/
DImeiInfoDialogController.java61 final Spannable spannable = new SpannableStringBuilder(text); in getTextAsDigits() local
63 spannable.setSpan(span, 0, spannable.length(), Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in getTextAsDigits()
64 text = spannable; in getTextAsDigits()
/packages/apps/Settings/src/com/android/settings/deviceinfo/imei/
DImeiInfoDialogController.java62 final Spannable spannable = new SpannableStringBuilder(text); in getTextAsDigits() local
64 spannable.setSpan(span, 0, spannable.length(), Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in getTextAsDigits()
65 text = spannable; in getTextAsDigits()
/packages/apps/Dialer/java/com/android/dialer/voicemail/listui/error/
DVoicemailTosMessageCreator.java536 private SpannableString addLink(SpannableString spannable, String linkText, String linkUrl) {
538 return spannable;
541 int start = spannable.toString().indexOf(linkText);
544 spannable.setSpan(new URLSpan(linkUrl), start, end, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
545 spannable.setSpan(
551 return spannable;
/packages/services/Telecomm/src/com/android/server/telecom/ui/
DIncomingCallNotifier.java290 Spannable spannable = new SpannableString(string); in getActionText() local
291 spannable.setSpan( in getActionText()
292 new ForegroundColorSpan(mContext.getColor(colorRes)), 0, spannable.length(), 0); in getActionText()
293 return spannable; in getActionText()
/packages/apps/Dialer/java/com/android/incallui/
DStatusBarNotifier.java849 Spannable spannable = new SpannableString(context.getText(stringRes)); in getActionText() local
854 spannable.setSpan( in getActionText()
855 new ForegroundColorSpan(context.getColor(colorRes)), 0, spannable.length(), 0); in getActionText()
857 return spannable; in getActionText()
899 Spannable spannable = new SpannableString(context.getText(buttonText.get())); in addSpeakeasyAnswerAction() local
902 spannable.setSpan( in addSpeakeasyAnswerAction()
906 spannable.length(), in addSpeakeasyAnswerAction()
912 spannable, in addSpeakeasyAnswerAction()
/packages/apps/Dialer/java/com/android/contacts/common/util/
DContactDisplayUtils.java217 final Spannable spannable = new SpannableString(message); in getTelephoneTtsSpannable() local
222 spannable.setSpan( in getTelephoneTtsSpannable()
229 return spannable; in getTelephoneTtsSpannable()
/packages/apps/PermissionController/src/com/android/packageinstaller/incident/
DConfirmationActivity.java149 final SpannableString spannable = new SpannableString(text.toString()); in onCreate() local
153 spannable.setSpan(new BulletSpan(bulletIndent, bulletColor, bulletSize), in onCreate()
158 reasonTextView.setText(spannable); in onCreate()
/packages/apps/Contacts/src/com/android/contacts/util/
DContactDisplayUtils.java176 final Spannable spannable = new SpannableString(message); in getTelephoneTtsSpannable() local
181spannable.setSpan(ttsSpan, start, end, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); // this is… in getTelephoneTtsSpannable()
184 return spannable; in getTelephoneTtsSpannable()
/packages/apps/Settings/tests/robotests/src/com/android/settings/datetime/timezone/
DSpannableUtilTest.java35 Spannable spannable = SpannableUtil.getResourcesText( in testFormat() local
38 assertThat(spannable.toString()).isEqualTo("UTC (GMT+00:00)"); in testFormat()
/packages/apps/UnifiedEmail/src/com/android/mail/utils/
DStyleUtils.java38 final Spannable spannable = (Spannable) textView.getText(); in stripUnderlinesAndLinkUrls() local
39 stripUnderlinesAndLinkUrls(spannable, onClickListener); in stripUnderlinesAndLinkUrls()
/packages/apps/Contacts/src/com/android/contacts/editor/
DTextFieldsEditorView.java368 final Spannable spannable = (Spannable) s; in setValues()
369 final TtsSpan[] spans = spannable.getSpans(0, s.length(), TtsSpan.class); in setValues()
371 spannable.removeSpan(spans[i]); in setValues()
373 PhoneNumberUtilsCompat.addTtsSpan(spannable, 0, s.length()); in setValues()
/packages/apps/Dialer/java/com/android/incallui/contactgrid/
DTopRow.java160 Spannable spannable = new SpannableString(label); in getColoredConnectionLabel() local
164 spannable.setSpan( in getColoredConnectionLabel()
169 return spannable; in getColoredConnectionLabel()
/packages/apps/PhoneCommon/src/com/android/phone/common/dialpad/
DDialpadView.java182 Spannable spannable = in setupKeypad() local
184 spannable.setSpan( in setupKeypad()
189 numberContentDescription = spannable; in setupKeypad()
/packages/apps/Dialer/java/com/android/dialer/dialpadview/
DDialpadView.java183 Spannable spannable = in setupKeypad() local
185 spannable.setSpan( in setupKeypad()
190 numberContentDescription = spannable; in setupKeypad()
/packages/apps/UnifiedEmail/src/com/android/mail/providers/
DMessage.java718 final SpannableString spannable = new SpannableString(bodyText); in getBodyAsHtml() local
719 Linkify.addLinks(spannable, Linkify.EMAIL_ADDRESSES); in getBodyAsHtml()
720 body = Html.toHtml(spannable); in getBodyAsHtml()
/packages/apps/UnifiedEmail/src/com/android/mail/browse/
DMessageHeaderView.java1347 final Spannable spannable = (Spannable) textView.getText(); in stripUnderlines() local
1351 final int start = spannable.getSpanStart(span); in stripUnderlines()
1352 final int end = spannable.getSpanEnd(span); in stripUnderlines()
1353 spannable.removeSpan(span); in stripUnderlines()
1355 spannable.setSpan(span, start, end, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in stripUnderlines()
/packages/apps/Dialer/java/com/android/dialer/spannable/
DUrlSpanWithoutUnderline.java16 package com.android.dialer.spannable;
DContentWithLearnMoreSpanner.java16 package com.android.dialer.spannable;
/packages/apps/Dialer/java/com/android/dialer/promotion/impl/
DRttPromotion.java26 import com.android.dialer.spannable.ContentWithLearnMoreSpanner;
DDuoPromotion.java26 import com.android.dialer.spannable.ContentWithLearnMoreSpanner;

12