Home
last modified time | relevance | path

Searched refs:ssb (Results 1 – 5 of 5) 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/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.java877 SpannableStringBuilder ssb = new SpannableStringBuilder(template); in expandTemplate() local
881 while (i < ssb.length()) { in expandTemplate()
882 if (ssb.charAt(i) == '^') { in expandTemplate()
883 char next = ssb.charAt(i+1); in expandTemplate()
885 ssb.delete(i+1, i+2); in expandTemplate()
899 ssb.replace(i, i+2, values[which]); in expandTemplate()
909 return ssb; in expandTemplate()
1170 SpannableStringBuilder ssb = new SpannableStringBuilder(); in ellipsize() local
1171 ssb.append(text, 0, left); in ellipsize()
1172 ssb.append(ellipsis); in ellipsize()
[all …]
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
DSearchView.java1017 SpannableStringBuilder ssb = new SpannableStringBuilder(" "); // for the icon in getDecoratedHint()
1018 ssb.append(hintText); in getDecoratedHint()
1022 ssb.setSpan(new ImageSpan(searchIcon), 1, 2, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in getDecoratedHint()
1023 return ssb; in getDecoratedHint()
/frameworks/base/core/java/android/widget/
DSearchView.java1051 SpannableStringBuilder ssb = new SpannableStringBuilder(" "); // for the icon in getDecoratedHint()
1052 ssb.append(hintText); in getDecoratedHint()
1056 ssb.setSpan(new ImageSpan(searchIcon), 1, 2, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in getDecoratedHint()
1057 return ssb; in getDecoratedHint()