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.java890 SpannableStringBuilder ssb = new SpannableStringBuilder(template); in expandTemplate() local
894 while (i < ssb.length()) { in expandTemplate()
895 if (ssb.charAt(i) == '^') { in expandTemplate()
896 char next = ssb.charAt(i+1); in expandTemplate()
898 ssb.delete(i+1, i+2); in expandTemplate()
912 ssb.replace(i, i+2, values[which]); in expandTemplate()
922 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/core/java/android/widget/
DSearchView.java1090 final SpannableStringBuilder ssb = new SpannableStringBuilder(" "); // for the icon in getDecoratedHint() local
1091 ssb.append(hintText); in getDecoratedHint()
1092 ssb.setSpan(new ImageSpan(searchIcon), 1, 2, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in getDecoratedHint()
1093 return ssb; in getDecoratedHint()
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
DSearchView.java1024 final SpannableStringBuilder ssb = new SpannableStringBuilder(" "); // for the icon in getDecoratedHint() local
1025 ssb.append(hintText); in getDecoratedHint()
1026 ssb.setSpan(new ImageSpan(searchIcon), 1, 2, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in getDecoratedHint()
1027 return ssb; in getDecoratedHint()