Home
last modified time | relevance | path

Searched refs:SpannableString (Results 1 – 25 of 26) 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.java701 SpannableString sp = new SpannableString(string);
1171 SpannableString ss = new SpannableString(s); in ellipsize()
1423 SpannableString ss = new SpannableString(sb); in concat()
DLayout.java1987 SpannableString ss = new SpannableString(new String(s));
/frameworks/base/core/tests/coretests/src/android/widget/
DTextViewWordLimitsTest.java24 import android.text.SpannableString;
257 SpannableString textLower = new SpannableString("first second"); in testSelectCurrentWord()
258 SpannableString textOther = new SpannableString("\u3042\3044\3046"); // Hiragana AIU in testSelectCurrentWord()
259 SpannableString textDash = new SpannableString("non-fiction"); // Hyphen in testSelectCurrentWord()
260 SpannableString textPunctOther = new SpannableString("b&b"); // Ampersand in testSelectCurrentWord()
261 SpannableString textSymbolOther = new SpannableString("Android\u00AE"); // Registered in testSelectCurrentWord()
/frameworks/base/core/tests/coretests/src/android/text/
DSpannableStringTest.java20 import android.text.SpannableString;
25 return new SpannableString(text); in newSpannableWithText()
DTextUtilsTest.java46 SpannableString foo = new SpannableString("foo"); in testBasic()
49 SpannableString bar = new SpannableString("bar"); in testBasic()
52 SpannableString baz = new SpannableString("baz"); in testBasic()
150 SpannableString template; in testTemplateSpan()
156 template = new SpannableString("a^1b"); in testTemplateSpan()
272 Spannable s3 = new SpannableString(s1); in testEllipsize()
377 TextUtils.writeToParcel(new SpannableString("test"), p, 0); in testCharSequenceCreatorSpannable()
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()
/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/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()
DTextView.java69 import android.text.SpannableString;
4489 spannable = new SpannableString(text); in removeSuggestionSpans()
/frameworks/base/core/java/android/text/util/
DLinkify.java24 import android.text.SpannableString;
274 SpannableString s = SpannableString.valueOf(t); in addLinks()
330 SpannableString s = SpannableString.valueOf(text.getText()); in addLinks()
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/
DMediaProjectionPermissionActivity.java35 import android.text.SpannableString;
129 SpannableString message = new SpannableString(actionText); in onCreate()
/frameworks/base/core/java/android/app/
DProgressDialog.java28 import android.text.SpannableString;
147SpannableString tmp = new SpannableString(mProgressPercentFormat.format(percent)); in onCreate()
/frameworks/base/graphics/java/android/graphics/
DPaint.java21 import android.text.SpannableString;
1587 text instanceof SpannableString) { in measureText()
1804 text instanceof SpannableString) { in getTextWidths()
1941 text instanceof SpannableString) { in getTextRunAdvances()
2111 text instanceof SpannableString) { in getTextRunCursor()
DCanvas.java25 import android.text.SpannableString;
1699 text instanceof SpannableString) { in drawText()
1806 text instanceof SpannableString) { in drawTextRun()
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
DSuggestionsAdapter.java37 import android.text.SpannableString;
342 SpannableString text = new SpannableString(url); in formatUrl()
/frameworks/base/core/java/android/content/res/
DStringBlock.java170 SpannableString buffer = new SpannableString(str); in applyStyles()
/frameworks/opt/chips/src/com/android/ex/chips/
DRecipientEditTextView.java56 import android.text.SpannableString;
1888 final SpannableString chipText = new SpannableString(displayText); in createChip()
2060 SpannableString chipText = new SpannableString(text.subSequence(end, text.length())); in createMoreChipPlainText()
2134 SpannableString chipText = new SpannableString(text.subSequence(start, end)); in createMoreChip()
2811 final SpannableString displayText = in processReplacements()
2812 new SpannableString(createAddressText( in processReplacements()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/
DAccessPoint.java41 import android.text.SpannableString;
333 SpannableString str = new SpannableString(ssid); in getSsid()
/frameworks/base/
Dpreloaded-classes1629 android.text.SpannableString
/frameworks/base/docs/html/
Dsitemap.txt2508 http://developer.android.com/reference/android/text/SpannableString.html
/frameworks/base/api/
Dcurrent.txt32293 …public class SpannableString extends android.text.SpannableStringInternal implements java.lang.Cha…
32294 ctor public SpannableString(java.lang.CharSequence);
32298 method public static android.text.SpannableString valueOf(java.lang.CharSequence);

12