Home
last modified time | relevance | path

Searched refs:saveRequest (Results 1 – 23 of 23) sorted by relevance

/cts/tests/autofillservice/src/android/autofillservice/cts/
DLoginWithStringsActivityTest.java122 final SaveRequest saveRequest = sReplier.getNextSaveRequest();
124 assertThat(saveRequest.datasetIds).containsExactly("I'm the alpha and the omega");
127 final ViewNode username = findNodeByResourceId(saveRequest.structure, ID_USERNAME);
129 final ViewNode password = findNodeByResourceId(saveRequest.structure, ID_USERNAME);
133 assertTextFromResouces(saveRequest.structure, ID_USERNAME_LABEL, "Username", false,
135 assertTextFromResouces(saveRequest.structure, ID_PASSWORD_LABEL, "Password", false,
139 assertThat(saveRequest.data).isNotNull();
140 final String extraValue = saveRequest.data.getString("numbers");
DSimpleSaveActivityTest.java136 final SaveRequest saveRequest = sReplier.getNextSaveRequest(); in testAutoFillOneDatasetAndSave() local
137 assertTextAndValue(findNodeByResourceId(saveRequest.structure, ID_INPUT), "ID"); in testAutoFillOneDatasetAndSave()
138 assertTextAndValue(findNodeByResourceId(saveRequest.structure, ID_PASSWORD), "PASS"); in testAutoFillOneDatasetAndSave()
189 final SaveRequest saveRequest = sReplier.getNextSaveRequest(); in testAutoFillOneDatasetAndSave_largeAssistStructure() local
190 final ViewNode inputOnSave = findNodeByResourceId(saveRequest.structure, ID_INPUT); in testAutoFillOneDatasetAndSave_largeAssistStructure()
192 assertTextAndValue(findNodeByResourceId(saveRequest.structure, ID_PASSWORD), "PASS"); in testAutoFillOneDatasetAndSave_largeAssistStructure()
249 final SaveRequest saveRequest = sReplier.getNextSaveRequest(); in testAutoFillOneDatasetAndSave_usingUiAutomatorOnly() local
250 assertTextAndValue(findNodeByResourceId(saveRequest.structure, ID_INPUT), "ID"); in testAutoFillOneDatasetAndSave_usingUiAutomatorOnly()
251 assertTextAndValue(findNodeByResourceId(saveRequest.structure, ID_PASSWORD), "PASS"); in testAutoFillOneDatasetAndSave_usingUiAutomatorOnly()
310 final SaveRequest saveRequest = sReplier.getNextSaveRequest(); in saveTest() local
[all …]
DMultiScreenDifferentActivitiesTest.java75 final SaveRequest saveRequest = sReplier.getNextSaveRequest(); in testActivityNotDelayedIsNotMerged() local
78 assertThat(saveRequest.contexts).hasSize(1); in testActivityNotDelayedIsNotMerged()
80 assertTextAndValue(findNodeByResourceId(saveRequest.structure, ID_INPUT), "ID"); in testActivityNotDelayedIsNotMerged()
123 final SaveRequest saveRequest = sReplier.getNextSaveRequest(); in testDelayedActivityIsMerged() local
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()
DPreFilledLoginActivityTest.java93 final SaveRequest saveRequest = sReplier.getNextSaveRequest();
96 assertTextOnly(findNodeByResourceId(saveRequest.structure, ID_USERNAME_LABEL), "DA USER");
97 assertTextFromResouces(saveRequest.structure, ID_PASSWORD_LABEL, "DA PASSWORD", false,
99 assertTextAndValue(findNodeByResourceId(saveRequest.structure, ID_USERNAME), "malkovich");
100 assertTextAndValue(findNodeByResourceId(saveRequest.structure, ID_PASSWORD), "malkovich");
DOptionalSaveActivityTest.java136 final SaveRequest saveRequest = sReplier.getNextSaveRequest();
137 assertWithMessage("onSave() not called").that(saveRequest).isNotNull();
140 assertions.visit(saveRequest.structure);
327 final SaveRequest saveRequest = sReplier.getNextSaveRequest();
328 assertWithMessage("onSave() not called").that(saveRequest).isNotNull();
331 assertions.visit(saveRequest.structure);
710 final SaveRequest saveRequest = sReplier.getNextSaveRequest();
711 assertTextAndValue(findNodeByResourceId(saveRequest.structure, ID_ADDRESS1),
713 assertTextAndValue(findNodeByResourceId(saveRequest.structure, ID_ADDRESS2),
715 assertTextAndValue(findNodeByResourceId(saveRequest.structure, ID_CITY), "");
[all …]
DDatePickerTestCase.java86 final SaveRequest saveRequest = sReplier.getNextSaveRequest(); in testAutoFillAndSave() local
87 assertWithMessage("onSave() not called").that(saveRequest).isNotNull(); in testAutoFillAndSave()
90 assertDateValue(findNodeByResourceId(saveRequest.structure, ID_DATE_PICKER), 2010, 11, 12); in testAutoFillAndSave()
91 assertTextAndValue(findNodeByResourceId(saveRequest.structure, ID_OUTPUT), "2010/11/12"); in testAutoFillAndSave()
DTimePickerTestCase.java85 final SaveRequest saveRequest = sReplier.getNextSaveRequest(); in testAutoFillAndSave() local
86 assertWithMessage("onSave() not called").that(saveRequest).isNotNull(); in testAutoFillAndSave()
89 assertTimeValue(findNodeByResourceId(saveRequest.structure, ID_TIME_PICKER), 10, 40); in testAutoFillAndSave()
90 assertTextAndValue(findNodeByResourceId(saveRequest.structure, ID_OUTPUT), "10:40"); in testAutoFillAndSave()
DWebViewActivityTest.java209 final SaveRequest saveRequest = sReplier.getNextSaveRequest();
210 final ViewNode usernameNode = Helper.findNodeByHtmlName(saveRequest.structure,
212 final ViewNode passwordNode = Helper.findNodeByHtmlName(saveRequest.structure,
283 final SaveRequest saveRequest = sReplier.getNextSaveRequest();
284 final ViewNode usernameNode2 = Helper.findNodeByHtmlName(saveRequest.structure,
286 final ViewNode passwordNode2 = Helper.findNodeByHtmlName(saveRequest.structure,
400 final SaveRequest saveRequest = sReplier.getNextSaveRequest();
401 final ViewNode usernameSaveNode = Helper.findNodeByHtmlName(saveRequest.structure,
403 final ViewNode passwordSaveNode = Helper.findNodeByHtmlName(saveRequest.structure,
413 final ViewNode outside1SaveNode = Helper.findNodeByResourceId(saveRequest.structure,
[all …]
DMultiScreenLoginTest.java205 final SaveRequest saveRequest = sReplier.getNextSaveRequest();
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();
296 final SaveRequest saveRequest = sReplier.getNextSaveRequest();
298 assertThat(saveRequest.data.getString("first")).isNull();
299 assertThat(saveRequest.data.getString("second")).isEqualTo("two");
300 assertThat(saveRequest.data.getString("last")).isEqualTo("two");
302 assertThat(saveRequest.contexts.size()).isEqualTo(2);
305 final AssistStructure previousStructure = saveRequest.contexts.get(0).getStructure();
[all …]
DSessionLifecycleTest.java256 InstrumentedAutoFillService.SaveRequest saveRequest = sReplier.getNextSaveRequest(); in testDatasetAuthResponseWhileAutofilledAppIsLifecycled() local
257 assertWithMessage("onSave() not called").that(saveRequest).isNotNull(); in testDatasetAuthResponseWhileAutofilledAppIsLifecycled()
260 final AssistStructure.ViewNode username = findNodeByResourceId(saveRequest.structure, in testDatasetAuthResponseWhileAutofilledAppIsLifecycled()
263 final AssistStructure.ViewNode password = findNodeByResourceId(saveRequest.structure, in testDatasetAuthResponseWhileAutofilledAppIsLifecycled()
268 assertThat(saveRequest.data).isNotNull(); in testDatasetAuthResponseWhileAutofilledAppIsLifecycled()
269 final String extraValue = saveRequest.data.getString("numbers"); in testDatasetAuthResponseWhileAutofilledAppIsLifecycled()
493 final InstrumentedAutoFillService.SaveRequest saveRequest = sReplier.getNextSaveRequest(); in testSaveRemainsWhenAutofilledAppIsKilled() local
496 final AssistStructure.ViewNode username = findNodeByResourceId(saveRequest.structure, in testSaveRemainsWhenAutofilledAppIsKilled()
DLoginActivityTest.java321 final SaveRequest saveRequest = sReplier.getNextSaveRequest(); in testAutofillAutomaticallyAndSaveAfterServiceReturnedNoDatasets() local
323 assertThat(saveRequest.datasetIds).isNull(); in testAutofillAutomaticallyAndSaveAfterServiceReturnedNoDatasets()
326 final ViewNode username = findNodeByResourceId(saveRequest.structure, ID_USERNAME); in testAutofillAutomaticallyAndSaveAfterServiceReturnedNoDatasets()
328 final ViewNode password = findNodeByResourceId(saveRequest.structure, ID_PASSWORD); in testAutofillAutomaticallyAndSaveAfterServiceReturnedNoDatasets()
330 final ViewNode childNode = findNodeByResourceId(saveRequest.structure, ID_EMPTY); in testAutofillAutomaticallyAndSaveAfterServiceReturnedNoDatasets()
1008 final SaveRequest saveRequest = sReplier.getNextSaveRequest(); in testAutoFillOneDatasetAndSave() local
1010 assertThat(saveRequest.datasetIds).containsExactly("I'm the alpha and the omega"); in testAutoFillOneDatasetAndSave()
1013 assertTextAndValue(saveRequest.structure, ID_USERNAME, "dude"); in testAutoFillOneDatasetAndSave()
1014 assertTextAndValue(saveRequest.structure, ID_PASSWORD, "dude"); in testAutoFillOneDatasetAndSave()
1015 assertTextOnly(saveRequest.structure, ID_USERNAME_LABEL, "Username"); in testAutoFillOneDatasetAndSave()
[all …]
DMultipleFragmentLoginTest.java162 final InstrumentedAutoFillService.SaveRequest saveRequest = sReplier.getNextSaveRequest();
163 assertThat(saveRequest.contexts.size()).isEqualTo(2);
165 assertThat(saveRequest.data.getString("key")).isEqualTo("value2");
167 final AssistStructure saveStructure1 = saveRequest.contexts.get(0).getStructure();
178 final AssistStructure saveStructure2 = saveRequest.contexts.get(1).getStructure();
DPreSimpleSaveActivityTest.java114 final SaveRequest saveRequest = sReplier.getNextSaveRequest(); in saveUiRestoredAfterTappingLinkTest() local
115 assertTextAndValue(findNodeByResourceId(saveRequest.structure, ID_PRE_INPUT), "108"); in saveUiRestoredAfterTappingLinkTest()
169 final SaveRequest saveRequest = sReplier.getNextSaveRequest(); in tapLinkThenTapBackThenStartOverTest() local
170 assertTextAndValue(findNodeByResourceId(saveRequest.structure, ID_PRE_INPUT), in tapLinkThenTapBackThenStartOverTest()
207 final SaveRequest saveRequest = sReplier.getNextSaveRequest(); in tapLinkThenTapBackThenStartOverTest() local
208 assertTextAndValue(findNodeByResourceId(saveRequest.structure, ID_INPUT), "42"); in tapLinkThenTapBackThenStartOverTest()
DAutoFinishSessionTest.java114 SaveRequest saveRequest = sReplier.getNextSaveRequest();
116 assertThat(findNodeByResourceId(saveRequest.structure, view)
253 SaveRequest saveRequest = sReplier.getNextSaveRequest();
254 assertThat(findNodeByResourceId(saveRequest.structure, "editText1")
DCheckoutActivityTest.java240 final SaveRequest saveRequest = sReplier.getNextSaveRequest();
243 assertTextAndValue(findNodeByResourceId(saveRequest.structure, ID_CC_NUMBER), "4815162342");
244 assertListValue(findNodeByResourceId(saveRequest.structure, ID_CC_EXPIRATION),
246 assertListValue(findNodeByResourceId(saveRequest.structure, ID_ADDRESS),
248 assertToggleValue(findNodeByResourceId(saveRequest.structure, ID_HOME_ADDRESS), false);
249 assertToggleValue(findNodeByResourceId(saveRequest.structure, ID_WORK_ADDRESS), true);
250 assertToggleValue(findNodeByResourceId(saveRequest.structure, ID_SAVE_CC), false);
DVirtualContainerActivityCompatModeTest.java216 final SaveRequest saveRequest = sReplier.getNextSaveRequest(); in testUrlBarChangeIgnoredWhenServiceCanSave() local
217 final ViewNode username = findNodeByResourceId(saveRequest.structure, ID_USERNAME); in testUrlBarChangeIgnoredWhenServiceCanSave()
218 final ViewNode password = findNodeByResourceId(saveRequest.structure, ID_PASSWORD); in testUrlBarChangeIgnoredWhenServiceCanSave()
219 final ViewNode urlBar = findNodeByResourceId(saveRequest.structure, ID_URL_BAR); in testUrlBarChangeIgnoredWhenServiceCanSave()
DPartitionedActivityTest.java589 final SaveRequest saveRequest = sReplier.getNextSaveRequest(); in testAutofillBundleDataIsPassedAlong() local
592 .that(saveRequest.data.size()).isEqualTo(1); in testAutofillBundleDataIsPassedAlong()
593 assertThat(saveRequest.data.getString("numbers4")).isEqualTo("2342"); in testAutofillBundleDataIsPassedAlong()
629 final SaveRequest saveRequest = sReplier.getNextSaveRequest(); in testSaveOneSaveInfoOnFirstPartitionWithIdsOnSecond() local
630 assertValue(saveRequest.structure, ID_L2C1, "L2C1"); in testSaveOneSaveInfoOnFirstPartitionWithIdsOnSecond()
666 final SaveRequest saveRequest = sReplier.getNextSaveRequest(); in testSaveOneSaveInfoOnSecondPartitionWithIdsOnFirst() local
667 assertValue(saveRequest.structure, ID_L1C1, "L1C1"); in testSaveOneSaveInfoOnSecondPartitionWithIdsOnFirst()
706 final SaveRequest saveRequest = sReplier.getNextSaveRequest(); in testSaveTwoSaveInfosDifferentTypes() local
707 assertValue(saveRequest.structure, ID_L1C1, "L1C1"); in testSaveTwoSaveInfosDifferentTypes()
708 assertValue(saveRequest.structure, ID_L2C1, "L2C1"); in testSaveTwoSaveInfosDifferentTypes()
[all …]
DOnClickActionTest.java142 final SaveRequest saveRequest = sReplier.getNextSaveRequest();
143 assertTextAndValue(findNodeByResourceId(saveRequest.structure, ID_INPUT), "42");
144 assertTextAndValue(findNodeByResourceId(saveRequest.structure, ID_PASSWORD), "108");
DAuthenticationTest.java734 final SaveRequest saveRequest = sReplier.getNextSaveRequest(); in fillDatasetAuthWithClientState() local
737 assertClientState("on save", saveRequest.data, "CSI", expectedValue); in fillDatasetAuthWithClientState()
1020 final SaveRequest saveRequest = sReplier.getNextSaveRequest(); in fillResponseAuthServiceHasNoDataTest() local
1022 assertThat(saveRequest.datasetIds).isNull(); in fillResponseAuthServiceHasNoDataTest()
1025 final ViewNode usernameNode = findNodeByResourceId(saveRequest.structure, ID_USERNAME); in fillResponseAuthServiceHasNoDataTest()
1027 final ViewNode passwordNode = findNodeByResourceId(saveRequest.structure, ID_PASSWORD); in fillResponseAuthServiceHasNoDataTest()
1114 final SaveRequest saveRequest = sReplier.getNextSaveRequest(); in fillResponseAuthWithClientState() local
1117 assertClientState("on save", saveRequest.data, "CSI", expectedValue); in fillResponseAuthWithClientState()
DWebViewMultiScreenLoginActivityTest.java288 final SaveRequest saveRequest = sReplier.getNextSaveRequest();
291 final AssistStructure previousStructure = saveRequest.contexts.get(0).getStructure();
298 final AssistStructure currentStructure = saveRequest.contexts.get(1).getStructure();
DMutableAutofillIdTest.java251 final SaveRequest saveRequest = sReplier.getNextSaveRequest(); in saveWhenIdChanged() local
252 final List<FillContext> contexts = saveRequest.contexts; in saveWhenIdChanged()
DVirtualContainerActivityTest.java590 final SaveRequest saveRequest = sReplier.getNextSaveRequest(); in saveTest() local
591 final ViewNode username = findNodeByResourceId(saveRequest.structure, ID_USERNAME); in saveTest()
592 final ViewNode password = findNodeByResourceId(saveRequest.structure, ID_PASSWORD); in saveTest()
/cts/tests/autofillservice/src/android/autofillservice/cts/augmented/
DAugmentedLoginActivityTest.java206 final SaveRequest saveRequest = sReplier.getNextSaveRequest();
208 assertThat(saveRequest.datasetIds).isNull();
211 final ViewNode usernameNode = findNodeByResourceId(saveRequest.structure, ID_USERNAME);
213 final ViewNode passwordNode = findNodeByResourceId(saveRequest.structure, ID_PASSWORD);
274 final SaveRequest saveRequest = sReplier.getNextSaveRequest();
276 assertThat(saveRequest.datasetIds).isNull();
279 final ViewNode usernameNode = findNodeByResourceId(saveRequest.structure, ID_USERNAME);
281 final ViewNode passwordNode = findNodeByResourceId(saveRequest.structure, ID_PASSWORD);