Home
last modified time | relevance | path

Searched refs:setSpan (Results 1 – 25 of 72) sorted by relevance

123

/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/compat/
DLocaleSpanCompatUtilsTests.java81 text.setSpan(styleSpan, 0, 7, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in testUpdateLocaleSpan()
91 text.setSpan(LocaleSpanCompatUtils.newLocaleSpan(Locale.JAPANESE), 1, 3, in testUpdateLocaleSpan()
101 text.setSpan(LocaleSpanCompatUtils.newLocaleSpan(Locale.JAPANESE), 1, 4, in testUpdateLocaleSpan()
111 text.setSpan(LocaleSpanCompatUtils.newLocaleSpan(Locale.JAPANESE), 1, 4, in testUpdateLocaleSpan()
113 text.setSpan(LocaleSpanCompatUtils.newLocaleSpan(Locale.JAPANESE), 5, 6, in testUpdateLocaleSpan()
123 text.setSpan(LocaleSpanCompatUtils.newLocaleSpan(Locale.JAPANESE), 1, 3, in testUpdateLocaleSpan()
125 text.setSpan(LocaleSpanCompatUtils.newLocaleSpan(Locale.JAPANESE), 5, 6, in testUpdateLocaleSpan()
137 text.setSpan(LocaleSpanCompatUtils.newLocaleSpan(Locale.JAPANESE), 1, 5, in testUpdateLocaleSpan()
148 text.setSpan(LocaleSpanCompatUtils.newLocaleSpan(Locale.JAPANESE), 1, 5, in testUpdateLocaleSpan()
159 text.setSpan(LocaleSpanCompatUtils.newLocaleSpan(Locale.JAPANESE), 3, 7, in testUpdateLocaleSpan()
[all …]
DTextInfoCompatUtilsTests.java50 text.setSpan(TEST_STYLE_SPAN, TEST_STYLE_SPAN_START, TEST_STYLE_SPAN_END, in testGetCharSequence()
52 text.setSpan(TEST_URL_SPAN_URL, TEST_URL_SPAN_START, TEST_URL_SPAN_END, in testGetCharSequence()
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/JAJP/
DTutorialJAJP.java226 setSpan(spannable, "\u25cb", R.drawable.tutorial_12key_key); in TutorialJAJP()
235 setSpan(spannable, "\u25cb", R.drawable.tutorial_12key_toggle); in TutorialJAJP()
243 setSpan(spannable, "\u2192", R.drawable.tutorial_12key_right); in TutorialJAJP()
252 setSpan(spannable, "\u25cb", R.drawable.tutorial_12key_toggle); in TutorialJAJP()
261 setSpan(spannable, "\u25a0", R.drawable.tutorial_12key_space_jp); in TutorialJAJP()
263 setSpan(spannable, "\u2193", R.drawable.tutorial_12key_enter); in TutorialJAJP()
273 setSpan(spannable, "\u25a0", R.drawable.tutorial_12key_mode); in TutorialJAJP()
292 setSpan(spannable, "\u25a0", R.drawable.tutorial_12key_mode); in TutorialJAJP()
301 setSpan(spannable, "\u2190", R.drawable.tutorial_back); in TutorialJAJP()
314 private void setSpan(SpannableStringBuilder spannable, String marker, int imageResourceId) { in setSpan() method in TutorialJAJP
[all …]
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/
DRichInputConnectionAndTextRangeTests.java303 text.setSpan(new SuggestionSpan(Locale.ENGLISH, SUGGESTIONS1, 0 /* flags */), in helpTestGetSuggestionSpansAtWord()
316 text.setSpan(new SuggestionSpan(Locale.ENGLISH, SUGGESTIONS1, 0 /* flags */), in helpTestGetSuggestionSpansAtWord()
318 text.setSpan(new SuggestionSpan(Locale.ENGLISH, SUGGESTIONS2, 0 /* flags */), in helpTestGetSuggestionSpansAtWord()
329 text.setSpan(new SuggestionSpan(Locale.ENGLISH, SUGGESTIONS1, 0 /* flags */), in helpTestGetSuggestionSpansAtWord()
331 text.setSpan(new SuggestionSpan(Locale.ENGLISH, SUGGESTIONS2, 0 /* flags */), in helpTestGetSuggestionSpansAtWord()
341 text.setSpan(new SuggestionSpan(Locale.ENGLISH, SUGGESTIONS1, 0 /* flags */), in helpTestGetSuggestionSpansAtWord()
343 text.setSpan(new SuggestionSpan(Locale.ENGLISH, SUGGESTIONS2, 0 /* flags */), in helpTestGetSuggestionSpansAtWord()
353 text.setSpan(new SuggestionSpan(Locale.ENGLISH, SUGGESTIONS1, 0 /* flags */), in helpTestGetSuggestionSpansAtWord()
355 text.setSpan(new SuggestionSpan(Locale.ENGLISH, SUGGESTIONS2, 0 /* flags */), in helpTestGetSuggestionSpansAtWord()
365 text.setSpan(new SuggestionSpan(Locale.ENGLISH, SUGGESTIONS1, 0 /* flags */), in helpTestGetSuggestionSpansAtWord()
[all …]
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/utils/
DSpannableStringUtilsTests.java37 s.setSpan(new SuggestionSpan(getContext(), in testConcatWithSuggestionSpansOnly()
41 s.setSpan(new SuggestionSpan(getContext(), new String[] {"" + i}, 0), i, i * 2, 0); in testConcatWithSuggestionSpansOnly()
43 s.setSpan(new URLSpan("http://a"), i, i * 2, 0); in testConcatWithSuggestionSpansOnly()
102 spannableString.setSpan(span1, 0, 7, SPAN1_FLAGS); in testSplitCharSequenceWithSpan()
103 spannableString.setSpan(span2, 0, 5, SPAN2_FLAGS); in testSplitCharSequenceWithSpan()
104 spannableString.setSpan(span3, 12, 13, SPAN3_FLAGS); in testSplitCharSequenceWithSpan()
/packages/apps/UnifiedEmail/src/com/android/mail/widget/
DWidgetConversationListItemViewBuilder.java133 builder.setSpan( in addStyle()
136 builder.setSpan(new ForegroundColorSpan(color), 0, text.length(), in addStyle()
160 dateBuilder.setSpan(new StyleSpan(Typeface.BOLD), 0, date.length(), in getStyledView()
167 subjectBuilder.setSpan(new StyleSpan(Typeface.BOLD), 0, subject.length(), in getStyledView()
172 subjectBuilder.setSpan(subjectStyle, 0, subjectBuilder.length(), in getStyledView()
177 snippetBuilder.setSpan(new ForegroundColorSpan(SNIPPET_TEXT_COLOR), 0, in getStyledView()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/compat/
DLocaleSpanCompatUtils.java158 spannable.setSpan(localeSpan, newStart, newEnd, localeSpanFlag); in updateLocaleSpan()
185 spannable.setSpan(localeSpan, spanStart, removeStart, spanFlags); in removeLocaleSpanFromRange()
187 spannable.setSpan(attionalLocaleSpan, removeEnd, spanEnd, spanFlags); in removeLocaleSpanFromRange()
191 spannable.setSpan(localeSpan, spanStart, removeStart, spanFlags); in removeLocaleSpanFromRange()
196 spannable.setSpan(localeSpan, removeEnd, spanEnd, spanFlags); in removeLocaleSpanFromRange()
DSuggestionSpanUtils.java68 spannable.setSpan(suggestionSpan, 0, text.length(), in getTextWithAutoCorrectionIndicatorUnderline()
98 spannable.setSpan(suggestionSpan, 0, pickedWord.length(), Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in getTextWithSuggestionSpan()
/packages/apps/UnifiedEmail/src/com/android/mail/utils/
DHtmlUtils.java163 mBuilder.setSpan(marker, start, end, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in handleEnd()
179 mBuilder.setSpan(new ForegroundColorSpan(c | 0xFF000000), start, end, in handleFont()
189 mBuilder.setSpan(new AbsoluteSizeSpan(i * WEB_TO_ANDROID_SIZE_MULTIPLIER, in handleFont()
199 mBuilder.setSpan(new TypefaceSpan(family.trim()), start, end, in handleFont()
DStyleUtils.java54 input.setSpan(new LinkStyleSpan(onClickListener), start, end, in stripUnderlinesAndLinkUrls()
DNotificationUtils.java1415 s.setSpan(spans[0], 0, s.length(), 0); in copyStyles()
1464 spannableString.setSpan(notificationPrimarySpan, 0, senders.length(), 0); in getSingleMessageInboxLine()
1488 spannableString.setSpan(notificationPrimarySpan, in getSingleMessageInboxLine()
1490 spannableString.setSpan(notificationSecondarySpan, in getSingleMessageInboxLine()
1508 spannableString.setSpan(notificationSubjectSpan, 0, subject.length(), 0);
1540 spannableString.setSpan(notificationSubjectSpan, 0, subject.length(), 0);
1557 spannableString.setSpan(notificationSubjectSpan,
1595 titleSpannable.setSpan(notificationSubjectSpan, in getSingleMessageNotificationTitle()
/packages/apps/UnifiedEmail/src/com/android/mail/browse/
DSendersView.java223 sb.setSpan(CharacterStyle.wrap(convRead ? in appendMessageInfo()
230 sb.setSpan(span, startIndex, sb.length(), Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in appendMessageInfo()
362 spannableDisplay.setSpan(style, 0, spannableDisplay.length(), 0); in handlePriority()
368 spannableDisplay.setSpan(style, 0, spannableDisplay.length(), 0); in handlePriority()
445 formattedToHeader.setSpan(readStyle, 0, formattedToHeader.length(), 0); in getFormattedToHeader()
453 formattedDraftString.setSpan(readStyle, 0, formattedDraftString.length(), 0); in getSingularDraftString()
DSubjectAndFolderView.java117 sb.setSpan(new ReplacementSpan() { in setFolders()
142 sb.setSpan(new ChangeLabelsSpan(callbacks), start, end, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in setFolders()
208 sb.setSpan(span, start, start + name.length(), Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in addSpan()
DConversationItemView.java861 participantText.setSpan(sActivatedTextSpan, 0, in layoutParticipantText()
890 displayedStringBuilder.setSpan(TextAppearanceSpan.wrap( in createSubject()
895 displayedStringBuilder.setSpan(sActivatedTextSpan, badgeTextLength, in createSubject()
928 displayedStringBuilder.setSpan(TextAppearanceSpan.wrap(sBadgeTextSpan), in formatBadgeText()
930 displayedStringBuilder.setSpan(TextAppearanceSpan.wrap(sBadgeBackgroundSpan), in formatBadgeText()
932 displayedStringBuilder.setSpan(new BadgeSpan(displayedStringBuilder, this), in formatBadgeText()
1142 s.setSpan(spans[0], 0, s.length(), 0); in copyStyles()
/packages/apps/ContactsCommon/src/com/android/contacts/common/format/
DTextHighlighter.java67 text.setSpan(getStyleSpan(), start, end, 0); in applyMaskingHighlight()
92 result.setSpan(mTextStyleSpan, index, index + trimmedPrefix.length(), 0 /* flags */); in applyPrefixHighlight()
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/EN/
DTutorialEN.java229 setSpan(spannable, "\u2190", R.drawable.tutorial_back); in TutorialEN()
242 private void setSpan(SpannableStringBuilder spannable, String marker, int imageResourceId) { in setSpan() method in TutorialEN
248 spannable.setSpan(span, target, target + 1, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in setSpan()
/packages/apps/Settings/src/com/android/settings/applications/
DClearDefaultsPreference.java143 s.setSpan(new BulletSpan(bulletIndent), 0, autoLaunchEnableText.length(), 0); in updateUI()
153 s.setSpan(new BulletSpan(bulletIndent), in updateUI()
/packages/apps/DeskClock/src/com/android/deskclock/
DUtils.java560 sp.setSpan(new RelativeSizeSpan(amPmProportion), amPmPos, amPmPos + 1, in get12ModeFormat()
562 sp.setSpan(new StyleSpan(Typeface.NORMAL), amPmPos, amPmPos + 1, in get12ModeFormat()
564 sp.setSpan(new TypefaceSpan("sans-serif"), amPmPos, amPmPos + 1, in get12ModeFormat()
571 sp.setSpan(new RelativeSizeSpan(proportion), 0, pattern.length(), in get12ModeFormat()
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/
DOpenWnnEN.java836 disp.setSpan(SPAN_EXACT_BGCOLOR_HL, 0, cursor, in updateComposingText()
840 mDisplayText.setSpan(SPAN_REMAIN_BGCOLOR_HL, cursor, disp.length(), in updateComposingText()
842 mDisplayText.setSpan(SPAN_TEXTCOLOR, 0, disp.length(), in updateComposingText()
846 disp.setSpan(SPAN_UNDERLINE, 0, disp.length(), in updateComposingText()
/packages/apps/TV/src/com/android/tv/guide/
DProgramItemView.java297 description.setSpan(titleStyle, 0, middle, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in setValues()
298 description.setSpan(episodeStyle, middle, description.length(), in setValues()
301 description.setSpan(titleStyle, 0, description.length(), in setValues()
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
DCellBroadcastResources.java48 buf.setSpan(new StyleSpan(Typeface.BOLD), start, end, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in getMessageDetails()
101 buf.setSpan(new StyleSpan(Typeface.BOLD), start, end, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in appendMessageDetail()
/packages/apps/Settings/src/com/android/settings/datausage/
DDataUsageSummary.java195 s.setSpan(new RelativeSizeSpan(SIZE), 0, s.length(), FLAGS); in verySmallSpanExcept()
198 s.setSpan(new RelativeSizeSpan(SIZE), 0, exceptionStart, FLAGS); in verySmallSpanExcept()
202 s.setSpan(new RelativeSizeSpan(SIZE), exceptionEnd, s.length(), FLAGS); in verySmallSpanExcept()
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
DSuggestionFormatter.java54 text.setSpan(span, start, end, 0); in setSpans()
/packages/apps/Messaging/src/com/android/messaging/datamodel/
DBugleNotifications.java996 spannableStringBuilder.setSpan(notificationSenderSpan, 0, sender.length(), 0); in formatInboxMessage()
1006 spannableStringBuilder.setSpan(notificationTertiaryText, start, in formatInboxMessage()
1046 spanBuilder.setSpan(new StyleSpan(Typeface.BOLD), 0, title.length(), in buildBoldedMessage()
1074 spannableStringBuilder.setSpan(notificationSenderSpan, 0, author.length(), 0); in formatAttachmentTag()
1090 spannableStringBuilder.setSpan(notificationSecondaryText, start, in formatAttachmentTag()
/packages/apps/Messaging/src/com/android/messaging/widget/
DWidgetConversationListService.java180 builder.setSpan(new StyleSpan(Typeface.ITALIC), 0, text.length(), in getViewAt()
182 builder.setSpan(new ForegroundColorSpan( in getViewAt()

123