Home
last modified time | relevance | path

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

/cts/tests/autofillservice/src/android/autofillservice/cts/testcore/
DInstrumentedAutoFillService.java313 private ComponentName getLastActivityComponent(List<FillContext> contexts) { in getLastActivityComponent() argument
314 return contexts.get(contexts.size() - 1).getStructure().getActivityComponent(); in getLastActivityComponent()
388 public final List<FillContext> contexts; field in FillRequest
398 private FillRequest(List<FillContext> contexts, List<String> hints, Bundle data, in FillRequest() argument
403 this.contexts = contexts; in FillRequest()
409 this.structure = contexts.get(contexts.size() - 1).getStructure(); in FillRequest()
417 return "FillRequest[activity=" + getActivityName(contexts) + ", flags=" + flags in toString()
428 public final List<FillContext> contexts; field in SaveRequest
434 private SaveRequest(List<FillContext> contexts, Bundle data, SaveCallback callback, in SaveRequest() argument
436 if (contexts != null && contexts.size() > 0) { in SaveRequest()
[all …]
DCannedFillResponse.java188 public FillResponse asFillResponse(@Nullable List<FillContext> contexts, in asFillResponse() argument
190 return asFillResponseWithAutofillId(contexts, (id)-> { in asFillResponse()
199 public FillResponse asFillResponseWithAutofillId(@Nullable List<FillContext> contexts, in asFillResponseWithAutofillId() argument
201 return asFillResponseWithAutofillId(contexts, autofillIdResolver, in asFillResponseWithAutofillId()
218 public FillResponse asPccFillResponse(@Nullable List<FillContext> contexts,
229 contexts,
238 public FillResponse asFillResponseWithAutofillId(@Nullable List<FillContext> contexts,
292 mSaveInfoVisitor.visit(contexts, saveInfoBuilder);
333 mVisitor.visit(contexts, builder);
DHelper.java249 public static void dumpStructure(String message, List<FillContext> contexts) { in dumpStructure() argument
250 for (FillContext context : contexts) { in dumpStructure()
374 public static ViewNode findNodeByFilter(@NonNull List<FillContext> contexts, @NonNull Object id, in findNodeByFilter() argument
376 for (FillContext context : contexts) { in findNodeByFilter()
415 public static ViewNode findNodeByResourceId(List<FillContext> contexts, String resourceId) { in findNodeByResourceId() argument
416 return findNodeByFilter(contexts, resourceId, RESOURCE_ID_FILTER); in findNodeByResourceId()
436 public static ViewNode findNodeByHtmlName(List<FillContext> contexts, String htmlName) { in findNodeByHtmlName() argument
437 return findNodeByFilter(contexts, htmlName, HTML_NAME_FILTER); in findNodeByHtmlName()
459 public static ViewNode findNodeByHtmlNameOrResourceId(List<FillContext> contexts, String id) { in findNodeByHtmlNameOrResourceId() argument
460 return findNodeByFilter(contexts, id, HTML_NAME_OR_RESOURCE_ID_FILTER); in findNodeByHtmlNameOrResourceId()
[all …]
/cts/tests/autofillservice/src/android/autofillservice/cts/
DDelayFillTest.java90 .asFillResponse(fillRequest.contexts,
91 (id) -> Helper.findNodeByResourceId(fillRequest.contexts, id));
135 .asFillResponse(fillRequest.contexts,
136 (id) -> Helper.findNodeByResourceId(fillRequest.contexts, id));
181 .asFillResponse(fillRequest.contexts,
182 (id) -> Helper.findNodeByResourceId(fillRequest.contexts, id));
202 .asFillResponse(fillRequest.contexts,
203 (id) -> Helper.findNodeByResourceId(fillRequest.contexts, id));
249 .asFillResponse(fillRequest.contexts,
250 (id) -> Helper.findNodeByResourceId(fillRequest.contexts, id));
[all …]
DMutableAutofillIdTest.java255 final List<FillContext> contexts = saveRequest.contexts; in saveWhenIdChanged() local
256 assertThat(contexts).hasSize(2); in saveWhenIdChanged()
259 final AssistStructure structure1 = contexts.get(0).getStructure(); in saveWhenIdChanged()
270 final AssistStructure structure2 = contexts.get(1).getStructure(); in saveWhenIdChanged()
DViewAttributesTest.java168 assertThat(request.contexts.size()).isEqualTo(1);
169 test.accept(request.contexts.get(0).getStructure());
/cts/tests/autofillservice/src/android/autofillservice/cts/servicebehavior/
DMultiScreenLoginTest.java102 assertThat(fillRequest1.contexts.size()).isEqualTo(1);
134 assertThat(fillRequest2.contexts.size()).isEqualTo(1);
175 assertThat(fillRequest1.contexts.size()).isEqualTo(1);
200 assertThat(fillRequest2.contexts.size()).isEqualTo(2);
220 assertThat(saveRequest.contexts.size()).isEqualTo(2);
223 final AssistStructure previousStructure = saveRequest.contexts.get(0).getStructure();
230 final AssistStructure currentStructure = saveRequest.contexts.get(1).getStructure();
261 assertThat(fillRequest1.contexts.size()).isEqualTo(1);
290 assertThat(fillRequest2.contexts.size()).isEqualTo(2);
312 assertThat(saveRequest.contexts.size()).isEqualTo(2);
[all …]
DFieldsClassificationTest.java236 .setVisitor((contexts, builder) -> fieldId in testHit_exactMatchLast4Algorithm()
237 .set(findAutofillIdByResourceId(contexts.get(0), ID_L1C1))) in testHit_exactMatchLast4Algorithm()
273 .setVisitor((contexts, builder) -> fieldId in testHit_CreditCardAlgorithm()
274 .set(findAutofillIdByResourceId(contexts.get(0), ID_L1C1))) in testHit_CreditCardAlgorithm()
311 .setVisitor((contexts, builder) -> fieldId in testHit_useDefaultAlgorithm()
312 .set(findAutofillIdByResourceId(contexts.get(0), ID_L1C1))) in testHit_useDefaultAlgorithm()
348 .setVisitor((contexts, builder) -> fieldId in simpleHitTest()
349 .set(findAutofillIdByResourceId(contexts.get(0), ID_L1C1))) in simpleHitTest()
385 .setVisitor((contexts, builder) -> fieldId in testHit_sameValueForMultipleCategories()
386 .set(findAutofillIdByResourceId(contexts.get(0), ID_L1C1))) in testHit_sameValueForMultipleCategories()
[all …]
DWebViewMultiScreenLoginActivityTest.java121 assertThat(fillRequest1.contexts).hasSize(1);
146 assertThat(saveRequest1.contexts).hasSize(1);
173 assertThat(fillRequest2.contexts).hasSize(1);
199 assertThat(saveRequest2.contexts).hasSize(1);
233 assertThat(fillRequest1.contexts).hasSize(1);
280 assertThat(fillRequest2.contexts).hasSize(2);
312 final AssistStructure previousStructure = saveRequest.contexts.get(0).getStructure();
319 final AssistStructure currentStructure = saveRequest.contexts.get(1).getStructure();
DMultiScreenDifferentActivitiesTest.java83 assertThat(saveRequest.contexts).hasSize(1); in testActivityNotDelayedIsNotMerged()
131 assertThat(saveRequest.contexts).hasSize(2); in testDelayedActivityIsMerged()
134 final AssistStructure structure1 = saveRequest.contexts.get(0).getStructure(); in testDelayedActivityIsMerged()
142 final AssistStructure structure2 = saveRequest.contexts.get(1).getStructure(); in testDelayedActivityIsMerged()
DValidatorTest.java64 .setSaveInfoVisitor((contexts, builder) -> { in integrationTest()
66 findAutofillIdByResourceId(contexts.get(0), ID_USERNAME); in integrationTest()
/cts/tests/autofillservice/src/android/autofillservice/cts/dropdown/
DMultipleFragmentLoginTest.java88 final AssistStructure structure = fillRequest1.contexts.get(0).getStructure();
89 assertThat(fillRequest1.contexts.size()).isEqualTo(1);
127 assertThat(fillRequest2.contexts.size()).isEqualTo(2);
131 final AssistStructure structure1 = fillRequest2.contexts.get(0).getStructure();
148 final AssistStructure structure2 = fillRequest2.contexts.get(1).getStructure();
170 assertThat(saveRequest.contexts.size()).isEqualTo(2);
174 final AssistStructure saveStructure1 = saveRequest.contexts.get(0).getStructure();
185 final AssistStructure saveStructure2 = saveRequest.contexts.get(1).getStructure();
DFillEventHistoryTest.java231 final AutofillId passwordId = findAutofillIdByResourceId(request.contexts.get(0), in testContextCommitted_idlessDatasetSelected_datasetWithIdIgnored()
295 final AutofillId passwordId = findAutofillIdByResourceId(request.contexts.get(0), in testContextCommitted_idlessDatasetIgnored_datasetWithIdSelected()
423 final FillContext context = request.contexts.get(0); in testContextCommitted_oneDatasetSelected()
513 final AutofillId passwordId = findAutofillIdByResourceId(request.contexts.get(0), in testContextCommitted_multipleDatasetsSelected()
724 final FillContext context = request.contexts.get(0); in testContextCommitted_noDatasetSelected_butManuallyEntered()
801 final FillContext context = request.contexts.get(0); in testContextCommitted_noDatasetSelected_butManuallyEntered_matchingMultipleDatasets()
DCheckoutActivityTest.java299 .setSaveInfoVisitor((contexts, builder) -> {
302 final FillContext context = contexts.get(0);
386 .setSaveInfoVisitor((contexts, builder) -> {
387 final FillContext context = contexts.get(0);
DLoginActivityTest.java553 final FillContext fillContext = request.contexts.get(request.contexts.size() - 1); in autofillOneDatasetTest()
/cts/tests/autofillservice/src/android/autofillservice/cts/saveui/
DCustomDescriptionDateTest.java72 .setSaveInfoVisitor((contexts, builder) -> {
73 final AutofillId id = findAutofillIdByResourceId(contexts.get(0),
144 response.setSaveInfoVisitor((contexts, builder) -> {
145 final AutofillId id = findAutofillIdByResourceId(contexts.get(0), ID_DATE_PICKER);
DSimpleSaveActivityTest.java396 assertThat(saveRequest.contexts.size()).isEqualTo(2); in testPartitionedSave()
434 .setVisitor((contexts, builder) -> { in testDelayedSave()
436 findAutofillIdByResourceId(contexts.get(1), ID_PASSWORD); in testDelayedSave()
438 findAutofillIdByResourceId(contexts.get(0), ID_INPUT); in testDelayedSave()
459 assertThat(saveRequest.contexts.size()).isEqualTo(2); in testDelayedSave()
462 final AssistStructure structure1 = saveRequest.contexts.get(0).getStructure(); in testDelayedSave()
466 final AssistStructure structure2 = saveRequest.contexts.get(1).getStructure(); in testDelayedSave()
880 .setSaveInfoVisitor((contexts, builder) -> builder in saveUiRestoredAfterTappingLinkTest()
948 .setSaveInfoVisitor((contexts, builder) -> builder in tapLinkThenTapBackThenStartOverTest()
1035 .setSaveInfoVisitor((contexts, builder) -> builder in saveUiCancelledAfterTappingLinkTest()
[all …]
DPreSimpleSaveActivityTest.java80 .setSaveInfoVisitor((contexts, builder) -> builder in saveUiRestoredAfterTappingLinkTest()
138 .setSaveInfoVisitor((contexts, builder) -> builder in tapLinkThenTapBackThenStartOverTest()
229 .setSaveInfoVisitor((contexts, builder) -> builder in saveUiCancelledAfterTappingLinkTest()
286 .setSaveInfoVisitor((contexts, builder) -> builder.setCustomDescription( in tapLinkLaunchTrampolineActivityThenTapBackAndStartNewSessionTest()
350 .setSaveInfoVisitor((contexts, builder) -> { in tapLinkAfterUpdateAppliedTest()
359 final AutofillId id = findAutofillIdByResourceId(contexts.get(0), ID_PRE_INPUT); in tapLinkAfterUpdateAppliedTest()
DCustomDescriptionTest.java75 .setSaveInfoVisitor((contexts, builder) -> { in testCustomDescription()
76 final FillContext context = contexts.get(0); in testCustomDescription()
119 (contexts, builder) -> { in testRemoteViewsDoNotSpill()
122 contexts.get(0), ID_USERNAME); in testRemoteViewsDoNotSpill()
166 .setSaveInfoVisitor((contexts, builder) -> { in testSanitizationBeforeBatchUpdates()
171 findAutofillIdByResourceId(contexts.get(0), ID_USERNAME); in testSanitizationBeforeBatchUpdates()
214 .setSaveInfoVisitor((contexts, builder) -> { in testSanitizationBeforeTransformations()
219 findAutofillIdByResourceId(contexts.get(0), ID_USERNAME); in testSanitizationBeforeTransformations()
595 .setSaveInfoVisitor((contexts, builder) -> { in multipleTransformationsForSameFieldTest()
598 findAutofillIdByResourceId(contexts.get(0), ID_USERNAME); in multipleTransformationsForSameFieldTest()
DOnClickActionTest.java84 .setSaveInfoVisitor((contexts, builder) -> {
85 final FillContext context = contexts.get(0);
/cts/hostsidetests/compilation/assets/
Dpackage-dex-usage.textproto30 # Invalid class loader contexts. They should not be loaded either.
57 # Valid paths and class loader contexts.
/cts/tests/autofillservice/src/android/autofillservice/cts/commontests/
DLoginActivityCommonTestCase.java163 final FillContext fillContext = request.contexts.get(request.contexts.size() - 1); in testBasicLoginAutofill()
DFillEventHistoryCommonTestCase.java806 .setSaveInfoVisitor((contexts, saveInfoBuilder) -> { in contextCommitted_whileFieldsFailedValidation()
/cts/tests/autofillservice/src/android/autofillservice/cts/inline/
DInlineLoginActivityTest.java158 final FillContext fillContext = request.contexts.get(request.contexts.size() - 1); in testAutofill_disjointDatasets()
255 final FillContext fillContext = request.contexts.get(request.contexts.size() - 1); in testAutofill_selectDatasetThenHideInlineSuggestion()
/cts/tests/autofillservice/src/android/autofillservice/cts/androidx-tests/
DSaveUiTest.java93 (contexts, builder) -> in testTapLink_changeOrientationThenTapBack()