Home
last modified time | relevance | path

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

/frameworks/base/core/tests/coretests/src/android/text/
DSpannableTest.java30 Spannable spannable = newSpannableWithText("abcdef"); in testGetSpans() local
32 spannable.setSpan(emptySpan, 1, 1, 0); in testGetSpans()
34 spannable.setSpan(unemptySpan, 1, 2, 0); in testGetSpans()
41 spans = spannable.getSpans(0, 1, Object.class); in testGetSpans()
43 spans = spannable.getSpans(0, 2, Object.class); in testGetSpans()
45 spans = spannable.getSpans(1, 2, Object.class); in testGetSpans()
47 spans = spannable.getSpans(2, 2, Object.class); in testGetSpans()
/frameworks/opt/chips/src/com/android/ex/chips/
DRecipientEditTextView.java1177 Spannable spannable = getSpannable(); in sanitizeEnd() local
1182 end = spannable.getSpanEnd(mMoreChip); in sanitizeEnd()
1977 final Spannable spannable = getSpannable(); in getSortedRecipients() local
1982 int firstStart = spannable.getSpanStart(first); in getSortedRecipients()
1983 int secondStart = spannable.getSpanStart(second); in getSortedRecipients()
2106 Spannable spannable = getSpannable(); in createMoreChip() local
2117 totalReplaceStart = spannable.getSpanStart(recipients[i]); in createMoreChip()
2120 totalReplaceEnd = spannable.getSpanEnd(recipients[i]); in createMoreChip()
2123 int spanStart = spannable.getSpanStart(recipients[i]); in createMoreChip()
2124 int spanEnd = spannable.getSpanEnd(recipients[i]); in createMoreChip()
[all …]
/frameworks/base/core/java/android/widget/
DEditor.java1140 Spannable spannable = (Spannable) text; in downgradeEasyCorrectionSpans() local
1141 SuggestionSpan[] suggestionSpans = spannable.getSpans(0, in downgradeEasyCorrectionSpans()
1142 spannable.length(), SuggestionSpan.class); in downgradeEasyCorrectionSpans()
1848 final Spannable spannable = (Spannable) text; in shouldOfferToShowSuggestions()
1851 final SuggestionSpan[] suggestionSpans = spannable.getSpans(selectionStart, selectionEnd, in shouldOfferToShowSuggestions()
1871 final int spanStart = spannable.getSpanStart(suggestionSpans[i]); in shouldOfferToShowSuggestions()
1872 final int spanEnd = spannable.getSpanEnd(suggestionSpans[i]); in shouldOfferToShowSuggestions()
1907 Spannable spannable = (Spannable) mTextView.getText(); in isCursorInsideEasyCorrectionSpan() local
1908 SuggestionSpan[] suggestionSpans = spannable.getSpans(mTextView.getSelectionStart(), in isCursorInsideEasyCorrectionSpan()
2783 Spannable spannable = (Spannable) mTextView.getText(); in getSuggestionSpans() local
[all …]
DAutoCompleteTextView.java951 Editable spannable = getText(); in replaceText() local
952 Selection.setSelection(spannable, spannable.length()); in replaceText()
DTextView.java4043 void removeMisspelledSpans(Spannable spannable) { in removeMisspelledSpans() argument
4044 SuggestionSpan[] suggestionSpans = spannable.getSpans(0, spannable.length(), in removeMisspelledSpans()
4050 spannable.removeSpan(suggestionSpans[i]); in removeMisspelledSpans()
4485 Spannable spannable; in removeSuggestionSpans() local
4487 spannable = (Spannable) text; in removeSuggestionSpans()
4489 spannable = new SpannableString(text); in removeSuggestionSpans()
4490 text = spannable; in removeSuggestionSpans()
4493 SuggestionSpan[] spans = spannable.getSpans(0, text.length(), SuggestionSpan.class); in removeSuggestionSpans()
4495 spannable.removeSpan(spans[i]); in removeSuggestionSpans()
6335 static void removeParcelableSpans(Spannable spannable, int start, int end) { in removeParcelableSpans() argument
[all …]
/frameworks/ex/common/java/com/android/ex/editstyledtext/
DEditStyledText.java1774 Spannable spannable = (Spannable) txt; in dumpSpannableString() local
1775 int len = spannable.length(); in dumpSpannableString()
1777 Log.d(TAG, "--- dumpSpannableString, txt:" + spannable + ", len:" + len); in dumpSpannableString()
1779 Object[] styles = spannable.getSpans(0, len, Object.class); in dumpSpannableString()
1784 + spannable.getSpanStart(style) + "," in dumpSpannableString()
1785 + spannable.getSpanEnd(style) + "," in dumpSpannableString()
1786 + spannable.getSpanFlags(style)); in dumpSpannableString()
2509 public HorizontalLineSpan(int color, int width, Spannable spannable) { in HorizontalLineSpan() argument
2511 mDrawable = new HorizontalLineDrawable(color, width, spannable); in HorizontalLineSpan()
2703 public HorizontalLineDrawable(int color, int width, Spannable spannable) { in HorizontalLineDrawable() argument
[all …]
/frameworks/data-binding/integration-tests/TestApp/app/src/androidTestApi7/java/android/databinding/testapp/
DTextViewBindingAdapterTest.java280 Spannable spannable = Spannable.Factory.getInstance().newSpannable(input); in getDigits() local
281 return digitsKeyListener.filter(input, 0, input.length(), spannable, 0, input.length()) in getDigits()
/frameworks/base/media/java/android/media/
DClosedCaptionRenderer.java1360 Spannable spannable = (Spannable) text; in setBackgroundSpans() local
1361 MutableBackgroundColorSpan[] bgSpans = spannable.getSpans( in setBackgroundSpans()
1362 0, spannable.length(), MutableBackgroundColorSpan.class); in setBackgroundSpans()
/frameworks/base/telephony/java/android/telephony/
DPhoneNumberUtils.java2368 Spannable spannable = Spannable.Factory.getInstance().newSpannable(phoneNumber); in createTtsSpannable() local
2369 PhoneNumberUtils.addTtsSpan(spannable, 0, spannable.length()); in createTtsSpannable()
2370 return spannable; in createTtsSpannable()
/frameworks/base/docs/html/guide/topics/resources/
Dstring-resource.jd531 of creating spannable text:</p>