Home
last modified time | relevance | path

Searched refs:AutofillId (Results 1 – 20 of 20) sorted by relevance

/cts/tests/autofillservice/src/android/autofillservice/cts/
DLuhnChecksumValidatorTest.java29 import android.view.autofill.AutofillId;
41 () -> new LuhnChecksumValidator((AutofillId[]) null)); in nullId()
47 () -> new LuhnChecksumValidator(new AutofillId(1), null)); in nullAndOtherId()
52 AutofillId id = new AutofillId(1); in duplicateFields()
70 AutofillId id = new AutofillId(1); in leadingZerosAreIgnored()
85 AutofillId id = new AutofillId(1); in onlyOneChecksumValid()
99 AutofillId id1 = new AutofillId(1); in nullAutofillValuesCauseFailure()
100 AutofillId id2 = new AutofillId(2); in nullAutofillValuesCauseFailure()
101 AutofillId id3 = new AutofillId(3); in nullAutofillValuesCauseFailure()
116 AutofillId id = new AutofillId(1); in nonDigits()
[all …]
DCharSequenceTransformationTest.java32 import android.view.autofill.AutofillId;
59 () -> new CharSequenceTransformation.Builder(new AutofillId(1), null, "")); in testNullRegexBuilder()
65 () -> new CharSequenceTransformation.Builder(new AutofillId(1), Pattern.compile(""), in testNullSubstBuilder()
71 AutofillId id1 = new AutofillId(1); in testBadSubst()
72 AutofillId id2 = new AutofillId(2); in testBadSubst()
73 AutofillId id3 = new AutofillId(3); in testBadSubst()
74 AutofillId id4 = new AutofillId(4); in testBadSubst()
105 AutofillId id1 = new AutofillId(1); in testUnknownField()
106 AutofillId id2 = new AutofillId(2); in testUnknownField()
107 AutofillId unknownId = new AutofillId(42); in testUnknownField()
[all …]
DSaveInfoTest.java27 import android.view.autofill.AutofillId;
36 private final AutofillId mId = new AutofillId(42);
48 () -> new SaveInfo.Builder(SaveInfo.SAVE_DATA_TYPE_GENERIC, new AutofillId[] {})); in testRequiredIdsBuilder_empty()
55 new AutofillId[] { null })); in testRequiredIdsBuilder_nullEntry()
67 new AutofillId[] { mId }); in testSetOptionalIds_null()
74 new AutofillId[] { mId }); in testSetOptional_empty()
76 () -> builder.setOptionalIds(new AutofillId[] {})); in testSetOptional_empty()
82 new AutofillId[] { mId }); in testSetOptional_nullEntry()
84 () -> builder.setOptionalIds(new AutofillId[] { null })); in testSetOptional_nullEntry()
90 new AutofillId[] { mId }); in testAddSanitizer_illegalArgs()
[all …]
DImageTransformationTest.java31 import android.view.autofill.AutofillId;
61 () -> new ImageTransformation.Builder(new AutofillId(1), null, 1)); in testNullRegexBuilder()
68 () -> new ImageTransformation.Builder(new AutofillId(1), Pattern.compile(""), 0)); in testNullSubstBuilder()
74 AutofillId unknownId = new AutofillId(42); in fieldCannotBeFound()
94 AutofillId id = new AutofillId(1); in theOneOptionsMatches()
111 AutofillId id = new AutofillId(1); in theOneOptionsMatchesWithContentDescription()
130 AutofillId id = new AutofillId(1); in noOptionsMatches()
148 AutofillId id = new AutofillId(1); in multipleOptionsOneMatches()
166 AutofillId id = new AutofillId(1); in multipleOptionsOneMatchesWithContentDescription()
186 AutofillId id = new AutofillId(1); in twoOptionsMatch()
[all …]
DRegexValidatorTest.java29 import android.view.autofill.AutofillId;
48 () -> new RegexValidator(new AutofillId(1), null)); in nullRegexConstructor()
59 AutofillId unknownId = new AutofillId(42); in unknownField()
71 AutofillId creditCardFieldId = new AutofillId(1); in singleFieldValid()
86 AutofillId id = new AutofillId(1); in singleFieldInvalid()
DCannedFillResponse.java35 import android.view.autofill.AutofillId;
66 private final ArrayList<Pair<Sanitizer, AutofillId[]>> mSanitizers;
72 private final AutofillId[] mRequiredSavableAutofillIds;
86 private final AutofillId mSaveTriggerId;
88 private final AutofillId[] mFieldClassificationIds;
184 for (Pair<Sanitizer, AutofillId[]> sanitizer : mSanitizers) { in asFillResponse()
205 final AutofillId[] fieldIds = new AutofillId[length]; in asFillResponse()
207 fieldIds[i] = new AutofillId(i); in asFillResponse()
259 private final ArrayList<Pair<Sanitizer, AutofillId[]>> mSanitizers = new ArrayList<>();
265 private AutofillId[] mRequiredSavableAutofillIds;
[all …]
DFillResponseTest.java33 import android.view.autofill.AutofillId;
46 private final AutofillId mAutofillId = new AutofillId(42);
48 private final AutofillId[] mIds = new AutofillId[] { mAutofillId };
67 () -> mBuilder.setAuthentication(new AutofillId[] {}, mIntentSender, in testBuilder_setAuthentication_invalid()
71 () -> mBuilder.setAuthentication(new AutofillId[] {null}, mIntentSender, in testBuilder_setAuthentication_invalid()
167 () -> mBuilder.setFieldClassificationIds((AutofillId) null)); in testBuilder_setFieldClassificationIds_invalid()
169 () -> mBuilder.setFieldClassificationIds((AutofillId[]) null)); in testBuilder_setFieldClassificationIds_invalid()
170 final AutofillId[] oneTooMany = in testBuilder_setFieldClassificationIds_invalid()
171 new AutofillId[UserData.getMaxFieldClassificationIdsSize() + 1]; in testBuilder_setFieldClassificationIds_invalid()
173 oneTooMany[i] = new AutofillId(i); in testBuilder_setFieldClassificationIds_invalid()
DFieldsClassificationTest.java36 import android.view.autofill.AutofillId;
175 final AutofillId fieldId = field.getAutofillId(); in simpleHitTest()
217 final AutofillId fieldId = field.getAutofillId(); in manyUserData_oneDetectableField()
258 final AutofillId fieldId1 = field1.getAutofillId(); in testHit_oneUserData_manyDetectableFields()
260 final AutofillId fieldId2 = field2.getAutofillId(); in testHit_oneUserData_manyDetectableFields()
300 final AutofillId fieldId1 = field1.getAutofillId(); in testHit_manyUserData_manyDetectableFields()
302 final AutofillId fieldId2 = field2.getAutofillId(); in testHit_manyUserData_manyDetectableFields()
304 final AutofillId fieldId3 = field3.getAutofillId(); in testHit_manyUserData_manyDetectableFields()
306 final AutofillId fieldId4 = field4.getAutofillId(); in testHit_manyUserData_manyDetectableFields()
355 final AutofillId fieldId1 = field1.getAutofillId(); in testHit_manyUserDataPerField_manyDetectableFields()
[all …]
DMyAutofillId.java21 import android.view.autofill.AutofillId;
25 private final AutofillId mId;
27 public MyAutofillId(AutofillId id) { in MyAutofillId()
DMutableAutofillIdTest.java38 import android.view.autofill.AutofillId;
71 final AutofillId oldIdField1 = field1.getAutofillId(); in testDatasetPickerIsNotShownAfterViewIsSwappedOut()
73 final AutofillId idField2 = field2.getAutofillId(); in testDatasetPickerIsNotShownAfterViewIsSwappedOut()
96 final AutofillId newIdField1 = mActivity.getAutofillManager().getNextAutofillId(); in testDatasetPickerIsNotShownAfterViewIsSwappedOut()
108 () -> field1.setAutofillId(new AutofillId(newIdField1, 42))); in testDatasetPickerIsNotShownAfterViewIsSwappedOut()
149 final AutofillId oldIdField1 = field1.getAutofillId(); in testViewGoneDuringAutofillCanStillBeFilled()
151 final AutofillId idField2 = field2.getAutofillId(); in testViewGoneDuringAutofillCanStillBeFilled()
174 final AutofillId newIdField1 = mActivity.getAutofillManager().getNextAutofillId(); in testViewGoneDuringAutofillCanStillBeFilled()
215 final AutofillId oldIdField1 = field1.getAutofillId(); in saveWhenIdChanged()
217 final AutofillId idField2 = field2.getAutofillId(); in saveWhenIdChanged()
[all …]
DDuplicateIdActivityTest.java29 import android.view.autofill.AutofillId;
97 AutofillId id1 = view1.getAutofillId(); in testDoNotRestoreDuplicateAutofillIds()
98 AutofillId id2 = view2.getAutofillId(); in testDoNotRestoreDuplicateAutofillIds()
128 AutofillId recreatedId1 = views[0].getAutofillId(); in testDoNotRestoreDuplicateAutofillIds()
129 AutofillId recreatedId2 = views[1].getAutofillId(); in testDoNotRestoreDuplicateAutofillIds()
DValidatorTest.java33 import android.view.autofill.AutofillId;
68 final AutofillId usernameId = mActivity.getUsername().getAutofillId(); in integrationTest()
100 private void assertValidator(InternalValidator validator, AutofillId id, String text, in assertValidator()
DDateTransformationTest.java32 import android.view.autofill.AutofillId;
48 private final AutofillId mFieldId = new AutofillId(42);
DDatasetTest.java27 import android.view.autofill.AutofillId;
40 private final AutofillId mId = new AutofillId(42);
DCustomDescriptionDateTest.java33 import android.view.autofill.AutofillId;
61 final AutofillId id = mActivity.getDatePicker().getAutofillId(); in testCustomSave()
113 final AutofillId id = mActivity.getDatePicker().getAutofillId(); in sanitizationTest()
DSimpleSaveActivityTest.java54 import android.view.autofill.AutofillId;
312 final AutofillId id = new AutofillId(42); in testSaveWithParcelableOnClientState()
352 final AutofillId expectedId = new AutofillId(42); in assertMyClientState()
353 final AutofillId actualId = data.getParcelable("id"); in assertMyClientState()
884 final AutofillId inputId = mActivity.mInput.getAutofillId(); in testSanitizeOnSaveWhenAppChangeValues()
885 final AutofillId passwordId = mActivity.mPassword.getAutofillId(); in testSanitizeOnSaveWhenAppChangeValues()
921 final AutofillId inputId = mActivity.mInput.getAutofillId(); in testSanitizeOnSaveNoChange()
922 final AutofillId passwordId = mActivity.mPassword.getAutofillId(); in testSanitizeOnSaveNoChange()
963 final AutofillId inputId = mActivity.mInput.getAutofillId(); in testDontSaveWhenSanitizedValueForRequiredFieldDidntChange()
964 final AutofillId passwordId = mActivity.mPassword.getAutofillId(); in testDontSaveWhenSanitizedValueForRequiredFieldDidntChange()
[all …]
DFillEventHistoryTest.java52 import android.view.autofill.AutofillId;
652 final AutofillId passwordId = mActivity.getPassword().getAutofillId(); in testContextCommitted_idlessDatasetSelected_datasetWithIdIgnored()
653 final Map<AutofillId, String> changedFields = event2.getChangedFields(); in testContextCommitted_idlessDatasetSelected_datasetWithIdIgnored()
713 final AutofillId passwordId = mActivity.getPassword().getAutofillId(); in testContextCommitted_idlessDatasetIgnored_datasetWithIdSelected()
714 final Map<AutofillId, String> changedFields = event2.getChangedFields(); in testContextCommitted_idlessDatasetIgnored_datasetWithIdSelected()
833 final Map<AutofillId, String> changedFields = event2.getChangedFields(); in testContextCommitted_oneDatasetSelected()
834 final AutofillId usernameId = mActivity.getUsername().getAutofillId(); in testContextCommitted_oneDatasetSelected()
835 final AutofillId passwordId = mActivity.getPassword().getAutofillId(); in testContextCommitted_oneDatasetSelected()
914 final Map<AutofillId, String> changedFields = event3.getChangedFields(); in testContextCommitted_multipleDatasetsSelected()
915 final AutofillId passwordId = mActivity.getPassword().getAutofillId(); in testContextCommitted_multipleDatasetsSelected()
[all …]
DHelper.java56 import android.view.autofill.AutofillId;
404 static ViewNode findNodeByAutofillId(AssistStructure structure, AutofillId id) { in findNodeByAutofillId()
494 final AutofillId id = node.getAutofillId(); in assertText()
509 final AutofillId id = node.getAutofillId(); in assertTextValue()
522 final AutofillId id = node.getAutofillId(); in assertListValue()
535 final AutofillId id = node.getAutofillId(); in assertToggleValue()
692 static AutofillId[] getAutofillIds(Function<String, ViewNode> nodeResolver, in getAutofillIds()
696 final AutofillId[] requiredIds = new AutofillId[resourceIds.length]; in getAutofillIds()
964 final Map<AutofillId, FieldClassification> detectedFields = event.getFieldsClassification(); in assertFillEvent()
970 for (Entry<AutofillId, FieldClassification> entry : detectedFields.entrySet()) { in assertFillEvent()
[all …]
DCustomDescriptionTest.java37 import android.view.autofill.AutofillId;
70 @NonNull BiFunction<AutofillId, AutofillId, CustomDescription> descriptionBuilder, in testCustomDescription() argument
74 final AutofillId usernameId = mActivity.getUsername().getAutofillId(); in testCustomDescription()
75 final AutofillId passwordId = mActivity.getPassword().getAutofillId(); in testCustomDescription()
443 final AutofillId usernameId = mActivity.getUsername().getAutofillId(); in multipleTransformationsForSameFieldTest()
DVirtualContainerView.java48 import android.view.autofill.AutofillId;
70 final AutofillId mLoginButtonId;
121 mLoginButtonId = new AutofillId(getAutofillId(), LOGIN_BUTTON_VIRTUAL_ID); in VirtualContainerView()