Home
last modified time | relevance | path

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

123

/cts/tests/autofillservice/src/android/autofillservice/cts/unittests/
DCharSequenceTransformationTest.java31 import android.view.autofill.AutofillId;
60 () -> new CharSequenceTransformation.Builder(new AutofillId(1), null, "")); in testNullRegexBuilder()
66 () -> new CharSequenceTransformation.Builder(new AutofillId(1), Pattern.compile(""), in testNullSubstBuilder()
72 AutofillId id1 = new AutofillId(1); in testBadSubst()
73 AutofillId id2 = new AutofillId(2); in testBadSubst()
74 AutofillId id3 = new AutofillId(3); in testBadSubst()
75 AutofillId id4 = new AutofillId(4); in testBadSubst()
106 AutofillId id1 = new AutofillId(1); in testUnknownField()
107 AutofillId id2 = new AutofillId(2); in testUnknownField()
108 AutofillId unknownId = new AutofillId(42); in testUnknownField()
[all …]
DLuhnChecksumValidatorTest.java28 import android.view.autofill.AutofillId;
42 () -> new LuhnChecksumValidator((AutofillId[]) null)); in nullId()
48 () -> new LuhnChecksumValidator(new AutofillId(1), null)); in nullAndOtherId()
53 AutofillId id = new AutofillId(1); in duplicateFields()
71 AutofillId id = new AutofillId(1); in leadingZerosAreIgnored()
86 AutofillId id = new AutofillId(1); in onlyOneChecksumValid()
100 AutofillId id1 = new AutofillId(1); in nullAutofillValuesCauseFailure()
101 AutofillId id2 = new AutofillId(2); in nullAutofillValuesCauseFailure()
102 AutofillId id3 = new AutofillId(3); in nullAutofillValuesCauseFailure()
117 AutofillId id = new AutofillId(1); in nonDigits()
[all …]
DImageTransformationTest.java30 import android.view.autofill.AutofillId;
62 () -> new ImageTransformation.Builder(new AutofillId(1), null, 1)); in testNullRegexBuilder()
69 () -> new ImageTransformation.Builder(new AutofillId(1), Pattern.compile(""), 0)); in testNullSubstBuilder()
75 AutofillId unknownId = new AutofillId(42); in fieldCannotBeFound()
95 AutofillId id = new AutofillId(1); in theOneOptionsMatches()
112 AutofillId id = new AutofillId(1); in theOneOptionsMatchesWithContentDescription()
131 AutofillId id = new AutofillId(1); in noOptionsMatches()
149 AutofillId id = new AutofillId(1); in multipleOptionsOneMatches()
167 AutofillId id = new AutofillId(1); in multipleOptionsOneMatchesWithContentDescription()
187 AutofillId id = new AutofillId(1); in twoOptionsMatch()
[all …]
DSaveInfoTest.java32 import android.view.autofill.AutofillId;
43 private final AutofillId mId = new AutofillId(42);
44 private final AutofillId[] mIdArray = { mId };
56 () -> new SaveInfo.Builder(SAVE_DATA_TYPE_GENERIC, new AutofillId[] {})); in testRequiredIdsBuilder_empty()
63 new AutofillId[] { null })); in testRequiredIdsBuilder_nullEntry()
84 () -> builder.setOptionalIds(new AutofillId[] {})); in testSetOptional_empty()
92 () -> builder.setOptionalIds(new AutofillId[] { null })); in testSetOptional_nullEntry()
107 () -> builder.addSanitizer(mSanitizer, (AutofillId[]) null)); in testAddSanitizer_illegalArgs()
110 () -> builder.addSanitizer(mSanitizer, new AutofillId[] {})); in testAddSanitizer_illegalArgs()
113 () -> builder.addSanitizer(mSanitizer, new AutofillId[] {mId, mId})); in testAddSanitizer_illegalArgs()
DRegexValidatorTest.java28 import android.view.autofill.AutofillId;
49 () -> new RegexValidator(new AutofillId(1), null)); in nullRegexConstructor()
60 AutofillId unknownId = new AutofillId(42); in unknownField()
72 AutofillId creditCardFieldId = new AutofillId(1); in singleFieldValid()
87 AutofillId id = new AutofillId(1); in singleFieldInvalid()
DFillResponseTest.java33 import android.view.autofill.AutofillId;
46 private final AutofillId mAutofillId = new AutofillId(42);
48 private final AutofillId[] mIds = new AutofillId[] { mAutofillId };
68 () -> mBuilder.setAuthentication(new AutofillId[] {}, mIntentSender, in testBuilder_setAuthentication_invalid()
72 () -> mBuilder.setAuthentication(new AutofillId[] {null}, mIntentSender, in testBuilder_setAuthentication_invalid()
181 () -> mBuilder.setFieldClassificationIds((AutofillId) null)); in testBuilder_setFieldClassificationIds_invalid()
183 () -> mBuilder.setFieldClassificationIds((AutofillId[]) null)); in testBuilder_setFieldClassificationIds_invalid()
184 final AutofillId[] oneTooMany = in testBuilder_setFieldClassificationIds_invalid()
185 new AutofillId[UserData.getMaxFieldClassificationIdsSize() + 1]; in testBuilder_setFieldClassificationIds_invalid()
187 oneTooMany[i] = new AutofillId(i); in testBuilder_setFieldClassificationIds_invalid()
/cts/tests/translation/src/android/translation/cts/
DVirtualContainerViewActivity.java22 import android.view.autofill.AutofillId;
42 List<AutofillId> getViewsForTranslation() { in getViewsForTranslation()
43 AutofillId autofillId = mVirtualContainerView.getAutofillId(); in getViewsForTranslation()
44 final List<AutofillId> views = new ArrayList<>(); in getViewsForTranslation()
46 AutofillId virtualChild1 = new AutofillId(autofillId, 12345L, 0); in getViewsForTranslation()
47 AutofillId virtualChild2 = new AutofillId(autofillId, 12346L, 0); in getViewsForTranslation()
DSimpleActivity.java21 import android.view.autofill.AutofillId;
46 List<AutofillId> getViewsForTranslation() { in getViewsForTranslation()
47 final List<AutofillId> views = new ArrayList<>(); in getViewsForTranslation()
DUiTranslationManagerTest.java57 import android.view.autofill.AutofillId;
181 final Pair<List<AutofillId>, ContentCaptureContext> result = in testUiTranslation()
185 final List<AutofillId> views = result.first; in testUiTranslation()
244 final Pair<List<AutofillId>, ContentCaptureContext> result = in testUiTranslation_CustomViewTranslationCallback()
246 final List<AutofillId> views = result.first; in testUiTranslation_CustomViewTranslationCallback()
291 final Pair<List<AutofillId>, ContentCaptureContext> result = in testUiTranslation_ViewTranslationCallback_paddingText()
293 final List<AutofillId> views = result.first; in testUiTranslation_ViewTranslationCallback_paddingText()
322 final Pair<List<AutofillId>, ContentCaptureContext> result = in testUiTranslation_hasContentDescription()
324 final List<AutofillId> views = result.first; in testUiTranslation_hasContentDescription()
374 final Pair<List<AutofillId>, ContentCaptureContext> result = in testIMEUiTranslationStateCallback()
[all …]
DCustomTextViewActivity.java23 import android.view.autofill.AutofillId;
51 List<AutofillId> getViewsForTranslation() { in getViewsForTranslation()
52 final List<AutofillId> views = new ArrayList<>(); in getViewsForTranslation()
/cts/tests/contentcaptureservice/src/android/contentcaptureservice/cts/unit/
DViewNodeTest.java30 import android.view.autofill.AutofillId;
57 AutofillId initialId = new AutofillId(42); in testAutofillIdMethods_orphanView()
66 AutofillId newId = new AutofillId(108); in testAutofillIdMethods_orphanView()
71 structure.setAutofillId(new AutofillId(66), 6); in testAutofillIdMethods_orphanView()
72 assertThat(node.getAutofillId()).isEqualTo(new AutofillId(66, 6)); in testAutofillIdMethods_orphanView()
73 assertThat(node.getParentAutofillId()).isEqualTo(new AutofillId(66)); in testAutofillIdMethods_orphanView()
79 AutofillId initialParentId = new AutofillId(48); in testAutofillIdMethods_parentedView()
83 AutofillId initialChildId = new AutofillId(42); in testAutofillIdMethods_parentedView()
94 AutofillId newChildId = new AutofillId(108); in testAutofillIdMethods_parentedView()
99 AutofillId newParentId = new AutofillId(15162342); in testAutofillIdMethods_parentedView()
[all …]
/cts/tests/autofillservice/src/android/autofillservice/cts/testcore/
DCannedAugmentedFillResponse.java38 import android.view.autofill.AutofillId;
62 private final Map<AutofillId, Dataset> mDatasets;
101 final AutofillId focusedId = request.getFocusedId(); in asFillResponse()
143 final List<Pair<AutofillId, AutofillValue>> values; in asFillResponse()
148 values.add(new Pair<AutofillId, AutofillValue>(focusedId, onlyValue)); in asFillResponse()
191 for (Pair<AutofillId, AutofillValue> pair : dataset.getValues()) { in createResponseWithInlineSuggestion()
192 final AutofillId id = pair.first; in createResponseWithInlineSuggestion()
199 Pair<AutofillId, ClipData> fieldContent = dataset.getContent(); in createResponseWithInlineSuggestion()
215 private final Map<AutofillId, Dataset> mDatasets = new ArrayMap<>();
234 public Builder setDataset(@NonNull Dataset dataset, @NonNull AutofillId... ids) { in setDataset()
[all …]
DAugmentedHelper.java33 import android.view.autofill.AutofillId;
80 @NonNull Activity activity, @NonNull AutofillId expectedFocusedId, in assertBasicRequestInfo()
86 @NonNull Activity activity, @NonNull AutofillId expectedFocusedId, in assertBasicRequestInfo()
104 final AutofillId actualFocusedId = request.request.getFocusedId(); in assertBasicRequestInfo()
157 public static String toString(@Nullable List<Pair<AutofillId, AutofillValue>> values) { in toString() argument
162 final Pair<AutofillId, AutofillValue> value = values.get(i); in toString()
181 final AutofillId focusedId = request.getFocusedId(); in toString()
194 public static String getContentDescriptionForUi(@NonNull AutofillId focusedId) { in getContentDescriptionForUi()
DMyAutofillId.java21 import android.view.autofill.AutofillId;
25 private final AutofillId mId;
27 public MyAutofillId(AutofillId id) { in MyAutofillId()
/cts/tests/translation/src/android/translation/cts/unittests/
DViewTranslationRequestTest.java24 import android.view.autofill.AutofillId;
36 private final AutofillId mAutofillId = new AutofillId(17);
50 assertThat(request.getAutofillId()).isEqualTo(new AutofillId(mAutofillId, 12345L, 0)); in testBuilderVirtualAutofillId_validSetText()
63 assertThat(request.getAutofillId()).isEqualTo(new AutofillId(17)); in testBuilder_validSetText()
78 assertThat(request.getAutofillId()).isEqualTo(new AutofillId(17)); in testBuilder_setTextTwice()
91 assertThat(request.getAutofillId()).isEqualTo(new AutofillId(17)); in testGetValue_invalidId()
109 assertThat(request.getAutofillId()).isEqualTo(new AutofillId(17)); in testBuilder_multipleTexts()
DViewTranslationResponseTest.java25 import android.view.autofill.AutofillId;
37 private final AutofillId mAutofillId = new AutofillId(17);
53 assertThat(request.getAutofillId()).isEqualTo(new AutofillId(17)); in testBuilder_validAddText()
64 assertThat(request.getAutofillId()).isEqualTo(new AutofillId(17)); in testBuilder_validAddError()
79 assertThat(request.getAutofillId()).isEqualTo(new AutofillId(17)); in testGetValue_invalidId()
101 assertThat(request.getAutofillId()).isEqualTo(new AutofillId(17)); in testBuilder_multipleResults()
DTranslationResponseTest.java25 import android.view.autofill.AutofillId;
46 .Builder(new AutofillId(17))
66 assertThat(viewResponse.getAutofillId()).isEqualTo(new AutofillId(17)); in testBuilder_validViewTranslationResponse()
76 .Builder(new AutofillId(42)) in testBuilder_errorViewTranslationResponse()
88 assertThat(viewResponse.getAutofillId()).isEqualTo(new AutofillId(42)); in testBuilder_errorViewTranslationResponse()
155 assertThat(viewResponse.getAutofillId()).isEqualTo(new AutofillId(17)); in testBuilder_mixingAdders()
183 assertThat(viewResponse.getAutofillId()).isEqualTo(new AutofillId(17)); in testBuilder_mixingSetters()
198 .Builder(new AutofillId(42)) in testParceledResponse_validViewTranslationResponses()
218 assertThat(viewResponse1.getAutofillId()).isEqualTo(new AutofillId(17)); in testParceledResponse_validViewTranslationResponses()
224 assertThat(viewResponse2.getAutofillId()).isEqualTo(new AutofillId(42)); in testParceledResponse_validViewTranslationResponses()
DTranslationRequestTest.java22 import android.view.autofill.AutofillId;
40 .Builder(new AutofillId(17))
57 assertThat(viewRequest.getAutofillId()).isEqualTo(new AutofillId(17)); in testBuilder_validViewTranslationRequest()
107 assertThat(viewRequest.getAutofillId()).isEqualTo(new AutofillId(17)); in testBuilder_mixingSetters()
148 viewRequests.add(new ViewTranslationRequest.Builder(new AutofillId(17)) in testBuilder_sameAutofillIdViewTranslationRequests()
160 assertThat(viewRequest.getAutofillId()).isEqualTo(new AutofillId(17)); in testBuilder_sameAutofillIdViewTranslationRequests()
167 assertThat(viewRequest2.getAutofillId()).isEqualTo(new AutofillId(17)); in testBuilder_sameAutofillIdViewTranslationRequests()
177 viewRequests.add(new ViewTranslationRequest.Builder(new AutofillId(42)) in testParceledRequest_validViewTranslationRequests()
195 assertThat(request1.getAutofillId()).isEqualTo(new AutofillId(17)); in testParceledRequest_validViewTranslationRequests()
202 assertThat(request2.getAutofillId()).isEqualTo(new AutofillId(42)); in testParceledRequest_validViewTranslationRequests()
/cts/tests/autofillservice/src/android/autofillservice/cts/activities/
DUsernameOnlyActivity.java22 import android.view.autofill.AutofillId;
32 private AutofillId mPasswordAutofillId;
56 public AutofillId getUsernameAutofillId() { in getUsernameAutofillId()
64 public void setPasswordAutofillId(AutofillId id) { in setPasswordAutofillId()
/cts/tests/contentcaptureservice/src/android/contentcaptureservice/cts/
DCustomViewActivityTest.java53 import android.view.autofill.AutofillId;
143 final AutofillId customViewId = activity.mCustomView.getAutofillId(); in testSessionLifecycleEvents()
184 final AutofillId customViewId = customView.getAutofillId(); in testVirtualView_wrongWay()
190 final AutofillId childId = child.getAutofillId(); in testVirtualView_wrongWay()
213 final AutofillId customViewId = activity.mCustomView.getAutofillId(); in testVirtualView_wrongWay()
252 final AtomicReference<AutofillId> child2IdRef = new AtomicReference<>(); in testVirtualView_oneLevel()
255 final AutofillId customViewId = customView.getAutofillId(); in testVirtualView_oneLevel()
261 final AutofillId child1Id = child1.getAutofillId(); in testVirtualView_oneLevel()
267 final AutofillId child2Id = child2.getAutofillId(); in testVirtualView_oneLevel()
298 final AutofillId customViewId = activity.mCustomView.getAutofillId(); in testVirtualView_oneLevel()
[all …]
/cts/tests/autofillservice/src/android/autofillservice/cts/servicebehavior/
DFieldsClassificationTest.java48 import android.view.autofill.AutofillId;
233 final AtomicReference<AutofillId> fieldId = new AtomicReference<>(); in testHit_exactMatchLast4Algorithm()
270 final AtomicReference<AutofillId> fieldId = new AtomicReference<>(); in testHit_CreditCardAlgorithm()
308 final AtomicReference<AutofillId> fieldId = new AtomicReference<>(); in testHit_useDefaultAlgorithm()
345 final AtomicReference<AutofillId> fieldId = new AtomicReference<>(); in simpleHitTest()
382 final AtomicReference<AutofillId> fieldId = new AtomicReference<>(); in testHit_sameValueForMultipleCategories()
431 final AtomicReference<AutofillId> fieldId = new AtomicReference<>(); in manyUserData_oneDetectableField()
474 final AtomicReference<AutofillId> fieldId1 = new AtomicReference<>(); in testHit_oneUserData_manyDetectableFields()
475 final AtomicReference<AutofillId> fieldId2 = new AtomicReference<>(); in testHit_oneUserData_manyDetectableFields()
520 final AtomicReference<AutofillId> fieldId1 = new AtomicReference<>(); in testHit_manyUserData_manyDetectableFields()
[all …]
/cts/tests/autofillservice/src/android/autofillservice/cts/inline/
DInlineAugmentedWebViewActivityTest.java38 import android.view.autofill.AutofillId;
90 AutofillId usernameId = getAutofillIdByWebViewTag(autofillRequest, HTML_NAME_USERNAME);
146 AutofillId usernameId = getAutofillIdByWebViewTag(autofillRequest, HTML_NAME_USERNAME);
147 AutofillId passwordId = getAutofillIdByWebViewTag(autofillRequest, HTML_NAME_PASSWORD);
173 private AutofillId getAutofillIdByWebViewTag(FillRequest autofillRequest, String tag) {
175 return AutofillId.withoutSession(viewNode.getAutofillId());
DInlineAugmentedLoginActivityTest.java43 import android.view.autofill.AutofillId;
113 final AutofillId usernameId = username.getAutofillId();
114 final AutofillId passwordId = password.getAutofillId();
149 final AutofillId usernameId = username.getAutofillId();
150 final AutofillId passwordId = password.getAutofillId();
193 final AutofillId usernameId = username.getAutofillId();
194 final AutofillId passwordId = password.getAutofillId();
239 final AutofillId usernameId = username.getAutofillId();
240 final AutofillId passwordId = password.getAutofillId();
276 final AutofillId usernameId = username.getAutofillId();
[all …]
DInlineAugmentedContentTest.java39 import android.view.autofill.AutofillId;
90 final AutofillId targetFieldId = targetField.getAutofillId();
123 final AutofillId targetFieldId = targetField.getAutofillId();
157 final AutofillId targetFieldId = targetField.getAutofillId();
190 private static CannedAugmentedFillResponse suggestion(AutofillId targetFieldId,
196 private static CannedAugmentedFillResponse suggestion(AutofillId targetFieldId,
203 private static CannedAugmentedFillResponse suggestion(AutofillId targetFieldId,
214 private CannedAugmentedFillResponse suggestionWithAuthFlow(AutofillId targetFieldId,
/cts/tests/autofillservice/src/android/autofillservice/cts/
DDuplicateIdActivityTest.java40 import android.view.autofill.AutofillId;
116 final AutofillId id1 = view1.getAutofillId(); in testDoNotRestoreDuplicateAutofillIds()
117 final AutofillId id2 = view2.getAutofillId(); in testDoNotRestoreDuplicateAutofillIds()
155 final AutofillId recreatedId1 = recreatedView1.getAutofillId(); in testDoNotRestoreDuplicateAutofillIds()
156 final AutofillId recreatedId2 = recreatedView2.getAutofillId(); in testDoNotRestoreDuplicateAutofillIds()
157 final AutofillId newId1 = newView1.getAutofillId(); in testDoNotRestoreDuplicateAutofillIds()

123