/cts/tests/autofillservice/src/android/autofillservice/cts/ |
D | InitializedCheckoutActivityTest.java | 66 final FillRequest fillRequest = sReplier.getNextFillRequest(); in testSanitization() local 68 assertTextAndValue(findNodeByResourceId(fillRequest.structure, ID_CC_NUMBER), "4815162342"); in testSanitization() 69 assertListValue(findNodeByResourceId(fillRequest.structure, ID_ADDRESS), in testSanitization() 71 assertToggleValue(findNodeByResourceId(fillRequest.structure, ID_SAVE_CC), true); in testSanitization() 74 assertTextIsSanitized(fillRequest.structure, ID_CC_EXPIRATION); in testSanitization()
|
D | MultipleFragmentLoginTest.java | 67 final InstrumentedAutoFillService.FillRequest[] fillRequest = in loginOnTwoFragments() local 76 fillRequest[0] = sReplier.getNextFillRequest(); in loginOnTwoFragments() 78 assertThat(fillRequest[0].data).isNull(); in loginOnTwoFragments() 80 AssistStructure structure = fillRequest[0].contexts.get(0).getStructure(); in loginOnTwoFragments() 81 assertThat(fillRequest[0].contexts.size()).isEqualTo(1); in loginOnTwoFragments() 114 fillRequest[0] = sReplier.getNextFillRequest(); in loginOnTwoFragments() 118 assertThat(fillRequest[0].contexts.size()).isEqualTo(2); in loginOnTwoFragments() 120 assertThat(fillRequest[0].data.getString("key")).isEqualTo("value1"); in loginOnTwoFragments() 122 AssistStructure structure1 = fillRequest[0].contexts.get(0).getStructure(); in loginOnTwoFragments() 139 AssistStructure structure2 = fillRequest[0].contexts.get(1).getStructure(); in loginOnTwoFragments()
|
D | PreFilledLoginActivityTest.java | 72 final FillRequest fillRequest = sReplier.getNextFillRequest(); in testSanitization() local 75 assertTextIsSanitized(fillRequest.structure, ID_USERNAME_LABEL); in testSanitization() 78 assertTextFromResouces(fillRequest.structure, ID_PASSWORD_LABEL, "DA PASSWORD", false, in testSanitization() 82 assertTextAndValue(findNodeByResourceId(fillRequest.structure, ID_USERNAME), in testSanitization() 84 assertTextAndValue(findNodeByResourceId(fillRequest.structure, ID_PASSWORD), "T0p S3cr3t"); in testSanitization()
|
D | DialogLauncherActivityTest.java | 67 final FillRequest fillRequest = sReplier.getNextFillRequest(); in autofillNoDatasetsTest() local 73 assertTextIsSanitized(fillRequest.structure, ID_USERNAME); in autofillNoDatasetsTest() 74 assertTextIsSanitized(fillRequest.structure, ID_PASSWORD); in autofillNoDatasetsTest() 76 Helper.dumpStructure("D'OH!", fillRequest.structure); in autofillNoDatasetsTest()
|
D | LoginWithStringsActivityTest.java | 86 final FillRequest fillRequest = sReplier.getNextFillRequest(); in testAutoFillOneDatasetAndSave() local 89 assertTextIsSanitized(fillRequest.structure, ID_USERNAME); in testAutoFillOneDatasetAndSave() 90 assertTextIsSanitized(fillRequest.structure, ID_PASSWORD); in testAutoFillOneDatasetAndSave() 93 assertTextFromResouces(fillRequest.structure, ID_USERNAME_LABEL, "Username", false, in testAutoFillOneDatasetAndSave() 95 assertTextFromResouces(fillRequest.structure, ID_PASSWORD_LABEL, "Password", false, in testAutoFillOneDatasetAndSave()
|
D | TimePickerTestCase.java | 69 final FillRequest fillRequest = sReplier.getNextFillRequest(); in testAutoFillAndSave() local 72 assertTextIsSanitized(fillRequest.structure, ID_TIME_PICKER); in testAutoFillAndSave() 73 assertNumberOfChildren(fillRequest.structure, ID_TIME_PICKER, 0); in testAutoFillAndSave()
|
D | DatePickerTestCase.java | 69 final FillRequest fillRequest = sReplier.getNextFillRequest(); in testAutoFillAndSave() local 72 assertTextIsSanitized(fillRequest.structure, ID_DATE_PICKER); in testAutoFillAndSave() 73 assertNumberOfChildren(fillRequest.structure, ID_DATE_PICKER, 0); in testAutoFillAndSave()
|
D | CheckoutActivityTest.java | 96 final FillRequest fillRequest = sReplier.getNextFillRequest(); in testAutofill() local 100 assertTextIsSanitized(fillRequest.structure, ID_CC_EXPIRATION); in testAutofill() 141 final FillRequest fillRequest = sReplier.getNextFillRequest(); in testAutofillDynamicAdapter() local 145 assertTextIsSanitized(fillRequest.structure, ID_CC_EXPIRATION); in testAutofillDynamicAdapter() 184 final FillRequest fillRequest = sReplier.getNextFillRequest(); in testGetAutofillOptionsSorted() local 188 assertTextIsSanitized(fillRequest.structure, ID_CC_EXPIRATION); in testGetAutofillOptionsSorted() 223 final FillRequest fillRequest = sReplier.getNextFillRequest(); in testSanitization() local 225 assertTextIsSanitized(fillRequest.structure, ID_CC_NUMBER); in testSanitization() 226 assertTextIsSanitized(fillRequest.structure, ID_CC_EXPIRATION); in testSanitization() 227 assertToggleIsSanitized(fillRequest.structure, ID_HOME_ADDRESS); in testSanitization() [all …]
|
D | FatActivityTest.java | 82 final FillRequest fillRequest = sReplier.getNextFillRequest(); in testAutomaticRequest() local 85 mRoot = findNodeByResourceId(fillRequest.structure, ID_ROOT); in testAutomaticRequest() 101 assertThat(findNodeByResourceId(fillRequest.structure, ID_IMAGE)).isNull(); in testAutomaticRequest() 110 assertThat(findNodeByResourceId(fillRequest.structure, ID_CAPTCHA)).isNull(); in testAutomaticRequest() 158 final FillRequest fillRequest = sReplier.getNextFillRequest(); in testManualRequest() local 161 mRoot = findNodeByResourceId(fillRequest.structure, ID_ROOT); in testManualRequest()
|
D | WebViewActivityTest.java | 124 final FillRequest fillRequest = sReplier.getNextFillRequest(); in autofillOneDatasetTest() local 153 Helper.findWebViewNodeByFormName(fillRequest.structure, "FORM AM I"); in autofillOneDatasetTest() 159 Helper.findNodeByHtmlName(fillRequest.structure, HTML_NAME_USERNAME); in autofillOneDatasetTest() 169 Helper.findNodeByHtmlName(fillRequest.structure, HTML_NAME_PASSWORD); in autofillOneDatasetTest() 179 Helper.dumpStructure("failed on testAutofillOneDataset()", fillRequest.structure); in autofillOneDatasetTest() 258 final FillRequest fillRequest = sReplier.getNextFillRequest(); in testAutofillAndSave() local 263 final ViewNode usernameNode = Helper.findNodeByHtmlName(fillRequest.structure, in testAutofillAndSave() 268 final ViewNode passwordNode = Helper.findNodeByHtmlName(fillRequest.structure, in testAutofillAndSave() 351 final FillRequest fillRequest = sReplier.getNextFillRequest(); in testAutofillAndSave_withExternalViews_loadWebViewFirst() local 356 final ViewNode usernameFillNode = Helper.findNodeByHtmlName(fillRequest.structure, in testAutofillAndSave_withExternalViews_loadWebViewFirst() [all …]
|
D | LoginActivityTest.java | 169 final FillRequest fillRequest = sReplier.getNextFillRequest(); in autofillAfterServiceReturnedNoDatasets() local 170 assertHasFlags(fillRequest.flags, expectedFlags); in autofillAfterServiceReturnedNoDatasets() 827 final FillRequest fillRequest = sReplier.getNextFillRequest(); in testAutoFillOneDatasetAndSave() local 830 assertTextIsSanitized(fillRequest.structure, ID_USERNAME); in testAutoFillOneDatasetAndSave() 831 assertTextIsSanitized(fillRequest.structure, ID_PASSWORD); in testAutoFillOneDatasetAndSave() 834 assertTextOnly(fillRequest.structure, ID_USERNAME_LABEL, "Username"); in testAutoFillOneDatasetAndSave() 835 assertTextOnly(fillRequest.structure, ID_PASSWORD_LABEL, "Password"); in testAutoFillOneDatasetAndSave() 1871 final FillRequest fillRequest = sReplier.getNextFillRequest(); in testGetTextInputType() local 1873 final ViewNode label = findNodeByResourceId(fillRequest.structure, ID_PASSWORD_LABEL); in testGetTextInputType() 1875 final ViewNode password = findNodeByResourceId(fillRequest.structure, ID_PASSWORD); in testGetTextInputType() [all …]
|