/cts/tests/autofillservice/src/android/autofillservice/cts/ |
LoginWithStringsActivityTest.java | 38 import android.autofillservice.cts.InstrumentedAutoFillService.SaveRequest; 122 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") [all...] |
PreFilledLoginActivityTest.java | 30 import android.autofillservice.cts.InstrumentedAutoFillService.SaveRequest; 93 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");
|
MultiScreenDifferentActivitiesTest.java | 29 import android.autofillservice.cts.InstrumentedAutoFillService.SaveRequest; 75 final SaveRequest saveRequest = sReplier.getNextSaveRequest(); 78 assertThat(saveRequest.contexts).hasSize(1); 80 assertTextAndValue(findNodeByResourceId(saveRequest.structure, ID_INPUT), "ID"); 123 final SaveRequest saveRequest = sReplier.getNextSaveRequest(); 126 assertThat(saveRequest.contexts).hasSize(2); 129 final AssistStructure structure1 = saveRequest.contexts.get(0).getStructure(); 137 final AssistStructure structure2 = saveRequest.contexts.get(1).getStructure() [all...] |
DatePickerTestCase.java | 31 import android.autofillservice.cts.InstrumentedAutoFillService.SaveRequest; 86 final SaveRequest saveRequest = sReplier.getNextSaveRequest(); 87 assertWithMessage("onSave() not called").that(saveRequest).isNotNull(); 90 assertDateValue(findNodeByResourceId(saveRequest.structure, ID_DATE_PICKER), 2010, 11, 12); 91 assertTextAndValue(findNodeByResourceId(saveRequest.structure, ID_OUTPUT), "2010/11/12");
|
TimePickerTestCase.java | 31 import android.autofillservice.cts.InstrumentedAutoFillService.SaveRequest; 85 final SaveRequest saveRequest = sReplier.getNextSaveRequest(); 86 assertWithMessage("onSave() not called").that(saveRequest).isNotNull(); 89 assertTimeValue(findNodeByResourceId(saveRequest.structure, ID_TIME_PICKER), 10, 40); 90 assertTextAndValue(findNodeByResourceId(saveRequest.structure, ID_OUTPUT), "10:40");
|
SimpleSaveActivityTest.java | 44 import android.autofillservice.cts.InstrumentedAutoFillService.SaveRequest; 136 final SaveRequest saveRequest = sReplier.getNextSaveRequest(); 137 assertTextAndValue(findNodeByResourceId(saveRequest.structure, ID_INPUT), "ID"); 138 assertTextAndValue(findNodeByResourceId(saveRequest.structure, ID_PASSWORD), "PASS"); 189 final SaveRequest saveRequest = sReplier.getNextSaveRequest(); 190 final ViewNode inputOnSave = findNodeByResourceId(saveRequest.structure, ID_INPUT); 192 assertTextAndValue(findNodeByResourceId(saveRequest.structure, ID_PASSWORD), "PASS"); 249 final SaveRequest saveRequest = sReplier.getNextSaveRequest() [all...] |
OptionalSaveActivityTest.java | 30 import android.autofillservice.cts.InstrumentedAutoFillService.SaveRequest; 136 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() [all...] |
WebViewActivityTest.java | 29 import android.autofillservice.cts.InstrumentedAutoFillService.SaveRequest; 209 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() [all...] |
MultiScreenLoginTest.java | 34 import android.autofillservice.cts.InstrumentedAutoFillService.SaveRequest; 102 final SaveRequest saveRequest1 = sReplier.getNextSaveRequest(); 134 final SaveRequest saveRequest2 = sReplier.getNextSaveRequest(); 205 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() [all...] |
MultipleFragmentLoginTest.java | 127 // autofill value is. For text views in SaveRequest both are updated, but this is the 161 // The saveRequest should have a fillContext for each partition with all the data 162 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();
|
PreSimpleSaveActivityTest.java | 31 import android.autofillservice.cts.InstrumentedAutoFillService.SaveRequest; 114 final SaveRequest saveRequest = sReplier.getNextSaveRequest(); 115 assertTextAndValue(findNodeByResourceId(saveRequest.structure, ID_PRE_INPUT), "108"); 169 final SaveRequest saveRequest = sReplier.getNextSaveRequest(); 170 assertTextAndValue(findNodeByResourceId(saveRequest.structure, ID_PRE_INPUT), 207 final SaveRequest saveRequest = sReplier.getNextSaveRequest(); 208 assertTextAndValue(findNodeByResourceId(saveRequest.structure, ID_INPUT), "42") [all...] |
SessionLifecycleTest.java | 256 InstrumentedAutoFillService.SaveRequest saveRequest = sReplier.getNextSaveRequest(); 257 assertWithMessage("onSave() not called").that(saveRequest).isNotNull(); 260 final AssistStructure.ViewNode username = findNodeByResourceId(saveRequest.structure, 263 final AssistStructure.ViewNode password = findNodeByResourceId(saveRequest.structure, 268 assertThat(saveRequest.data).isNotNull(); 269 final String extraValue = saveRequest.data.getString("numbers"); 493 final InstrumentedAutoFillService.SaveRequest saveRequest = sReplier.getNextSaveRequest(); 496 final AssistStructure.ViewNode username = findNodeByResourceId(saveRequest.structure [all...] |
AutoFinishSessionTest.java | 27 import android.autofillservice.cts.InstrumentedAutoFillService.SaveRequest; 114 SaveRequest saveRequest = sReplier.getNextSaveRequest(); 116 assertThat(findNodeByResourceId(saveRequest.structure, view) 253 SaveRequest saveRequest = sReplier.getNextSaveRequest(); 254 assertThat(findNodeByResourceId(saveRequest.structure, "editText1")
|
VirtualContainerActivityCompatModeTest.java | 39 import android.autofillservice.cts.InstrumentedAutoFillService.SaveRequest; 216 final SaveRequest saveRequest = sReplier.getNextSaveRequest(); 217 final ViewNode username = findNodeByResourceId(saveRequest.structure, ID_USERNAME); 218 final ViewNode password = findNodeByResourceId(saveRequest.structure, ID_PASSWORD); 219 final ViewNode urlBar = findNodeByResourceId(saveRequest.structure, ID_URL_BAR);
|
CheckoutActivityTest.java | 45 import android.autofillservice.cts.InstrumentedAutoFillService.SaveRequest; 240 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);
|
LoginActivityTest.java | 74 import android.autofillservice.cts.InstrumentedAutoFillService.SaveRequest; 321 final SaveRequest saveRequest = sReplier.getNextSaveRequest(); 323 assertThat(saveRequest.datasetIds).isNull(); 326 final ViewNode username = findNodeByResourceId(saveRequest.structure, ID_USERNAME); 328 final ViewNode password = findNodeByResourceId(saveRequest.structure, ID_PASSWORD); 330 final ViewNode childNode = findNodeByResourceId(saveRequest.structure, ID_EMPTY); [all...] |
OnClickActionTest.java | 34 import android.autofillservice.cts.InstrumentedAutoFillService.SaveRequest; 142 final SaveRequest saveRequest = sReplier.getNextSaveRequest(); 143 assertTextAndValue(findNodeByResourceId(saveRequest.structure, ID_INPUT), "42"); 144 assertTextAndValue(findNodeByResourceId(saveRequest.structure, ID_PASSWORD), "108");
|
WebViewMultiScreenLoginActivityTest.java | 36 import android.autofillservice.cts.InstrumentedAutoFillService.SaveRequest; 136 final SaveRequest saveRequest1 = sReplier.getNextSaveRequest(); 184 final SaveRequest saveRequest2 = sReplier.getNextSaveRequest(); 288 final SaveRequest saveRequest = sReplier.getNextSaveRequest(); 291 final AssistStructure previousStructure = saveRequest.contexts.get(0).getStructure(); 298 final AssistStructure currentStructure = saveRequest.contexts.get(1).getStructure();
|
PartitionedActivityTest.java | 47 import android.autofillservice.cts.InstrumentedAutoFillService.SaveRequest; 589 final SaveRequest saveRequest = sReplier.getNextSaveRequest(); 592 .that(saveRequest.data.size()).isEqualTo(1); 593 assertThat(saveRequest.data.getString("numbers4")).isEqualTo("2342"); 629 final SaveRequest saveRequest = sReplier.getNextSaveRequest(); 630 assertValue(saveRequest.structure, ID_L2C1, "L2C1"); 666 final SaveRequest saveRequest = sReplier.getNextSaveRequest() [all...] |
AuthenticationTest.java | 35 import android.autofillservice.cts.InstrumentedAutoFillService.SaveRequest; 734 final SaveRequest saveRequest = sReplier.getNextSaveRequest(); 737 assertClientState("on save", saveRequest.data, "CSI", expectedValue); [all...] |
MutableAutofillIdTest.java | 35 import android.autofillservice.cts.InstrumentedAutoFillService.SaveRequest; 251 final SaveRequest saveRequest = sReplier.getNextSaveRequest(); 252 final List<FillContext> contexts = saveRequest.contexts;
|
VirtualContainerActivityTest.java | 41 import android.autofillservice.cts.InstrumentedAutoFillService.SaveRequest; 590 final SaveRequest saveRequest = sReplier.getNextSaveRequest(); 591 final ViewNode username = findNodeByResourceId(saveRequest.structure, ID_USERNAME); 592 final ViewNode password = findNodeByResourceId(saveRequest.structure, ID_PASSWORD);
|
/cts/tests/autofillservice/src/android/autofillservice/cts/augmented/ |
AugmentedLoginActivityTest.java | 48 import android.autofillservice.cts.InstrumentedAutoFillService.SaveRequest; 206 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) [all...] |