/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 | 482 SpannableStringBuilder ssb = new SpannableStringBuilder(); local 483 ssb.append("no"); 485 assertEquals(ssb, Utility.appendBold(ssb, "BO")); 487 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);
|
/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...] |
/frameworks/base/core/java/android/text/ |
TextUtils.java | 851 SpannableStringBuilder ssb = new SpannableStringBuilder(template); local 855 while (i < ssb.length()) { 856 if (ssb.charAt(i) == '^') { 857 char next = ssb.charAt(i+1); 859 ssb.delete(i+1, i+2); 873 ssb.replace(i, i+2, values[which]); 883 return ssb; 1139 SpannableStringBuilder ssb = new SpannableStringBuilder(); local [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/deprecated/ |
VoiceProxy.java | 255 final SpannableStringBuilder ssb = new SpannableStringBuilder(message); local 256 for (URLSpan span : ssb.getSpans(0, ssb.length(), URLSpan.class)) { 257 int spanStart = ssb.getSpanStart(span); 258 int spanEnd = ssb.getSpanEnd(span); 259 int spanFlags = ssb.getSpanFlags(span); 260 ssb.removeSpan(span); 261 ssb.setSpan(new ClickableSpan(span.getURL()), spanStart, spanEnd, spanFlags); 263 return ssb; [all...] |
/packages/apps/Email/src/com/android/email/activity/ |
MessageListItem.java | 203 SpannableStringBuilder ssb = new SpannableStringBuilder(); local 209 ssb.append(ss); 214 ssb.append(sSubjectSnippetDivider); 216 ssb.append(mSnippet); 218 mText = ssb;
|
MessageViewFragmentBase.java | 1605 final SpannableStringBuilder ssb = new SpannableStringBuilder(); local [all...] |
/packages/apps/Email/src/com/android/email/widget/ |
EmailWidget.java | 369 SpannableStringBuilder ssb = new SpannableStringBuilder(); local 377 ssb.append(ss); 382 ssb.append(sSubjectSnippetDivider); 387 ssb.append(ss); 389 return addStyle(ssb, sSubjectFontSize, 0);
|
/frameworks/base/core/java/android/widget/ |
SearchView.java | [all...] |