Home
last modified time | relevance | path

Searched refs:SpannedString (Results 1 – 25 of 33) sorted by relevance

12

/frameworks/base/core/java/android/text/
DSpannedString.java25 public final class SpannedString class
34 public SpannedString(CharSequence source, boolean ignoreNoCopySpan) { in SpannedString() method in SpannedString
43 public SpannedString(CharSequence source) { in SpannedString() method in SpannedString
47 private SpannedString(CharSequence source, int start, int end) { in SpannedString() method in SpannedString
53 return new SpannedString(this, start, end); in subSequence()
56 public static SpannedString valueOf(CharSequence source) { in valueOf()
57 if (source instanceof SpannedString) { in valueOf()
58 return (SpannedString) source; in valueOf()
60 return new SpannedString(source); in valueOf()
DTextUtils.java596 if (source instanceof SpannedString) in stringOrSpannedString()
599 return new SpannedString(source); in stringOrSpannedString()
1819 return new SpannedString(ssb); in concat()
/frameworks/base/core/tests/coretests/src/android/text/
DSpannedStringNoCopyTest.java44 final SpannedString copied = new SpannedString(first); in testCopyConstructor_copyNoCopySpans_SpannableStringInternalImpl()
58 final SpannedString copied = new SpannedString(first, true /* ignoreNoCopySpan */); in testCopyConstructor_doesNotCopyNoCopySpans_SpannableStringInternalImpl()
76 final SpannedString copied = new SpannedString(new CustomSpanned(first)); in testCopyConstructor_copyNoCopySpans_OtherSpannedImpl()
90 final SpannedString copied = new SpannedString( in testCopyConstructor_doesNotCopyNoCopySpans_OtherSpannedImpl()
DSpannableStringNoCopyTest.java44 final SpannedString copied = new SpannedString(first); in testCopyConstructor_copyNoCopySpans_SpannableStringInternalImpl()
58 final SpannedString copied = new SpannedString(first, true /* ignoreNoCopySpan */); in testCopyConstructor_doesNotCopyNoCopySpans_SpannableStringInternalImpl()
76 final SpannedString copied = new SpannedString(new CustomSpannable(first)); in testCopyConstructor_copyNoCopySpans_OtherSpannableImpl()
90 final SpannedString copied = new SpannedString( in testCopyConstructor_doesNotCopyNoCopySpans_OtherSpannableImpl()
DTextUtilsTest.java89 assertTrue(TextUtils.concat(foo, bar) instanceof SpannedString); in testBasic()
DStaticLayoutTest.java666 result.add(new SpannedString(str)); in buildTestCharSequences()
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/widget/
DUsageProgressBarPreferenceTest.java24 import android.text.SpannedString;
67 final SpannedString summary = new SpannedString(usageSummary.getText()); in setUsageSummary_noNumber_noAbsoluteSizeSpan()
79 final SpannedString summary = new SpannedString(usageSummary.getText()); in setUsageSummary_integerNumber_findAbsoluteSizeSpan()
94 final SpannedString summary = new SpannedString(usageSummary.getText()); in setUsageSummary_floatingPointNumber_findAbsoluteSizeSpan()
109 final SpannedString summary = new SpannedString(usageSummary.getText()); in setUsageSummary_commaFloatingPointNumber_findAbsoluteSizeSpan()
/frameworks/base/core/tests/benchmarks/src/android/text/
DSpannableStringInternalCopyBenchmark.java29 private SpannedString spanned;
39 spanned = new SpannedString(source); in setUp()
50 new SpannedString(spanned); in timeCopyConstructor()
/frameworks/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/impl/
DResourceHelperTest.java22 import android.text.SpannedString;
85 SpannedString spanned = (SpannedString)parsed; in testParseHtml()
/frameworks/base/core/java/android/text/method/
DReplacementTransformationMethod.java24 import android.text.SpannedString;
83 return new SpannedString(new SpannedReplacementCharSequence( in getTransformation()
180 return new SpannedString(this).subSequence(start, end); in subSequence()
/frameworks/base/core/tests/coretests/src/android/widget/
DTextViewPerformanceTest.java23 import android.text.SpannedString;
88 CharSequence charSeq = new SpannedString(mString); in testSpan()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/tv/
DTvPipMenuEduTextDrawer.java33 import android.text.SpannedString;
276 final SpannedString eduText = (SpannedString) getResources().getText(R.string.pip_edu_text); in createEduTextString()
/frameworks/base/core/java/android/view/textclassifier/
DTextSelection.java27 import android.text.SpannedString;
465 return new Request(new SpannedString(mText), mStartIndex, mEndIndex, in build()
DConversationActions.java28 import android.text.SpannedString;
275 mText == null ? null : new SpannedString(mText), in build()
DTextClassification.java39 import android.text.SpannedString;
692 return new Request(new SpannedString(mText), mStartIndex, mEndIndex,
/frameworks/base/core/java/android/view/inputmethod/
DCursorAnchorInfo.java27 import android.text.SpannedString;
347 mComposingText = new SpannedString(composingText); in setComposingText()
/frameworks/base/core/java/android/text/format/
DDateFormat.java32 import android.text.SpannedString;
584 return new SpannedString(s); in format()
/frameworks/base/core/java/android/widget/
DSpellChecker.java23 import android.text.SpannedString;
422 visibleToAccessibility ? new SpannedString(editable) : null; in onGetSuggestionsInternal()
585 CharSequence beforeText = sendAccessibilityEvent ? new SpannedString(editable) : null; in createMisspelledSuggestionSpan()
DEditor.java77 import android.text.SpannedString;
4407 ? new SpannedString(spannable, true) : null; in updateSuggestions()
/frameworks/base/core/java/android/content/res/
DStringBlock.java31 import android.text.SpannedString;
428 return new SpannedString(buffer); in applyStyles()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
DResourceHelper.java74 import android.text.SpannedString;
605 private static SpannedString applyStyles(@NonNull StringBuilder stringBuilder, in applyStyles()
711 return new SpannedString(spannableString); in applyStyles()
/frameworks/base/graphics/java/android/graphics/
DBaseCanvas.java34 import android.text.SpannedString;
525 if (text instanceof String || text instanceof SpannedString || in drawText()
612 if (text instanceof String || text instanceof SpannedString || in drawTextRun()
DBaseRecordingCanvas.java31 import android.text.SpannedString;
463 if (text instanceof String || text instanceof SpannedString in drawText()
550 if (text instanceof String || text instanceof SpannedString in drawTextRun()
DPaint.java40 import android.text.SpannedString;
2678 if (text instanceof SpannedString || in measureText()
2895 if (text instanceof SpannedString || in getTextWidths()
3119 if (text instanceof String || text instanceof SpannedString || in getTextRunCursor()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DRemoteInputView.java36 import android.text.SpannedString;
654 mEntry.remoteInputTextWhenReset = SpannedString.valueOf(mEditText.getText()); in reset()

12