Home
last modified time | relevance | path

Searched refs:spannable (Results 1 – 25 of 26) 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/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/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/Settings/src/com/android/settings/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/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.java299 Spannable spannable = new SpannableString(string); in getActionText() local
300 spannable.setSpan( in getActionText()
301 new ForegroundColorSpan(mContext.getColor(colorRes)), 0, spannable.length(), 0); in getActionText()
302 return spannable; in getActionText()
/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/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/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/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/modules/Permission/PermissionController/src/com/android/permissioncontroller/incident/
DConfirmationActivity.java152 final SpannableString spannable = new SpannableString(text.toString()); in onCreate() local
156 spannable.setSpan(new BulletSpan(bulletIndent, bulletColor, bulletSize), in onCreate()
161 reasonTextView.setText(spannable); in onCreate()
/packages/apps/Dialer/java/com/android/incallui/contactgrid/
DTopRow.java162 Spannable spannable = new SpannableString(label); in getColoredConnectionLabel() local
166 spannable.setSpan( in getColoredConnectionLabel()
171 return spannable; in getColoredConnectionLabel()
/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/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/spannable/
DUrlSpanWithoutUnderline.java16 package com.android.dialer.spannable;
DContentWithLearnMoreSpanner.java16 package com.android.dialer.spannable;
/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/Dialer/java/com/android/dialer/promotion/impl/
DRttPromotion.java26 import com.android.dialer.spannable.ContentWithLearnMoreSpanner;
DDuoPromotion.java26 import com.android.dialer.spannable.ContentWithLearnMoreSpanner;
/packages/apps/Contacts/src/com/android/contacts/list/
DContactListItemView.java1310 final SpannableString spannable = new SpannableString(text); in setMarqueeText() local
1311 spannable.setSpan(TruncateAt.MARQUEE, 0, spannable.length(), in setMarqueeText()
1313 textView.setText(spannable); in setMarqueeText()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/
DInputLogic.java2302 final SpannableString spannable = new SpannableString(newComposingText); in setComposingTextInternalWithBackgroundColor() local
2305 final int spanLength = Math.min(coloredTextLength, spannable.length()); in setComposingTextInternalWithBackgroundColor()
2306 spannable.setSpan(backgroundColorSpan, 0, spanLength, in setComposingTextInternalWithBackgroundColor()
2308 composingTextToBeSet = spannable; in setComposingTextInternalWithBackgroundColor()
/packages/apps/Dialer/
Dpackages.mk72 com.android.dialer.spannable \
/packages/apps/Dialer/java/com/android/dialer/voicemail/settings/
DVoicemailSettingsFragment.java43 import com.android.dialer.spannable.ContentWithLearnMoreSpanner;

12