Home
last modified time | relevance | path

Searched refs:setSpan (Results 1 – 25 of 80) sorted by relevance

1234

/frameworks/base/core/tests/coretests/src/android/text/
DSpannedTest.java55 ss.setSpan(o, 0, ss.length(), Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in testAppend()
74 s.setSpan(mark, 1, 2, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in testWrapParcel()
75 s.setSpan(CharacterStyle.wrap(mark), 3, 7, in testWrapParcel()
77 s.setSpan(new TextAppearanceSpan("mono", 0, -1, null, null), 7, 8, in testWrapParcel()
79 s.setSpan(CharacterStyle.wrap(new TypefaceSpan("mono")), 8, 9, in testWrapParcel()
113 s.setSpan(new Object(), 0, 1, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE | in checkPriority()
115 s.setSpan(new Object(), 0, 1, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE | in checkPriority()
117 s.setSpan(new Object(), 0, 1, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE | in checkPriority()
119 s.setSpan(new Object(), 0, 1, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE | in checkPriority()
121 s.setSpan(new Object(), 0, 1, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE | in checkPriority()
[all …]
DSpannableTest.java36 spannable.setSpan(emptySpan, 1, 1, 0); in testGetSpans()
38 spannable.setSpan(unemptySpan, 1, 2, 0); in testGetSpans()
DTextUtilsTest.java59 foo.setSpan("foo", 1, 2, Spannable.SPAN_EXCLUSIVE_INCLUSIVE); in testBasic()
62 bar.setSpan("bar", 1, 2, Spannable.SPAN_EXCLUSIVE_INCLUSIVE); in testBasic()
65 baz.setSpan("baz", 1, 2, Spannable.SPAN_EXCLUSIVE_INCLUSIVE); in testBasic()
169 template.setSpan("before", 0, 1, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in testTemplateSpan()
170 template.setSpan("during", 1, 3, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in testTemplateSpan()
171 template.setSpan("after", 3, 4, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in testTemplateSpan()
172 template.setSpan("during+after", 1, 4, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in testTemplateSpan()
286 s3.setSpan(new StyleSpan(0), 5, 10, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in testEllipsize()
DDynamicLayoutTest.java75 builder.setSpan(mockReplacementSpan, 0, 4, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in testGetBlocksAlwaysNeedToBeRedrawn_replacementSpan()
79 builder.setSpan(mockReplacementSpan, 9, 13, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in testGetBlocksAlwaysNeedToBeRedrawn_replacementSpan()
/frameworks/base/core/java/android/content/res/
DStringBlock.java179 buffer.setSpan(new StyleSpan(Typeface.BOLD), in applyStyles()
183 buffer.setSpan(new StyleSpan(Typeface.ITALIC), in applyStyles()
187 buffer.setSpan(new UnderlineSpan(), in applyStyles()
191 buffer.setSpan(new TypefaceSpan("monospace"), in applyStyles()
195 buffer.setSpan(new RelativeSizeSpan(1.25f), in applyStyles()
199 buffer.setSpan(new RelativeSizeSpan(0.8f), in applyStyles()
203 buffer.setSpan(new SubscriptSpan(), in applyStyles()
207 buffer.setSpan(new SuperscriptSpan(), in applyStyles()
211 buffer.setSpan(new StrikethroughSpan(), in applyStyles()
218 buffer.setSpan(TextUtils.TruncateAt.MARQUEE, in applyStyles()
[all …]
/frameworks/opt/chips/tests/src/com/android/ex/chips/
DChipsTest.java193 mEditable.setSpan(mMockRecips[mMockRecips.length - 2], firstStart, firstEnd, 0); in testSanitizeBetween()
194 mEditable.setSpan(mMockRecips[mMockRecips.length - 1], secondStart, secondEnd, 0); in testSanitizeBetween()
209 mEditable.setSpan(mMockRecips[mMockRecips.length - 1], firstStart, firstEnd, 0); in testSanitizeBetween()
230 mEditable.setSpan(mMockRecips[mMockRecips.length - 2], firstStart, firstEnd, 0); in testSanitizeEnd()
231 mEditable.setSpan(mMockRecips[mMockRecips.length - 1], secondStart, secondEnd, 0); in testSanitizeEnd()
311 mEditable.setSpan(mMockRecips[mMockRecips.length - 3], firstStart, firstEnd, 0); in testMoreChip()
312 mEditable.setSpan(mMockRecips[mMockRecips.length - 2], secondStart, secondEnd, 0); in testMoreChip()
313 mEditable.setSpan(mMockRecips[mMockRecips.length - 1], thirdStart, thirdEnd, 0); in testMoreChip()
393 mEditable.setSpan(mMockRecips[mMockRecips.length - 10], firstStart, firstEnd, 0); in testMoreChipLotsOfUsers()
394 mEditable.setSpan(mMockRecips[mMockRecips.length - 9], secondStart, secondEnd, 0); in testMoreChipLotsOfUsers()
[all …]
/frameworks/support/emoji/core/tests/java/android/support/text/emoji/widget/
DSpannableBuilderTest.java81 spannable.setSpan(span1, 0, 1, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in testSubSequence()
82 spannable.setSpan(span2, 2, 3, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in testSubSequence()
96 spannable.setSpan(mWatcher, 1, 2, Spanned.SPAN_INCLUSIVE_INCLUSIVE); in testSetAndGetSpan()
119 spannable.setSpan(mWatcher, 1, 2, Spanned.SPAN_INCLUSIVE_INCLUSIVE); in testNextSpanTransition()
128 spannable.setSpan(mWatcher, 0, spannable.length(), Spanned.SPAN_INCLUSIVE_INCLUSIVE); in testBlocksSpanCallbacks_forEmojiSpans()
129 spannable.setSpan(span, 1, 2, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in testBlocksSpanCallbacks_forEmojiSpans()
160 spannable.setSpan(mWatcher, 0, spannable.length(), Spanned.SPAN_INCLUSIVE_INCLUSIVE); in testDoesNotBlockSpanCallbacks_forNonEmojiSpans()
161 spannable.setSpan(span, 1, 2, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in testDoesNotBlockSpanCallbacks_forNonEmojiSpans()
191 spannable.setSpan(textWatcher, 0, spannable.length(), Spanned.SPAN_INCLUSIVE_INCLUSIVE); in testDoesNotBlockSpanCallbacksForOtherWatchers()
192 spannable.setSpan(spanWatcher, 0, spannable.length(), Spanned.SPAN_INCLUSIVE_INCLUSIVE); in testDoesNotBlockSpanCallbacksForOtherWatchers()
[all …]
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DViewPropertyAlphaActivity.java82 text.setSpan(new BackgroundColorSpan(Color.RED), 0, 3, in onCreate()
84 text.setSpan(new ForegroundColorSpan(Color.BLUE), 4, 9, in onCreate()
86 text.setSpan(new SuggestionSpan(this, new String[]{"longer"}, 3), 11, 16, in onCreate()
88 text.setSpan(new UnderlineSpan(), 17, 20, in onCreate()
90 text.setSpan(new ImageSpan(this, R.drawable.icon), 21, 22, in onCreate()
/frameworks/opt/setupwizard/library/eclair-mr1/test/instrumentation/src/com/android/setupwizardlib/test/
DRichTextViewTest.java48 ssb.setSpan(link, 1, 2, 0 /* flags */); in testLinkAnnotation()
70 ssb.setSpan(link, 1, 2, 0 /* flags */); in testTextStyle()
91 spannableStringBuilder.setSpan(testLink, 0, 3, 0); in testTextContaininingLinksAreFocusable()
123 spannableStringBuilder.setSpan(new Annotation("link", "focus:on_me"), 0, 1, 0); in testRichTxtViewFocusChangesWithTextChange()
DLinkAccessibilityHelperTest.java156 ssb.setSpan(LINK_SPAN, 1, 2, 0 /* flags */); in testRtlLayout()
178 ssb.setSpan(LINK_SPAN, 51, 74, 0 /* flags */); in testMultilineLink()
201 ssb.setSpan(LINK_SPAN, 50, 100, 0 /* flags */); in testRtlMultilineLink()
227 ssb.setSpan(LINK_SPAN, in testBidiMultilineLink()
249 ssb.setSpan(LINK_SPAN, 1, 2, 0 /* flags */); in initTextView()
/frameworks/base/tests/BiDiTests/src/com/android/bidi/
DBiDiTestBasic.java84 url.setSpan(new ForegroundColorSpan(0xfff00fff), in useSpans()
90 url.setSpan(new ForegroundColorSpan(0xff548aff), in useSpans()
96 url.setSpan(new ForegroundColorSpan(0xfff00fff), in useSpans()
/frameworks/base/core/java/android/text/method/
DQwertyKeyListener.java212 content.setSpan(TextKeyListener.CAPPED, 0, 0, in onKeyDown()
215 content.setSpan(TextKeyListener.CAPPED, in onKeyDown()
225 content.setSpan(OLD_SEL_START, selStart, selStart, in onKeyDown()
234 content.setSpan(TextKeyListener.LAST_TYPED, in onKeyDown()
240 content.setSpan(TextKeyListener.ACTIVE, oldStart, selEnd, in onKeyDown()
276 content.setSpan(new Replaced(orig), x, oldStart, in onKeyDown()
340 content.setSpan(TextKeyListener.INHIBIT_REPLACEMENT, in onKeyDown()
346 content.setSpan(TextKeyListener.INHIBIT_REPLACEMENT, in onKeyDown()
432 content.setSpan(new Replaced(orig), start, end, in markAsReplaced()
DMultiTapKeyListener.java193 content.setSpan(OLD_SEL_START, selStart, selStart, in onKeyDown()
204 content.setSpan(TextKeyListener.LAST_TYPED, in onKeyDown()
208 content.setSpan(TextKeyListener.ACTIVE, in onKeyDown()
227 content.setSpan(this, 0, content.length(), in onKeyDown()
263 mBuffer.setSpan(Timeout.this, 0, mBuffer.length(), in Timeout()
DMetaKeyKeyListener.java299 content.setSpan(what, 0, 0, USED); in adjust()
351 content.setSpan(what, 0, 0, LOCKED); in press()
357 content.setSpan(what, 0, 0, PRESSED); in press()
365 content.setSpan(SELECTING, 0, 0, PRESSED); in startSelecting()
408 content.setSpan(what, 0, 0, RELEASED); in release()
DPasswordTransformationMethod.java55 sp.setSpan(new ViewReference(view), 0, 0, in getTransformation()
107 sp.setSpan(new Visible(sp, this), start, start + count, in onTextChanged()
/frameworks/base/core/java/android/text/
DSpannableString.java45 public void setSpan(Object what, int start, int end, int flags) { in setSpan() method in SpannableString
46 super.setSpan(what, start, end, flags); in setSpan()
DSpannable.java39 public void setSpan(Object what, int start, int end, int flags); in setSpan() method
DSelection.java76 text.setSpan(SELECTION_START, start, start, in setSelection()
78 text.setSpan(SELECTION_END, stop, stop, in setSelection()
102 text.setSpan(SELECTION_END, index, index, Spanned.SPAN_POINT_POINT); in extendSelection()
DSpannableStringInternal.java68 setSpan(spans[i], st - start, en - start, fl, false/*enforceParagraph*/); in copySpans()
151 /* package */ void setSpan(Object what, int start, int end, int flags) { in setSpan() method in SpannableStringInternal
152 setSpan(what, start, end, flags, true/*enforceParagraph*/); in setSpan()
159 private void setSpan(Object what, int start, int end, int flags, boolean enforceParagraph) { in setSpan() method in SpannableStringInternal
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/span/
DSpanHelper.java34 spannable.setSpan(newSpan, spanStart, spanEnd, 0); in replaceSpan()
/frameworks/opt/timezonepicker/src/com/android/timezonepicker/
DTimeZonePickerUtils.java109 spannableText.setSpan(new ForegroundColorSpan(GMT_TEXT_COLOR), in buildGmtDisplayName()
113 spannableText.setSpan(new ForegroundColorSpan(DST_SYMBOL_COLOR), in buildGmtDisplayName()
DTimeZoneInfo.java176 spannableText.setSpan(new ForegroundColorSpan(GMT_TEXT_COLOR), in getGmtDisplayName()
180 spannableText.setSpan(new ForegroundColorSpan(DST_SYMBOL_COLOR), in getGmtDisplayName()
/frameworks/opt/setupwizard/library/test/instrumentation/src/com/android/setupwizardlib/test/
DSpanHelperTest.java41 ssb.setSpan(oldSpan, 2, 5, 0 /* flags */); in testReplaceSpan()
/frameworks/base/core/java/com/google/android/util/
DSmileyParser.java73 builder.setSpan(new ImageSpan(context, resid), in getSpannableString()
/frameworks/base/core/java/android/view/inputmethod/
DBaseInputConnection.java108 text.setSpan(o, text.getSpanStart(o), text.getSpanEnd(o), in setComposingSpans()
116 text.setSpan(COMPOSING, start, end, in setComposingSpans()
642 content.setSpan(mDefaultComposingSpans[i], a, b, in setComposingRegion()
647 content.setSpan(COMPOSING, a, b, in setComposingRegion()
807 sp.setSpan(mDefaultComposingSpans[i], 0, sp.length(), in replaceText()

1234