/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/ |
D | AccessibilityTextTraversalTest.java | 521 && 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/ |
D | QwertyKeyListenerTest.java | 73 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 …]
|
D | MultiTapKeyListenerTest.java | 116 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 …]
|
D | DateKeyListenerTest.java | 150 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()
|
D | DateTimeKeyListenerTest.java | 154 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()
|
D | TimeKeyListenerTest.java | 151 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()
|
D | DigitsKeyListenerTest.java | 553 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 …]
|
D | NumberKeyListenerTest.java | 148 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()
|
D | TextKeyListenerTest.java | 172 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/ |
D | ChronometerTest.java | 94 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 …]
|
D | TextSwitcherTest.java | 89 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 …]
|
D | SimpleAdapterTest.java | 174 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 …]
|
D | EditTextTest.java | 101 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()
|
D | TabHost_TabSpecTest.java | 82 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()
|
D | SimpleExpandableListAdapterTest.java | 183 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 …]
|
D | TextViewTest.java | 262 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 …]
|
D | TableRowTest.java | 109 ((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()
|
D | SimpleCursorAdapterTest.java | 138 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/ |
D | GpsTestActivity.java | 89 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/ |
D | AlertDialogTest.java | 84 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/ |
D | MultipleFragmentLoginTest.java | 133 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()
|
D | CustomDescriptionTest.java | 193 (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/ |
D | AssistTestBase.java | 374 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/ |
D | OrganizationInfoTestActivity.java | 59 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/ |
D | AccessibilityRecordTest.java | 85 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()
|