/frameworks/base/apct-tests/perftests/core/src/android/text/ |
D | NonEditableTextGenerator.java | 55 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/base/core/java/android/view/textservice/ |
D | TextInfo.java | 68 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/java/android/text/method/ |
D | WordIterator.java | 73 public void setCharSequence(@NonNull CharSequence charSequence, int start, int end) { in setCharSequence() argument 74 if (0 <= start && end <= charSequence.length()) { in setCharSequence() 75 mCharSeq = charSequence; in setCharSequence() 77 mEnd = Math.min(charSequence.length(), end + WINDOW_WIDTH); in setCharSequence() 78 mIterator.setText(new CharSequenceCharacterIterator(charSequence, mStart, mEnd)); in setCharSequence()
|
D | InsertModeTransformationMethod.java | 133 final CharSequence charSequence; in getTransformation() local 135 charSequence = mOldTransformationMethod.getTransformation(source, view); in getTransformation() 142 charSequence = source; in getTransformation() 146 return new TransformedText(charSequence, placeholderText); in getTransformation()
|
/frameworks/base/core/java/com/android/internal/util/ |
D | ContrastColorUtil.java | 185 public CharSequence invertCharSequenceColors(CharSequence charSequence) { in invertCharSequenceColors() argument 186 if (charSequence instanceof Spanned) { in invertCharSequenceColors() 187 Spanned ss = (Spanned) charSequence; in invertCharSequenceColors() 216 return charSequence; in invertCharSequenceColors() 251 public static CharSequence clearColorSpans(CharSequence charSequence) { in clearColorSpans() argument 252 if (charSequence instanceof Spanned) { in clearColorSpans() 253 Spanned ss = (Spanned) charSequence; in clearColorSpans() 282 return charSequence; in clearColorSpans() 293 public static CharSequence ensureColorSpanContrast(CharSequence charSequence, in ensureColorSpanContrast() argument 295 if (charSequence == null) { in ensureColorSpanContrast() [all …]
|
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/ |
D | CharSequencesTest.java | 70 static String toString(CharSequence charSequence) { in toString() argument 71 return new StringBuilder().append(charSequence).toString(); in toString()
|
/frameworks/base/core/java/android/widget/ |
D | TextInputTimePickerView.java | 92 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/ |
D | StringUtilTest.java | 113 final CharSequence charSequence = in testFormatElapsedTime_onlyContainsMinute_hasTtsSpan() local 115 assertThat(charSequence).isInstanceOf(SpannableStringBuilder.class); in testFormatElapsedTime_onlyContainsMinute_hasTtsSpan() 117 final SpannableStringBuilder expectedString = (SpannableStringBuilder) charSequence; in testFormatElapsedTime_onlyContainsMinute_hasTtsSpan()
|
/frameworks/base/packages/SystemUI/src/com/android/keyguard/ |
D | KeyguardMessageAreaController.java | 81 public void beforeTextChanged(CharSequence charSequence, int i, int i1, int i2) { 86 public void onTextChanged(CharSequence charSequence, int i, int i1, int i2) {
|
/frameworks/opt/chips/src/com/android/ex/chips/recipientchip/ |
D | ReplacementDrawableSpan.java | 51 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/ |
D | MockWindow.java | 87 public void setTitle(CharSequence charSequence) { in setTitle() argument
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/bluetooth/ |
D | CachedBluetoothDeviceTest.java | 1314 private void assertNoForegroundColorSpans(CharSequence charSequence) { in assertNoForegroundColorSpans() argument 1315 if (charSequence instanceof Spannable) { in assertNoForegroundColorSpans() 1316 Spannable summarySpan = (Spannable) charSequence; in assertNoForegroundColorSpans() 1323 private void assertForegroundColorSpan(CharSequence charSequence, int indexInSpannable, in assertForegroundColorSpan() argument 1325 assertThat(charSequence).isInstanceOf(Spannable.class); in assertForegroundColorSpan() 1326 Spannable summarySpan = (Spannable) charSequence; in assertForegroundColorSpan()
|
/frameworks/base/core/java/com/android/internal/accessibility/ |
D | AccessibilityShortcutController.java | 845 public Toast makeToastFromText(Context context, CharSequence charSequence, int duration) { in makeToastFromText() argument 846 return Toast.makeText(context, charSequence, duration); in makeToastFromText()
|
/frameworks/base/core/java/android/text/ |
D | TextUtils.java | 2311 public static CharSequence trimNoCopySpans(@Nullable CharSequence charSequence) { in trimNoCopySpans() argument 2312 if (charSequence != null && charSequence instanceof Spanned) { in trimNoCopySpans() 2314 return new SpannableStringBuilder(charSequence); in trimNoCopySpans() 2316 return charSequence; in trimNoCopySpans()
|
/frameworks/base/core/java/android/app/ |
D | Notification.java | 3234 private static CharSequence normalizeBigText(@Nullable CharSequence charSequence) { in normalizeBigText() argument 3235 if (charSequence == null) { in normalizeBigText() 3236 return charSequence; in normalizeBigText() 3239 return NotificationBigTextNormalizer.normalizeBigText(charSequence.toString()); in normalizeBigText() 3242 private static CharSequence removeTextSizeSpans(CharSequence charSequence) { in removeTextSizeSpans() argument 3243 if (charSequence instanceof Spanned) { in removeTextSizeSpans() 3244 Spanned ss = (Spanned) charSequence; in removeTextSizeSpans() 3271 return charSequence; in removeTextSizeSpans() 6991 public static Integer getFullLengthSpanColor(CharSequence charSequence) { in getFullLengthSpanColor() argument 6995 if (charSequence instanceof Spanned) { in getFullLengthSpanColor() [all …]
|