Home
last modified time | relevance | path

Searched refs:charSequence (Results 1 – 14 of 14) sorted by relevance

/frameworks/base/apct-tests/perftests/core/src/android/text/
DNonEditableTextGenerator.java55 final CharSequence charSequence = sequenceGenerator.buildLatinSequence(); in build() local
60 return createSpannable(charSequence); in build()
63 return createString(charSequence); in build()
67 private Spannable createSpannable(CharSequence charSequence) { in createSpannable() argument
69 new SpannableStringBuilder(charSequence) : new SpannableString(charSequence); in createSpannable()
82 private String createString(CharSequence charSequence) { in createString() argument
84 return charSequence.toString(); in createString()
90 return charSequence.toString() + "\uD83D\uDC68\uD83C\uDFFF"; in createString()
/frameworks/opt/car/setupwizard/library/utils/src/com/android/car/setupwizardlib/
DInitialLockSetupHelper.java78 StringBuffer charSequence = new StringBuffer(); in byteArrayToCharSequence() local
80 charSequence.append((char) input[i]); in byteArrayToCharSequence()
82 return charSequence; in byteArrayToCharSequence()
/frameworks/base/core/java/android/text/method/
DWordIterator.java62 public void setCharSequence(@NonNull CharSequence charSequence, int start, int end) { in setCharSequence() argument
63 if (0 <= start && end <= charSequence.length()) { in setCharSequence()
64 mCharSeq = charSequence; in setCharSequence()
66 mEnd = Math.min(charSequence.length(), end + WINDOW_WIDTH); in setCharSequence()
67 mIterator.setText(new CharSequenceCharacterIterator(charSequence, mStart, mEnd)); in setCharSequence()
/frameworks/base/core/java/android/view/textservice/
DTextInfo.java68 public TextInfo(CharSequence charSequence, int start, int end, int cookie, int sequenceNumber) { in TextInfo() argument
69 if (TextUtils.isEmpty(charSequence)) { in TextInfo()
74 new SpannableStringBuilder(charSequence, start, end); in TextInfo()
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/
DCharSequencesTest.java55 static String toString(CharSequence charSequence) { in toString() argument
56 return new StringBuilder().append(charSequence).toString(); in toString()
/frameworks/base/core/java/android/widget/
DTextInputTimePickerView.java92 public void beforeTextChanged(CharSequence charSequence, int i, int i1, int i2) {} in TextInputTimePickerView()
95 public void onTextChanged(CharSequence charSequence, int i, int i1, int i2) {} in TextInputTimePickerView()
111 public void beforeTextChanged(CharSequence charSequence, int i, int i1, int i2) {} in TextInputTimePickerView()
114 public void onTextChanged(CharSequence charSequence, int i, int i1, int i2) {} in TextInputTimePickerView()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/utils/
DStringUtilTest.java103 final CharSequence charSequence = in testFormatElapsedTime_onlyContainsMinute_hasTtsSpan() local
105 assertThat(charSequence).isInstanceOf(SpannableStringBuilder.class); in testFormatElapsedTime_onlyContainsMinute_hasTtsSpan()
107 final SpannableStringBuilder expectedString = (SpannableStringBuilder) charSequence; in testFormatElapsedTime_onlyContainsMinute_hasTtsSpan()
/frameworks/base/core/java/com/android/internal/util/
DContrastColorUtil.java183 public CharSequence invertCharSequenceColors(CharSequence charSequence) { in invertCharSequenceColors() argument
184 if (charSequence instanceof Spanned) { in invertCharSequenceColors()
185 Spanned ss = (Spanned) charSequence; in invertCharSequenceColors()
214 return charSequence; in invertCharSequenceColors()
249 public static CharSequence clearColorSpans(CharSequence charSequence) { in clearColorSpans() argument
250 if (charSequence instanceof Spanned) { in clearColorSpans()
251 Spanned ss = (Spanned) charSequence; in clearColorSpans()
280 return charSequence; in clearColorSpans()
/frameworks/opt/chips/src/com/android/ex/chips/recipientchip/
DReplacementDrawableSpan.java51 public void draw(Canvas canvas, CharSequence charSequence, int start, int end, float x, int top, in draw() argument
/frameworks/opt/setupwizard/library/test/instrumentation/src/com/android/setupwizardlib/test/util/
DMockWindow.java87 public void setTitle(CharSequence charSequence) { in setTitle() argument
/frameworks/base/core/java/com/android/internal/accessibility/
DAccessibilityShortcutController.java494 public Toast makeToastFromText(Context context, CharSequence charSequence, int duration) { in makeToastFromText() argument
495 return Toast.makeText(context, charSequence, duration); in makeToastFromText()
/frameworks/base/core/java/android/text/
DTextUtils.java2099 public static CharSequence trimNoCopySpans(@Nullable CharSequence charSequence) { in trimNoCopySpans() argument
2100 if (charSequence != null && charSequence instanceof Spanned) { in trimNoCopySpans()
2102 return new SpannableStringBuilder(charSequence); in trimNoCopySpans()
2104 return charSequence; in trimNoCopySpans()
/frameworks/base/core/tests/coretests/src/android/view/textclassifier/
DActionsSuggestionsHelperTest.java59 charSequence -> LOCALE_TAG;
/frameworks/base/core/java/android/app/
DNotification.java2535 private static CharSequence removeTextSizeSpans(CharSequence charSequence) { in removeTextSizeSpans() argument
2536 if (charSequence instanceof Spanned) { in removeTextSizeSpans()
2537 Spanned ss = (Spanned) charSequence; in removeTextSizeSpans()
2564 return charSequence; in removeTextSizeSpans()
5616 private CharSequence ensureColorSpanContrast(CharSequence charSequence, int background, in ensureColorSpanContrast() argument
5618 if (charSequence instanceof Spanned) { in ensureColorSpanContrast()
5619 Spanned ss = (Spanned) charSequence; in ensureColorSpanContrast()
5626 boolean fullLength = (spanEnd - spanStart) == charSequence.length(); in ensureColorSpanContrast()
5674 return charSequence; in ensureColorSpanContrast()
5690 private CharSequence processLegacyText(CharSequence charSequence) {
[all …]