Searched refs:newText (Results 1 – 8 of 8) 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/apps/CtsVerifier/src/com/android/cts/verifier/ |
D | TestListActivity.java | 218 public boolean onQueryTextChange(String newText) { in onCreateOptionsMenu() 219 if (newText == null || newText.isEmpty()) { in onCreateOptionsMenu() 221 handleQueryUpdated(newText); in onCreateOptionsMenu()
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | TextViewReceiveContentTest.java | 755 String newText = "Replacement text"; in testProcessText_noCustomReceiver() local 756 triggerProcessTextOnActivityResult(newText); in testProcessText_noCustomReceiver() 757 assertTextAndCursorPosition(newText, newText.length()); in testProcessText_noCustomReceiver() 771 String newText = "Replacement text"; in testProcessText_customReceiver() local 772 triggerProcessTextOnActivityResult(newText); in testProcessText_customReceiver() 773 ClipData clip = ClipData.newPlainText("", newText); in testProcessText_customReceiver()
|
D | ListViewTest.java | 1160 final CharSequence newText = ((TextView) newItem.findViewById(android.R.id.text1)) in testTransientStateUnstableIds() local 1163 Assert.assertFalse(oldText.equals(newText)); in testTransientStateUnstableIds() 1189 final CharSequence newText = ((TextView) newItem.findViewById(android.R.id.text1)) in testTransientStateStableIds() local 1193 Assert.assertEquals(oldText, newText); in testTransientStateStableIds()
|
/cts/tests/accessibility/src/android/view/accessibility/cts/ |
D | AccessibilityEventTest.java | 628 final String newText = "Hornbill"; in testChangeTextAfterSetting_shouldNotAffectEvent() local 635 updatingString.append(newText); in testChangeTextAfterSetting_shouldNotAffectEvent()
|
D | AccessibilityNodeInfoTest.java | 218 final String newText = "Hornbill"; in testChangeTextAfterSetting_shouldNotAffectInfo() local 227 updatingString.append(newText); in testChangeTextAfterSetting_shouldNotAffectInfo()
|
/cts/tests/autofillservice/src/android/autofillservice/cts/testcore/ |
D | UiBot.java | 628 public void setTextByRelativeId(String id, String newText) throws Exception { in setTextByRelativeId() argument 629 waitForObject(By.res(mPackageName, id)).setText(newText); in setTextByRelativeId()
|
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/ |
D | AccessibilityEndToEndTest.java | 414 final String newText = mActivity.getString(R.string.text_input_blah_blah); in testTypeViewTextChangedAccessibilityEvent() local 415 final String afterText = beforeText.substring(0, 3) + newText; in testTypeViewTextChangedAccessibilityEvent() 439 editText.getEditableText().replace(3, 4, newText); in testTypeViewTextChangedAccessibilityEvent()
|