/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/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/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/Settings/src/com/android/settings/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/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 | 299 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/ |
D | SpannableUtilTest.java | 35 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/ |
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/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/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/modules/Permission/PermissionController/src/com/android/permissioncontroller/incident/ |
D | ConfirmationActivity.java | 152 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/ |
D | TopRow.java | 162 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/ |
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/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/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/dialpadview/ |
D | DialpadView.java | 183 Spannable spannable = in setupKeypad() local 185 spannable.setSpan( in setupKeypad() 190 numberContentDescription = spannable; in setupKeypad()
|
/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;
|
/packages/apps/Contacts/src/com/android/contacts/list/ |
D | ContactListItemView.java | 1310 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/ |
D | InputLogic.java | 2302 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/ |
D | packages.mk | 72 com.android.dialer.spannable \
|
/packages/apps/Dialer/java/com/android/dialer/voicemail/settings/ |
D | VoicemailSettingsFragment.java | 43 import com.android.dialer.spannable.ContentWithLearnMoreSpanner;
|