/cts/tests/tests/text/src/android/text/method/cts/ |
D | DateTimeKeyListenerTest.java | 154 String expectedText = ""; in testDateTimeKeyListener() local 155 assertEquals(expectedText, mTextView.getText().toString()); in testDateTimeKeyListener() 159 expectedText += "1"; in testDateTimeKeyListener() 160 assertEquals(expectedText, mTextView.getText().toString()); in testDateTimeKeyListener() 164 expectedText += "2"; in testDateTimeKeyListener() 165 assertEquals(expectedText, mTextView.getText().toString()); in testDateTimeKeyListener() 170 expectedText += "a"; in testDateTimeKeyListener() 172 assertEquals(expectedText, mTextView.getText().toString()); in testDateTimeKeyListener() 177 expectedText += "p"; in testDateTimeKeyListener() 179 assertEquals(expectedText, mTextView.getText().toString()); in testDateTimeKeyListener() [all …]
|
D | TimeKeyListenerTest.java | 149 String expectedText = ""; in testTimeKeyListener() local 152 assertEquals(expectedText, mTextView.getText().toString()); in testTimeKeyListener() 156 expectedText += "1"; in testTimeKeyListener() 157 assertEquals(expectedText, mTextView.getText().toString()); in testTimeKeyListener() 161 expectedText += "2"; in testTimeKeyListener() 167 expectedText += "a"; in testTimeKeyListener() 169 assertEquals(expectedText, mTextView.getText().toString()); in testTimeKeyListener() 174 expectedText += "p"; in testTimeKeyListener() 176 assertEquals(expectedText, mTextView.getText().toString()); in testTimeKeyListener() 181 expectedText += "m"; in testTimeKeyListener() [all …]
|
/cts/tests/contentcaptureservice/src/android/contentcaptureservice/cts/ |
D | EventsAssertor.java | 208 @NonNull AutofillId parentId, int childId, String expectedText) { in assertVirtualViewAppeared() argument 210 assertNextEvent((event) -> assertVirtualViewEvent(event, expectedId, expectedText), in assertVirtualViewAppeared() 228 @NonNull AutofillId expectedId, @Nullable String expectedText) { in assertVirtualViewEvent() argument 233 if (expectedText != null) { in assertVirtualViewEvent() 235 .that(node.getText().toString()).isEqualTo(expectedText); in assertVirtualViewEvent() 290 AutofillId expectedParentId, String expectedText) { in assertViewEvent() argument 291 assertEvent(event, expectedView, expectedParentId, expectedText); in assertViewEvent() 309 private String assertEventText(@NonNull ContentCaptureEvent event, String expectedText) { in assertEventText() argument 315 if (!TextUtils.equals(node.getText(), expectedText)) { in assertEventText() 317 expectedText, node.getText(), event); in assertEventText() [all …]
|
D | Assertions.java | 192 @Nullable String expectedText) { in assertViewWithUnknownParentAppeared() argument 201 if (expectedText != null) { in assertViewWithUnknownParentAppeared() 203 .isEqualTo(expectedText); in assertViewWithUnknownParentAppeared() 225 @Nullable String expectedText) { in assertViewAppeared() argument 227 expectedText); in assertViewAppeared() 432 int childId, @Nullable String expectedText) { in assertVirtualViewAppeared() argument 439 if (expectedText != null) { in assertVirtualViewAppeared() 441 .that(node.getText().toString()).isEqualTo(expectedText); in assertVirtualViewAppeared() 487 @NonNull AutofillId expectedId, @NonNull String expectedText) { in assertViewTextChanged() argument 492 .isEqualTo(expectedText); in assertViewTextChanged()
|
/cts/tests/inputmethod/src/android/view/inputmethod/cts/ |
D | EditTextImeSupportTest.java | 155 @NonNull String expectedText, int expectedSelectionStart, int expectedSelectionEnd) { in assertInitialSurroundingText() argument 161 expectedText.subSequence(0, expectedSelectionStart); in assertInitialSurroundingText() 163 expectedText.subSequence(expectedSelectionStart, expectedSelectionEnd); in assertInitialSurroundingText() 165 expectedText.subSequence(expectedSelectionEnd, expectedText.length()); in assertInitialSurroundingText() 166 final int expectedTextLength = expectedText.length(); in assertInitialSurroundingText() 178 assertEqualsWithIgnoringSpans(expectedText, initialSurroundingText.getText()); in assertInitialSurroundingText()
|
D | InputMethodServiceTest.java | 966 public void verifyText(String expectedText, int selStart, int selEnd) throws Exception { 971 expectedText.equals(editText.getText().toString()) 977 waitOnMainUntil(()-> expectedText.equals(inputTextField.getText()), mTimeout);
|
/cts/tests/accessibility/src/android/view/accessibility/cts/ |
D | AccessibilityRecordTest.java | 193 static void assertEqualsText(List<CharSequence> expectedText, in assertEqualsText() argument 197 TestCase.assertEquals(message, expectedText.size(), receivedText.size()); in assertEqualsText() 199 Iterator<CharSequence> expectedTextIterator = expectedText.iterator(); in assertEqualsText() 202 for (int i = 0; i < expectedText.size(); i++) { in assertEqualsText()
|
/cts/tests/tests/theme/src/android/theme/cts/ |
D | ThemeRebaseTest.java | 107 private void assertConfigText(String expectedText) { in assertConfigText() argument 109 assertEquals(expectedText, mOutValue.string); in assertConfigText()
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | TextViewReceiveContentTest.java | 303 String expectedText = "xONE\nTWO\nTHREEz"; in testDefaultReceiver_onReceive_multipleItemsInClipData() local 305 assertTextAndCursorPosition(expectedText, 14); in testDefaultReceiver_onReceive_multipleItemsInClipData() 311 assertTextAndCursorPosition(expectedText, 14); in testDefaultReceiver_onReceive_multipleItemsInClipData() 786 private void assertTextAndCursorPosition(String expectedText, int cursorPosition) { in assertTextAndCursorPosition() argument 787 assertTextAndSelection(expectedText, cursorPosition, cursorPosition); in assertTextAndCursorPosition() 790 private void assertTextAndSelection(String expectedText, int start, int end) { in assertTextAndSelection() argument 791 assertThat(mTextView.getText().toString()).isEqualTo(expectedText); in assertTextAndSelection()
|
/cts/tests/autofillservice/src/android/autofillservice/cts/testcore/ |
D | UiBot.java | 873 final String expectedText = getAutofillContextualMenuTitle(); in getAutofillMenuOption() local 880 if (menuName.equalsIgnoreCase(expectedText)) { in getAutofillMenuOption() 903 if (menuName.equalsIgnoreCase(expectedText)) { in getAutofillMenuOption() 909 throw new RetryableException("no '%s' on '%s'", expectedText, menuNames); in getAutofillMenuOption() 1000 public UiObject2 assertChildText(UiObject2 parent, String resourceId, String expectedText) in assertChildText() argument 1005 .isEqualTo(expectedText); in assertChildText()
|
D | Helper.java | 618 public static ViewNode assertTextValue(ViewNode node, String expectedText) { in assertTextValue() argument 624 .isEqualTo(expectedText); in assertTextValue()
|
/cts/tests/autofillservice/src/android/autofillservice/cts/dropdown/ |
D | CheckoutActivityTest.java | 444 private void autofillEditText(AutofillValue value, String expectedText, 460 expectedText); 467 assertThat(editText.getText().toString()).isEqualTo(expectedText);
|
/cts/tests/autofillservice/src/android/autofillservice/cts/saveui/ |
D | CustomDescriptionTest.java | 568 final String expectedText = matchFirst ? "polo" : "POLO"; in multipleTransformationsForSameFieldTest() local 569 assertSaveUiIsShownWithTwoLines(expectedText); in multipleTransformationsForSameFieldTest()
|