Home
last modified time | relevance | path

Searched refs:validator (Results 1 – 6 of 6) sorted by relevance

/cts/tests/autofillservice/src/android/autofillservice/cts/
DLuhnChecksumValidatorTest.java56 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 …]
DRegexValidatorTest.java62 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()
DValidatorTest.java65 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/
DMultiAutoCompleteTextViewTest.java141 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()
DAutoCompleteTextViewTest.java363 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/
DMultiNetworkConnectivityTestActivity.java97 void testCompleted(MultiNetworkValidator validator); in testCompleted() argument
138 public void testCompleted(MultiNetworkValidator validator) {
139 if (validator == mMultiNetworkValidators[mMultiNetworkValidators.length
148 } else if (!validator.mTestResult) {
152 if (mMultiNetworkValidators[i] == validator) {
401 for (MultiNetworkValidator validator : mMultiNetworkValidators) { in rerunMultinetworkTests()
402 validator.reset(); in rerunMultinetworkTests()
522 TestConnectivityState(MultiNetworkValidator validator) { in TestConnectivityState() argument
523 mMultiNetworkValidator = validator; in TestConnectivityState()