/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/compat/ |
D | LocaleSpanCompatUtils.java | 78 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 …]
|
D | SuggestionSpanUtils.java | 65 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/ |
D | SpannedTestUtils.java | 58 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/ |
D | CursorAnchorInfoUtils.java | 149 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/ |
D | PhoneNumberUtilsCompat.java | 108 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/ |
D | ImeiInfoDialogController.java | 61 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/ |
D | ImeiInfoDialogController.java | 62 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/ |
D | VoicemailTosMessageCreator.java | 536 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/ |
D | IncomingCallNotifier.java | 290 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/ |
D | StatusBarNotifier.java | 849 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/ |
D | ContactDisplayUtils.java | 217 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/ |
D | ConfirmationActivity.java | 149 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/ |
D | ContactDisplayUtils.java | 176 final Spannable spannable = new SpannableString(message); in getTelephoneTtsSpannable() local 181 …spannable.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/ |
D | SpannableUtilTest.java | 35 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/ |
D | StyleUtils.java | 38 final Spannable spannable = (Spannable) textView.getText(); in stripUnderlinesAndLinkUrls() local 39 stripUnderlinesAndLinkUrls(spannable, onClickListener); in stripUnderlinesAndLinkUrls()
|
/packages/apps/Contacts/src/com/android/contacts/editor/ |
D | TextFieldsEditorView.java | 368 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/ |
D | TopRow.java | 160 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/ |
D | DialpadView.java | 182 Spannable spannable = in setupKeypad() local 184 spannable.setSpan( in setupKeypad() 189 numberContentDescription = spannable; in setupKeypad()
|
/packages/apps/Dialer/java/com/android/dialer/dialpadview/ |
D | DialpadView.java | 183 Spannable spannable = in setupKeypad() local 185 spannable.setSpan( in setupKeypad() 190 numberContentDescription = spannable; in setupKeypad()
|
/packages/apps/UnifiedEmail/src/com/android/mail/providers/ |
D | Message.java | 718 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/ |
D | MessageHeaderView.java | 1347 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/ |
D | UrlSpanWithoutUnderline.java | 16 package com.android.dialer.spannable;
|
D | ContentWithLearnMoreSpanner.java | 16 package com.android.dialer.spannable;
|
/packages/apps/Dialer/java/com/android/dialer/promotion/impl/ |
D | RttPromotion.java | 26 import com.android.dialer.spannable.ContentWithLearnMoreSpanner;
|
D | DuoPromotion.java | 26 import com.android.dialer.spannable.ContentWithLearnMoreSpanner;
|