Home
last modified time | relevance | path

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

1234

/cts/tests/tests/widget/src/android/widget/cts/
DChronometerTest.java52 CharSequence oldText = chronometer.getText(); in testAccessBase()
57 assertNotSame(oldText, chronometer.getText()); in testAccessBase()
60 oldText = chronometer.getText(); in testAccessBase()
63 assertNotSame(oldText, chronometer.getText()); in testAccessBase()
66 oldText = chronometer.getText(); in testAccessBase()
69 assertNotSame(oldText, chronometer.getText()); in testAccessBase()
72 oldText = chronometer.getText(); in testAccessBase()
75 assertNotSame(oldText, chronometer.getText()); in testAccessBase()
87 String text = chronometer.getText().toString(); in testAccessFormat()
107 CharSequence expected = chronometer.getText(); in testStartAndStop()
[all …]
DTextSwitcherTest.java70 assertEquals(viewText1, (tvChild1.getText().toString())); in testSetText()
71 assertEquals(viewText2, (tvChild2.getText().toString())); in testSetText()
76 assertEquals(viewText1, (tvChild1.getText().toString())); in testSetText()
77 assertEquals(changedText, (tvChild2.getText().toString())); in testSetText()
82 assertEquals(changedText, (tvChild1.getText().toString())); in testSetText()
83 assertEquals(changedText, (tvChild2.getText().toString())); in testSetText()
88 assertEquals(changedText, (tvChild1.getText().toString())); in testSetText()
89 assertEquals("", (tvChild2.getText().toString())); in testSetText()
110 assertEquals(viewText1, (tvChild1.getText().toString())); in testSetCurrentText()
111 assertEquals(viewText2, (tvChild2.getText().toString())); in testSetCurrentText()
[all …]
DSimpleAdapterTest.java151 assertEquals("01", ((TextView) result).getText().toString()); in testGetView()
155 assertEquals("191", ((TextView) result).getText().toString()); in testGetView()
161 assertEquals("01", ((TextView) result).getText().toString()); in testGetView()
166 assertEquals("101", ((TextView) result).getText().toString()); in testGetView()
181 assertEquals("01", ((TextView) result).getText().toString()); in testGetView()
200 assertEquals("01", ((TextView) result.findViewById(R.id.text1)).getText().toString()); in testSetDropDownViewResource()
204 assertEquals("191", ((TextView) result.findViewById(R.id.text1)).getText().toString()); in testSetDropDownViewResource()
209 assertEquals("01", ((TextView) result).getText().toString()); in testSetDropDownViewResource()
213 assertEquals("191", ((TextView) result).getText().toString()); in testSetDropDownViewResource()
219 assertEquals("01", ((TextView) result).getText().toString()); in testGetDropDownView()
[all …]
DTextViewTest.java168 assertEquals(expected, tv.getText().toString()); in testAccessText()
171 assertEquals("", tv.getText().toString()); in testAccessText()
249 Selection.setSelection((Editable) mTextView.getText(), in testAccessMovementMethod()
257 assertEquals(selectionStart, Selection.getSelectionStart(mTextView.getText())); in testAccessMovementMethod()
258 assertEquals(selectionEnd, Selection.getSelectionEnd(mTextView.getText())); in testAccessMovementMethod()
262 assertEquals(selectionStart, Selection.getSelectionStart(mTextView.getText())); in testAccessMovementMethod()
263 assertEquals(selectionStart, Selection.getSelectionEnd(mTextView.getText())); in testAccessMovementMethod()
268 Selection.setSelection((Editable) mTextView.getText(), in testAccessMovementMethod()
276 assertEquals(selectionStart, Selection.getSelectionStart(mTextView.getText())); in testAccessMovementMethod()
277 assertEquals(selectionEnd, Selection.getSelectionEnd(mTextView.getText())); in testAccessMovementMethod()
[all …]
DTabHost_TabSpecTest.java70 assertEquals(TAG_TAB2, tvTitle.getText().toString()); in testSetIndicator1()
79 assertEquals("", tvTitle.getText().toString()); in testSetIndicator1()
97 assertEquals("", tvTitle.getText().toString()); in testSetIndicator2()
109 assertEquals("", tvTitle.getText().toString()); in testSetIndicator2()
120 assertEquals("", tvTitle.getText().toString()); in testSetIndicator2()
131 assertEquals("half cube", tvTitle.getText().toString()); in testSetIndicator2()
145 currentView.getText().toString()); in testSetContent1()
165 assertEquals("tab spec 2", currentView.getText().toString()); in testSetContent2()
DSimpleExpandableListAdapterTest.java170 assertEquals("child00", ((TextView) result.findViewById(R.id.text1)).getText().toString()); in testGetChildView()
174 assertEquals("child30", ((TextView) result.findViewById(R.id.text1)).getText().toString()); in testGetChildView()
185 assertEquals("child00", ((TextView) result.findViewById(R.id.text1)).getText().toString()); in testGetChildView()
189 assertEquals("child30", ((TextView) result.findViewById(R.id.text1)).getText().toString()); in testGetChildView()
196 assertEquals("child20", ((TextView) result).getText().toString()); in testGetChildView()
203 assertEquals("child10", ((TextView) result).getText().toString()); in testGetChildView()
319 assertEquals("group00", ((TextView) result.findViewById(R.id.text1)).getText().toString()); in testGetGroupView()
323 assertEquals("group30", ((TextView) result.findViewById(R.id.text1)).getText().toString()); in testGetGroupView()
334 assertEquals("group00", ((TextView) result.findViewById(R.id.text1)).getText().toString()); in testGetGroupView()
338 assertEquals("group30", ((TextView) result.findViewById(R.id.text1)).getText().toString()); in testGetGroupView()
[all …]
DAutoCompleteTextViewTest.java254 assertEquals("", autoCompleteTextView.getText().toString()); in testOnTextChanged()
260 assertEquals(STRING_TEST, autoCompleteTextView.getText().toString()); in testOnTextChanged()
270 assertEquals(STRING_CHECK, autoCompleteTextView.getText().toString()); in testOnTextChanged()
295 assertEquals(STRING_TEST, mAutoCompleteTextView.getText().toString()); in testPopupWindow()
299 assertEquals(STRING_VALIDATED, mAutoCompleteTextView.getText().toString()); in testPopupWindow()
306 assertEquals("", autoCompleteTextView.getText().toString()); in testReplaceText()
309 assertEquals("Text", autoCompleteTextView.getText().toString()); in testReplaceText()
315 assertEquals("Another", autoCompleteTextView.getText().toString()); in testReplaceText()
472 assertEquals(STRING_TEST, mAutoCompleteTextView.getText().toString()); in testPerformFiltering()
475 assertEquals(STRING_VALIDATED, mAutoCompleteTextView.getText().toString()); in testPerformFiltering()
[all …]
DTableRowTest.java93 ((TextView) tableRow.getVirtualChildAt(0)).getText().toString()); in testGetVirtualChildAt()
95 ((TextView) tableRow.getVirtualChildAt(1)).getText().toString()); in testGetVirtualChildAt()
97 ((TextView) tableRow.getVirtualChildAt(2)).getText().toString()); in testGetVirtualChildAt()
105 ((TextView) tableRow.getVirtualChildAt(1)).getText().toString()); in testGetVirtualChildAt()
107 ((TextView) tableRow.getVirtualChildAt(2)).getText().toString()); in testGetVirtualChildAt()
109 ((TextView) tableRow.getVirtualChildAt(3)).getText().toString()); in testGetVirtualChildAt()
111 ((TextView) tableRow.getVirtualChildAt(4)).getText().toString()); in testGetVirtualChildAt()
DLinearLayoutTest.java159 weight02.getText().toString()); in testAccessWeightSum()
161 weight05.getText().toString()); in testAccessWeightSum()
163 weight03.getText().toString()); in testAccessWeightSum()
244 topView.getText().toString()); in testLayoutHorizontal()
246 centerView.getText().toString()); in testLayoutHorizontal()
248 bottomView.getText().toString()); in testLayoutHorizontal()
301 leftView.getText().toString()); in testLayoutVertical()
303 centerView.getText().toString()); in testLayoutVertical()
305 rightView.getText().toString()); in testLayoutVertical()
DToggleButtonTest.java133 assertEquals(TEXT_ON, mToggleButton.getText().toString()); in testToggleText()
136 assertEquals(TEXT_OFF, mToggleButton.getText().toString()); in testToggleText()
144 assertEquals(TEXT_OFF, mToggleButton.getText().toString()); in testToggleText()
152 assertEquals(TEXT_ON, mToggleButton.getText().toString()); in testToggleText()
DSimpleCursorAdapterTest.java119 assertEquals("01", listItem.getText().toString()); in testBindView()
123 assertEquals("191", listItem.getText().toString()); in testBindView()
133 assertEquals("", listItem.getText().toString()); in testBindView()
141 assertEquals("191", listItem.getText().toString()); in testBindView()
178 assertEquals("expected", view.getText().toString()); in testSetViewText()
181 assertEquals("", view.getText().toString()); in testSetViewText()
361 assertEquals("01", listItem.getText().toString()); in testChangeCursorAndColumns()
365 assertEquals("191", listItem.getText().toString()); in testChangeCursorAndColumns()
373 assertEquals("02", listItem.getText().toString()); in testChangeCursorAndColumns()
377 assertEquals("192", listItem.getText().toString()); in testChangeCursorAndColumns()
/cts/tests/tests/accessibilityservice/src/android/accessibilityservice/cts/
DAccessibilityTextTraversalTest.java518 && event.getText().size() > 0 in testActionNextAndPreviousAtGranularityCharacterOverText()
519 && event.getText().get(0).toString().equals(getString(R.string.a_b)) in testActionNextAndPreviousAtGranularityCharacterOverText()
531 assertEquals(1, Selection.getSelectionStart(textView.getText())); in testActionNextAndPreviousAtGranularityCharacterOverText()
532 assertEquals(1, Selection.getSelectionEnd(textView.getText())); in testActionNextAndPreviousAtGranularityCharacterOverText()
552 && event.getText().size() > 0 in testActionNextAndPreviousAtGranularityCharacterOverText()
553 && event.getText().get(0).toString().equals(getString(R.string.a_b)) in testActionNextAndPreviousAtGranularityCharacterOverText()
565 assertEquals(2, Selection.getSelectionStart(textView.getText())); in testActionNextAndPreviousAtGranularityCharacterOverText()
566 assertEquals(2, Selection.getSelectionEnd(textView.getText())); in testActionNextAndPreviousAtGranularityCharacterOverText()
586 && event.getText().size() > 0 in testActionNextAndPreviousAtGranularityCharacterOverText()
587 && event.getText().get(0).toString().equals(getString(R.string.a_b)) in testActionNextAndPreviousAtGranularityCharacterOverText()
[all …]
DAccessibilityEndToEndTest.java65 expected.getText().add(getActivity().getString(R.string.second_list_item)); in testTypeViewSelectedAccessibilityEvent()
106 expected.getText().add(getActivity().getString(R.string.button_title)); in testTypeViewClickedAccessibilityEvent()
142 expected.getText().add(getActivity().getString(R.string.button_title)); in testTypeViewLongClickedAccessibilityEvent()
178 expected.getText().add(getActivity().getString(R.string.button_title)); in testTypeViewFocusedAccessibilityEvent()
246 expected.getText().add(afterText); in testTypeViewTextChangedAccessibilityEvent()
284 expected.getText().add(getActivity().getString(R.string.alert_title)); in testTypeWindowStateChangedAccessibilityEvent()
285 expected.getText().add(getActivity().getString(R.string.alert_message)); in testTypeWindowStateChangedAccessibilityEvent()
342 expected.getText().add(message); in testTypeNotificationStateChangedAccessibilityEvent()
420 List<CharSequence> firstText = first.getText(); in equalsText()
421 List<CharSequence> secondText = second.getText(); in equalsText()
/cts/tests/tests/text/src/android/text/method/cts/
DQwertyKeyListenerTest.java46 assertEquals("h", mTextView.getText().toString()); in testOnKeyDown_capitalizeNone()
49 assertEquals("he", mTextView.getText().toString()); in testOnKeyDown_capitalizeNone()
52 assertEquals("hel", mTextView.getText().toString()); in testOnKeyDown_capitalizeNone()
55 assertEquals("hell", mTextView.getText().toString()); in testOnKeyDown_capitalizeNone()
58 assertEquals("hello", mTextView.getText().toString()); in testOnKeyDown_capitalizeNone()
68 assertEquals("H", mTextView.getText().toString()); in testOnKeyDown_capitalizeCharacters()
71 assertEquals("HE", mTextView.getText().toString()); in testOnKeyDown_capitalizeCharacters()
74 assertEquals("HEL", mTextView.getText().toString()); in testOnKeyDown_capitalizeCharacters()
77 assertEquals("HELL", mTextView.getText().toString()); in testOnKeyDown_capitalizeCharacters()
80 assertEquals("HELLO", mTextView.getText().toString()); in testOnKeyDown_capitalizeCharacters()
[all …]
DMultiTapKeyListenerTest.java83 assertEquals("h", mTextView.getText().toString()); in testOnKeyDown_capitalizeNone()
86 assertEquals("he", mTextView.getText().toString()); in testOnKeyDown_capitalizeNone()
89 assertEquals("hel", mTextView.getText().toString()); in testOnKeyDown_capitalizeNone()
92 assertEquals("hell", mTextView.getText().toString()); in testOnKeyDown_capitalizeNone()
95 assertEquals("hello", mTextView.getText().toString()); in testOnKeyDown_capitalizeNone()
105 assertEquals("H", mTextView.getText().toString()); in testOnKeyDown_capitalizeCharacters()
108 assertEquals("HE", mTextView.getText().toString()); in testOnKeyDown_capitalizeCharacters()
111 assertEquals("HEL", mTextView.getText().toString()); in testOnKeyDown_capitalizeCharacters()
114 assertEquals("HELL", mTextView.getText().toString()); in testOnKeyDown_capitalizeCharacters()
117 assertEquals("HELLO", mTextView.getText().toString()); in testOnKeyDown_capitalizeCharacters()
[all …]
DDateKeyListenerTest.java69 assertEquals("", mTextView.getText().toString()); in testDateTimeKeyListener()
73 assertEquals("1", mTextView.getText().toString()); in testDateTimeKeyListener()
77 assertEquals("12", mTextView.getText().toString()); in testDateTimeKeyListener()
83 assertEquals("12", mTextView.getText().toString()); in testDateTimeKeyListener()
88 assertEquals("12-", mTextView.getText().toString()); in testDateTimeKeyListener()
92 assertEquals("12-/", mTextView.getText().toString()); in testDateTimeKeyListener()
96 assertEquals("12-/", mTextView.getText().toString()); in testDateTimeKeyListener()
100 assertEquals("12-/", mTextView.getText().toString()); in testDateTimeKeyListener()
DDateTimeKeyListenerTest.java71 assertEquals(expectedText, mTextView.getText().toString()); in testDateTimeKeyListener()
76 assertEquals(expectedText, mTextView.getText().toString()); in testDateTimeKeyListener()
81 assertEquals(expectedText, mTextView.getText().toString()); in testDateTimeKeyListener()
88 assertEquals(expectedText, mTextView.getText().toString()); in testDateTimeKeyListener()
95 assertEquals(expectedText, mTextView.getText().toString()); in testDateTimeKeyListener()
102 assertEquals(expectedText, mTextView.getText().toString()); in testDateTimeKeyListener()
109 assertEquals(expectedText, mTextView.getText().toString()); in testDateTimeKeyListener()
114 assertEquals(expectedText, mTextView.getText().toString()); in testDateTimeKeyListener()
117 assertEquals(expectedText, mTextView.getText().toString()); in testDateTimeKeyListener()
DTimeKeyListenerTest.java67 assertEquals(expectedText, mTextView.getText().toString()); in testTimeKeyListener()
72 assertEquals(expectedText, mTextView.getText().toString()); in testTimeKeyListener()
77 assertEquals("12", mTextView.getText().toString()); in testTimeKeyListener()
84 assertEquals(expectedText, mTextView.getText().toString()); in testTimeKeyListener()
91 assertEquals(expectedText, mTextView.getText().toString()); in testTimeKeyListener()
98 assertEquals(expectedText, mTextView.getText().toString()); in testTimeKeyListener()
105 assertEquals(expectedText, mTextView.getText().toString()); in testTimeKeyListener()
112 assertEquals(expectedText, mTextView.getText().toString()); in testTimeKeyListener()
DDigitsKeyListenerTest.java394 assertEquals("", mTextView.getText().toString()); in testDigitsKeyListener1()
398 assertEquals("", mTextView.getText().toString()); in testDigitsKeyListener1()
402 assertEquals("1", mTextView.getText().toString()); in testDigitsKeyListener1()
406 assertEquals("1", mTextView.getText().toString()); in testDigitsKeyListener1()
410 assertEquals("12", mTextView.getText().toString()); in testDigitsKeyListener1()
428 assertEquals("", mTextView.getText().toString()); in testDigitsKeyListener2()
432 assertEquals("-", mTextView.getText().toString()); in testDigitsKeyListener2()
436 assertEquals("-1", mTextView.getText().toString()); in testDigitsKeyListener2()
440 assertEquals("-1", mTextView.getText().toString()); in testDigitsKeyListener2()
444 assertEquals("-1", mTextView.getText().toString()); in testDigitsKeyListener2()
[all …]
DNumberKeyListenerTest.java135 Selection.setSelection((Editable) mTextView.getText(), 0, 0); in testPressKey()
139 assertEquals("123456", mTextView.getText().toString()); in testPressKey()
142 assertEquals("0123456", mTextView.getText().toString()); in testPressKey()
149 assertEquals("0123456", mTextView.getText().toString()); in testPressKey()
161 assertEquals("0123456", mTextView.getText().toString()); in testPressKey()
DTextKeyListenerTest.java149 Editable content = (Editable) mTextView.getText(); in testClear()
187 Selection.setSelection((Editable) mTextView.getText(), 0, 0); in testPressKey()
193 assertEquals("", mTextView.getText().toString()); in testPressKey()
197 String text = mTextView.getText().toString(); in testPressKey()
219 Selection.setSelection((Editable) mTextView.getText(), 0, 0); in testOnKeyOther()
224 assertEquals("", mTextView.getText().toString()); in testOnKeyOther()
/cts/tests/uiautomator/src/com/android/cts/uiautomatortest/
DCtsUiAutomatorTest.java135 if (!testText.equals(result.getText())) { in testTextEraseAndInput()
274 String txtTime = clk.getText(); in testWaitForIdleTimeout()
291 String timeDiff = readTime.getText(); in testWaitForIdleTimeout()
335 assertTrue("UiObject swipe left 1->2", "[ 2 ]".equals(textView.getText())); in testSwipes()
338 assertTrue("UiObject swipe left 2->3", "[ 3 ]".equals(textView.getText())); in testSwipes()
341 assertTrue("UiObject swipe left 3->4", "[ 4 ]".equals(textView.getText())); in testSwipes()
344 assertTrue("UiObject swipe right 3<-4", "[ 3 ]".equals(textView.getText())); in testSwipes()
347 assertTrue("UiObject swipe right 2<-3", "[ 2 ]".equals(textView.getText())); in testSwipes()
350 assertTrue("UiObject swipe right 1<-2", "[ 1 ]".equals(textView.getText())); in testSwipes()
356 assertTrue("UiDevice raw swipe 1->2", "[ 2 ]".equals(textView.getText())); in testSwipes()
[all …]
/cts/tests/tests/app/src/android/app/cts/
DAlertDialogTest.java79 mPositiveButton.getText()); in doTestAlertDialog()
84 mNeutralButton.getText()); in doTestAlertDialog()
89 mNegativeButton.getText()); in doTestAlertDialog()
116 mPositiveButton.getText()); in testAlertDialogDeprecatedAPIWithMessage()
121 mNegativeButton.getText()); in testAlertDialogDeprecatedAPIWithMessage()
126 mNeutralButton.getText()); in testAlertDialogDeprecatedAPIWithMessage()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/location/
DGpsTestActivity.java89 return mTextView.getText().toString(); in getTestDetails()
141 int start = mTextView.getText().length(); in log()
144 int end = mTextView.getText().length(); in log()
145 Spannable spanText = (Spannable) mTextView.getText(); in log()
/cts/tests/tests/text/src/android/text/util/cts/
DLinkifyTest.java118 URLSpan[] spans = ((Spannable)tv.getText()).getSpans(0, text.length(), URLSpan.class); in testAddLinks2()
125 spans = ((Spannable)tv.getText()).getSpans(0, text.length(), URLSpan.class); in testAddLinks2()
145 URLSpan[] spans = ((Spannable) tv.getText()).getSpans(0, text.length(), URLSpan.class); in testAddLinks3()
153 spans = ((Spannable) tv.getText()).getSpans(0, text.length(), URLSpan.class); in testAddLinks3()
175 spans = ((Spannable) tv.getText()).getSpans(0, text.length(), URLSpan.class); in testAddLinks3()
188 URLSpan[] spans = ((Spannable) tv.getText()).getSpans(0, text.length(), URLSpan.class); in testAddLinks4()
212 spans = ((Spannable) tv.getText()).getSpans(0, text.length(), URLSpan.class); in testAddLinks4()
219 spans = ((Spannable) tv.getText()).getSpans(0, text.length(), URLSpan.class); in testAddLinks4()
227 spans = ((Spannable) tv.getText()).getSpans(0, text.length(), URLSpan.class); in testAddLinks4()

1234