Home
last modified time | relevance | path

Searched refs:SpannableStringBuilder (Results 1 – 25 of 75) sorted by relevance

123

/frameworks/opt/setupwizard/library/test/robotest/src/com/android/setupwizardlib/view/
DRichTextViewTest.java33 import android.text.SpannableStringBuilder;
52 SpannableStringBuilder ssb = new SpannableStringBuilder("Hello world"); in testLinkAnnotation()
77 SpannableStringBuilder ssb = new SpannableStringBuilder("Hello world"); in testOnLinkClickListener()
99 SpannableStringBuilder ssb = new SpannableStringBuilder("Hello world"); in testLegacyContextOnClickListener()
117 SpannableStringBuilder ssb = new SpannableStringBuilder("Hello world"); in onTouchEvent_clickOnLinks_shouldReturnTrue()
135 SpannableStringBuilder ssb = new SpannableStringBuilder("Hello world"); in onTouchEvent_clickOutsideLinks_shouldReturnFalse()
153 SpannableStringBuilder ssb = new SpannableStringBuilder("Hello world"); in testTextStyle()
173 SpannableStringBuilder spannableStringBuilder = new SpannableStringBuilder("Linked"); in testTextContainingLinksAreFocusable()
202 SpannableStringBuilder spannableStringBuilder = new SpannableStringBuilder("I am focusable"); in testRichTextViewFocusChangesWithTextChange()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DPhoneNumberWatcherTest.java24 import android.text.SpannableStringBuilder;
36 SpannableStringBuilder number = new SpannableStringBuilder(); in testAppendChars()
64 SpannableStringBuilder number = new SpannableStringBuilder(init); in testRemoveLastChars()
91 SpannableStringBuilder number = new SpannableStringBuilder(init); in testInsertChars()
120 SpannableStringBuilder number = new SpannableStringBuilder(init); in testStopFormatting()
133 number = new SpannableStringBuilder(init); in testStopFormatting()
146 number = new SpannableStringBuilder(init); in testStopFormatting()
164 SpannableStringBuilder number = new SpannableStringBuilder(init); in testRestartFormatting()
182 number = new SpannableStringBuilder(init); in testRestartFormatting()
215 SpannableStringBuilder number = new SpannableStringBuilder(init); in testTextChangedByOtherTextWatcher()
[all …]
/frameworks/base/core/tests/coretests/src/android/text/
DDynamicLayoutTest.java47 final SpannableStringBuilder builder = new SpannableStringBuilder(); in testGetBlocksAlwaysNeedToBeRedrawn_en()
73 final SpannableStringBuilder builder = new SpannableStringBuilder(); in testGetBlocksAlwaysNeedToBeRedrawn_replacementSpan()
102 final SpannableStringBuilder builder = new SpannableStringBuilder(); in testGetBlocksAlwaysNeedToBeRedrawn_thai()
123 final SpannableStringBuilder text = new SpannableStringBuilder("a\nb\nc"); in testGetLineExtra_withoutLinespacing()
151 final SpannableStringBuilder text = new SpannableStringBuilder("a\nb\nc"); in testGetLineExtra_withLinespacing()
198 final SpannableStringBuilder spannable = new SpannableStringBuilder(text); in testReflow_afterSpannableEdit()
DSpannableStringBuilderTest.java40 return new SpannableStringBuilder(text); in newSpannableWithText()
46 SpannableStringBuilder builder = new SpannableStringBuilder(text); in testGetSpans_sortsByPriorityEvenWhenSortParamIsFalse()
DSpannedTest.java51 checkPriority2(new SpannableStringBuilder("the quick brown fox")); in testSpannableStringBuilder()
60 SpannableStringBuilder ssb = new SpannableStringBuilder(); in testAppend()
159 private void checkPriority2(SpannableStringBuilder ssb) { in checkPriority2()
/frameworks/opt/setupwizard/library/gingerbread/test/instrumentation/src/com/android/setupwizardlib/util/
DLinkAccessibilityHelperTest.java32 import android.text.SpannableStringBuilder;
151 SpannableStringBuilder ssb = new SpannableStringBuilder("מכונה בתרגום"); in testRtlLayout()
172 SpannableStringBuilder ssb = in testMultilineLink()
173 new SpannableStringBuilder( in testMultilineLink()
202 SpannableStringBuilder ssb = new SpannableStringBuilder(iwLoremIpsum); in testRtlMultilineLink()
230 SpannableStringBuilder ssb = new SpannableStringBuilder(); in testBidiMultilineLink()
302 SpannableStringBuilder ssb = new SpannableStringBuilder("Hello world"); in initTextView()
/frameworks/ex/common/java/com/android/common/
DRfc822InputFilter.java21 import android.text.SpannableStringBuilder;
60 SpannableStringBuilder sb = new SpannableStringBuilder(","); in filter()
/frameworks/opt/setupwizard/library/test/instrumentation/src/com/android/setupwizardlib/test/
DSpanHelperTest.java23 import android.text.SpannableStringBuilder;
36 SpannableStringBuilder ssb = new SpannableStringBuilder("Hello world"); in testReplaceSpan()
/frameworks/opt/chips/tests/src/com/android/ex/chips/
DChipsTest.java29 import android.text.SpannableStringBuilder;
139 mEditable = new SpannableStringBuilder(); in createViewForTesting()
187 mEditable = new SpannableStringBuilder(); in testSanitizeBetween()
203 mEditable = new SpannableStringBuilder(); in testSanitizeBetween()
224 mEditable = new SpannableStringBuilder(); in testSanitizeEnd()
251 mEditable = new SpannableStringBuilder(); in testMoreChipPlainText()
269 mEditable = new SpannableStringBuilder(); in testCountTokens()
302 mEditable = new SpannableStringBuilder(); in testMoreChip()
370 mEditable = new SpannableStringBuilder(); in testMoreChipLotsOfUsers()
442 mEditable = new SpannableStringBuilder(); in testMoreChipSpecialChars()
[all …]
/frameworks/base/core/java/com/google/android/util/
DSmileyParser.java21 import android.text.SpannableStringBuilder;
56 SpannableStringBuilder builder = new SpannableStringBuilder(); in getSpannableString()
/frameworks/base/apct-tests/perftests/core/src/android/text/
DDynamicLayoutPerfTest.java86 private SpannableStringBuilder getText() { in getText()
89 final SpannableStringBuilder builder = new SpannableStringBuilder(); in getText()
116 final SpannableStringBuilder text = getText();
/frameworks/base/core/java/android/view/textservice/
DTextInfo.java22 import android.text.SpannableStringBuilder;
73 final SpannableStringBuilder spannableString = in TextInfo()
74 new SpannableStringBuilder(charSequence, start, end); in TextInfo()
/frameworks/opt/setupwizard/library/test/robotest/src/com/android/setupwizardlib/span/
DLinkSpanTest.java26 import android.text.SpannableStringBuilder;
82 SpannableStringBuilder text = new SpannableStringBuilder("Lorem ipsum dolor sit"); in onClick_shouldClearSelection()
/frameworks/base/core/tests/benchmarks/src/android/text/
DSpannableStringBuilderBenchmark.java36 private SpannableStringBuilder builder;
46 builder = new SpannableStringBuilder(Html.fromHtml(strBuilder.toString())); in setUp()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/utils/
DStringUtilTest.java25 import android.text.SpannableStringBuilder;
105 assertThat(charSequence).isInstanceOf(SpannableStringBuilder.class); in testFormatElapsedTime_onlyContainsMinute_hasTtsSpan()
107 final SpannableStringBuilder expectedString = (SpannableStringBuilder) charSequence; in testFormatElapsedTime_onlyContainsMinute_hasTtsSpan()
/frameworks/base/apct-tests/perftests/core/src/android/widget/
DTextViewOnMeasurePerfTest.java28 import android.text.SpannableStringBuilder;
61 final SpannableStringBuilder ssb = new SpannableStringBuilder();
/frameworks/base/core/java/android/text/
DSpannableStringBuilder.java37 public class SpannableStringBuilder implements CharSequence, GetChars, Spannable, Editable, class
43 public SpannableStringBuilder() { in SpannableStringBuilder() method in SpannableStringBuilder
51 public SpannableStringBuilder(CharSequence text) { in SpannableStringBuilder() method in SpannableStringBuilder
59 public SpannableStringBuilder(CharSequence text, int start, int end) { in SpannableStringBuilder() method in SpannableStringBuilder
108 public static SpannableStringBuilder valueOf(CharSequence source) { in valueOf()
109 if (source instanceof SpannableStringBuilder) { in valueOf()
110 return (SpannableStringBuilder) source; in valueOf()
112 return new SpannableStringBuilder(source); in valueOf()
219 public SpannableStringBuilder insert(int where, CharSequence tb, int start, int end) { in insert()
224 public SpannableStringBuilder insert(int where, CharSequence tb) { in insert()
[all …]
DLoginFilter.java65 SpannableStringBuilder modification = null; in filter()
78 modification = new SpannableStringBuilder(source, start, end); in filter()
/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/
DNavBarTuner.java37 import android.text.SpannableStringBuilder;
183 SpannableStringBuilder builder = new SpannableStringBuilder(); in updateSummary()
224 SpannableStringBuilder builder = new SpannableStringBuilder(); in setupIcons()
/frameworks/base/packages/VpnDialogs/src/com/android/vpndialogs/
DAlwaysOnDisconnectedDialog.java33 import android.text.SpannableStringBuilder;
124 final SpannableStringBuilder message = new SpannableStringBuilder(); in getMessage()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/utils/
DStringUtil.java27 import android.text.SpannableStringBuilder;
54 SpannableStringBuilder sb = new SpannableStringBuilder(); in formatElapsedTime()
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DViewPropertyAlphaActivity.java28 import android.text.SpannableStringBuilder;
79 SpannableStringBuilder text = in onCreate()
80 new SpannableStringBuilder("Now this is a short text message with spans"); in onCreate()
/frameworks/opt/timezonepicker/src/com/android/timezonepicker/
DTimeZonePickerView.java23 import android.text.SpannableStringBuilder;
120 SpannableStringBuilder ssb = new SpannableStringBuilder(" "); // for the icon in updateHint()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/
DRestrictedLockUtilsInternal.java37 import android.text.SpannableStringBuilder;
594 SpannableStringBuilder sb = new SpannableStringBuilder(item.getTitle()); in setMenuItemAsDisabledByAdmin()
617 private static void removeExistingRestrictedSpans(SpannableStringBuilder sb) { in removeExistingRestrictedSpans()
647 final SpannableStringBuilder sb = new SpannableStringBuilder(textView.getText()); in setTextViewPadlock()
663 final SpannableStringBuilder sb = new SpannableStringBuilder(textView.getText()); in setTextViewAsDisabledByAdmin()
/frameworks/base/core/java/android/text/method/
DNumberKeyListener.java26 import android.text.SpannableStringBuilder;
77 SpannableStringBuilder filtered = in filter()
78 new SpannableStringBuilder(source, start, end); in filter()

123