/frameworks/base/core/tests/coretests/src/android/text/ |
D | SpannableTest.java | 30 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/ |
D | RecipientEditTextView.java | 1119 Spannable spannable = getSpannable(); in sanitizeEnd() local 1124 end = spannable.getSpanEnd(mMoreChip); in sanitizeEnd() 1928 final Spannable spannable = getSpannable(); in getSortedRecipients() local 1933 int firstStart = spannable.getSpanStart(first); in getSortedRecipients() 1934 int secondStart = spannable.getSpanStart(second); in getSortedRecipients() 2058 Spannable spannable = getSpannable(); in createMoreChip() local 2069 totalReplaceStart = spannable.getSpanStart(recipients[i]); in createMoreChip() 2072 totalReplaceEnd = spannable.getSpanEnd(recipients[i]); in createMoreChip() 2075 int spanStart = spannable.getSpanStart(recipients[i]); in createMoreChip() 2076 int spanEnd = spannable.getSpanEnd(recipients[i]); in createMoreChip() [all …]
|
/frameworks/base/core/java/android/widget/ |
D | Editor.java | 1002 Spannable spannable = (Spannable) text; in downgradeEasyCorrectionSpans() local 1003 SuggestionSpan[] suggestionSpans = spannable.getSpans(0, in downgradeEasyCorrectionSpans() 1004 spannable.length(), SuggestionSpan.class); in downgradeEasyCorrectionSpans() 1598 Spannable spannable = (Spannable) mTextView.getText(); in isCursorInsideEasyCorrectionSpan() local 1599 SuggestionSpan[] suggestionSpans = spannable.getSpans(mTextView.getSelectionStart(), in isCursorInsideEasyCorrectionSpan() 2466 Spannable spannable = (Spannable) mTextView.getText(); in getSuggestionSpans() local 2467 SuggestionSpan[] suggestionSpans = spannable.getSpans(pos, pos, SuggestionSpan.class); in getSuggestionSpans() 2471 int start = spannable.getSpanStart(suggestionSpan); in getSuggestionSpans() 2472 int end = spannable.getSpanEnd(suggestionSpan); in getSuggestionSpans() 2548 Spannable spannable = (Spannable) mTextView.getText(); in updateSuggestions() local [all …]
|
D | AutoCompleteTextView.java | 950 Editable spannable = getText(); in replaceText() local 951 Selection.setSelection(spannable, spannable.length()); in replaceText()
|
D | TextView.java | 3766 void removeMisspelledSpans(Spannable spannable) { in removeMisspelledSpans() argument 3767 SuggestionSpan[] suggestionSpans = spannable.getSpans(0, spannable.length(), in removeMisspelledSpans() 3773 spannable.removeSpan(suggestionSpans[i]); in removeMisspelledSpans() 4200 Spannable spannable; in removeSuggestionSpans() local 4202 spannable = (Spannable) text; in removeSuggestionSpans() 4204 spannable = new SpannableString(text); in removeSuggestionSpans() 4205 text = spannable; in removeSuggestionSpans() 4208 SuggestionSpan[] spans = spannable.getSpans(0, text.length(), SuggestionSpan.class); in removeSuggestionSpans() 4210 spannable.removeSpan(spans[i]); in removeSuggestionSpans() 6040 static void removeParcelableSpans(Spannable spannable, int start, int end) { in removeParcelableSpans() argument [all …]
|
/frameworks/ex/common/java/com/android/ex/editstyledtext/ |
D | EditStyledText.java | 1774 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/base/telephony/java/android/telephony/ |
D | PhoneNumberUtils.java | 2321 Spannable spannable = Spannable.Factory.getInstance().newSpannable(phoneNumber); in ttsSpanAsPhoneNumber() local 2322 PhoneNumberUtils.ttsSpanAsPhoneNumber(spannable, 0, spannable.length()); in ttsSpanAsPhoneNumber() 2323 return spannable; in ttsSpanAsPhoneNumber()
|
/frameworks/base/media/java/android/media/ |
D | ClosedCaptionRenderer.java | 1366 Spannable spannable = (Spannable) text; in setBackgroundSpans() local 1367 MutableBackgroundColorSpan[] bgSpans = spannable.getSpans( in setBackgroundSpans() 1368 0, spannable.length(), MutableBackgroundColorSpan.class); in setBackgroundSpans()
|
/frameworks/base/docs/html/guide/topics/resources/ |
D | string-resource.jd | 515 of creating spannable text:</p>
|