Searched refs:newText (Results 1 – 6 of 6) sorted by relevance
/cts/tests/tests/text/src/android/text/cts/ |
D | SpannableStringBuilderSpanTest.java | 519 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/ |
D | AccessibilityEventTest.java | 160 final String newText = "Hornbill"; in testChangeTextAfterSetting_shouldNotAffectEvent() local 167 updatingString.append(newText); in testChangeTextAfterSetting_shouldNotAffectEvent()
|
D | AccessibilityNodeInfoTest.java | 178 final String newText = "Hornbill"; in testChangeTextAfterSetting_shouldNotAffectInfo() local 186 updatingString.append(newText); in testChangeTextAfterSetting_shouldNotAffectInfo()
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | ListViewTest.java | 1113 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/ |
D | AccessibilityEndToEndTest.java | 329 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/ |
D | UiBot.java | 535 public void setTextByRelativeId(String id, String newText) throws Exception { 536 waitForObject(By.res(mPackageName, id)).setText(newText);
|