Home
last modified time | relevance | path

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

/cts/tests/autofillservice/src/android/autofillservice/cts/unittests/
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()
/cts/tests/autofillservice/src/android/autofillservice/cts/servicebehavior/
DValidatorTest.java67 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/
DNotificationListener.kt96 val (success, _) = waitForResult(extractor = condition, validator = { it }) in wait()
104 validator: (R) -> Boolean = { it != null } in waitForResult()
109 if (validator(result)) {
/cts/apps/CtsVerifier/src/com/android/cts/verifier/net/
DMultiNetworkConnectivityTestActivity.java94 void testCompleted(MultiNetworkValidator validator); in testCompleted() argument
135 public void testCompleted(MultiNetworkValidator validator) {
136 if (validator == mMultiNetworkValidators.get(mMultiNetworkValidators.size()
145 } else if (!validator.mTestResult) {
149 if (mMultiNetworkValidators.get(i) == validator) {
234 for (MultiNetworkValidator validator : allValidators) { in createMultiNetworkValidators()
235 if (!isLowRamDevice || validator.shouldRunOnLowRamDevice()) { in createMultiNetworkValidators()
236 result.add(validator); in createMultiNetworkValidators()
466 for (MultiNetworkValidator validator : mMultiNetworkValidators) { in rerunMultinetworkTests()
467 validator.reset(); in rerunMultinetworkTests()
[all …]
/cts/tests/tests/widget/src/android/widget/cts/
DMultiAutoCompleteTextViewTest.java150 final AutoCompleteTextView.Validator validator = mock(AutoCompleteTextView.Validator.class); in testPerformValidation() local
151 when(validator.isValid(any(CharSequence.class))).thenReturn(true); in testPerformValidation()
152 when(validator.fixText(any(CharSequence.class))).thenAnswer( in testPerformValidation()
161 mMultiAutoCompleteTextView_country.setValidator(validator); in testPerformValidation()
169 when(validator.isValid(any(CharSequence.class))).thenReturn(false); in testPerformValidation()
DAutoCompleteTextViewTest.java370 final MockValidator validator = new MockValidator(); in testPopupWindow() local
371 mAutoCompleteTextView.setValidator(validator); in testPopupWindow()
751 final MockValidator validator = new MockValidator(); in testAccessValidater() local
754 mAutoCompleteTextView.setValidator(validator); in testAccessValidater()
755 assertSame(validator, mAutoCompleteTextView.getValidator()); in testAccessValidater()
/cts/tests/framework/base/windowmanager/jetpack/src/android/server/wm/jetpack/utils/
DCondition.java101 public Condition<T> setResultValidator(Predicate<T> validator) { in setResultValidator() argument
102 mResultValidator = validator; in setResultValidator()
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/
DCondition.java101 public Condition<T> setResultValidator(Predicate<T> validator) { in setResultValidator() argument
102 mResultValidator = validator; in setResultValidator()
DWindowManagerStateHelper.java419 Predicate<T> validator) {
425 .setResultValidator(validator));
/cts/tests/autofillservice/src/android/autofillservice/cts/commontests/
DFillEventHistoryCommonTestCase.java807 final Validator validator = in contextCommitted_whileFieldsFailedValidation() local
809 saveInfoBuilder.setValidator(validator); in contextCommitted_whileFieldsFailedValidation()