/cts/tests/autofillservice/src/android/autofillservice/cts/unittests/ |
D | LuhnChecksumValidatorTest.java | 56 LuhnChecksumValidator validator = new LuhnChecksumValidator(id, id); in duplicateFields() local 62 assertThat(validator.isValid(finder)).isTrue(); in duplicateFields() 66 assertThat(validator.isValid(finder)).isFalse(); in duplicateFields() 73 LuhnChecksumValidator validator = new LuhnChecksumValidator(id); in leadingZerosAreIgnored() local 78 assertThat(validator.isValid(finder)).isTrue(); in leadingZerosAreIgnored() 81 assertThat(validator.isValid(finder)).isTrue(); in leadingZerosAreIgnored() 88 LuhnChecksumValidator validator = new LuhnChecksumValidator(id); in onlyOneChecksumValid() local 94 assertThat(validator.isValid(finder)).isEqualTo(i == 3); in onlyOneChecksumValid() 104 LuhnChecksumValidator validator = new LuhnChecksumValidator(id1, id2, id3); in nullAutofillValuesCauseFailure() local 112 assertThat(validator.isValid(finder)).isFalse(); in nullAutofillValuesCauseFailure() [all …]
|
D | RegexValidatorTest.java | 62 RegexValidator validator = new RegexValidator(unknownId, Pattern.compile(".*")); in unknownField() local 67 assertThat(validator.isValid(finder)).isFalse(); in unknownField() 73 RegexValidator validator = new RegexValidator(creditCardFieldId, in singleFieldValid() local 79 assertThat(validator.isValid(finder)).isTrue(); in singleFieldValid() 82 assertThat(validator.isValid(finder)).isFalse(); in singleFieldValid() 88 RegexValidator validator = new RegexValidator(id, Pattern.compile("\\d*")); in singleFieldInvalid() local 95 assertThat(validator.isValid(finder)).isFalse(); in singleFieldInvalid()
|
/cts/tests/autofillservice/src/android/autofillservice/cts/servicebehavior/ |
D | ValidatorTest.java | 67 final LuhnChecksumValidator validator = new LuhnChecksumValidator(usernameId); in integrationTest() 69 assertValidator(validator, usernameId, username, willSaveBeShown); in integrationTest() 70 builder.setValidator(validator); in integrationTest() 93 private void assertValidator(InternalValidator validator, AutofillId id, String text, in assertValidator() argument 97 assertThat(validator.isValid(valueFinder)).isEqualTo(valid); in assertValidator()
|
/cts/tests/tests/systemui/src/android/systemui/cts/ |
D | NotificationListener.kt | 96 val (success, _) = waitForResult(extractor = condition, validator = { it }) in wait() 104 validator: (R) -> Boolean = { it != null } in waitForResult() 109 if (validator(result)) {
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | MultiAutoCompleteTextViewTest.java | 141 final AutoCompleteTextView.Validator validator = mock(AutoCompleteTextView.Validator.class); in testPerformValidation() local 142 when(validator.isValid(any(CharSequence.class))).thenReturn(true); in testPerformValidation() 143 when(validator.fixText(any(CharSequence.class))).thenAnswer( in testPerformValidation() 152 mMultiAutoCompleteTextView_country.setValidator(validator); in testPerformValidation() 160 when(validator.isValid(any(CharSequence.class))).thenReturn(false); in testPerformValidation()
|
D | AutoCompleteTextViewTest.java | 363 final MockValidator validator = new MockValidator(); in testPopupWindow() local 364 mAutoCompleteTextView.setValidator(validator); in testPopupWindow() 744 final MockValidator validator = new MockValidator(); in testAccessValidater() local 747 mAutoCompleteTextView.setValidator(validator); in testAccessValidater() 748 assertSame(validator, mAutoCompleteTextView.getValidator()); in testAccessValidater()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/net/ |
D | MultiNetworkConnectivityTestActivity.java | 99 void testCompleted(MultiNetworkValidator validator); in testCompleted() argument 140 public void testCompleted(MultiNetworkValidator validator) { 141 if (validator == mMultiNetworkValidators.get(mMultiNetworkValidators.size() 150 } else if (!validator.mTestResult) { 154 if (mMultiNetworkValidators.get(i) == validator) { 240 for (MultiNetworkValidator validator : allValidators) { in createMultiNetworkValidators() 241 if (!isLowRamDevice || validator.shouldRunOnLowRamDevice()) { in createMultiNetworkValidators() 242 result.add(validator); in createMultiNetworkValidators() 461 for (MultiNetworkValidator validator : mMultiNetworkValidators) { in rerunMultinetworkTests() 462 validator.reset(); in rerunMultinetworkTests() [all …]
|
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/ |
D | Condition.java | 101 public Condition<T> setResultValidator(Predicate<T> validator) { in setResultValidator() argument 102 mResultValidator = validator; in setResultValidator()
|
D | WindowManagerStateHelper.java | 371 Predicate<T> validator) { in waitForResult() argument 377 .setResultValidator(validator)); in waitForResult() argument
|
/cts/tests/autofillservice/src/android/autofillservice/cts/commontests/ |
D | FillEventHistoryCommonTestCase.java | 677 final Validator validator = in testContextCommitted_noSaveUi_whileFieldsFailedValidation() local 679 saveInfoBuilder.setValidator(validator); in testContextCommitted_noSaveUi_whileFieldsFailedValidation()
|