Home
last modified time | relevance | path

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

/cts/tests/autofillservice/src/android/autofillservice/cts/
DInstrumentedAutoFillService.java286 private ComponentName getLastActivityComponent(List<FillContext> contexts) { in getLastActivityComponent() argument
287 return contexts.get(contexts.size() - 1).getStructure().getActivityComponent(); in getLastActivityComponent()
360 public final List<FillContext> contexts; field in FillRequest
366 private FillRequest(List<FillContext> contexts, Bundle data, in FillRequest() argument
368 this.contexts = contexts; in FillRequest()
373 this.structure = contexts.get(contexts.size() - 1).getStructure(); in FillRequest()
378 return "FillRequest[activity=" + getActivityName(contexts) + ", flags=" + flags in toString()
389 public final List<FillContext> contexts; field in SaveRequest
395 private SaveRequest(List<FillContext> contexts, Bundle data, SaveCallback callback, in SaveRequest() argument
397 if (contexts != null && contexts.size() > 0) { in SaveRequest()
[all …]
DMultiScreenLoginTest.java93 assertThat(fillRequest1.contexts.size()).isEqualTo(1);
125 assertThat(fillRequest2.contexts.size()).isEqualTo(1);
165 assertThat(fillRequest1.contexts.size()).isEqualTo(1);
190 assertThat(fillRequest2.contexts.size()).isEqualTo(2);
210 assertThat(saveRequest.contexts.size()).isEqualTo(2);
213 final AssistStructure previousStructure = saveRequest.contexts.get(0).getStructure();
220 final AssistStructure currentStructure = saveRequest.contexts.get(1).getStructure();
251 assertThat(fillRequest1.contexts.size()).isEqualTo(1);
280 assertThat(fillRequest2.contexts.size()).isEqualTo(2);
302 assertThat(saveRequest.contexts.size()).isEqualTo(2);
[all …]
DFieldsClassificationTest.java223 .setVisitor((contexts, builder) -> fieldId in testHit_exactMatchLast4Algorithm()
224 .set(findAutofillIdByResourceId(contexts.get(0), ID_L1C1))) in testHit_exactMatchLast4Algorithm()
261 .setVisitor((contexts, builder) -> fieldId in testHit_useDefaultAlgorithm()
262 .set(findAutofillIdByResourceId(contexts.get(0), ID_L1C1))) in testHit_useDefaultAlgorithm()
298 .setVisitor((contexts, builder) -> fieldId in simpleHitTest()
299 .set(findAutofillIdByResourceId(contexts.get(0), ID_L1C1))) in simpleHitTest()
335 .setVisitor((contexts, builder) -> fieldId in testHit_sameValueForMultipleCategories()
336 .set(findAutofillIdByResourceId(contexts.get(0), ID_L1C1))) in testHit_sameValueForMultipleCategories()
384 .setVisitor((contexts, builder) -> fieldId in manyUserData_oneDetectableField()
385 .set(findAutofillIdByResourceId(contexts.get(0), ID_L1C1))) in manyUserData_oneDetectableField()
[all …]
DMultipleFragmentLoginTest.java81 final AssistStructure structure = fillRequest1.contexts.get(0).getStructure();
82 assertThat(fillRequest1.contexts.size()).isEqualTo(1);
120 assertThat(fillRequest2.contexts.size()).isEqualTo(2);
124 final AssistStructure structure1 = fillRequest2.contexts.get(0).getStructure();
141 final AssistStructure structure2 = fillRequest2.contexts.get(1).getStructure();
163 assertThat(saveRequest.contexts.size()).isEqualTo(2);
167 final AssistStructure saveStructure1 = saveRequest.contexts.get(0).getStructure();
178 final AssistStructure saveStructure2 = saveRequest.contexts.get(1).getStructure();
DSimpleSaveActivityTest.java365 assertThat(saveRequest.contexts.size()).isEqualTo(2); in testPartitionedSave()
405 .setVisitor((contexts, builder) -> { in testDelayedSave()
407 findAutofillIdByResourceId(contexts.get(1), ID_PASSWORD); in testDelayedSave()
409 findAutofillIdByResourceId(contexts.get(0), ID_INPUT); in testDelayedSave()
432 assertThat(saveRequest.contexts.size()).isEqualTo(2); in testDelayedSave()
435 final AssistStructure structure1 = saveRequest.contexts.get(0).getStructure(); in testDelayedSave()
439 final AssistStructure structure2 = saveRequest.contexts.get(1).getStructure(); in testDelayedSave()
764 .setSaveInfoVisitor((contexts, builder) -> builder in saveUiRestoredAfterTappingLinkTest()
833 .setSaveInfoVisitor((contexts, builder) -> builder in tapLinkThenTapBackThenStartOverTest()
919 .setSaveInfoVisitor((contexts, builder) -> builder in saveUiCancelledAfterTappingLinkTest()
[all …]
DWebViewMultiScreenLoginActivityTest.java111 assertThat(fillRequest1.contexts).hasSize(1);
137 assertThat(saveRequest1.contexts).hasSize(1);
160 assertThat(fillRequest2.contexts).hasSize(1);
185 assertThat(saveRequest2.contexts).hasSize(1);
214 assertThat(fillRequest1.contexts).hasSize(1);
259 assertThat(fillRequest2.contexts).hasSize(2);
291 final AssistStructure previousStructure = saveRequest.contexts.get(0).getStructure();
298 final AssistStructure currentStructure = saveRequest.contexts.get(1).getStructure();
DMultiScreenDifferentActivitiesTest.java78 assertThat(saveRequest.contexts).hasSize(1); in testActivityNotDelayedIsNotMerged()
126 assertThat(saveRequest.contexts).hasSize(2); in testDelayedActivityIsMerged()
129 final AssistStructure structure1 = saveRequest.contexts.get(0).getStructure(); in testDelayedActivityIsMerged()
137 final AssistStructure structure2 = saveRequest.contexts.get(1).getStructure(); in testDelayedActivityIsMerged()
DCustomDescriptionDateTest.java66 .setSaveInfoVisitor((contexts, builder) -> {
67 final AutofillId id = findAutofillIdByResourceId(contexts.get(0),
138 response.setSaveInfoVisitor((contexts, builder) -> {
139 final AutofillId id = findAutofillIdByResourceId(contexts.get(0), ID_DATE_PICKER);
DPreSimpleSaveActivityTest.java69 .setSaveInfoVisitor((contexts, builder) -> builder in saveUiRestoredAfterTappingLinkTest()
128 .setSaveInfoVisitor((contexts, builder) -> builder in tapLinkThenTapBackThenStartOverTest()
221 .setSaveInfoVisitor((contexts, builder) -> builder in saveUiCancelledAfterTappingLinkTest()
279 .setSaveInfoVisitor((contexts, builder) -> builder.setCustomDescription( in tapLinkLaunchTrampolineActivityThenTapBackAndStartNewSessionTest()
346 .setSaveInfoVisitor((contexts, builder) -> { in tapLinkAfterUpdateAppliedTest()
355 final AutofillId id = findAutofillIdByResourceId(contexts.get(0), ID_PRE_INPUT); in tapLinkAfterUpdateAppliedTest()
DMutableAutofillIdTest.java252 final List<FillContext> contexts = saveRequest.contexts; in saveWhenIdChanged() local
253 assertThat(contexts).hasSize(2); in saveWhenIdChanged()
256 final AssistStructure structure1 = contexts.get(0).getStructure(); in saveWhenIdChanged()
267 final AssistStructure structure2 = contexts.get(1).getStructure(); in saveWhenIdChanged()
DHelper.java207 public static void dumpStructure(String message, List<FillContext> contexts) { in dumpStructure() argument
208 for (FillContext context : contexts) { in dumpStructure()
314 public static ViewNode findNodeByFilter(@NonNull List<FillContext> contexts, @NonNull Object id, in findNodeByFilter() argument
316 for (FillContext context : contexts) { in findNodeByFilter()
355 public static ViewNode findNodeByResourceId(List<FillContext> contexts, String resourceId) { in findNodeByResourceId() argument
356 return findNodeByFilter(contexts, resourceId, RESOURCE_ID_FILTER); in findNodeByResourceId()
376 public static ViewNode findNodeByHtmlName(List<FillContext> contexts, String htmlName) { in findNodeByHtmlName() argument
377 return findNodeByFilter(contexts, htmlName, HTML_NAME_FILTER); in findNodeByHtmlName()
399 public static ViewNode findNodeByHtmlNameOrResourceId(List<FillContext> contexts, String id) { in findNodeByHtmlNameOrResourceId() argument
400 return findNodeByFilter(contexts, id, HTML_NAME_OR_RESOURCE_ID_FILTER); in findNodeByHtmlNameOrResourceId()
[all …]
DCustomDescriptionTest.java68 .setSaveInfoVisitor((contexts, builder) -> { in testCustomDescription()
69 final FillContext context = contexts.get(0); in testCustomDescription()
102 .setSaveInfoVisitor((contexts, builder) -> { in testSanitizationBeforeBatchUpdates()
107 findAutofillIdByResourceId(contexts.get(0), ID_USERNAME); in testSanitizationBeforeBatchUpdates()
150 .setSaveInfoVisitor((contexts, builder) -> { in testSanitizationBeforeTransformations()
155 findAutofillIdByResourceId(contexts.get(0), ID_USERNAME); in testSanitizationBeforeTransformations()
530 .setSaveInfoVisitor((contexts, builder) -> { in multipleTransformationsForSameFieldTest()
533 findAutofillIdByResourceId(contexts.get(0), ID_USERNAME); in multipleTransformationsForSameFieldTest()
DValidatorTest.java62 .setSaveInfoVisitor((contexts, builder) -> { in integrationTest()
64 findAutofillIdByResourceId(contexts.get(0), ID_USERNAME); in integrationTest()
DCheckoutActivityTest.java277 .setSaveInfoVisitor((contexts, builder) -> {
280 final FillContext context = contexts.get(0);
364 .setSaveInfoVisitor((contexts, builder) -> {
365 final FillContext context = contexts.get(0);
DOnClickActionTest.java77 .setSaveInfoVisitor((contexts, builder) -> {
78 final FillContext context = contexts.get(0);
DViewAttributesTest.java164 assertThat(request.contexts.size()).isEqualTo(1);
165 test.accept(request.contexts.get(0).getStructure());
DFillEventHistoryTest.java642 final AutofillId passwordId = findAutofillIdByResourceId(request.contexts.get(0), in testContextCommitted_idlessDatasetSelected_datasetWithIdIgnored()
704 final AutofillId passwordId = findAutofillIdByResourceId(request.contexts.get(0), in testContextCommitted_idlessDatasetIgnored_datasetWithIdSelected()
826 final FillContext context = request.contexts.get(0); in testContextCommitted_oneDatasetSelected()
909 final AutofillId passwordId = findAutofillIdByResourceId(request.contexts.get(0), in testContextCommitted_multipleDatasetsSelected()
1106 final FillContext context = request.contexts.get(0); in testContextCommitted_noDatasetSelected_butManuallyEntered()
1179 final FillContext context = request.contexts.get(0); in testContextCommitted_noDatasetSelected_butManuallyEntered_matchingMultipleDatasets()
DCannedFillResponse.java163 public FillResponse asFillResponse(@Nullable List<FillContext> contexts, in asFillResponse() argument
212 mSaveInfoVisitor.visit(contexts, saveInfoBuilder); in asFillResponse()
253 mVisitor.visit(contexts, builder); in asFillResponse()
DLoginActivityTest.java474 final FillContext fillContext = request.contexts.get(request.contexts.size() - 1); in autofillOneDatasetTest()