/frameworks/support/emoji/core/tests/java/android/support/text/emoji/util/ |
D | EmojiMatcher.java | 94 protected void describeMismatchSafely(final CharSequence charSequence, 100 protected boolean matchesSafely(final CharSequence charSequence) { 101 if (charSequence == null) return false; 102 if (!(charSequence instanceof Spanned)) return false; 103 mSpans = ((Spanned) charSequence).getSpans(0, charSequence.length(), EmojiSpan.class); 123 protected void describeMismatchSafely(final CharSequence charSequence, 136 protected boolean matchesSafely(final CharSequence charSequence) { 137 if (charSequence == null) return false; 138 if (!(charSequence instanceof Spanned)) return false; 139 mSpans = ((Spanned) charSequence).getSpans(0, charSequence.length(), EmojiSpan.class); [all …]
|
/frameworks/support/emoji/core/src/android/support/text/emoji/ |
D | EmojiProcessor.java | 99 EmojiMetadata getEmojiMetadata(@NonNull final CharSequence charSequence) { in getEmojiMetadata() argument 101 final int end = charSequence.length(); in getEmojiMetadata() 105 final int codePoint = Character.codePointAt(charSequence, currentOffset); in getEmojiMetadata() 141 CharSequence process(@NonNull final CharSequence charSequence, @IntRange(from = 0) int start, in process() argument 144 final boolean isSpannableBuilder = charSequence instanceof SpannableBuilder; in process() 146 ((SpannableBuilder) charSequence).beginBatchEdit(); in process() 154 if (isSpannableBuilder || charSequence instanceof Spannable) { in process() 155 spannable = (Spannable) charSequence; in process() 181 if (start == end || start >= charSequence.length()) { in process() 182 return charSequence; in process() [all …]
|
D | EmojiCompat.java | 518 public CharSequence process(@NonNull final CharSequence charSequence) { 523 @IntRange(from = 0) final int length = charSequence == null ? 0 : charSequence.length(); 524 return process(charSequence, 0, length); 554 public CharSequence process(@NonNull final CharSequence charSequence, 556 return process(charSequence, start, end, EMOJI_COUNT_UNLIMITED); 589 public CharSequence process(@NonNull final CharSequence charSequence, 592 return process(charSequence, start, end, maxEmojiCount, REPLACE_STRATEGY_DEFAULT); 629 public CharSequence process(@NonNull final CharSequence charSequence, 640 if (charSequence == null) { 641 return charSequence; [all …]
|
/frameworks/support/emoji/core/tests/java/android/support/text/emoji/ |
D | EmojiSpanInstrumentationTest.java | 76 final CharSequence charSequence = EmojiCompat.get().process(string.toString()); in testGetSize_withRelativeSizeSpan() local 77 assertNotNull(charSequence); in testGetSize_withRelativeSizeSpan() 78 assertThat(charSequence, hasEmojiCount(1)); in testGetSize_withRelativeSizeSpan() 80 final Spannable spanned = (Spannable) charSequence; in testGetSize_withRelativeSizeSpan() 81 final EmojiSpan[] spans = spanned.getSpans(0, charSequence.length(), EmojiSpan.class); in testGetSize_withRelativeSizeSpan() 88 textView.setText(charSequence); in testGetSize_withRelativeSizeSpan() 100 spanned.setSpan(sizeSpan, 0, charSequence.length(), Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in testGetSize_withRelativeSizeSpan() 105 textView.setText(charSequence); in testGetSize_withRelativeSizeSpan()
|
D | EmojiCompatTest.java | 116 final CharSequence charSequence = EmojiCompat.get().process(""); in testProcess_returnsEmptySpanned_withEmptyString() local 117 assertNotNull(charSequence); in testProcess_returnsEmptySpanned_withEmptyString() 118 assertEquals(0, charSequence.length()); in testProcess_returnsEmptySpanned_withEmptyString() 119 assertThat(charSequence, not(hasEmoji())); in testProcess_returnsEmptySpanned_withEmptyString() 163 final CharSequence charSequence = EmojiCompat.get().process(string); in testProcess_doesNotAddEmojiSpan() local 164 assertNotNull(charSequence); in testProcess_doesNotAddEmojiSpan() 165 assertEquals(string, charSequence.toString()); in testProcess_doesNotAddEmojiSpan() 166 assertThat(charSequence, not(hasEmoji())); in testProcess_doesNotAddEmojiSpan() 224 CharSequence charSequence = EmojiCompat.get().process(string.toString()); in testProcess_doesNotAddEmojiForNumbers_1() local 225 assertThat(charSequence, hasEmojiCount(1)); in testProcess_doesNotAddEmojiForNumbers_1() [all …]
|
/frameworks/support/compat/tests/java/android/support/v4/app/ |
D | RemoteInputTest.java | 116 CharSequence charSequence = "value doesn't matter"; in testRemoteInputBuilder_addAndGetTextResultsFromIntent() local 120 putResults.putCharSequence(input.getResultKey(), charSequence); in testRemoteInputBuilder_addAndGetTextResultsFromIntent() local 125 verifyIntentHasTextResults(intent, charSequence); in testRemoteInputBuilder_addAndGetTextResultsFromIntent() 133 CharSequence charSequence = "value doesn't matter"; in testRemoteInputBuilder_addAndGetDataAndTextResultsFromIntentDataFirst() local 146 textResults.putCharSequence(input.getResultKey(), charSequence); in testRemoteInputBuilder_addAndGetDataAndTextResultsFromIntentDataFirst() local 151 verifyIntentHasTextResults(intent, charSequence); in testRemoteInputBuilder_addAndGetDataAndTextResultsFromIntentDataFirst() 160 CharSequence charSequence = "value doesn't matter"; in testRemoteInputBuilder_addAndGetDataAndTextResultsFromIntentTextFirst() local 169 textResults.putCharSequence(input.getResultKey(), charSequence); in testRemoteInputBuilder_addAndGetDataAndTextResultsFromIntentTextFirst() local 178 verifyIntentHasTextResults(intent, charSequence); in testRemoteInputBuilder_addAndGetDataAndTextResultsFromIntentTextFirst()
|
/frameworks/base/core/java/android/text/method/ |
D | WordIterator.java | 59 public void setCharSequence(@NonNull CharSequence charSequence, int start, int end) { in setCharSequence() argument 60 if (0 <= start && end <= charSequence.length()) { in setCharSequence() 61 mCharSeq = charSequence; in setCharSequence() 63 mEnd = Math.min(charSequence.length(), end + WINDOW_WIDTH); in setCharSequence() 64 mIterator.setText(new CharSequenceCharacterIterator(charSequence, mStart, mEnd)); in setCharSequence()
|
/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/support/emoji/core/src/android/support/text/emoji/widget/ |
D | EmojiTextWatcher.java | 67 public void onTextChanged(CharSequence charSequence, final int start, final int before, in onTextChanged() argument 74 if (before <= after && charSequence instanceof Spannable) { in onTextChanged() 77 final Spannable s = (Spannable) charSequence; in onTextChanged()
|
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/ |
D | CharSequencesTest.java | 55 static String toString(CharSequence charSequence) { in toString() argument 56 return new StringBuilder().append(charSequence).toString(); in toString()
|
/frameworks/base/core/java/android/widget/ |
D | TextInputTimePickerView.java | 89 public void beforeTextChanged(CharSequence charSequence, int i, int i1, int i2) {} in TextInputTimePickerView() 92 public void onTextChanged(CharSequence charSequence, int i, int i1, int i2) {} in TextInputTimePickerView() 102 public void beforeTextChanged(CharSequence charSequence, int i, int i1, int i2) {} in TextInputTimePickerView() 105 public void onTextChanged(CharSequence charSequence, int i, int i1, int i2) {} in TextInputTimePickerView()
|
/frameworks/base/core/java/com/android/internal/util/ |
D | NotificationColorUtil.java | 183 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/ |
D | ReplacementDrawableSpan.java | 51 public void draw(Canvas canvas, CharSequence charSequence, int start, int end, float x, int top, in draw() argument
|
/frameworks/base/services/core/java/com/android/server/policy/ |
D | AccessibilityShortcutController.java | 277 public Toast makeToastFromText(Context context, CharSequence charSequence, int duration) { in makeToastFromText() argument 278 return Toast.makeText(context, charSequence, duration); in makeToastFromText()
|
/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/core/java/android/text/ |
D | TextUtils.java | 2017 public static CharSequence trimNoCopySpans(@Nullable CharSequence charSequence) { in trimNoCopySpans() argument 2018 if (charSequence != null && charSequence instanceof Spanned) { in trimNoCopySpans() 2020 return new SpannableStringBuilder(charSequence); in trimNoCopySpans() 2022 return charSequence; in trimNoCopySpans()
|
/frameworks/base/core/java/android/app/ |
D | Notification.java | 2140 private static CharSequence removeTextSizeSpans(CharSequence charSequence) { in removeTextSizeSpans() argument 2141 if (charSequence instanceof Spanned) { in removeTextSizeSpans() 2142 Spanned ss = (Spanned) charSequence; in removeTextSizeSpans() 2169 return charSequence; in removeTextSizeSpans() 4722 private CharSequence ensureColorSpanContrast(CharSequence charSequence, int background, in ensureColorSpanContrast() argument 4724 if (charSequence instanceof Spanned) { in ensureColorSpanContrast() 4725 Spanned ss = (Spanned) charSequence; in ensureColorSpanContrast() 4732 boolean fullLength = (spanEnd - spanStart) == charSequence.length(); in ensureColorSpanContrast() 4776 return charSequence; in ensureColorSpanContrast() 4792 private CharSequence processLegacyText(CharSequence charSequence) { [all …]
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
D | SearchBar.java | 231 public void beforeTextChanged(CharSequence charSequence, int i, int i2, int i3) { in onFinishInflate() 235 public void onTextChanged(CharSequence charSequence, int i, int i2, int i3) { in onFinishInflate()
|