Searched refs:newText (Results 1 – 6 of 6) sorted by relevance
/cts/tests/tests/text/src/android/text/cts/ |
D | SpannableStringBuilderSpanTest.java | 518 Spanned newText = Html.fromHtml("<blockquote>new text</blockquote>"); in testReplace_discardsParagraphSpanInSourceIfThereIsNoNewLineBefore() local 519 assertEquals(1, newText.getSpans(0, newText.length(), ParagraphStyle.class).length); in testReplace_discardsParagraphSpanInSourceIfThereIsNoNewLineBefore() 521 spannable.replace(2, spannable.length(), newText); in testReplace_discardsParagraphSpanInSourceIfThereIsNoNewLineBefore() 531 Spanned newText = Html.fromHtml("<blockquote>new text</blockquote>"); in testReplace_retainsParagraphSpanInSourceIfThereIsNewLineBefore() local 532 assertTrue(newText.getSpans(0, newText.length(), ParagraphStyle.class).length > 0); in testReplace_retainsParagraphSpanInSourceIfThereIsNewLineBefore() 534 spannable.replace(2, spannable.length(), newText); in testReplace_retainsParagraphSpanInSourceIfThereIsNewLineBefore() 546 Spanned newText = Html.fromHtml("<blockquote>new text</blockquote>"); in testReplace_retainsParagraphSpanInSourceIfStartIsZero() local 547 assertTrue(newText.getSpans(0, newText.length(), ParagraphStyle.class).length > 0); in testReplace_retainsParagraphSpanInSourceIfStartIsZero() 549 spannable.replace(0, spannable.length(), newText); in testReplace_retainsParagraphSpanInSourceIfStartIsZero() 564 Spannable newText = new SpannableString("a"); in testReplace_retainsParagraphSpanInSourceIfEndIsEqualToLengthOfString() local [all …]
|
/cts/tests/accessibility/src/android/view/accessibility/cts/ |
D | AccessibilityEventTest.java | 169 final String newText = "Hornbill"; in testChangeTextAfterSetting_shouldNotAffectEvent() local 176 updatingString.append(newText); in testChangeTextAfterSetting_shouldNotAffectEvent()
|
D | AccessibilityNodeInfoTest.java | 180 final String newText = "Hornbill"; in testChangeTextAfterSetting_shouldNotAffectInfo() local 188 updatingString.append(newText); in testChangeTextAfterSetting_shouldNotAffectInfo()
|
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/ |
D | AccessibilityEndToEndTest.java | 241 final String newText = getActivity().getString(R.string.text_input_blah_blah); in testTypeViewTextChangedAccessibilityEvent() local 242 final String afterText = beforeText.substring(0, 3) + newText; in testTypeViewTextChangedAccessibilityEvent() 265 editText.getEditableText().replace(3, 4, newText); in testTypeViewTextChangedAccessibilityEvent()
|
/cts/tests/autofillservice/src/android/autofillservice/cts/ |
D | UiBot.java | 222 void setTextById(String id, String newText) { in setTextById() argument 224 view.setText(newText); in setTextById()
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | ListViewTest.java | 1124 final CharSequence newText = ((TextView) newItem.findViewById(android.R.id.text1)) in testTransientStateUnstableIds() local 1127 Assert.assertFalse(oldText.equals(newText)); in testTransientStateUnstableIds() 1153 final CharSequence newText = ((TextView) newItem.findViewById(android.R.id.text1)) in testTransientStateStableIds() local 1157 Assert.assertEquals(oldText, newText); in testTransientStateStableIds()
|