Home
last modified time | relevance | path

Searched refs:ssb (Results 1 – 9 of 9) sorted by relevance

/frameworks/base/core/tests/coretests/src/android/text/
DSpannedTest.java50 SpannableStringBuilder ssb = new SpannableStringBuilder(); in testAppend() local
51 ssb.append(ss); in testAppend()
52 assertEquals(0, ssb.getSpanStart(o)); in testAppend()
53 assertEquals(4, ssb.getSpanEnd(o)); in testAppend()
54 assertEquals(1, ssb.getSpans(0, 4, Object.class).length); in testAppend()
56 ssb.insert(0, ss); in testAppend()
57 assertEquals(4, ssb.getSpanStart(o)); in testAppend()
58 assertEquals(8, ssb.getSpanEnd(o)); in testAppend()
59 assertEquals(0, ssb.getSpans(0, 4, Object.class).length); in testAppend()
60 assertEquals(1, ssb.getSpans(4, 8, Object.class).length); in testAppend()
[all …]
/frameworks/opt/setupwizard/library/test/src/com/android/setupwizardlib/test/
DSpanHelperTest.java30 SpannableStringBuilder ssb = new SpannableStringBuilder("Hello world"); in testReplaceSpan() local
33 ssb.setSpan(oldSpan, 2, 5, 0 /* flags */); in testReplaceSpan()
35 SpanHelper.replaceSpan(ssb, oldSpan, newSpan); in testReplaceSpan()
37 final Object[] spans = ssb.getSpans(0, ssb.length(), Object.class); in testReplaceSpan()
/frameworks/opt/setupwizard/library/eclair-mr1/test/src/com/android/setupwizardlib/test/
DRichTextViewTest.java36 SpannableStringBuilder ssb = new SpannableStringBuilder("Hello world"); in testLinkAnnotation() local
37 ssb.setSpan(link, 1, 2, 0 /* flags */); in testLinkAnnotation()
40 textView.setText(ssb); in testLinkAnnotation()
58 SpannableStringBuilder ssb = new SpannableStringBuilder("Hello world"); in testTextStyle() local
59 ssb.setSpan(link, 1, 2, 0 /* flags */); in testTextStyle()
62 textView.setText(ssb); in testTextStyle()
DLinkAccessibilityHelperTest.java50 SpannableStringBuilder ssb = new SpannableStringBuilder("Hello world"); in setUp() local
51 ssb.setSpan(mSpan, 1, 2, 0 /* flags */); in setUp()
54 mTextView.setText(ssb); in setUp()
/frameworks/opt/timezonepicker/src/com/android/timezonepicker/
DTimeZonePickerView.java120 SpannableStringBuilder ssb = new SpannableStringBuilder(" "); // for the icon in updateHint() local
121 ssb.append(hintText); in updateHint()
124 ssb.setSpan(new ImageSpan(searchIcon), 1, 2, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in updateHint()
125 mAutoCompleteTextView.setHint(ssb); in updateHint()
/frameworks/base/core/java/android/text/
DTextUtils.java895 SpannableStringBuilder ssb = new SpannableStringBuilder(template); in expandTemplate() local
899 while (i < ssb.length()) { in expandTemplate()
900 if (ssb.charAt(i) == '^') { in expandTemplate()
901 char next = ssb.charAt(i+1); in expandTemplate()
903 ssb.delete(i+1, i+2); in expandTemplate()
917 ssb.replace(i, i+2, values[which]); in expandTemplate()
927 return ssb; in expandTemplate()
1183 SpannableStringBuilder ssb = new SpannableStringBuilder(); in ellipsize() local
1184 ssb.append(text, 0, left); in ellipsize()
1185 ssb.append(ellipsis); in ellipsize()
[all …]
/frameworks/base/tests/notification/src/com/android/frameworks/tests/notification/
DNotificationTests.java178 final SpannableStringBuilder ssb = new SpannableStringBuilder(str); in BOLD() local
179 ssb.setSpan(new StyleSpan(Typeface.BOLD), 0, ssb.length(), 0); in BOLD()
180 return ssb; in BOLD()
/frameworks/base/core/java/android/widget/
DSearchView.java1187 final SpannableStringBuilder ssb = new SpannableStringBuilder(" "); in getDecoratedHint() local
1188 ssb.setSpan(new ImageSpan(mSearchHintIcon), 1, 2, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in getDecoratedHint()
1189 ssb.append(hintText); in getDecoratedHint()
1190 return ssb; in getDecoratedHint()
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
DSearchView.java1146 final SpannableStringBuilder ssb = new SpannableStringBuilder(" "); in getDecoratedHint() local
1147 ssb.setSpan(new ImageSpan(mSearchHintIcon), 1, 2, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in getDecoratedHint()
1148 ssb.append(hintText); in getDecoratedHint()
1149 return ssb; in getDecoratedHint()