Home
last modified time | relevance | path

Searched refs:originalText (Results 1 – 5 of 5) sorted by relevance

/cts/tests/translation/src/android/translation/cts/
DUiTranslationManagerTest.java184 final CharSequence originalText = mTextView.getText(); in testUiTranslation() local
206 .isEqualTo(originalText.toString()); in testUiTranslation()
214 assertThat(helloText.getText()).isEqualTo(originalText.toString()); in testUiTranslation()
222 assertThat(helloText.getText()).isEqualTo(originalText.toString()); in testUiTranslation()
239 assertThat(helloText.getText()).isEqualTo(originalText.toString()); in testUiTranslation()
247 final CharSequence originalText = mTextView.getText(); in testPauseUiTranslationThenStartUiTranslation() local
266 assertThat(helloText.getText()).isEqualTo(originalText.toString()); in testPauseUiTranslationThenStartUiTranslation()
330 final CharSequence originalText = mTextView.getText(); in testUiTranslation_ViewTranslationCallback_paddingText() local
339 assertThat(currentText.length()).isNotEqualTo(originalText.length()); in testUiTranslation_ViewTranslationCallback_paddingText()
350 assertThat(mTextView.getText().length()).isEqualTo(originalText.length()); in testUiTranslation_ViewTranslationCallback_paddingText()
[all …]
/cts/tests/accessibility/src/android/view/accessibility/cts/
DAccessibilityNodeInfoTest.java233 final String originalText = "Cassowaries"; in testChangeTextAfterSetting_shouldNotAffectInfo() local
236 StringBuffer updatingString = new StringBuffer(originalText); in testChangeTextAfterSetting_shouldNotAffectInfo()
245 assertTrue(TextUtils.equals(originalText, info.getText())); in testChangeTextAfterSetting_shouldNotAffectInfo()
246 assertTrue(TextUtils.equals(originalText, info.getError())); in testChangeTextAfterSetting_shouldNotAffectInfo()
247 assertTrue(TextUtils.equals(originalText, info.getContentDescription())); in testChangeTextAfterSetting_shouldNotAffectInfo()
248 assertTrue(TextUtils.equals(originalText, info.getStateDescription())); in testChangeTextAfterSetting_shouldNotAffectInfo()
DAccessibilityEventTest.java549 final String originalText = "Cassowary"; in testChangeTextAfterSetting_shouldNotAffectEvent() local
552 StringBuffer updatingString = new StringBuffer(originalText); in testChangeTextAfterSetting_shouldNotAffectEvent()
559 assertTrue(TextUtils.equals(originalText, event.getBeforeText())); in testChangeTextAfterSetting_shouldNotAffectEvent()
560 assertTrue(TextUtils.equals(originalText, event.getContentDescription())); in testChangeTextAfterSetting_shouldNotAffectEvent()
/cts/tests/tests/widget/src/android/widget/cts/
DTextViewReceiveContentTest.java754 String originalText = "Original text"; in testProcessText_customReceiver() local
755 initTextViewForEditing(originalText, 0); in testProcessText_customReceiver()
756 Selection.setSelection(mTextView.getEditableText(), 0, originalText.length()); in testProcessText_customReceiver()
757 assertTextAndSelection(originalText, 0, originalText.length()); in testProcessText_customReceiver()
768 assertTextAndSelection(originalText, 0, originalText.length()); in testProcessText_customReceiver()
/cts/tests/inputmethod/src/android/view/inputmethod/cts/
DEditorInfoTest.java263 final CharSequence originalText = TextUtils.concat(prefixString, subText); in testInitialSurroundingSubText_keepsOriginalCursorPosition() local
265 info.initialSelStart = originalText.length() / 2; in testInitialSurroundingSubText_keepsOriginalCursorPosition()
273 originalText.length() - info.initialSelEnd); in testInitialSurroundingSubText_keepsOriginalCursorPosition()