/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/setupwizard/library/main/src/com/android/setupwizardlib/span/ |
D | SpanHelper.java | 30 public static void replaceSpan(Spannable spannable, Object oldSpan, Object newSpan) { in replaceSpan() argument 31 final int spanStart = spannable.getSpanStart(oldSpan); in replaceSpan() 32 final int spanEnd = spannable.getSpanEnd(oldSpan); in replaceSpan() 33 spannable.removeSpan(oldSpan); in replaceSpan() 34 spannable.setSpan(newSpan, spanStart, spanEnd, 0); in replaceSpan()
|
/frameworks/opt/setupwizard/library/eclair-mr1/src/com/android/setupwizardlib/view/ |
D | RichTextView.java | 61 final SpannableString spannable = new SpannableString(text); in getRichText() local 62 final Annotation[] spans = spannable.getSpans(0, spannable.length(), Annotation.class); in getRichText() 74 SpanHelper.replaceSpan(spannable, span, textAppearanceSpan); in getRichText() 77 SpanHelper.replaceSpan(spannable, span, link); in getRichText() 80 return spannable; in getRichText()
|
/frameworks/base/core/java/android/text/util/ |
D | Linkify.java | 375 SpannableString spannable = SpannableString.valueOf(text.getText()); in addLinks() local 377 boolean linksAdded = addLinks(spannable, pattern, defaultScheme, schemes, matchFilter, in addLinks() 380 text.setText(spannable); in addLinks() 414 public static final boolean addLinks(@NonNull Spannable spannable, @NonNull Pattern pattern, in addLinks() argument 417 return addLinks(spannable, pattern, scheme, null, matchFilter, in addLinks() 437 public static final boolean addLinks(@NonNull Spannable spannable, @NonNull Pattern pattern, in addLinks() argument 454 Matcher m = pattern.matcher(spannable); in addLinks() 462 allowed = matchFilter.acceptMatch(spannable, start, end); in addLinks() 468 applyLink(url, start, end, spannable); in addLinks()
|
/frameworks/base/core/tests/coretests/src/android/text/method/ |
D | EditorState.java | 157 final Spannable spannable = new SpannableString(sb.toString()); in setByString() local 172 spannable.setSpan(new MockReplacementSpan(), replacementSpanStart, replacementSpanEnd, in setByString() 175 mText = Editable.Factory.getInstance().newEditable(spannable); in setByString()
|
/frameworks/opt/chips/src/com/android/ex/chips/ |
D | RecipientEditTextView.java | 1275 Spannable spannable = getSpannable(); in sanitizeEnd() local 1280 end = spannable.getSpanEnd(mMoreChip); in sanitizeEnd() 2091 final Spannable spannable = getSpannable(); in getSortedRecipients() local 2096 int firstStart = spannable.getSpanStart(first); in getSortedRecipients() 2097 int secondStart = spannable.getSpanStart(second); in getSortedRecipients() 2220 Spannable spannable = getSpannable(); in createMoreChip() local 2231 totalReplaceStart = spannable.getSpanStart(recipients[i]); in createMoreChip() 2234 totalReplaceEnd = spannable.getSpanEnd(recipients[i]); in createMoreChip() 2237 int spanStart = spannable.getSpanStart(recipients[i]); in createMoreChip() 2238 int spanEnd = spannable.getSpanEnd(recipients[i]); in createMoreChip() [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/core/java/android/widget/ |
D | AutoCompleteTextView.java | 1060 Editable spannable = getText(); in replaceText() local 1061 Selection.setSelection(spannable, spannable.length()); in replaceText()
|
D | Editor.java | 1234 Spannable spannable = (Spannable) text; in downgradeEasyCorrectionSpans() local 1235 SuggestionSpan[] suggestionSpans = spannable.getSpans(0, in downgradeEasyCorrectionSpans() 1236 spannable.length(), SuggestionSpan.class); in downgradeEasyCorrectionSpans() 2036 final Spannable spannable = (Spannable) text; in shouldOfferToShowSuggestions() 2039 final SuggestionSpan[] suggestionSpans = spannable.getSpans(selectionStart, selectionEnd, in shouldOfferToShowSuggestions() 2059 final int spanStart = spannable.getSpanStart(suggestionSpans[i]); in shouldOfferToShowSuggestions() 2060 final int spanEnd = spannable.getSpanEnd(suggestionSpans[i]); in shouldOfferToShowSuggestions() 2095 Spannable spannable = (Spannable) mTextView.getText(); in isCursorInsideEasyCorrectionSpan() local 2096 SuggestionSpan[] suggestionSpans = spannable.getSpans(mTextView.getSelectionStart(), in isCursorInsideEasyCorrectionSpan() 3187 Spannable spannable = (Spannable) mTextView.getText(); in getSortedSuggestionSpans() local [all …]
|
D | TextView.java | 4174 void removeMisspelledSpans(Spannable spannable) { in removeMisspelledSpans() argument 4175 SuggestionSpan[] suggestionSpans = spannable.getSpans(0, spannable.length(), in removeMisspelledSpans() 4181 spannable.removeSpan(suggestionSpans[i]); in removeMisspelledSpans() 4618 Spannable spannable; in removeSuggestionSpans() local 4620 spannable = (Spannable) text; in removeSuggestionSpans() 4622 spannable = new SpannableString(text); in removeSuggestionSpans() 4623 text = spannable; in removeSuggestionSpans() 4626 SuggestionSpan[] spans = spannable.getSpans(0, text.length(), SuggestionSpan.class); in removeSuggestionSpans() 4628 spannable.removeSpan(spans[i]); in removeSuggestionSpans() 6520 static void removeParcelableSpans(Spannable spannable, int start, int end) { in removeParcelableSpans() argument [all …]
|
/frameworks/data-binding/integration-tests/TestApp/app/src/androidTestApi7/java/android/databinding/testapp/ |
D | TextViewBindingAdapterTest.java | 281 Spannable spannable = Spannable.Factory.getInstance().newSpannable(input); in getDigits() local 282 return digitsKeyListener.filter(input, 0, input.length(), spannable, 0, input.length()) in getDigits()
|
/frameworks/base/media/java/android/media/ |
D | ClosedCaptionRenderer.java | 1406 Spannable spannable = (Spannable) text; in setBackgroundSpans() local 1407 Cea608CCParser.MutableBackgroundColorSpan[] bgSpans = spannable.getSpans( in setBackgroundSpans() 1408 0, spannable.length(), Cea608CCParser.MutableBackgroundColorSpan.class); in setBackgroundSpans()
|
/frameworks/base/telephony/java/android/telephony/ |
D | PhoneNumberUtils.java | 2380 Spannable spannable = Spannable.Factory.getInstance().newSpannable(phoneNumber); in createTtsSpannable() local 2381 PhoneNumberUtils.addTtsSpan(spannable, 0, spannable.length()); in createTtsSpannable() 2382 return spannable; in createTtsSpannable()
|
/frameworks/base/docs/html/guide/topics/resources/ |
D | string-resource.jd | 532 of creating spannable text:</p>
|