Home
last modified time | relevance | path

Searched refs:SpannableString (Results 1 – 25 of 44) sorted by relevance

12

/frameworks/base/core/java/android/text/
DSpannableString.java24 public class SpannableString class
33 public SpannableString(CharSequence source, boolean ignoreNoCopySpan) { in SpannableString() method in SpannableString
42 public SpannableString(CharSequence source) { in SpannableString() method in SpannableString
46 private SpannableString(CharSequence source, int start, int end) { in SpannableString() method in SpannableString
51 public static SpannableString valueOf(CharSequence source) { in valueOf()
52 if (source instanceof SpannableString) { in valueOf()
53 return (SpannableString) source; in valueOf()
55 return new SpannableString(source); in valueOf()
68 return new SpannableString(this, start, end); in subSequence()
DSpannable.java82 return new SpannableString(source); in newSpannable()
DInputFilter.java103 return copySpans ? new SpannableString(upper) : upper.toString(); in filter()
/frameworks/base/core/tests/coretests/src/android/text/
DSpannedStringNoCopyTest.java38 final SpannableString first = new SpannableString("t\nest data"); in testCopyConstructor_copyNoCopySpans_SpannableStringInternalImpl()
52 final SpannableString first = new SpannableString("t\nest data"); in testCopyConstructor_doesNotCopyNoCopySpans_SpannableStringInternalImpl()
70 final SpannableString first = new SpannableString("t\nest data"); in testCopyConstructor_copyNoCopySpans_OtherSpannedImpl()
84 final SpannableString first = new SpannableString("t\nest data"); in testCopyConstructor_doesNotCopyNoCopySpans_OtherSpannedImpl()
DSpannableStringNoCopyTest.java38 final SpannableString first = new SpannableString("t\nest data"); in testCopyConstructor_copyNoCopySpans_SpannableStringInternalImpl()
52 final SpannableString first = new SpannableString("t\nest data"); in testCopyConstructor_doesNotCopyNoCopySpans_SpannableStringInternalImpl()
70 final SpannableString first = new SpannableString("t\nest data"); in testCopyConstructor_copyNoCopySpans_OtherSpannableImpl()
84 final SpannableString first = new SpannableString("t\nest data"); in testCopyConstructor_doesNotCopyNoCopySpans_OtherSpannableImpl()
DTextUtilsTest.java63 SpannableString foo = new SpannableString("foo"); in testBasic()
66 SpannableString bar = new SpannableString("bar"); in testBasic()
69 SpannableString baz = new SpannableString("baz"); in testBasic()
167 SpannableString template; in testTemplateSpan()
173 template = new SpannableString("a^1b"); in testTemplateSpan()
290 Spannable s3 = new SpannableString(s1); in testEllipsize()
469 TextUtils.writeToParcel(new SpannableString("test"), p, 0); in testCharSequenceCreatorSpannable()
678 final SpannableString str = new SpannableString("abc"); in testToUpperCase()
704 final SpannableString str = new SpannableString("ABC"); in testToUpperCase()
721 final Spannable source = new SpannableString(lowerString); in testToUpperCase_SpansArePreserved()
DSpannedTest.java46 checkPriority(new SpannableString("the quick brown fox")); in testSpannableString()
57 SpannableString ss = new SpannableString("Test"); in testAppend()
75 SpannableString s = new SpannableString("Hello there world"); in testWrapParcel()
DSpannableStringTest.java22 return new SpannableString(text); in newSpannableWithText()
DStaticLayoutTest.java667 result.add(new SpannableString(str)); in buildTestCharSequences()
750 final SpannableString text = new SpannableString(sentence); in testLocaleSpanAffectsHyphenation()
768 final SpannableString text = new SpannableString(sentence); in testLocaleSpanAffectsHyphenation()
782 final SpannableString text = new SpannableString(sentence); in testLocaleSpanAffectsHyphenation()
/frameworks/base/core/tests/coretests/src/android/text/util/
DLinkifyTest.java27 import android.text.SpannableString;
111 Spannable spannable = new SpannableString("any https://android.com any android.com any"); in testAddLinks_addsLinksWhenDefaultSchemeIsNull()
122 Spannable spannable = new SpannableString("any https://android.com any android.com any"); in testAddLinks_addsLinksWhenSchemesArrayIsNull()
134 Spannable spannable = new SpannableString("any android.com any"); in testAddLinks_prependsDefaultSchemeToBeginingOfLink()
145 Spannable spannable = new SpannableString("any https://android.com any"); in testAddLinks_doesNotPrependSchemeIfSchemeExists()
/frameworks/base/core/tests/coretests/src/android/text/style/
DUnderlineSpanTest.java22 import android.text.SpannableString;
49 final SpannableString text = new SpannableString("P."); in testDoesntAffectWidth_colorUnderlineSubclass()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DValidateNotificationPeopleTest.java25 import android.text.SpannableString;
70 bundle.putCharSequence(Notification.EXTRA_PEOPLE_LIST, new SpannableString(expected[0])); in testSingleCharSequence()
108 charSeqArray[i] = new SpannableString(expected[i]); in testCharSequenceArrayMultiple()
124 charSeqArray[i] = new SpannableString(expected[i]); in testMixedCharSequenceArrayList()
152 stringArrayList.add(new SpannableString(expected[i])); in testCharSequenceArrayList()
/frameworks/opt/setupwizard/library/platform/src/com/android/setupwizardlib/view/
DRichTextView.java21 import android.text.SpannableString;
66 final SpannableString spannable = new SpannableString(text); in getRichText()
/frameworks/base/core/java/android/widget/
DMultiAutoCompleteTextView.java21 import android.text.SpannableString;
272 SpannableString sp = new SpannableString(text + ", "); in terminateToken()
DSuggestionsAdapter.java36 import android.text.SpannableString;
384 SpannableString text = new SpannableString(url); in formatUrl()
/frameworks/opt/setupwizard/library/gingerbread/src/com/android/setupwizardlib/view/
DRichTextView.java26 import android.text.SpannableString;
66 final SpannableString spannable = new SpannableString(text); in getRichText()
/frameworks/base/core/tests/benchmarks/src/android/text/util/
DLinkifyBenchmark.java25 import android.text.SpannableString;
57 mTestSpannable = new SpannableString(strBuilder.toString()); in setUp()
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/
DMediaProjectionPermissionActivity.java36 import android.text.SpannableString;
133 SpannableString message = new SpannableString(actionText); in onCreate()
/frameworks/base/core/tests/coretests/src/android/text/method/
DEditorState.java26 import android.text.SpannableString;
147 final Spannable spannable = new SpannableString(sb.toString()); in setByString()
/frameworks/base/core/java/android/app/
DProgressDialog.java28 import android.text.SpannableString;
221SpannableString tmp = new SpannableString(mProgressPercentFormat.format(percent)); in onCreate()
/frameworks/base/core/java/android/text/util/
DLinkify.java27 import android.text.SpannableString;
388 SpannableString s = SpannableString.valueOf(t); in addLinks()
467 SpannableString spannable = SpannableString.valueOf(text.getText()); in addLinks()
/frameworks/base/apct-tests/perftests/core/src/android/text/
DNonEditableTextGenerator.java69 new SpannableStringBuilder(charSequence) : new SpannableString(charSequence); in createSpannable()
/frameworks/base/core/java/android/content/res/
DStringBlock.java26 import android.text.SpannableString;
208 SpannableString buffer = new SpannableString(str); in applyStyles()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/
DNotificationSnooze.java31 import android.text.SpannableString;
264 SpannableString string = new SpannableString(resultText); in createOption()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/datetime/
DZoneGetter.java23 import android.text.SpannableString;
357 CharSequence gmtText = new SpannableString(builder); in getGmtOffsetText()

12