Home
last modified time | relevance | path

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

12

/frameworks/base/core/java/android/text/
DSpannableString.java25 public class SpannableString class
29 public SpannableString(CharSequence source) { in SpannableString() method in SpannableString
33 private SpannableString(CharSequence source, int start, int end) { in SpannableString() method in SpannableString
37 public static SpannableString valueOf(CharSequence source) { in valueOf()
38 if (source instanceof SpannableString) { in valueOf()
39 return (SpannableString) source; in valueOf()
41 return new SpannableString(source); in valueOf()
54 return new SpannableString(this, start, end); in subSequence()
DInputFilter.java59 SpannableString sp = new SpannableString(s); in filter()
DSpannable.java67 return new SpannableString(source); in newSpannable()
DTextUtils.java696 SpannableString sp = new SpannableString(string);
1166 SpannableString ss = new SpannableString(s); in ellipsize()
1418 SpannableString ss = new SpannableString(sb); in concat()
/frameworks/support/compat/tests/java/android/support/v4/text/util/
DLinkifyCompatTest.java29 import android.text.SpannableString;
87 SpannableString spannable = new SpannableString("name@gmail.com, " in testAddLinks1()
121 SpannableString spannable = new SpannableString(text); in testAddLinks2()
140 spannable = new SpannableString(text); in testAddLinks2()
152 SpannableString spannable = new SpannableString(text); in testAddLinks3()
176 spannable = new SpannableString(text); in testAddLinks3()
184 spannable = new SpannableString(text); in testAddLinks3()
192 spannable = new SpannableString(text); in testAddLinks3()
208 SpannableString spannable = new SpannableString( in testAddLinks4()
235 SpannableString spannable = new SpannableString("800-555-1211@gmail.com 800-555-1222.com" in testAddLinks_spanOverlapPruning()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/notification/
DValidateNotificationPeopleTest.java22 import android.text.SpannableString;
58 bundle.putCharSequence(Notification.EXTRA_PEOPLE, new SpannableString(expected[0])); in testSingleCharSequence()
96 charSeqArray[i] = new SpannableString(expected[i]); in testCharSequenceArrayMultiple()
112 charSeqArray[i] = new SpannableString(expected[i]); in testMixedCharSequenceArrayList()
140 stringArrayList.add(new SpannableString(expected[i])); in testCharSequenceArrayList()
/frameworks/base/core/tests/coretests/src/android/text/
DSpannableStringTest.java20 import android.text.SpannableString;
25 return new SpannableString(text); in newSpannableWithText()
DSpannedTest.java36 checkPriority(new SpannableString("the quick brown fox")); in testSpannableString()
47 SpannableString ss = new SpannableString("Test"); in testAppend()
65 SpannableString s = new SpannableString("Hello there world"); in testWrapParcel()
DTextUtilsTest.java48 SpannableString foo = new SpannableString("foo"); in testBasic()
51 SpannableString bar = new SpannableString("bar"); in testBasic()
54 SpannableString baz = new SpannableString("baz"); in testBasic()
152 SpannableString template; in testTemplateSpan()
158 template = new SpannableString("a^1b"); in testTemplateSpan()
274 Spannable s3 = new SpannableString(s1); in testEllipsize()
379 TextUtils.writeToParcel(new SpannableString("test"), p, 0); in testCharSequenceCreatorSpannable()
/frameworks/opt/setupwizard/library/eclair-mr1/src/com/android/setupwizardlib/view/
DRichTextView.java22 import android.text.SpannableString;
62 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/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.java34 import android.text.SpannableString;
128 SpannableString message = new SpannableString(actionText); in onCreate()
/frameworks/base/core/java/android/text/util/
DLinkify.java27 import android.text.SpannableString;
296 SpannableString s = SpannableString.valueOf(t); in addLinks()
375 SpannableString spannable = SpannableString.valueOf(text.getText()); in addLinks()
/frameworks/support/compat/java/android/support/v4/text/util/
DLinkifyCompat.java24 import android.text.SpannableString;
169 SpannableString s = SpannableString.valueOf(t); in addLinks()
238 SpannableString spannable = SpannableString.valueOf(text.getText()); in addLinks()
/frameworks/base/core/tests/coretests/src/android/text/method/
DEditorState.java23 import android.text.SpannableString;
157 final Spannable spannable = new SpannableString(sb.toString()); in setByString()
/frameworks/base/core/java/android/app/
DProgressDialog.java28 import android.text.SpannableString;
147SpannableString tmp = new SpannableString(mProgressPercentFormat.format(percent)); in onCreate()
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
DSuggestionsAdapter.java37 import android.text.SpannableString;
343 SpannableString text = new SpannableString(url); in formatUrl()
/frameworks/base/graphics/java/android/graphics/
DPaint.java24 import android.text.SpannableString;
1790 text instanceof SpannableString) { in measureText()
2010 text instanceof SpannableString) { in getTextWidths()
2151 text instanceof SpannableString) { in getTextRunAdvances()
2322 text instanceof SpannableString) { in getTextRunCursor()
DCanvas.java25 import android.text.SpannableString;
1710 text instanceof SpannableString) { in drawText()
1817 text instanceof SpannableString) { in drawTextRun()
/frameworks/base/core/java/android/content/res/
DStringBlock.java170 SpannableString buffer = new SpannableString(str); in applyStyles()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/
DAccessPoint.java42 import android.text.SpannableString;
344 SpannableString str = new SpannableString(ssid); in getSsid()
/frameworks/opt/chips/src/com/android/ex/chips/
DRecipientEditTextView.java55 import android.text.SpannableString;
1990 final SpannableString chipText = new SpannableString(displayText); in createChip()
2175 SpannableString chipText = new SpannableString(text.subSequence(end, text.length())); in createMoreChipPlainText()
2249 SpannableString chipText = new SpannableString(text.subSequence(start, end)); in createMoreChip()
2967 final SpannableString displayText = in processReplacements()
2968 new SpannableString(createAddressText( in processReplacements()
/frameworks/data-binding/extensions/baseAdapters/src/main/java/android/databinding/adapters/
DTextViewBindingAdapter.java31 import android.text.SpannableString;

12