Home
last modified time | relevance | path

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

/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/JAJP/
DTutorialJAJP.java220 SpannableStringBuilder spannable = new SpannableStringBuilder(); in TutorialJAJP() local
223 spannable.clear(); in TutorialJAJP()
224 spannable.append(r.getText(R.string.tip_to_step1)); in TutorialJAJP()
226 setSpan(spannable, "\u25cb", R.drawable.tutorial_12key_key); in TutorialJAJP()
229 spannable, R.string.touch_to_continue, false); in TutorialJAJP()
232 spannable.clear(); in TutorialJAJP()
233 spannable.append(r.getText(R.string.tip_to_step2_a)); in TutorialJAJP()
235 setSpan(spannable, "\u25cb", R.drawable.tutorial_12key_toggle); in TutorialJAJP()
238 spannable, R.string.touch_to_continue, true); in TutorialJAJP()
241 spannable.append(r.getText(R.string.tip_to_step2_b)); in TutorialJAJP()
[all …]
/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/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/EN/
DTutorialEN.java216 SpannableStringBuilder spannable = new SpannableStringBuilder(); in TutorialEN() local
219 spannable.clear(); in TutorialEN()
220 spannable.append(r.getText(R.string.tip_en_to_open_keyboard)); in TutorialEN()
223 spannable, R.string.touch_to_continue, false); in TutorialEN()
226 spannable.clear(); in TutorialEN()
227 spannable.append(r.getText(R.string.tip_en_to_close_keyboard)); in TutorialEN()
229 setSpan(spannable, "\u2190", R.drawable.tutorial_back); in TutorialEN()
233 spannable, R.string.touch_to_continue, false); in TutorialEN()
242 private void setSpan(SpannableStringBuilder spannable, String marker, int imageResourceId) { in setSpan() argument
243 String text = spannable.toString(); in setSpan()
[all …]
/packages/apps/ContactsCommon/src/com/android/contacts/common/format/
DSpannedTestUtils.java60 Spanned spannable = (Spanned) seq; in assertPrefixSpan() local
63 Assert.assertEquals(0, getNumForegroundColorSpansBetween(spannable, 0, start - 1)); in assertPrefixSpan()
65 Assert.assertEquals(1, getNumForegroundColorSpansBetween(spannable, start, end)); in assertPrefixSpan()
66 Assert.assertEquals(0, getNumForegroundColorSpansBetween(spannable, end + 1, in assertPrefixSpan()
67 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/ContactsCommon/src/com/android/contacts/common/util/
DContactDisplayUtils.java213 final Spannable spannable = new SpannableString(message); in getTelephoneTtsSpannable() local
218spannable.setSpan(ttsSpan, start, end, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); // this is… in getTelephoneTtsSpannable()
221 return spannable; in getTelephoneTtsSpannable()
/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/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/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/ContactsCommon/src/com/android/contacts/common/list/
DContactListItemView.java1046 final SpannableString spannable = new SpannableString(text); in setMarqueeText() local
1047 spannable.setSpan(TruncateAt.MARQUEE, 0, spannable.length(), in setMarqueeText()
1049 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/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/
DTextCandidatesViewManager.java1050 SpannableString spannable = new SpannableString(" "); in setCandidate() local
1051 spannable.setSpan(span, 1, 2, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in setCandidate()
1052 textView.setText(spannable); in setCandidate()