/packages/apps/Email/tests/src/com/android/emailcommon/utility/ |
TextUtilitiesTests.java | 200 SpannableStringBuilder ssb = local 202 BackgroundColorSpan[] spans = ssb.getSpans(0, ssb.length(), BackgroundColorSpan.class); 205 assertEquals(text.indexOf("visi"), ssb.getSpanStart(span)); 206 assertEquals(text.indexOf("bl>e"), ssb.getSpanEnd(span)); 208 assertEquals(text, ssb.toString()); 212 ssb = (SpannableStringBuilder)TextUtilities.highlightTermsInText(text, "Search"); 213 spans = ssb.getSpans(0, ssb.length(), BackgroundColorSpan.class); 216 assertEquals(text.indexOf("search word"), ssb.getSpanStart(span)) 227 SpannableStringBuilder ssb = local 243 SpannableStringBuilder ssb = local 255 SpannableStringBuilder ssb = local 268 SpannableStringBuilder ssb = local [all...] |
UtilityUnitTests.java | 359 SpannableStringBuilder ssb = new SpannableStringBuilder(); local 360 ssb.append("no"); 362 assertEquals(ssb, Utility.appendBold(ssb, "BO")); 364 assertEquals("noBO", ssb.toString());
|
/device/google/accessory/demokit/app/src/com/google/android/DemoKit/ |
RelayController.java | 35 SpannableStringBuilder ssb = new SpannableStringBuilder("Relay"); local 36 ssb.append(String.valueOf(mRelayNumber)); 37 ssb.setSpan(new SubscriptSpan(), 5, 6, 0); 38 ssb.setSpan(new RelativeSizeSpan(0.7f), 5, 6, 0); 39 mLabel.setText(ssb);
|
ServoController.java | 24 SpannableStringBuilder ssb = new SpannableStringBuilder("Servo"); local 25 ssb.append(String.valueOf(mServoNumber)); 26 ssb.setSpan(new SubscriptSpan(), 5, 6, 0); 27 ssb.setSpan(new RelativeSizeSpan(0.7f), 5, 6, 0); 28 mLabel.setText(ssb);
|
ColorLEDController.java | 95 SpannableStringBuilder ssb = new SpannableStringBuilder( local 97 ssb.append(String.valueOf(mLEDNumber)); 100 ssb.setSpan(new SubscriptSpan(), spanStart, spanEnd, 0); 101 ssb.setSpan(new RelativeSizeSpan(0.7f), spanStart, spanEnd, 0); 102 label.setText(ssb);
|
/bionic/libc/bionic/ |
tmpfile.cpp | 68 ScopedSignalBlocker ssb; local
|
/frameworks/opt/timezonepicker/src/com/android/timezonepicker/ |
TimeZonePickerView.java | 120 SpannableStringBuilder ssb = new SpannableStringBuilder(" "); // for the icon local 121 ssb.append(hintText); 124 ssb.setSpan(new ImageSpan(searchIcon), 1, 2, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); 125 mAutoCompleteTextView.setHint(ssb);
|
/frameworks/base/core/tests/coretests/src/android/text/ |
SpannedTest.java | 50 SpannableStringBuilder ssb = new SpannableStringBuilder(); local 51 ssb.append(ss); 52 assertEquals(0, ssb.getSpanStart(o)); 53 assertEquals(4, ssb.getSpanEnd(o)); 54 assertEquals(1, ssb.getSpans(0, 4, Object.class).length); 56 ssb.insert(0, ss); 57 assertEquals(4, ssb.getSpanStart(o)); 58 assertEquals(8, ssb.getSpanEnd(o)); 59 assertEquals(0, ssb.getSpans(0, 4, Object.class).length); 60 assertEquals(1, ssb.getSpans(4, 8, Object.class).length) [all...] |
/cts/tests/tests/text/src/android/text/cts/ |
StaticLayoutLineBreakingTest.java | 354 SpannableStringBuilder ssb = new SpannableStringBuilder(text); local 355 ssb.setSpan(metricAffectingSpan, spanStart, spanEnd, 357 layout(ssb, breaks); 379 SpannableStringBuilder ssb = new SpannableStringBuilder(text); local 380 ssb.setSpan(metricAffectingSpan1, spanStart1, spanEnd1, 385 ssb.setSpan(metricAffectingSpan2, spanStart2, spanEnd2, 387 layout(ssb, breaks);
|
/frameworks/base/core/java/android/text/ |
TextUtils.java | 877 SpannableStringBuilder ssb = new SpannableStringBuilder(template); local 881 while (i < ssb.length()) { 882 if (ssb.charAt(i) == '^') { 883 char next = ssb.charAt(i+1); 885 ssb.delete(i+1, i+2); 899 ssb.replace(i, i+2, values[which]); 909 return ssb; 1170 SpannableStringBuilder ssb = new SpannableStringBuilder(); local [all...] |
/packages/apps/UnifiedEmail/src/com/android/mail/browse/ |
MessageHeaderView.java | 753 SpannableStringBuilder ssb = new SpannableStringBuilder( local 755 ssb.setSpan(new StyleSpan(Typeface.NORMAL), 0, ssb.length(), 781 ssb.append(mComma); 783 ssb.append(name); 786 return ssb; [all...] |
/frameworks/base/core/java/android/widget/ |
SearchView.java | [all...] |
/frameworks/support/v7/appcompat/src/android/support/v7/widget/ |
SearchView.java | [all...] |