Home
last modified time | relevance | path

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

123456

/aosp12/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/compat/
H A DLocaleSpanCompatUtilsTests.java82 final SpannableString text = new SpannableString("0123456789"); in testUpdateLocaleSpan()
90 final SpannableString text = new SpannableString("0123456789"); in testUpdateLocaleSpan()
101 final SpannableString text = new SpannableString("0123456789"); in testUpdateLocaleSpan()
111 final SpannableString text = new SpannableString("0123456789"); in testUpdateLocaleSpan()
121 final SpannableString text = new SpannableString("0123456789"); in testUpdateLocaleSpan()
133 final SpannableString text = new SpannableString("0123456789"); in testUpdateLocaleSpan()
147 final SpannableString text = new SpannableString("0123456789"); in testUpdateLocaleSpan()
158 final SpannableString text = new SpannableString("0123456789"); in testUpdateLocaleSpan()
169 final SpannableString text = new SpannableString("0123456789"); in testUpdateLocaleSpan()
180 final SpannableString text = new SpannableString("0123456789"); in testUpdateLocaleSpan()
[all …]
H A DTextInfoCompatUtilsTests.java23 import android.text.SpannableString;
57 final SpannableString text = new SpannableString(TEST_TEXT); in testGetCharSequence()
/aosp12/packages/apps/Car/Dialer/tests/unittests/src/com/android/car/dialer/ui/common/
H A DQueryStyleTest.java22 import android.text.SpannableString;
60 SpannableString testString = mQueryStyle.getStringWithQueryInSpecialStyle(NUMBER_1, in test_spannableString1WithQuery1()
69 SpannableString testString = mQueryStyle.getStringWithQueryInSpecialStyle(NUMBER_1, in test_spannableString1WithQuery2()
77 SpannableString testString = mQueryStyle.getStringWithQueryInSpecialStyle(NUMBER_1, in test_spannableString1WithQuery3()
85 SpannableString testString = mQueryStyle.getStringWithQueryInSpecialStyle(NUMBER_1, in test_spannableString1WithQuery4_queryIsNotPartOfTheString()
93 SpannableString testString = mQueryStyle.getStringWithQueryInSpecialStyle(NUMBER_1, in test_spannableString1WithEmptyQuery()
101 SpannableString testString = mQueryStyle.getStringWithQueryInSpecialStyle(NUMBER_2, in test_spannableString2WithQuery1()
110 SpannableString testString = mQueryStyle.getStringWithQueryInSpecialStyle(NUMBER_2, in test_spannableString2WithQuery2()
118 SpannableString testString = mQueryStyle.getStringWithQueryInSpecialStyle(NUMBER_2, in test_spannableString2WithQuery3()
196 private void checkCorrectness(SpannableString testString, int startIndex, int length, in checkCorrectness()
[all …]
/aosp12/packages/apps/Car/libs/car-ui-lib/oem-apis/src/main/java/com/android/car/ui/plugin/oemapis/recyclerview/
H A DHeaderListItemOEMV1.java18 import android.text.SpannableString;
24 private final SpannableString mTitle;
25 private final SpannableString mBody;
35 public SpannableString getTitle() { in getTitle()
42 public SpannableString getBody() { in getBody()
50 private final SpannableString mTitle;
51 private SpannableString mBody;
58 public Builder(SpannableString title) { in Builder()
67 public Builder setBody(SpannableString body) { in setBody()
/aosp12/frameworks/base/core/java/android/text/
H A 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()
/aosp12/frameworks/base/core/tests/coretests/src/android/text/
H A 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()
H A 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()
H A DTextUtilsTest.java65 SpannableString foo = new SpannableString("foo"); in testBasic()
68 SpannableString bar = new SpannableString("bar"); in testBasic()
71 SpannableString baz = new SpannableString("baz"); in testBasic()
169 SpannableString template; in testTemplateSpan()
175 template = new SpannableString("a^1b"); in testTemplateSpan()
292 Spannable s3 = new SpannableString(s1); in testEllipsize()
471 TextUtils.writeToParcel(new SpannableString("test"), p, 0); in testCharSequenceCreatorSpannable()
680 final SpannableString str = new SpannableString("abc"); in testToUpperCase()
706 final SpannableString str = new SpannableString("ABC"); in testToUpperCase()
723 final Spannable source = new SpannableString(lowerString); in testToUpperCase_SpansArePreserved()
H A 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()
/aosp12/packages/apps/Dialer/java/com/android/dialer/searchfragment/common/
H A DQueryBoldingUtil.java23 import android.text.SpannableString;
96 SpannableString boldedInitials = new SpannableString(name); in getNameWithInitialsBolded()
155 private static SpannableString getBoldedString(String s, int index, int numBolded) { in getBoldedString()
162 SpannableString span = new SpannableString(s); in getBoldedString()
/aosp12/packages/apps/Dialer/java/com/android/dialer/spannable/
H A DContentWithLearnMoreSpanner.java20 import android.text.SpannableString;
67 public SpannableString create(@NonNull String contentFormatString, @NonNull String learnMoreUrl) { in create()
70 SpannableString contents = new SpannableString(String.format(contentFormatString, learnMore)); in create()
/aosp12/packages/apps/Contacts/src/com/android/contacts/format/
H A DTextHighlighter.java19 import android.text.SpannableString;
61 public void applyMaskingHighlight(SpannableString text, int start, int end) { in applyMaskingHighlight()
87 final SpannableString result = new SpannableString(text); in applyPrefixHighlight()
/aosp12/packages/apps/Settings/src/com/android/settings/applications/intentpicker/
H A DIntentPickerUtils.java23 import android.text.SpannableString;
44 public static SpannableString getCentralizedDialogTitle(String title) { in getCentralizedDialogTitle()
45 final SpannableString dialogTitle = new SpannableString(title); in getCentralizedDialogTitle()
/aosp12/packages/apps/Settings/src/com/android/settings/utils/
H A DAnnotationSpan.java23 import android.text.SpannableString;
60 SpannableString msg = new SpannableString(rawText); in linkify()
85 SpannableString msg = new SpannableString(encodedText); in textWithoutLink()
/aosp12/packages/apps/EmergencyInfo/src/com/android/emergency/preferences/
H A DEmergencyListPreference.java23 import android.text.SpannableString;
89 private static SpannableString createAccessibleSequence(CharSequence displayText, in createAccessibleSequence()
91 SpannableString str = new SpannableString(displayText); in createAccessibleSequence()
/aosp12/packages/apps/Car/Dialer/src/com/android/car/dialer/ui/common/
H A DQueryStyle.java20 import android.text.SpannableString;
59 public SpannableString getStringWithQueryInSpecialStyle(@NonNull String phoneNumber, in getStringWithQueryInSpecialStyle()
61 SpannableString spannableString = new SpannableString(phoneNumber); in getStringWithQueryInSpecialStyle()
/aosp12/packages/apps/Settings/src/com/android/settings/datausage/
H A DDataUsageSummary.java26 import android.text.SpannableString;
229 final SpannableString enlargedValue = new SpannableString(usedResult.value); in formatUsage()
232 final SpannableString amountTemplate = new SpannableString( in formatUsage()
238 final SpannableString fullTemplate = new SpannableString(template); in formatUsage()
/aosp12/frameworks/base/core/tests/coretests/src/android/text/util/
H A 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()
/aosp12/packages/apps/Settings/src/com/android/settings/widget/
H A DLinkifySummaryPreference.java20 import android.text.SpannableString;
53 final SpannableString spannableSummary = new SpannableString(summary); in onBindViewHolder()
/aosp12/frameworks/base/core/tests/coretests/src/android/text/style/
H A DUnderlineSpanTest.java22 import android.text.SpannableString;
49 final SpannableString text = new SpannableString("P."); in testDoesntAffectWidth_colorUnderlineSubclass()
/aosp12/packages/apps/Settings/src/com/android/settings/wifi/calling/
H A DLinkifyDescriptionPreference.java20 import android.text.SpannableString;
62 final SpannableString spannableSummary = new SpannableString(summary); in onBindViewHolder()
/aosp12/packages/apps/StorageManager/src/com/android/storagemanager/deletionhelper/
H A DDeletionHelperActivity.java24 import android.text.SpannableString;
65 SpannableString linkText = in onCreate()
66 new SpannableString( in onCreate()
205 public static SpannableString linkify(SpannableString msg, DeletionHelperActivity parent) { in linkify()
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/accessibility/floatingmenu/
H A DMigrationTooltipViewTest.java23 import android.text.SpannableString;
63 final SpannableString spannableString = (SpannableString) mTextView.getText(); in onCreate_setDescription_matchTextAndSpanNum()
/aosp12/packages/apps/Settings/src/com/android/settings/applications/
H A DClearDefaultsPreference.java28 import android.text.SpannableString;
164 SpannableString s = new SpannableString(autoLaunchEnableText); in updateUI()
174 SpannableString s = new SpannableString(alwaysAllowBindAppWidgetsText); in updateUI()
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/floatingmenu/
H A DAnnotationLinkSpan.java20 import android.text.SpannableString;
54 final SpannableString msg = new SpannableString(text); in linkify()

123456