HomeSort by relevance Sort by last modified time
    Searched refs:setSpan (Results 1 - 25 of 146) sorted by null

1 2 3 4 5 6

  /frameworks/base/core/java/android/text/
SpannableString.java 45 public void setSpan(Object what, int start, int end, int flags) {
46 super.setSpan(what, start, end, flags);
Spannable.java 39 public void setSpan(Object what, int start, int end, int flags);
  /frameworks/base/core/tests/coretests/src/android/text/
SpannedTest.java 48 ss.setSpan(o, 0, ss.length(), Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);
67 s.setSpan(mark, 1, 2, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);
68 s.setSpan(CharacterStyle.wrap(mark), 3, 7,
70 s.setSpan(new TextAppearanceSpan("mono", 0, -1, null, null), 7, 8,
72 s.setSpan(CharacterStyle.wrap(new TypefaceSpan("mono")), 8, 9,
106 s.setSpan(new Object(), 0, 1, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE |
108 s.setSpan(new Object(), 0, 1, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE |
110 s.setSpan(new Object(), 0, 1, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE |
112 s.setSpan(new Object(), 0, 1, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE |
114 s.setSpan(new Object(), 0, 1, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE
    [all...]
SpannableTest.java 32 spannable.setSpan(emptySpan, 1, 1, 0);
34 spannable.setSpan(unemptySpan, 1, 2, 0);
HtmlTest.java 161 s.setSpan(new QuoteSpan(), 0, s.length(), Spannable.SPAN_PARAGRAPH);
165 s.setSpan(new QuoteSpan(), 0, 7, Spannable.SPAN_PARAGRAPH);
188 s.setSpan(new StyleSpan(Typeface.BOLD), 6, s.length() - 6,
193 s.setSpan(new StyleSpan(Typeface.ITALIC), 6, s.length() - 6,
198 s.setSpan(new TypefaceSpan("monospace"), 6, s.length() - 6,
203 s.setSpan(new SuperscriptSpan(), 6, s.length() - 6,
208 s.setSpan(new SubscriptSpan(), 6, s.length() - 6,
213 s.setSpan(new UnderlineSpan(), 6, s.length() - 6,
218 s.setSpan(new StrikethroughSpan(), 6, s.length() - 6,
223 s.setSpan(new URLSpan("http://www.google.com"), 6, s.length() - 6
    [all...]
  /external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/
SpannableStringTest.java 40 spanStr.setSpan(s1, 12, 33, 0);
41 spanStr.setSpan(s2, 1, 10, 0);
50 spanStr.setSpan(s1, 12, 33, 0);
51 spanStr.setSpan(s2, 1, 10, 0);
64 spanStr.setSpan(s1, 1, 10, 0);
65 spanStr.setSpan(s2, 20, 30, 0);
101 spanStr.setSpan(s1, 0, 4, 0);
104 spanStr.setSpan(s2, 2, TEST_STRING.length(), 0);
116 spanStr.setSpan(s1, 0, 4, 0);
119 spanStr.setSpan(s2, 2, TEST_STRING.length(), 0)
    [all...]
  /cts/tests/tests/text/src/android/text/method/cts/
MetaKeyKeyListenerTest.java 41 content.setSpan(Selection.SELECTION_START, 0, 0, Spanned.SPAN_POINT_POINT);
42 content.setSpan(Selection.SELECTION_END, 0, 0, Spanned.SPAN_POINT_POINT);
47 content.setSpan(Selection.SELECTION_START, 1, 1, Spanned.SPAN_POINT_POINT);
48 content.setSpan(Selection.SELECTION_END, 1, 1, Spanned.SPAN_POINT_POINT);
53 content.setSpan(Selection.SELECTION_START, 3, 3, Spanned.SPAN_POINT_POINT);
54 content.setSpan(Selection.SELECTION_END, 3, 3, Spanned.SPAN_POINT_POINT);
66 content.setSpan(Selection.SELECTION_START, 0, 0, Spanned.SPAN_POINT_POINT);
67 content.setSpan(Selection.SELECTION_END, 0, 0, Spanned.SPAN_POINT_POINT);
72 content.setSpan(Selection.SELECTION_START, 1, 1, Spanned.SPAN_POINT_POINT);
73 content.setSpan(Selection.SELECTION_END, 1, 1, Spanned.SPAN_POINT_POINT)
    [all...]
  /packages/apps/Contacts/tests/src/com/android/contacts/format/
TestTextWithHighlightingFactory.java 39 setSpan(new StyleSpan(Typeface.ITALIC), 0, baseText.sizeCopied, 0);
40 setSpan(new StyleSpan(Typeface.ITALIC), baseText.sizeCopied + 1,
  /packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/utils/
SpannableStringUtilsTests.java 36 s.setSpan(new SuggestionSpan(getContext(),
40 s.setSpan(new SuggestionSpan(getContext(), new String[] {"" + i}, 0), i, i * 2, 0);
42 s.setSpan(new URLSpan("http://a"), i, i * 2, 0);
  /cts/tests/tests/text/src/android/text/cts/
SpannableStringTest.java 55 spannable.setSpan(null, 1, 4, SpannableString.SPAN_POINT_POINT);
61 spannable.setSpan(underlineSpan, 0, 2, SpannableString.SPAN_EXCLUSIVE_EXCLUSIVE);
68 spannable.setSpan(null, 4, 1, SpannableString.SPAN_POINT_POINT);
74 spannable.setSpan(underlineSpan, -1, text.length() + 1,
87 spannable.setSpan(underlineSpan, 0, 2, 2);
HtmlTest.java 134 s.setSpan(new QuoteSpan(), start, end, Spannable.SPAN_PARAGRAPH);
139 s.setSpan(new QuoteSpan(), start, end, Spannable.SPAN_PARAGRAPH);
160 s.setSpan(new StyleSpan(Typeface.BOLD), start, end, SPAN_EXCLUSIVE_INCLUSIVE);
165 s.setSpan(new StyleSpan(Typeface.ITALIC), start, end, SPAN_EXCLUSIVE_INCLUSIVE);
170 s.setSpan(new TypefaceSpan("monospace"), start, end, SPAN_EXCLUSIVE_INCLUSIVE);
175 s.setSpan(new SuperscriptSpan(), start, end, SPAN_EXCLUSIVE_INCLUSIVE);
180 s.setSpan(new SubscriptSpan(), start, end, SPAN_EXCLUSIVE_INCLUSIVE);
185 s.setSpan(new UnderlineSpan(), start, end, SPAN_EXCLUSIVE_INCLUSIVE);
190 s.setSpan(new StrikethroughSpan(), start, end, SPAN_EXCLUSIVE_INCLUSIVE);
195 s.setSpan(new URLSpan("http://www.google.com"), start, end, SPAN_EXCLUSIVE_INCLUSIVE)
    [all...]
SpannableStringBuilderTest.java 88 builder.setSpan(mUnderlineSpan, 2, 4, Spanned.SPAN_INCLUSIVE_INCLUSIVE);
89 builder.setSpan(mUnderlineSpan, 0, 1, Spanned.SPAN_EXCLUSIVE_INCLUSIVE);
90 builder.setSpan(mStrikethroughSpan, 5, 7, Spanned.SPAN_INCLUSIVE_EXCLUSIVE);
100 builder.setSpan(mUnderlineSpan, 1, 2, Spanned.SPAN_INCLUSIVE_INCLUSIVE);
101 builder.setSpan(mUnderlineSpan, 3, 4, Spanned.SPAN_INCLUSIVE_INCLUSIVE);
102 builder.setSpan(mStrikethroughSpan, 5, 6, Spanned.SPAN_INCLUSIVE_INCLUSIVE);
103 builder.setSpan(mStrikethroughSpan, 8, 9, Spanned.SPAN_INCLUSIVE_INCLUSIVE);
115 builder.setSpan(mUnderlineSpan, 4, 1, Spanned.SPAN_INCLUSIVE_INCLUSIVE);
122 builder.setSpan(mUnderlineSpan, -1, 100, Spanned.SPAN_POINT_POINT);
128 builder.setSpan(null, 1, 4, Spanned.SPAN_POINT_POINT)
    [all...]
  /frameworks/base/core/java/android/content/res/
StringBlock.java 179 buffer.setSpan(new StyleSpan(Typeface.BOLD),
183 buffer.setSpan(new StyleSpan(Typeface.ITALIC),
187 buffer.setSpan(new UnderlineSpan(),
191 buffer.setSpan(new TypefaceSpan("monospace"),
195 buffer.setSpan(new RelativeSizeSpan(1.25f),
199 buffer.setSpan(new RelativeSizeSpan(0.8f),
203 buffer.setSpan(new SubscriptSpan(),
207 buffer.setSpan(new SuperscriptSpan(),
211 buffer.setSpan(new StrikethroughSpan(),
218 buffer.setSpan(TextUtils.TruncateAt.MARQUEE
    [all...]
  /frameworks/base/tests/BiDiTests/src/com/android/bidi/
BiDiTestBasic.java 84 url.setSpan(new ForegroundColorSpan(0xfff00fff),
90 url.setSpan(new ForegroundColorSpan(0xff548aff),
96 url.setSpan(new ForegroundColorSpan(0xfff00fff),
  /external/chromium_org/third_party/WebKit/Source/core/html/
HTMLTableColElement.h 38 void setSpan(int);
  /packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/
RichInputConnectionAndTextRangeTests.java 241 text.setSpan(new SuggestionSpan(Locale.ENGLISH, SUGGESTIONS1, 0 /* flags */),
254 text.setSpan(new SuggestionSpan(Locale.ENGLISH, SUGGESTIONS1, 0 /* flags */),
256 text.setSpan(new SuggestionSpan(Locale.ENGLISH, SUGGESTIONS2, 0 /* flags */),
267 text.setSpan(new SuggestionSpan(Locale.ENGLISH, SUGGESTIONS1, 0 /* flags */),
269 text.setSpan(new SuggestionSpan(Locale.ENGLISH, SUGGESTIONS2, 0 /* flags */),
279 text.setSpan(new SuggestionSpan(Locale.ENGLISH, SUGGESTIONS1, 0 /* flags */),
281 text.setSpan(new SuggestionSpan(Locale.ENGLISH, SUGGESTIONS2, 0 /* flags */),
291 text.setSpan(new SuggestionSpan(Locale.ENGLISH, SUGGESTIONS1, 0 /* flags */),
293 text.setSpan(new SuggestionSpan(Locale.ENGLISH, SUGGESTIONS2, 0 /* flags */),
303 text.setSpan(new SuggestionSpan(Locale.ENGLISH, SUGGESTIONS1, 0 /* flags */)
    [all...]
  /developers/build/prebuilts/gradle/TextLinkify/TextLinkifySample/src/main/java/com/example/android/textlinkify/
MainActivity.java 121 ss.setSpan(new StyleSpan(Typeface.BOLD), 0, 39,
123 ss.setSpan(new URLSpan("tel:4155551212"), 40 + 6, 40 + 10,
  /developers/samples/android/views/TextLinkify/TextLinkifySample/src/main/java/com/example/android/textlinkify/
MainActivity.java 121 ss.setSpan(new StyleSpan(Typeface.BOLD), 0, 39,
123 ss.setSpan(new URLSpan("tel:4155551212"), 40 + 6, 40 + 10,
  /development/samples/ApiDemos/src/com/example/android/apis/text/
Link.java 75 ss.setSpan(new StyleSpan(Typeface.BOLD), 0, 30,
77 ss.setSpan(new URLSpan("tel:4155551212"), 31+6, 31+10,
  /development/samples/browseable/TextLinkify/src/com.example.android.textlinkify/
MainActivity.java 121 ss.setSpan(new StyleSpan(Typeface.BOLD), 0, 39,
123 ss.setSpan(new URLSpan("tel:4155551212"), 40 + 6, 40 + 10,
  /device/google/accessory/demokit/app/src/com/google/android/DemoKit/
RelayController.java 37 ssb.setSpan(new SubscriptSpan(), 5, 6, 0);
38 ssb.setSpan(new RelativeSizeSpan(0.7f), 5, 6, 0);
ServoController.java 26 ssb.setSpan(new SubscriptSpan(), 5, 6, 0);
27 ssb.setSpan(new RelativeSizeSpan(0.7f), 5, 6, 0);
  /packages/apps/ContactsCommon/src/com/android/contacts/common/format/
TextHighlighter.java 67 text.setSpan(getStyleSpan(), start, end, 0);
92 result.setSpan(mTextStyleSpan, index, index + trimmedPrefix.length(), 0 /* flags */);
  /frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
ViewPropertyAlphaActivity.java 82 text.setSpan(new BackgroundColorSpan(Color.RED), 0, 3,
84 text.setSpan(new ForegroundColorSpan(Color.BLUE), 4, 9,
86 text.setSpan(new SuggestionSpan(this, new String[]{"longer"}, 3), 11, 16,
88 text.setSpan(new UnderlineSpan(), 17, 20,
90 text.setSpan(new ImageSpan(this, R.drawable.icon), 21, 22,
  /frameworks/ex/chips/tests/src/com/android/ex/chips/
ChipsTest.java 193 mEditable.setSpan(mMockRecips[mMockRecips.length - 2], firstStart, firstEnd, 0);
194 mEditable.setSpan(mMockRecips[mMockRecips.length - 1], secondStart, secondEnd, 0);
209 mEditable.setSpan(mMockRecips[mMockRecips.length - 1], firstStart, firstEnd, 0);
230 mEditable.setSpan(mMockRecips[mMockRecips.length - 2], firstStart, firstEnd, 0);
231 mEditable.setSpan(mMockRecips[mMockRecips.length - 1], secondStart, secondEnd, 0);
311 mEditable.setSpan(mMockRecips[mMockRecips.length - 3], firstStart, firstEnd, 0);
312 mEditable.setSpan(mMockRecips[mMockRecips.length - 2], secondStart, secondEnd, 0);
313 mEditable.setSpan(mMockRecips[mMockRecips.length - 1], thirdStart, thirdEnd, 0);
393 mEditable.setSpan(mMockRecips[mMockRecips.length - 10], firstStart, firstEnd, 0);
394 mEditable.setSpan(mMockRecips[mMockRecips.length - 9], secondStart, secondEnd, 0)
    [all...]

Completed in 1788 milliseconds

1 2 3 4 5 6