Home
last modified time | relevance | path

Searched refs:newText (Results 1 – 6 of 6) 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/accessibility/src/android/view/accessibility/cts/
DAccessibilityEventTest.java160 final String newText = "Hornbill"; in testChangeTextAfterSetting_shouldNotAffectEvent() local
167 updatingString.append(newText); in testChangeTextAfterSetting_shouldNotAffectEvent()
DAccessibilityNodeInfoTest.java178 final String newText = "Hornbill"; in testChangeTextAfterSetting_shouldNotAffectInfo() local
186 updatingString.append(newText); in testChangeTextAfterSetting_shouldNotAffectInfo()
/cts/tests/tests/widget/src/android/widget/cts/
DListViewTest.java1113 final CharSequence newText = ((TextView) newItem.findViewById(android.R.id.text1)) in testTransientStateUnstableIds() local
1116 Assert.assertFalse(oldText.equals(newText)); in testTransientStateUnstableIds()
1142 final CharSequence newText = ((TextView) newItem.findViewById(android.R.id.text1)) in testTransientStateStableIds() local
1146 Assert.assertEquals(oldText, newText); in testTransientStateStableIds()
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/
DAccessibilityEndToEndTest.java329 final String newText = mActivity.getString(R.string.text_input_blah_blah); in testTypeViewTextChangedAccessibilityEvent() local
330 final String afterText = beforeText.substring(0, 3) + newText; in testTypeViewTextChangedAccessibilityEvent()
353 editText.getEditableText().replace(3, 4, newText); in testTypeViewTextChangedAccessibilityEvent()
/cts/tests/autofillservice/src/android/autofillservice/cts/
DUiBot.java535 public void setTextByRelativeId(String id, String newText) throws Exception {
536 waitForObject(By.res(mPackageName, id)).setText(newText);