Home
last modified time | relevance | path

Searched refs:newText (Results 1 – 7 of 7) sorted by relevance

/cts/tests/tests/text/src/android/text/cts/
DSpannableStringBuilderSpanTest.java519 Spanned newText = Html.fromHtml("<blockquote>new text</blockquote>"); in testReplace_discardsParagraphSpanInSourceIfThereIsNoNewLineBefore() local
520 assertEquals(1, newText.getSpans(0, newText.length(), ParagraphStyle.class).length); in testReplace_discardsParagraphSpanInSourceIfThereIsNoNewLineBefore()
522 spannable.replace(2, spannable.length(), newText); in testReplace_discardsParagraphSpanInSourceIfThereIsNoNewLineBefore()
532 Spanned newText = Html.fromHtml("<blockquote>new text</blockquote>"); in testReplace_retainsParagraphSpanInSourceIfThereIsNewLineBefore() local
533 assertTrue(newText.getSpans(0, newText.length(), ParagraphStyle.class).length > 0); in testReplace_retainsParagraphSpanInSourceIfThereIsNewLineBefore()
535 spannable.replace(2, spannable.length(), newText); in testReplace_retainsParagraphSpanInSourceIfThereIsNewLineBefore()
547 Spanned newText = Html.fromHtml("<blockquote>new text</blockquote>"); in testReplace_retainsParagraphSpanInSourceIfStartIsZero() local
548 assertTrue(newText.getSpans(0, newText.length(), ParagraphStyle.class).length > 0); in testReplace_retainsParagraphSpanInSourceIfStartIsZero()
550 spannable.replace(0, spannable.length(), newText); in testReplace_retainsParagraphSpanInSourceIfStartIsZero()
565 Spannable newText = new SpannableString("a"); in testReplace_retainsParagraphSpanInSourceIfEndIsEqualToLengthOfString() local
[all …]
/cts/tests/tests/widget/src/android/widget/cts/
DTextViewReceiveContentTest.java746 String newText = "Replacement text"; in testProcessText_noCustomReceiver() local
747 triggerProcessTextOnActivityResult(newText); in testProcessText_noCustomReceiver()
748 assertTextAndCursorPosition(newText, newText.length()); in testProcessText_noCustomReceiver()
762 String newText = "Replacement text"; in testProcessText_customReceiver() local
763 triggerProcessTextOnActivityResult(newText); in testProcessText_customReceiver()
764 ClipData clip = ClipData.newPlainText("", newText); in testProcessText_customReceiver()
DListViewTest.java1138 final CharSequence newText = ((TextView) newItem.findViewById(android.R.id.text1)) in testTransientStateUnstableIds() local
1141 Assert.assertFalse(oldText.equals(newText)); in testTransientStateUnstableIds()
1167 final CharSequence newText = ((TextView) newItem.findViewById(android.R.id.text1)) in testTransientStateStableIds() local
1171 Assert.assertEquals(oldText, newText); in testTransientStateStableIds()
/cts/tests/accessibility/src/android/view/accessibility/cts/
DAccessibilityEventTest.java408 final String newText = "Hornbill"; in testChangeTextAfterSetting_shouldNotAffectEvent() local
415 updatingString.append(newText); in testChangeTextAfterSetting_shouldNotAffectEvent()
DAccessibilityNodeInfoTest.java234 final String newText = "Hornbill"; in testChangeTextAfterSetting_shouldNotAffectInfo() local
243 updatingString.append(newText); in testChangeTextAfterSetting_shouldNotAffectInfo()
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/
DAccessibilityEndToEndTest.java340 final String newText = mActivity.getString(R.string.text_input_blah_blah); in testTypeViewTextChangedAccessibilityEvent() local
341 final String afterText = beforeText.substring(0, 3) + newText; in testTypeViewTextChangedAccessibilityEvent()
364 editText.getEditableText().replace(3, 4, newText); in testTypeViewTextChangedAccessibilityEvent()
/cts/tests/autofillservice/src/android/autofillservice/cts/testcore/
DUiBot.java595 public void setTextByRelativeId(String id, String newText) throws Exception { in setTextByRelativeId() argument
596 waitForObject(By.res(mPackageName, id)).setText(newText); in setTextByRelativeId()