Home
last modified time | relevance | path

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

123456

/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/
DAccessibilityTextTraversalTest.java521 && event.getText().size() > 0 in testActionNextAndPreviousAtGranularityCharacterOverText()
522 && event.getText().get(0).toString().equals(getString(R.string.a_b)) in testActionNextAndPreviousAtGranularityCharacterOverText()
534 assertEquals(1, Selection.getSelectionStart(textView.getText())); in testActionNextAndPreviousAtGranularityCharacterOverText()
535 assertEquals(1, Selection.getSelectionEnd(textView.getText())); in testActionNextAndPreviousAtGranularityCharacterOverText()
555 && event.getText().size() > 0 in testActionNextAndPreviousAtGranularityCharacterOverText()
556 && event.getText().get(0).toString().equals(getString(R.string.a_b)) in testActionNextAndPreviousAtGranularityCharacterOverText()
568 assertEquals(2, Selection.getSelectionStart(textView.getText())); in testActionNextAndPreviousAtGranularityCharacterOverText()
569 assertEquals(2, Selection.getSelectionEnd(textView.getText())); in testActionNextAndPreviousAtGranularityCharacterOverText()
589 && event.getText().size() > 0 in testActionNextAndPreviousAtGranularityCharacterOverText()
590 && event.getText().get(0).toString().equals(getString(R.string.a_b)) in testActionNextAndPreviousAtGranularityCharacterOverText()
[all …]
/cts/tests/tests/text/src/android/text/method/cts/
DQwertyKeyListenerTest.java73 assertEquals("h", mTextView.getText().toString()); in testOnKeyDown_capitalizeNone()
76 assertEquals("he", mTextView.getText().toString()); in testOnKeyDown_capitalizeNone()
79 assertEquals("hel", mTextView.getText().toString()); in testOnKeyDown_capitalizeNone()
82 assertEquals("hell", mTextView.getText().toString()); in testOnKeyDown_capitalizeNone()
85 assertEquals("hello", mTextView.getText().toString()); in testOnKeyDown_capitalizeNone()
96 assertEquals("H", mTextView.getText().toString()); in testOnKeyDown_capitalizeCharacters()
99 assertEquals("HE", mTextView.getText().toString()); in testOnKeyDown_capitalizeCharacters()
102 assertEquals("HEL", mTextView.getText().toString()); in testOnKeyDown_capitalizeCharacters()
105 assertEquals("HELL", mTextView.getText().toString()); in testOnKeyDown_capitalizeCharacters()
108 assertEquals("HELLO", mTextView.getText().toString()); in testOnKeyDown_capitalizeCharacters()
[all …]
DMultiTapKeyListenerTest.java116 assertEquals("h", mTextView.getText().toString()); in testOnKeyDown_capitalizeNone()
119 assertEquals("he", mTextView.getText().toString()); in testOnKeyDown_capitalizeNone()
122 assertEquals("hel", mTextView.getText().toString()); in testOnKeyDown_capitalizeNone()
125 assertEquals("hell", mTextView.getText().toString()); in testOnKeyDown_capitalizeNone()
128 assertEquals("hello", mTextView.getText().toString()); in testOnKeyDown_capitalizeNone()
139 assertEquals("H", mTextView.getText().toString()); in testOnKeyDown_capitalizeCharacters()
142 assertEquals("HE", mTextView.getText().toString()); in testOnKeyDown_capitalizeCharacters()
145 assertEquals("HEL", mTextView.getText().toString()); in testOnKeyDown_capitalizeCharacters()
148 assertEquals("HELL", mTextView.getText().toString()); in testOnKeyDown_capitalizeCharacters()
151 assertEquals("HELLO", mTextView.getText().toString()); in testOnKeyDown_capitalizeCharacters()
[all …]
DDateKeyListenerTest.java150 assertEquals("", mTextView.getText().toString()); in testDateTimeKeyListener()
154 assertEquals("1", mTextView.getText().toString()); in testDateTimeKeyListener()
158 assertEquals("12", mTextView.getText().toString()); in testDateTimeKeyListener()
164 assertEquals("12", mTextView.getText().toString()); in testDateTimeKeyListener()
169 assertEquals("12-", mTextView.getText().toString()); in testDateTimeKeyListener()
173 assertEquals("12-/", mTextView.getText().toString()); in testDateTimeKeyListener()
177 assertEquals("12-/", mTextView.getText().toString()); in testDateTimeKeyListener()
181 assertEquals("12-/", mTextView.getText().toString()); in testDateTimeKeyListener()
DDateTimeKeyListenerTest.java154 assertEquals(expectedText, mTextView.getText().toString()); in testDateTimeKeyListener()
159 assertEquals(expectedText, mTextView.getText().toString()); in testDateTimeKeyListener()
164 assertEquals(expectedText, mTextView.getText().toString()); in testDateTimeKeyListener()
171 assertEquals(expectedText, mTextView.getText().toString()); in testDateTimeKeyListener()
178 assertEquals(expectedText, mTextView.getText().toString()); in testDateTimeKeyListener()
185 assertEquals(expectedText, mTextView.getText().toString()); in testDateTimeKeyListener()
192 assertEquals(expectedText, mTextView.getText().toString()); in testDateTimeKeyListener()
197 assertEquals(expectedText, mTextView.getText().toString()); in testDateTimeKeyListener()
200 assertEquals(expectedText, mTextView.getText().toString()); in testDateTimeKeyListener()
DTimeKeyListenerTest.java151 assertEquals(expectedText, mTextView.getText().toString()); in testTimeKeyListener()
156 assertEquals(expectedText, mTextView.getText().toString()); in testTimeKeyListener()
161 assertEquals("12", mTextView.getText().toString()); in testTimeKeyListener()
168 assertEquals(expectedText, mTextView.getText().toString()); in testTimeKeyListener()
175 assertEquals(expectedText, mTextView.getText().toString()); in testTimeKeyListener()
182 assertEquals(expectedText, mTextView.getText().toString()); in testTimeKeyListener()
189 assertEquals(expectedText, mTextView.getText().toString()); in testTimeKeyListener()
196 assertEquals(expectedText, mTextView.getText().toString()); in testTimeKeyListener()
DDigitsKeyListenerTest.java553 assertEquals("", mTextView.getText().toString()); in testDigitsKeyListener1()
557 assertEquals("", mTextView.getText().toString()); in testDigitsKeyListener1()
561 assertEquals("1", mTextView.getText().toString()); in testDigitsKeyListener1()
565 assertEquals("1", mTextView.getText().toString()); in testDigitsKeyListener1()
569 assertEquals("12", mTextView.getText().toString()); in testDigitsKeyListener1()
588 assertEquals("", mTextView.getText().toString()); in testDigitsKeyListener2()
592 assertEquals("-", mTextView.getText().toString()); in testDigitsKeyListener2()
596 assertEquals("-1", mTextView.getText().toString()); in testDigitsKeyListener2()
600 assertEquals("-1", mTextView.getText().toString()); in testDigitsKeyListener2()
604 assertEquals("-1", mTextView.getText().toString()); in testDigitsKeyListener2()
[all …]
DNumberKeyListenerTest.java148 Selection.setSelection(mTextView.getText(), 0, 0); in testPressKey()
151 assertEquals("123456", mTextView.getText().toString()); in testPressKey()
154 assertEquals("0123456", mTextView.getText().toString()); in testPressKey()
161 assertEquals("0123456", mTextView.getText().toString()); in testPressKey()
171 assertEquals("0123456", mTextView.getText().toString()); in testPressKey()
DTextKeyListenerTest.java172 Editable content = mTextView.getText(); in testClear()
211 Selection.setSelection(mTextView.getText(), 0, 0); in testPressKey()
216 assertEquals("", mTextView.getText().toString()); in testPressKey()
220 String text = mTextView.getText().toString(); in testPressKey()
242 Selection.setSelection(mTextView.getText(), 0, 0); in testOnKeyOther()
246 assertEquals("", mTextView.getText().toString()); in testOnKeyOther()
/cts/tests/tests/widget/src/android/widget/cts/
DChronometerTest.java94 CharSequence oldText = chronometer.getText(); in testAccessBase()
98 assertNotSame(oldText, chronometer.getText()); in testAccessBase()
100 oldText = chronometer.getText(); in testAccessBase()
103 assertNotSame(oldText, chronometer.getText()); in testAccessBase()
105 oldText = chronometer.getText(); in testAccessBase()
108 assertNotSame(oldText, chronometer.getText()); in testAccessBase()
110 oldText = chronometer.getText(); in testAccessBase()
113 assertNotSame(oldText, chronometer.getText()); in testAccessBase()
126 String text = chronometer.getText().toString(); in testAccessFormat()
141 final CharSequence valueBeforeStart = chronometer.getText(); in testStartAndStop()
[all …]
DTextSwitcherTest.java89 assertEquals(viewText1, (tvChild1.getText().toString())); in testSetText()
90 assertEquals(viewText2, (tvChild2.getText().toString())); in testSetText()
95 assertEquals(viewText1, (tvChild1.getText().toString())); in testSetText()
96 assertEquals(changedText, (tvChild2.getText().toString())); in testSetText()
101 assertEquals(changedText, (tvChild1.getText().toString())); in testSetText()
102 assertEquals(changedText, (tvChild2.getText().toString())); in testSetText()
107 assertEquals(changedText, (tvChild1.getText().toString())); in testSetText()
108 assertEquals("", (tvChild2.getText().toString())); in testSetText()
129 assertEquals(viewText1, (tvChild1.getText().toString())); in testSetCurrentText()
130 assertEquals(viewText2, (tvChild2.getText().toString())); in testSetCurrentText()
[all …]
DSimpleAdapterTest.java174 assertEquals("01", ((TextView) result).getText().toString()); in testGetView()
178 assertEquals("191", ((TextView) result).getText().toString()); in testGetView()
184 assertEquals("01", ((TextView) result).getText().toString()); in testGetView()
189 assertEquals("101", ((TextView) result).getText().toString()); in testGetView()
203 assertEquals("01", ((TextView) result).getText().toString()); in testGetView()
227 ((TextView) result.findViewById(android.R.id.text1)).getText().toString()); in testSetDropDownViewResource()
232 ((TextView) result.findViewById(android.R.id.text1)).getText().toString()); in testSetDropDownViewResource()
237 assertEquals("01", ((TextView) result).getText().toString()); in testSetDropDownViewResource()
241 assertEquals("191", ((TextView) result).getText().toString()); in testSetDropDownViewResource()
249 assertEquals("01", ((TextView) result).getText().toString()); in testGetDropDownView()
[all …]
DEditTextTest.java101 assertTrue(TextUtils.equals("android", mEditText1.getText())); in testAccessText()
104 assertEquals(0, mEditText1.getText().length()); in testAccessText()
107 assertEquals(0, mEditText1.getText().length()); in testAccessText()
136 mEditText1.setSelection(mEditText1.getText().length() + 1); in testSetSelectionIndexAfterLast()
173 mEditText1.setSelection(5, mEditText1.getText().length() + 1); in testSetSelectionStartEndAfterLast()
286 assertTrue(TextUtils.equals(mEditText1.getText(), mEditText2.getText())); in testOnSaveInstanceState_savesTextStateWhenFreezesTextIsTrue()
302 assertTrue(TextUtils.equals(mEditText1.getText(), mEditText2.getText())); in testOnSaveInstanceState_savesTextStateWhenFreezesTextIfFalse()
380 Editable currentText = getText(); in setText()
402 Editable text = getText(); in setOverScrollMode()
DTabHost_TabSpecTest.java82 assertEquals(TAG_TAB2, tvTitle.getText().toString()); in testSetIndicator1()
91 assertEquals("", tvTitle.getText().toString()); in testSetIndicator1()
110 assertEquals("", tvTitle.getText().toString()); in testSetIndicator2()
122 assertEquals("", tvTitle.getText().toString()); in testSetIndicator2()
133 assertEquals("", tvTitle.getText().toString()); in testSetIndicator2()
144 assertEquals("half cube", tvTitle.getText().toString()); in testSetIndicator2()
159 currentView.getText().toString()); in testSetContent1()
180 assertEquals("tab spec 2", currentView.getText().toString()); in testSetContent2()
DSimpleExpandableListAdapterTest.java183 assertEquals("child00", ((TextView) result).getText().toString()); in testGetChildView()
187 assertEquals("child30", ((TextView) result).getText().toString()); in testGetChildView()
198 assertEquals("child00", ((TextView) result).getText().toString()); in testGetChildView()
203 ((TextView) result.findViewById(android.R.id.text1)).getText().toString()); in testGetChildView()
210 assertEquals("child20", ((TextView) result).getText().toString()); in testGetChildView()
217 assertEquals("child10", ((TextView) result).getText().toString()); in testGetChildView()
337 assertEquals("group00", ((TextView) result).getText().toString()); in testGetGroupView()
341 assertEquals("group30", ((TextView) result).getText().toString()); in testGetGroupView()
352 assertEquals("group00", ((TextView) result).getText().toString()); in testGetGroupView()
357 ((TextView) result.findViewById(android.R.id.text1)).getText().toString()); in testGetGroupView()
[all …]
DTextViewTest.java262 assertEquals(expected, tv.getText().toString()); in testAccessText()
265 assertEquals("", tv.getText().toString()); in testAccessText()
333 Selection.setSelection((Editable) mTextView.getText(), in testAccessMovementMethod()
340 assertEquals(selectionStart, Selection.getSelectionStart(mTextView.getText())); in testAccessMovementMethod()
341 assertEquals(selectionEnd, Selection.getSelectionEnd(mTextView.getText())); in testAccessMovementMethod()
345 assertEquals(selectionStart, Selection.getSelectionStart(mTextView.getText())); in testAccessMovementMethod()
346 assertEquals(selectionStart, Selection.getSelectionEnd(mTextView.getText())); in testAccessMovementMethod()
350 Selection.setSelection((Editable) mTextView.getText(), in testAccessMovementMethod()
357 assertEquals(selectionStart, Selection.getSelectionStart(mTextView.getText())); in testAccessMovementMethod()
358 assertEquals(selectionEnd, Selection.getSelectionEnd(mTextView.getText())); in testAccessMovementMethod()
[all …]
DTableRowTest.java109 ((TextView) tableRow.getVirtualChildAt(0)).getText().toString()); in testGetVirtualChildAt()
111 ((TextView) tableRow.getVirtualChildAt(1)).getText().toString()); in testGetVirtualChildAt()
113 ((TextView) tableRow.getVirtualChildAt(2)).getText().toString()); in testGetVirtualChildAt()
121 ((TextView) tableRow.getVirtualChildAt(1)).getText().toString()); in testGetVirtualChildAt()
123 ((TextView) tableRow.getVirtualChildAt(2)).getText().toString()); in testGetVirtualChildAt()
125 ((TextView) tableRow.getVirtualChildAt(3)).getText().toString()); in testGetVirtualChildAt()
127 ((TextView) tableRow.getVirtualChildAt(4)).getText().toString()); in testGetVirtualChildAt()
DSimpleCursorAdapterTest.java138 assertEquals("01", listItem.getText().toString()); in testBindView()
142 assertEquals("191", listItem.getText().toString()); in testBindView()
152 assertEquals("", listItem.getText().toString()); in testBindView()
160 assertEquals("191", listItem.getText().toString()); in testBindView()
200 assertEquals("expected", view.getText().toString()); in testSetViewText()
203 assertEquals("", view.getText().toString()); in testSetViewText()
392 assertEquals("01", listItem.getText().toString()); in testChangeCursorAndColumns()
396 assertEquals("191", listItem.getText().toString()); in testChangeCursorAndColumns()
404 assertEquals("02", listItem.getText().toString()); in testChangeCursorAndColumns()
408 assertEquals("192", listItem.getText().toString()); in testChangeCursorAndColumns()
/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/app/src/android/app/cts/
DAlertDialogTest.java84 mPositiveButton.getText()); in doTestAlertDialog()
89 mNeutralButton.getText()); in doTestAlertDialog()
94 mNegativeButton.getText()); in doTestAlertDialog()
125 mPositiveButton.getText()); in testAlertDialogAPIWithMessage()
130 mNegativeButton.getText()); in testAlertDialogAPIWithMessage()
135 mNeutralButton.getText()); in testAlertDialogAPIWithMessage()
/cts/tests/autofillservice/src/android/autofillservice/cts/
DMultipleFragmentLoginTest.java133 assertThat(editText2Node.getText().toString()).isEqualTo(""); in loginOnTwoFragments()
167 assertThat(editText1Node.getText().toString()).isEqualTo("editText1-autofilled"); in loginOnTwoFragments()
170 assertThat(editText2Node.getText().toString()).isEqualTo("editText2-manually-filled"); in loginOnTwoFragments()
181 assertThat(editText3Node.getText().toString()).isEqualTo("editText3-autofilled"); in loginOnTwoFragments()
184 assertThat(editText4Node.getText().toString()).isEqualTo("editText4-autofilled"); in loginOnTwoFragments()
187 assertThat(editText5Node.getText().toString()).isEqualTo("editText5-manually-filled"); in loginOnTwoFragments()
DCustomDescriptionTest.java193 (line2) -> assertWithMessage("Wrong text for line2").that(line2.getText()) in validTransformationWithMultipleTemplateUpdates()
240 .that(line1.getText()).isEqualTo("L1-u"); in multipleBatchUpdatesTest()
245 .that(line2.getText()).isEqualTo("L2-u"); in multipleBatchUpdatesTest()
253 .that(line3.getText()).isEqualTo("L3-p"); in multipleBatchUpdatesTest()
302 .that(line1.getText()).isEqualTo("L1-u"); in testBatchUpdatesApplyUpdateFirstThenTransformations()
304 .that(line2.getText()).isEqualTo("L2-u"); in testBatchUpdatesApplyUpdateFirstThenTransformations()
306 .that(line3.getText()).isEqualTo("L3-p"); in testBatchUpdatesApplyUpdateFirstThenTransformations()
514 assertThat(staticText.getText()).isEqualTo("YO:"); in assertSaveUiWithCustomDescriptionIsShown()
526 .that(line1.getText()).isEqualTo(expectedTextOnFirst), in assertSaveUiIsShownWithTwoLines()
528 .that(line2.getText()).isNull(), in assertSaveUiIsShownWithTwoLines()
[all …]
/cts/tests/tests/assist/src/android/assist/cts/
DAssistTestBase.java374 if (parentNode.getText() != null in traverseWebViewForText()
375 && parentNode.getText().toString().equals(Utils.WEBVIEW_HTML_GREETING)) { in traverseWebViewForText()
438 Log.i(TAG, "parent text: " + parentNode.getText()); in verifyViewProperties()
440 Log.i(TAG, "view text: " + ((TextView) parentView).getText()); in verifyViewProperties()
460 String viewString = textView.getText().toString(); in verifyViewProperties()
461 String nodeString = parentNode.getText().toString(); in verifyViewProperties()
474 for (int x = 0; x < parentNode.getText().length(); x++) { in verifyViewProperties()
476 ((TextView) parentView).getText().toString().charAt(x), in verifyViewProperties()
477 parentNode.getText().charAt(x)); in verifyViewProperties()
483 assertNull(parentNode.getText()); in verifyViewProperties()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/
DOrganizationInfoTestActivity.java59 intent.putExtra(EXTRA_ORGANIZATION_NAME, organizationNameEditText.getText().toString()); in onClick()
74 mOrganizationColor = Color.parseColor(organizationColorEditText.getText().toString()); in isOrganizationColorSet()
/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()

123456