Home
last modified time | relevance | path

Searched refs:getText (Results 1 – 25 of 149) sorted by relevance

123456

/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/
DAccessibilityTextTraversalTest.java567 && event.getText().size() > 0 in testActionNextAndPreviousAtGranularityCharacterOverText()
568 && event.getText().get(0).toString().equals(getString(R.string.a_b)) in testActionNextAndPreviousAtGranularityCharacterOverText()
580 assertEquals(1, Selection.getSelectionStart(textView.getText())); in testActionNextAndPreviousAtGranularityCharacterOverText()
581 assertEquals(1, Selection.getSelectionEnd(textView.getText())); in testActionNextAndPreviousAtGranularityCharacterOverText()
601 && event.getText().size() > 0 in testActionNextAndPreviousAtGranularityCharacterOverText()
602 && event.getText().get(0).toString().equals(getString(R.string.a_b)) in testActionNextAndPreviousAtGranularityCharacterOverText()
614 assertEquals(2, Selection.getSelectionStart(textView.getText())); in testActionNextAndPreviousAtGranularityCharacterOverText()
615 assertEquals(2, Selection.getSelectionEnd(textView.getText())); in testActionNextAndPreviousAtGranularityCharacterOverText()
635 && event.getText().size() > 0 in testActionNextAndPreviousAtGranularityCharacterOverText()
636 && event.getText().get(0).toString().equals(getString(R.string.a_b)) in testActionNextAndPreviousAtGranularityCharacterOverText()
[all …]
/cts/tests/tests/text/src/android/text/method/cts/
DQwertyKeyListenerTest.java74 assertEquals("h", mTextView.getText().toString()); in testOnKeyDown_capitalizeNone()
77 assertEquals("he", mTextView.getText().toString()); in testOnKeyDown_capitalizeNone()
80 assertEquals("hel", mTextView.getText().toString()); in testOnKeyDown_capitalizeNone()
83 assertEquals("hell", mTextView.getText().toString()); in testOnKeyDown_capitalizeNone()
86 assertEquals("hello", mTextView.getText().toString()); in testOnKeyDown_capitalizeNone()
97 assertEquals("H", mTextView.getText().toString()); in testOnKeyDown_capitalizeCharacters()
100 assertEquals("HE", mTextView.getText().toString()); in testOnKeyDown_capitalizeCharacters()
103 assertEquals("HEL", mTextView.getText().toString()); in testOnKeyDown_capitalizeCharacters()
106 assertEquals("HELL", mTextView.getText().toString()); in testOnKeyDown_capitalizeCharacters()
109 assertEquals("HELLO", mTextView.getText().toString()); in testOnKeyDown_capitalizeCharacters()
[all …]
DMultiTapKeyListenerTest.java117 assertEquals("h", mTextView.getText().toString()); in testOnKeyDown_capitalizeNone()
120 assertEquals("he", mTextView.getText().toString()); in testOnKeyDown_capitalizeNone()
123 assertEquals("hel", mTextView.getText().toString()); in testOnKeyDown_capitalizeNone()
126 assertEquals("hell", mTextView.getText().toString()); in testOnKeyDown_capitalizeNone()
129 assertEquals("hello", mTextView.getText().toString()); in testOnKeyDown_capitalizeNone()
140 assertEquals("H", mTextView.getText().toString()); in testOnKeyDown_capitalizeCharacters()
143 assertEquals("HE", mTextView.getText().toString()); in testOnKeyDown_capitalizeCharacters()
146 assertEquals("HEL", mTextView.getText().toString()); in testOnKeyDown_capitalizeCharacters()
149 assertEquals("HELL", mTextView.getText().toString()); in testOnKeyDown_capitalizeCharacters()
152 assertEquals("HELLO", mTextView.getText().toString()); in testOnKeyDown_capitalizeCharacters()
[all …]
DDateTimeKeyListenerTest.java155 assertEquals(expectedText, mTextView.getText().toString()); in testDateTimeKeyListener()
160 assertEquals(expectedText, mTextView.getText().toString()); in testDateTimeKeyListener()
165 assertEquals(expectedText, mTextView.getText().toString()); in testDateTimeKeyListener()
172 assertEquals(expectedText, mTextView.getText().toString()); in testDateTimeKeyListener()
179 assertEquals(expectedText, mTextView.getText().toString()); in testDateTimeKeyListener()
186 assertEquals(expectedText, mTextView.getText().toString()); in testDateTimeKeyListener()
193 assertEquals(expectedText, mTextView.getText().toString()); in testDateTimeKeyListener()
198 assertEquals(expectedText, mTextView.getText().toString()); in testDateTimeKeyListener()
201 assertEquals(expectedText, mTextView.getText().toString()); in testDateTimeKeyListener()
DDateKeyListenerTest.java151 assertEquals("", mTextView.getText().toString()); in testDateTimeKeyListener()
155 assertEquals("1", mTextView.getText().toString()); in testDateTimeKeyListener()
159 assertEquals("12", mTextView.getText().toString()); in testDateTimeKeyListener()
165 assertEquals("12", mTextView.getText().toString()); in testDateTimeKeyListener()
170 assertEquals("12-", mTextView.getText().toString()); in testDateTimeKeyListener()
174 assertEquals("12-/", mTextView.getText().toString()); in testDateTimeKeyListener()
178 assertEquals("12-/", mTextView.getText().toString()); in testDateTimeKeyListener()
182 assertEquals("12-/", mTextView.getText().toString()); in testDateTimeKeyListener()
DDigitsKeyListenerTest.java554 assertEquals("", mTextView.getText().toString()); in testDigitsKeyListener1()
558 assertEquals("", mTextView.getText().toString()); in testDigitsKeyListener1()
562 assertEquals("1", mTextView.getText().toString()); in testDigitsKeyListener1()
566 assertEquals("1", mTextView.getText().toString()); in testDigitsKeyListener1()
570 assertEquals("12", mTextView.getText().toString()); in testDigitsKeyListener1()
589 assertEquals("", mTextView.getText().toString()); in testDigitsKeyListener2()
593 assertEquals("-", mTextView.getText().toString()); in testDigitsKeyListener2()
597 assertEquals("-1", mTextView.getText().toString()); in testDigitsKeyListener2()
601 assertEquals("-1", mTextView.getText().toString()); in testDigitsKeyListener2()
605 assertEquals("-1", mTextView.getText().toString()); in testDigitsKeyListener2()
[all …]
DTimeKeyListenerTest.java152 assertEquals(expectedText, mTextView.getText().toString()); in testTimeKeyListener()
157 assertEquals(expectedText, mTextView.getText().toString()); in testTimeKeyListener()
162 assertEquals("12", mTextView.getText().toString()); in testTimeKeyListener()
169 assertEquals(expectedText, mTextView.getText().toString()); in testTimeKeyListener()
176 assertEquals(expectedText, mTextView.getText().toString()); in testTimeKeyListener()
183 assertEquals(expectedText, mTextView.getText().toString()); in testTimeKeyListener()
190 assertEquals(expectedText, mTextView.getText().toString()); in testTimeKeyListener()
197 assertEquals(expectedText, mTextView.getText().toString()); in testTimeKeyListener()
DNumberKeyListenerTest.java149 Selection.setSelection(mTextView.getText(), 0, 0); in testPressKey()
152 assertEquals("123456", mTextView.getText().toString()); in testPressKey()
155 assertEquals("0123456", mTextView.getText().toString()); in testPressKey()
162 assertEquals("0123456", mTextView.getText().toString()); in testPressKey()
172 assertEquals("0123456", mTextView.getText().toString()); in testPressKey()
DTextKeyListenerTest.java173 Editable content = mTextView.getText(); in testClear()
212 Selection.setSelection(mTextView.getText(), 0, 0); in testPressKey()
217 assertEquals("", mTextView.getText().toString()); in testPressKey()
221 String text = mTextView.getText().toString(); in testPressKey()
243 Selection.setSelection(mTextView.getText(), 0, 0); in testOnKeyOther()
247 assertEquals("", mTextView.getText().toString()); in testOnKeyOther()
/cts/tests/tests/widget/src/android/widget/cts/
DChronometerTest.java97 CharSequence oldText = chronometer.getText(); in testAccessBase()
101 assertNotSame(oldText, chronometer.getText()); in testAccessBase()
103 oldText = chronometer.getText(); in testAccessBase()
106 assertNotSame(oldText, chronometer.getText()); in testAccessBase()
108 oldText = chronometer.getText(); in testAccessBase()
111 assertNotSame(oldText, chronometer.getText()); in testAccessBase()
113 oldText = chronometer.getText(); in testAccessBase()
116 assertNotSame(oldText, chronometer.getText()); in testAccessBase()
129 String text = chronometer.getText().toString(); in testAccessFormat()
144 final CharSequence valueBeforeStart = chronometer.getText(); in testStartAndStop()
[all …]
DTextSwitcherTest.java90 assertEquals(viewText1, (tvChild1.getText().toString())); in testSetText()
91 assertEquals(viewText2, (tvChild2.getText().toString())); in testSetText()
96 assertEquals(viewText1, (tvChild1.getText().toString())); in testSetText()
97 assertEquals(changedText, (tvChild2.getText().toString())); in testSetText()
102 assertEquals(changedText, (tvChild1.getText().toString())); in testSetText()
103 assertEquals(changedText, (tvChild2.getText().toString())); in testSetText()
108 assertEquals(changedText, (tvChild1.getText().toString())); in testSetText()
109 assertEquals("", (tvChild2.getText().toString())); in testSetText()
130 assertEquals(viewText1, (tvChild1.getText().toString())); in testSetCurrentText()
131 assertEquals(viewText2, (tvChild2.getText().toString())); in testSetCurrentText()
[all …]
DSimpleAdapterTest.java175 assertEquals("01", ((TextView) result).getText().toString()); in testGetView()
179 assertEquals("191", ((TextView) result).getText().toString()); in testGetView()
185 assertEquals("01", ((TextView) result).getText().toString()); in testGetView()
190 assertEquals("101", ((TextView) result).getText().toString()); in testGetView()
204 assertEquals("01", ((TextView) result).getText().toString()); in testGetView()
228 ((TextView) result.findViewById(android.R.id.text1)).getText().toString()); in testSetDropDownViewResource()
233 ((TextView) result.findViewById(android.R.id.text1)).getText().toString()); in testSetDropDownViewResource()
238 assertEquals("01", ((TextView) result).getText().toString()); in testSetDropDownViewResource()
242 assertEquals("191", ((TextView) result).getText().toString()); in testSetDropDownViewResource()
250 assertEquals("01", ((TextView) result).getText().toString()); in testGetDropDownView()
[all …]
DTextViewTest.java266 assertEquals(expected, tv.getText().toString()); in testAccessText()
269 assertEquals("", tv.getText().toString()); in testAccessText()
337 Selection.setSelection((Editable) mTextView.getText(), in testAccessMovementMethod()
344 assertEquals(selectionStart, Selection.getSelectionStart(mTextView.getText())); in testAccessMovementMethod()
345 assertEquals(selectionEnd, Selection.getSelectionEnd(mTextView.getText())); in testAccessMovementMethod()
349 assertEquals(selectionStart, Selection.getSelectionStart(mTextView.getText())); in testAccessMovementMethod()
350 assertEquals(selectionStart, Selection.getSelectionEnd(mTextView.getText())); in testAccessMovementMethod()
354 Selection.setSelection((Editable) mTextView.getText(), in testAccessMovementMethod()
361 assertEquals(selectionStart, Selection.getSelectionStart(mTextView.getText())); in testAccessMovementMethod()
362 assertEquals(selectionEnd, Selection.getSelectionEnd(mTextView.getText())); in testAccessMovementMethod()
[all …]
DEditTextTest.java104 assertTrue(TextUtils.equals("android", mEditText1.getText())); in testAccessText()
107 assertEquals(0, mEditText1.getText().length()); in testAccessText()
110 assertEquals(0, mEditText1.getText().length()); in testAccessText()
139 mEditText1.setSelection(mEditText1.getText().length() + 1); in testSetSelectionIndexAfterLast()
176 mEditText1.setSelection(5, mEditText1.getText().length() + 1); in testSetSelectionStartEndAfterLast()
289 assertTrue(TextUtils.equals(mEditText1.getText(), mEditText2.getText())); in testOnSaveInstanceState_savesTextStateWhenFreezesTextIsTrue()
305 assertTrue(TextUtils.equals(mEditText1.getText(), mEditText2.getText())); in testOnSaveInstanceState_savesTextStateWhenFreezesTextIfFalse()
408 Editable currentText = getText(); in setText()
430 Editable text = getText(); in setOverScrollMode()
DSimpleExpandableListAdapterTest.java184 assertEquals("child00", ((TextView) result).getText().toString()); in testGetChildView()
188 assertEquals("child30", ((TextView) result).getText().toString()); in testGetChildView()
199 assertEquals("child00", ((TextView) result).getText().toString()); in testGetChildView()
204 ((TextView) result.findViewById(android.R.id.text1)).getText().toString()); in testGetChildView()
211 assertEquals("child20", ((TextView) result).getText().toString()); in testGetChildView()
218 assertEquals("child10", ((TextView) result).getText().toString()); in testGetChildView()
338 assertEquals("group00", ((TextView) result).getText().toString()); in testGetGroupView()
342 assertEquals("group30", ((TextView) result).getText().toString()); in testGetGroupView()
353 assertEquals("group00", ((TextView) result).getText().toString()); in testGetGroupView()
358 ((TextView) result.findViewById(android.R.id.text1)).getText().toString()); in testGetGroupView()
[all …]
DTabHost_TabSpecTest.java83 assertEquals(TAG_TAB2, tvTitle.getText().toString()); in testSetIndicator1()
92 assertEquals("", tvTitle.getText().toString()); in testSetIndicator1()
111 assertEquals("", tvTitle.getText().toString()); in testSetIndicator2()
123 assertEquals("", tvTitle.getText().toString()); in testSetIndicator2()
134 assertEquals("", tvTitle.getText().toString()); in testSetIndicator2()
145 assertEquals("half cube", tvTitle.getText().toString()); in testSetIndicator2()
160 currentView.getText().toString()); in testSetContent1()
181 assertEquals("tab spec 2", currentView.getText().toString()); in testSetContent2()
DTableRowTest.java110 ((TextView) tableRow.getVirtualChildAt(0)).getText().toString()); in testGetVirtualChildAt()
112 ((TextView) tableRow.getVirtualChildAt(1)).getText().toString()); in testGetVirtualChildAt()
114 ((TextView) tableRow.getVirtualChildAt(2)).getText().toString()); in testGetVirtualChildAt()
122 ((TextView) tableRow.getVirtualChildAt(1)).getText().toString()); in testGetVirtualChildAt()
124 ((TextView) tableRow.getVirtualChildAt(2)).getText().toString()); in testGetVirtualChildAt()
126 ((TextView) tableRow.getVirtualChildAt(3)).getText().toString()); in testGetVirtualChildAt()
128 ((TextView) tableRow.getVirtualChildAt(4)).getText().toString()); in testGetVirtualChildAt()
DSimpleCursorAdapterTest.java139 assertEquals("01", listItem.getText().toString()); in testBindView()
143 assertEquals("191", listItem.getText().toString()); in testBindView()
153 assertEquals("", listItem.getText().toString()); in testBindView()
161 assertEquals("191", listItem.getText().toString()); in testBindView()
201 assertEquals("expected", view.getText().toString()); in testSetViewText()
204 assertEquals("", view.getText().toString()); in testSetViewText()
393 assertEquals("01", listItem.getText().toString()); in testChangeCursorAndColumns()
397 assertEquals("191", listItem.getText().toString()); in testChangeCursorAndColumns()
405 assertEquals("02", listItem.getText().toString()); in testChangeCursorAndColumns()
409 assertEquals("192", listItem.getText().toString()); in testChangeCursorAndColumns()
DMultiAutoCompleteTextViewTest.java158 assertEquals(str, mMultiAutoCompleteTextView_country.getText().toString()); in testPerformValidation()
162 assertEquals(str + ", ", mMultiAutoCompleteTextView_country.getText().toString()); in testPerformValidation()
201 assertEquals(text, multiAutoCompleteTextView.getText().toString()); in testReplaceText()
206 assertEquals("Android Test., ", multiAutoCompleteTextView.getText().toString()); in testReplaceText()
211 multiAutoCompleteTextView.getText().toString()); in testReplaceText()
/cts/tests/app/src/android/app/cts/
DAlertDialogTest.java85 mPositiveButton.getText()); in doTestAlertDialog()
90 mNeutralButton.getText()); in doTestAlertDialog()
95 mNegativeButton.getText()); in doTestAlertDialog()
126 mPositiveButton.getText()); in testAlertDialogAPIWithMessage()
131 mNegativeButton.getText()); in testAlertDialogAPIWithMessage()
136 mNeutralButton.getText()); in testAlertDialogAPIWithMessage()
/cts/tests/autofillservice/src/android/autofillservice/cts/
DMultipleFragmentLoginTest.java135 assertThat(editText2Node.getText().toString()).isEqualTo("");
169 assertThat(editText1Node.getText().toString()).isEqualTo("editText1-autofilled");
172 assertThat(editText2Node.getText().toString()).isEqualTo("editText2-manually-filled");
183 assertThat(editText3Node.getText().toString()).isEqualTo("editText3-autofilled");
186 assertThat(editText4Node.getText().toString()).isEqualTo("editText4-autofilled");
189 assertThat(editText5Node.getText().toString()).isEqualTo("editText5-manually-filled");
DCustomDescriptionTest.java279 (line2) -> assertWithMessage("Wrong text for line2").that(line2.getText()) in validTransformationWithMultipleTemplateUpdates()
326 .that(line1.getText()).isEqualTo("L1-u"); in multipleBatchUpdatesTest()
331 .that(line2.getText()).isEqualTo("L2-u"); in multipleBatchUpdatesTest()
339 .that(line3.getText()).isEqualTo("L3-p"); in multipleBatchUpdatesTest()
388 .that(line1.getText()).isEqualTo("L1-u"); in testBatchUpdatesApplyUpdateFirstThenTransformations()
390 .that(line2.getText()).isEqualTo("L2-u"); in testBatchUpdatesApplyUpdateFirstThenTransformations()
392 .that(line3.getText()).isEqualTo("L3-p"); in testBatchUpdatesApplyUpdateFirstThenTransformations()
605 assertThat(staticText.getText()).isEqualTo("YO:"); in assertSaveUiWithCustomDescriptionIsShown()
617 .that(line1.getText()).isEqualTo(expectedTextOnFirst), in assertSaveUiIsShownWithTwoLines()
619 .that(line2.getText()).isNull(), in assertSaveUiIsShownWithTwoLines()
[all …]
/cts/tests/fragment/src/android/fragment/cts/
DLoaderTest.java103 assertEquals("Loaded!", activity.textView.getText().toString()); in startWhenReused()
109 assertEquals("Loaded!", activity.textView.getText().toString()); in startWhenReused()
168 assertEquals("First Value", activity.textViewB.getText().toString()); in noStaleData()
192 assertEquals("Second Value", activity.textViewB.getText().toString()); in noStaleData()
/cts/tests/accessibility/src/android/view/accessibility/cts/
DAccessibilityRecordTest.java85 TestCase.assertTrue("text not properly recycled", record.getText().isEmpty()); in assertAccessibilityRecordCleared()
113 record.getText().add("Foo"); in fullyPopulateAccessibilityRecord()
148 assertEqualsText(expectedRecord.getText(), receivedRecord.getText()); in assertEqualAccessibilityRecord()
/cts/tests/tests/assist/src/android/assist/cts/
DAssistTestBase.java474 if (parentNode.getText() != null in traverseWebViewForText()
475 && parentNode.getText().toString().equals(Utils.WEBVIEW_HTML_GREETING)) { in traverseWebViewForText()
544 Log.i(TAG, "parent text: " + parentNode.getText()); in verifyViewProperties()
546 Log.i(TAG, "view text: " + ((TextView) parentView).getText()); in verifyViewProperties()
566 String viewString = textView.getText().toString(); in verifyViewProperties()
567 String nodeString = parentNode.getText().toString(); in verifyViewProperties()
580 for (int x = 0; x < parentNode.getText().length(); x++) { in verifyViewProperties()
582 ((TextView) parentView).getText().toString().charAt(x), in verifyViewProperties()
583 parentNode.getText().charAt(x)); in verifyViewProperties()
589 assertNull(parentNode.getText()); in verifyViewProperties()

123456