Searched refs:validator (Results 1 – 6 of 6) sorted by relevance
/cts/tests/autofillservice/src/android/autofillservice/cts/ |
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()
|
D | ValidatorTest.java | 65 final LuhnChecksumValidator validator = new LuhnChecksumValidator(usernameId); in integrationTest() 67 assertValidator(validator, usernameId, username, willSaveBeShown); in integrationTest() 68 builder.setValidator(validator); in integrationTest() 91 private void assertValidator(InternalValidator validator, AutofillId id, String text, in assertValidator() argument 95 assertThat(validator.isValid(valueFinder)).isEqualTo(valid); in assertValidator()
|
/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 …]
|