Home
last modified time | relevance | path

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

/cts/tests/autofillservice/src/android/autofillservice/cts/
DPreFilledLoginActivityTest.java97 final SaveRequest saveRequest = sReplier.getNextSaveRequest(); in testSanitization() local
100 assertTextOnly(findNodeByResourceId(saveRequest.structure, ID_USERNAME_LABEL), "DA USER"); in testSanitization()
101 assertTextOnly(findNodeByResourceId(saveRequest.structure, ID_PASSWORD_LABEL), in testSanitization()
103 assertTextAndValue(findNodeByResourceId(saveRequest.structure, ID_USERNAME), "malkovich"); in testSanitization()
104 assertTextAndValue(findNodeByResourceId(saveRequest.structure, ID_PASSWORD), "malkovich"); in testSanitization()
DTimePickerTestCase.java93 final SaveRequest saveRequest = sReplier.getNextSaveRequest(); in testAutoFillAndSave() local
94 assertWithMessage("onSave() not called").that(saveRequest).isNotNull(); in testAutoFillAndSave()
97 assertTimeValue(findNodeByResourceId(saveRequest.structure, ID_TIME_PICKER), 10, 40); in testAutoFillAndSave()
98 assertTextAndValue(findNodeByResourceId(saveRequest.structure, ID_OUTPUT), "10:40"); in testAutoFillAndSave()
DDatePickerTestCase.java94 final SaveRequest saveRequest = sReplier.getNextSaveRequest(); in testAutoFillAndSave() local
95 assertWithMessage("onSave() not called").that(saveRequest).isNotNull(); in testAutoFillAndSave()
98 assertDateValue(findNodeByResourceId(saveRequest.structure, ID_DATE_PICKER), 2010, 11, 12); in testAutoFillAndSave()
99 assertTextAndValue(findNodeByResourceId(saveRequest.structure, ID_OUTPUT), "2010/11/12"); in testAutoFillAndSave()
DCheckoutActivityTest.java233 final SaveRequest saveRequest = sReplier.getNextSaveRequest(); in testSanitization() local
236 assertTextAndValue(findNodeByResourceId(saveRequest.structure, ID_CC_NUMBER), "4815162342"); in testSanitization()
237 assertListValue(findNodeByResourceId(saveRequest.structure, ID_CC_EXPIRATION), in testSanitization()
239 assertListValue(findNodeByResourceId(saveRequest.structure, ID_ADDRESS), in testSanitization()
241 assertToggleValue(findNodeByResourceId(saveRequest.structure, ID_HOME_ADDRESS), false); in testSanitization()
242 assertToggleValue(findNodeByResourceId(saveRequest.structure, ID_WORK_ADDRESS), true); in testSanitization()
243 assertToggleValue(findNodeByResourceId(saveRequest.structure, ID_SAVE_CC), false); in testSanitization()
DSessionLifecycleTest.java183 InstrumentedAutoFillService.SaveRequest saveRequest = sReplier.getNextSaveRequest(); in testDatasetAuthResponseWhileAutofilledAppIsLifecycled() local
184 assertWithMessage("onSave() not called").that(saveRequest).isNotNull(); in testDatasetAuthResponseWhileAutofilledAppIsLifecycled()
187 final AssistStructure.ViewNode username = findNodeByResourceId(saveRequest.structure, in testDatasetAuthResponseWhileAutofilledAppIsLifecycled()
190 final AssistStructure.ViewNode password = findNodeByResourceId(saveRequest.structure, in testDatasetAuthResponseWhileAutofilledAppIsLifecycled()
195 assertThat(saveRequest.data).isNotNull(); in testDatasetAuthResponseWhileAutofilledAppIsLifecycled()
196 final String extraValue = saveRequest.data.getString("numbers"); in testDatasetAuthResponseWhileAutofilledAppIsLifecycled()
DOptionalSaveActivityTest.java135 final SaveRequest saveRequest = sReplier.getNextSaveRequest(); in noAutofillSaveOnChangeTest() local
136 assertWithMessage("onSave() not called").that(saveRequest).isNotNull(); in noAutofillSaveOnChangeTest()
139 assertions.visit(saveRequest.structure); in noAutofillSaveOnChangeTest()
332 final SaveRequest saveRequest = sReplier.getNextSaveRequest(); in autofillAndSaveOnChangeTest() local
333 assertWithMessage("onSave() not called").that(saveRequest).isNotNull(); in autofillAndSaveOnChangeTest()
336 assertions.visit(saveRequest.structure); in autofillAndSaveOnChangeTest()
DMultipleFragmentLoginTest.java169 InstrumentedAutoFillService.SaveRequest saveRequest = sReplier.getNextSaveRequest(); in loginOnTwoFragments() local
170 assertThat(saveRequest.contexts.size()).isEqualTo(2); in loginOnTwoFragments()
172 assertThat(saveRequest.data.getString("key")).isEqualTo("value2"); in loginOnTwoFragments()
174 structure1 = saveRequest.contexts.get(0).getStructure(); in loginOnTwoFragments()
185 structure2 = saveRequest.contexts.get(1).getStructure(); in loginOnTwoFragments()
DAutoFinishSessionTest.java104 SaveRequest saveRequest = sReplier.getNextSaveRequest(); in removeViewsBaseTest() local
106 assertThat(findNodeByResourceId(saveRequest.structure, view) in removeViewsBaseTest()
230 SaveRequest saveRequest = sReplier.getNextSaveRequest(); in activityToBackgroundShouldNotTriggerSave() local
231 assertThat(findNodeByResourceId(saveRequest.structure, "editText1") in activityToBackgroundShouldNotTriggerSave()
DLoginActivityTest.java556 final SaveRequest saveRequest = sReplier.getNextSaveRequest(); in testAutoFillOneDatasetAndSave() local
559 final ViewNode username = findNodeByResourceId(saveRequest.structure, ID_USERNAME); in testAutoFillOneDatasetAndSave()
561 final ViewNode password = findNodeByResourceId(saveRequest.structure, ID_USERNAME); in testAutoFillOneDatasetAndSave()
565 assertThat(saveRequest.data).isNotNull(); in testAutoFillOneDatasetAndSave()
566 final String extraValue = saveRequest.data.getString("numbers"); in testAutoFillOneDatasetAndSave()
661 final SaveRequest saveRequest = sReplier.getNextSaveRequest(); in testAutoFillOneDatasetAndSaveHidingOverlays() local
664 final ViewNode username = findNodeByResourceId(saveRequest.structure, ID_USERNAME); in testAutoFillOneDatasetAndSaveHidingOverlays()
666 final ViewNode password = findNodeByResourceId(saveRequest.structure, ID_USERNAME); in testAutoFillOneDatasetAndSaveHidingOverlays()
670 assertThat(saveRequest.data).isNotNull(); in testAutoFillOneDatasetAndSaveHidingOverlays()
671 final String extraValue = saveRequest.data.getString("numbers"); in testAutoFillOneDatasetAndSaveHidingOverlays()
[all …]
DPartitionedActivityTest.java599 final SaveRequest saveRequest = sReplier.getNextSaveRequest(); in testAutofillBundleDataIsPassedAlong() local
602 .that(saveRequest.data.size()).isEqualTo(1); in testAutofillBundleDataIsPassedAlong()
603 assertThat(saveRequest.data.getString("numbers4")).isEqualTo("2342"); in testAutofillBundleDataIsPassedAlong()
639 final SaveRequest saveRequest = sReplier.getNextSaveRequest(); in testSaveOneSaveInfoOnFirstPartitionWithIdsOnSecond() local
640 assertValue(saveRequest.structure, ID_L2C1, "L2C1"); in testSaveOneSaveInfoOnFirstPartitionWithIdsOnSecond()
676 final SaveRequest saveRequest = sReplier.getNextSaveRequest(); in testSaveOneSaveInfoOnSecondPartitionWithIdsOnFirst() local
677 assertValue(saveRequest.structure, ID_L1C1, "L1C1"); in testSaveOneSaveInfoOnSecondPartitionWithIdsOnFirst()
716 final SaveRequest saveRequest = sReplier.getNextSaveRequest(); in testSaveTwoSaveInfosDifferentTypes() local
717 assertValue(saveRequest.structure, ID_L1C1, "L1C1"); in testSaveTwoSaveInfosDifferentTypes()
718 assertValue(saveRequest.structure, ID_L2C1, "L2C1"); in testSaveTwoSaveInfosDifferentTypes()
[all …]