/cts/tests/tests/text/src/android/text/method/cts/ |
MetaKeyKeyListenerTest.java | 58 content.setSpan(Selection.SELECTION_START, 0, 0, Spanned.SPAN_POINT_POINT); 59 content.setSpan(Selection.SELECTION_END, 0, 0, Spanned.SPAN_POINT_POINT); 64 content.setSpan(Selection.SELECTION_START, 1, 1, Spanned.SPAN_POINT_POINT); 65 content.setSpan(Selection.SELECTION_END, 1, 1, Spanned.SPAN_POINT_POINT); 70 content.setSpan(Selection.SELECTION_START, 3, 3, Spanned.SPAN_POINT_POINT); 71 content.setSpan(Selection.SELECTION_END, 3, 3, Spanned.SPAN_POINT_POINT); 84 content.setSpan(Selection.SELECTION_START, 0, 0, Spanned.SPAN_POINT_POINT); 85 content.setSpan(Selection.SELECTION_END, 0, 0, Spanned.SPAN_POINT_POINT); 90 content.setSpan(Selection.SELECTION_START, 1, 1, Spanned.SPAN_POINT_POINT); 91 content.setSpan(Selection.SELECTION_END, 1, 1, Spanned.SPAN_POINT_POINT) [all...] |
SingleLineTransformationMethodTest.java | 86 original.setSpan(span, 1, original.length() - 1, Spanned.SPAN_PARAGRAPH);
|
/cts/tests/tests/text/src/android/text/cts/ |
SpannableStringTest.java | 81 spannable.setSpan(null, 1, 4, SpannableString.SPAN_POINT_POINT); 87 spannable.setSpan(underlineSpan, 0, 2, SpannableString.SPAN_EXCLUSIVE_EXCLUSIVE); 94 spannable.setSpan(null, 4, 1, SpannableString.SPAN_POINT_POINT); 100 spannable.setSpan(underlineSpan, -1, text.length() + 1, 114 spannable.setSpan(underlineSpan, 0, 2, 2); 162 first.setSpan(quoteSpan, 0, 2, Spanned.SPAN_PARAGRAPH); 163 first.setSpan(localeSpan, 2, 4, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); 164 first.setSpan(underlineSpan, 0, first.length(), Spanned.SPAN_PRIORITY); 188 first.setSpan(new QuoteSpan(), 0, 2, Spanned.SPAN_PARAGRAPH); 189 first.setSpan(new LocaleSpan(Locale.US), 2, 4, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE) [all...] |
SpannableStringBuilderTest.java | 101 builder.setSpan(mUnderlineSpan, 2, 4, Spanned.SPAN_INCLUSIVE_INCLUSIVE); 102 builder.setSpan(mUnderlineSpan, 0, 1, Spanned.SPAN_EXCLUSIVE_INCLUSIVE); 103 builder.setSpan(mStrikethroughSpan, 5, 7, Spanned.SPAN_INCLUSIVE_EXCLUSIVE); 114 builder.setSpan(mUnderlineSpan, 1, 2, Spanned.SPAN_INCLUSIVE_INCLUSIVE); 115 builder.setSpan(mUnderlineSpan, 3, 4, Spanned.SPAN_INCLUSIVE_INCLUSIVE); 116 builder.setSpan(mStrikethroughSpan, 5, 6, Spanned.SPAN_INCLUSIVE_INCLUSIVE); 117 builder.setSpan(mStrikethroughSpan, 8, 9, Spanned.SPAN_INCLUSIVE_INCLUSIVE); 130 builder.setSpan(mUnderlineSpan, 4, 1, Spanned.SPAN_INCLUSIVE_INCLUSIVE); 137 builder.setSpan(mUnderlineSpan, -1, 100, Spanned.SPAN_POINT_POINT); 143 builder.setSpan(null, 1, 4, Spanned.SPAN_POINT_POINT) [all...] |
SpannedTest.java | 76 text.setSpan(new QuoteSpan(), 0, 4, flags); 77 text.setSpan(new LocaleSpan((Locale) null), 2, 7, flags); 78 text.setSpan(new UnderlineSpan(), 5, text.length(), flags);
|
HtmlTest.java | 252 s.setSpan(new AlignmentSpan.Standard(Layout.Alignment.ALIGN_CENTER), 260 s.setSpan(new AlignmentSpan.Standard(Layout.Alignment.ALIGN_OPPOSITE), 269 s.setSpan(new AlignmentSpan.Standard(Layout.Alignment.ALIGN_NORMAL), 280 s.setSpan(new BulletSpan(), 0, 8, Spanned.SPAN_PARAGRAPH); 281 s.setSpan(new BulletSpan(), 8, 16, Spanned.SPAN_PARAGRAPH); 297 s.setSpan(new QuoteSpan(), start, end, Spannable.SPAN_PARAGRAPH); 303 s.setSpan(new QuoteSpan(), start, end, Spannable.SPAN_PARAGRAPH); 329 s.setSpan(new StyleSpan(Typeface.BOLD), start, end, SPAN_EXCLUSIVE_INCLUSIVE); 335 s.setSpan(new StyleSpan(Typeface.ITALIC), start, end, SPAN_EXCLUSIVE_INCLUSIVE); 341 s.setSpan(new TypefaceSpan("monospace"), start, end, SPAN_EXCLUSIVE_INCLUSIVE) [all...] |
PrecomputedTextTest.java | 73 ssb.setSpan(SPAN, SPAN_START, SPAN_END, Spanned.SPAN_INCLUSIVE_EXCLUSIVE); 240 s.setSpan(span, SPAN_START, SPAN_END, Spanned.SPAN_INCLUSIVE_EXCLUSIVE); 259 s.setSpan(SPAN, SPAN_START, SPAN_END, Spanned.SPAN_INCLUSIVE_EXCLUSIVE); 352 ssb.setSpan(new TextAppearanceSpan(null /* family */, Typeface.NORMAL, 1 /* text size */, 354 ssb.setSpan(new TextAppearanceSpan(null /* family */, Typeface.NORMAL, 5 /* text size */, 379 ssb.setSpan(new TextAppearanceSpan(null /* family */, Typeface.NORMAL, 1 /* text size */, 381 ssb.setSpan(new TextAppearanceSpan(null /* family */, Typeface.NORMAL, 5 /* text size */, 383 ssb.setSpan(new TextAppearanceSpan(null /* family */, Typeface.NORMAL, 5 /* text size */, 513 ssb.setSpan(new TextAppearanceSpan(null /* family */, Typeface.NORMAL, 1 /* text size */, 515 ssb.setSpan(new TextAppearanceSpan(null /* family */, Typeface.NORMAL, 5 /* text size */ [all...] |
StaticLayoutLineBreakingTest.java | 223 result.setSpan(getMetricAffectingSpan(), sSpanStarts[i], sSpanEnds[i], 353 ssb.setSpan(metricAffectingSpan, spanStart, spanEnd, 379 ssb.setSpan(metricAffectingSpan1, spanStart1, spanEnd1, 384 ssb.setSpan(metricAffectingSpan2, spanStart2, spanEnd2,
|
SpannableStringBuilderSpanTest.java | 388 spannable.setSpan(mSpans[count], start, end, flag); 397 spannable.setSpan(mRecorder, 0, spannable.length(), Spanned.SPAN_INCLUSIVE_INCLUSIVE); 566 newText.setSpan(new QuoteSpan(), 0, 1, Spannable.SPAN_PARAGRAPH); 582 newText.setSpan(new QuoteSpan(), 0, 1, Spannable.SPAN_PARAGRAPH); 597 original.setSpan(span, 1, original.length() - 1, Spanned.SPAN_PARAGRAPH);
|
/cts/tests/tests/text/src/android/text/style/cts/ |
UnderlineSpanTest.java | 111 text.setSpan(new UnderlineSpan(), 0, 1, Spanned.SPAN_INCLUSIVE_INCLUSIVE); 119 text.setSpan(new UnderlineSpan(), 1, 2, Spanned.SPAN_INCLUSIVE_INCLUSIVE); 127 text.setSpan(new UnderlineSpan(), 3, 4, Spanned.SPAN_INCLUSIVE_INCLUSIVE); 135 text.setSpan(new UnderlineSpan(), 0, 1, Spanned.SPAN_INCLUSIVE_INCLUSIVE); 136 text.setSpan(new UnderlineSpan(), 3, 4, Spanned.SPAN_INCLUSIVE_INCLUSIVE); 154 text.setSpan(new SafeUnderlineSpan(), 0, 1, Spanned.SPAN_INCLUSIVE_INCLUSIVE); 174 text.setSpan(new NoUnderlineSpan(), 0, 1, Spanned.SPAN_INCLUSIVE_INCLUSIVE); 198 text.setSpan(new ElegantUnderlineSpan(), 0, 1, Spanned.SPAN_INCLUSIVE_INCLUSIVE);
|
StrikethroughSpanTest.java | 113 text.setSpan(new StrikethroughSpan(), 0, 1, Spanned.SPAN_INCLUSIVE_INCLUSIVE);
|
/external/setupdesign/main/src/com/google/android/setupdesign/span/ |
SpanHelper.java | 35 spannable.setSpan(newSpan, spanStart, spanEnd, 0);
|
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/ |
ShadowSpannableStringTest.java | 33 spanStr.setSpan(s1, 12, 33, 0); 34 spanStr.setSpan(s2, 1, 10, 0); 43 spanStr.setSpan(s1, 12, 33, 0); 44 spanStr.setSpan(s2, 1, 10, 0); 57 spanStr.setSpan(s1, 1, 10, 0); 58 spanStr.setSpan(s2, 20, 30, 0);
|
/developers/build/prebuilts/gradle/TextLinkify/Application/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/Application/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,
|
/developers/samples/android/ui/text/TextStyling-Java/app/src/main/java/com/android/example/text/styling/renderer/ |
MarkdownBuilder.java | 104 builder.setSpan(new BulletPointSpan(20, bulletPointColor), startIndex, 112 builder.setSpan(new StyleSpan(Typeface.ITALIC), startIndex, builder.length(), 114 builder.setSpan(new LeadingMarginSpan.Standard(40), startIndex, builder.length(), 116 builder.setSpan(new RelativeSizeSpan(1.1f), startIndex, builder.length(), 123 builder.setSpan(new CodeBlockSpan(codeBlockTypeface, codeBackgroundColor), startIndex,
|
/frameworks/base/apct-tests/perftests/core/src/android/text/ |
NonEditableTextGenerator.java | 73 spannable.setSpan(new BulletSpan(), 0, spannable.length(), SPAN_INCLUSIVE_INCLUSIVE); 76 spannable.setSpan(new Object(), 0, spannable.length(), SPAN_INCLUSIVE_INCLUSIVE); 77 spannable.setSpan(new Object(), 0, 1, SPAN_INCLUSIVE_INCLUSIVE);
|
/developers/samples/android/ui/text/TextStyling-Java/app/src/androidTest/java/com/android/example/text/styling/renderer/spans/ |
BulletPointSpanTest.java | 67 text.setSpan(span, 0, 2, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); 95 text.setSpan(span, 0, 2, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
|
/cts/tests/inputmethod/src/android/view/inputmethod/cts/ |
ExtractedTextTest.java | 48 hint.setSpan(new StyleSpan(Typeface.BOLD), 1, 3, Spanned.SPAN_INCLUSIVE_INCLUSIVE);
|
/developers/build/prebuilts/gradle/FindMyPhone/Wearable/src/main/java/com/example/android/wearable/findphone/ |
FindPhoneActivity.java | 53 title.setSpan(new RelativeSizeSpan(0.85f), 0, title.length(), Spannable.SPAN_POINT_MARK);
|
/developers/samples/android/deprecated/wearable/wear/FindMyPhone/Wearable/src/main/java/com/example/android/wearable/findphone/ |
FindPhoneActivity.java | 53 title.setSpan(new RelativeSizeSpan(0.85f), 0, title.length(), Spannable.SPAN_POINT_MARK);
|
/development/samples/browseable/FindMyPhone/Wearable/src/com.example.android.wearable.findphone/ |
FindPhoneActivity.java | 53 title.setSpan(new RelativeSizeSpan(0.85f), 0, title.length(), Spannable.SPAN_POINT_MARK);
|
/external/tensorflow/tensorflow/lite/java/demo/app/src/main/java/com/example/android/tflitecamerademo/ |
ImageClassifier.java | 137 span.setSpan(new ForegroundColorSpan(android.graphics.Color.LTGRAY), 0, span.length(), 0); 270 span.setSpan(new RelativeSizeSpan(sizeScale), 0, span.length(), 0); 272 span.setSpan(new ForegroundColorSpan(color), 0, span.length(), 0);
|