Home
last modified time | relevance | path

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

/cts/tests/autofillservice/src/android/autofillservice/cts/
DMultipleFragmentLoginTest.java21 import static android.autofillservice.cts.Helper.findNodeByResourceId;
82 assertThat(findNodeByResourceId(structure, "editText1")).isNotNull(); in loginOnTwoFragments()
83 assertThat(findNodeByResourceId(structure, "editText2")).isNotNull(); in loginOnTwoFragments()
84 assertThat(findNodeByResourceId(structure, "editText3")).isNull(); in loginOnTwoFragments()
85 assertThat(findNodeByResourceId(structure, "editText4")).isNull(); in loginOnTwoFragments()
86 assertThat(findNodeByResourceId(structure, "editText5")).isNull(); in loginOnTwoFragments()
123 ViewNode editText1Node = findNodeByResourceId(structure1, "editText1"); in loginOnTwoFragments()
130 ViewNode editText2Node = findNodeByResourceId(structure1, "editText2"); in loginOnTwoFragments()
135 assertThat(findNodeByResourceId(structure1, "editText3")).isNull(); in loginOnTwoFragments()
136 assertThat(findNodeByResourceId(structure1, "editText4")).isNull(); in loginOnTwoFragments()
[all …]
DOptionalSaveActivityTest.java19 import static android.autofillservice.cts.Helper.findNodeByResourceId;
85 assertTextAndValue(findNodeByResourceId(s, ID_ADDRESS1), "742 Evergreen Terrace"); in testNoAutofillSaveAll()
86 assertTextAndValue(findNodeByResourceId(s, ID_ADDRESS2), "Simpsons House"); in testNoAutofillSaveAll()
87 assertTextAndValue(findNodeByResourceId(s, ID_CITY), "Springfield"); in testNoAutofillSaveAll()
88 assertTextAndValue(findNodeByResourceId(s, ID_FAVORITE_COLOR), "Yellow"); in testNoAutofillSaveAll()
98 assertTextAndValue(findNodeByResourceId(s, ID_ADDRESS1), "742 Evergreen Terrace"); in testNoAutofillSaveRequiredOnly()
99 assertTextAndValue(findNodeByResourceId(s, ID_ADDRESS2), ""); in testNoAutofillSaveRequiredOnly()
100 assertTextAndValue(findNodeByResourceId(s, ID_CITY), "Springfield"); in testNoAutofillSaveRequiredOnly()
101 assertTextAndValue(findNodeByResourceId(s, ID_FAVORITE_COLOR), ""); in testNoAutofillSaveRequiredOnly()
211 assertTextAndValue(findNodeByResourceId(s, ID_ADDRESS1), in testAutofillAllChangedAllSaveAll()
[all …]
DFatActivityTest.java35 import static android.autofillservice.cts.Helper.findNodeByResourceId;
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()
121 assertThat(findNodeByResourceId(mRoot, in testAutomaticRequest()
123 assertThat(findNodeByResourceId(mRoot, in testAutomaticRequest()
125 assertThat(findNodeByResourceId(mRoot, in testAutomaticRequest()
131 assertThat(findNodeByResourceId(mRoot, in testAutomaticRequest()
133 assertThat(findNodeByResourceId(mRoot, in testAutomaticRequest()
137 assertThat(findNodeByResourceId(mRoot, in testAutomaticRequest()
[all …]
DPreFilledLoginActivityTest.java26 import static android.autofillservice.cts.Helper.findNodeByResourceId;
82 assertTextAndValue(findNodeByResourceId(fillRequest.structure, ID_USERNAME), in testSanitization()
84 assertTextAndValue(findNodeByResourceId(fillRequest.structure, ID_PASSWORD), "T0p S3cr3t"); in testSanitization()
96 assertTextOnly(findNodeByResourceId(saveRequest.structure, ID_USERNAME_LABEL), "DA USER"); in testSanitization()
99 assertTextAndValue(findNodeByResourceId(saveRequest.structure, ID_USERNAME), "malkovich"); in testSanitization()
100 assertTextAndValue(findNodeByResourceId(saveRequest.structure, ID_PASSWORD), "malkovich"); in testSanitization()
DInitializedCheckoutActivityTest.java28 import static android.autofillservice.cts.Helper.findNodeByResourceId;
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()
DTimePickerTestCase.java24 import static android.autofillservice.cts.Helper.findNodeByResourceId;
89 assertTimeValue(findNodeByResourceId(saveRequest.structure, ID_TIME_PICKER), 10, 40); in testAutoFillAndSave()
90 assertTextAndValue(findNodeByResourceId(saveRequest.structure, ID_OUTPUT), "10:40"); in testAutoFillAndSave()
DVirtualContainerActivityCompatModeTest.java22 import static android.autofillservice.cts.Helper.findNodeByResourceId;
124 final ViewNode urlBar = findNodeByResourceId(request.structure, ID_URL_BAR); in testMultipleUrlBars_firstDoesNotExist()
149 final ViewNode urlBar = findNodeByResourceId(request.structure, ID_URL_BAR); in testMultipleUrlBars_bothExist()
150 final ViewNode urlBar2 = findNodeByResourceId(request.structure, ID_URL_BAR2); in testMultipleUrlBars_bothExist()
221 final ViewNode username = findNodeByResourceId(saveRequest.structure, ID_USERNAME); in testUrlBarChangeIgnoredWhenServiceCanSave()
222 final ViewNode password = findNodeByResourceId(saveRequest.structure, ID_PASSWORD); in testUrlBarChangeIgnoredWhenServiceCanSave()
223 final ViewNode urlBar = findNodeByResourceId(saveRequest.structure, ID_URL_BAR); in testUrlBarChangeIgnoredWhenServiceCanSave()
DDatePickerTestCase.java24 import static android.autofillservice.cts.Helper.findNodeByResourceId;
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()
DManualAuthenticationActivity.java56 (id) -> Helper.findNodeByResourceId(structure, id)); in onCreate()
59 (id) -> Helper.findNodeByResourceId(structure, id)); in onCreate()
DLoginWithStringsActivityTest.java26 import static android.autofillservice.cts.Helper.findNodeByResourceId;
125 final ViewNode username = findNodeByResourceId(saveRequest.structure, ID_USERNAME); in testAutoFillOneDatasetAndSave()
127 final ViewNode password = findNodeByResourceId(saveRequest.structure, ID_USERNAME); in testAutoFillOneDatasetAndSave()
DSimpleSaveActivityTest.java22 import static android.autofillservice.cts.Helper.findNodeByResourceId;
132 assertTextAndValue(findNodeByResourceId(saveRequest.structure, ID_INPUT), "ID"); in testAutoFillOneDatasetAndSave()
133 assertTextAndValue(findNodeByResourceId(saveRequest.structure, ID_PASSWORD), "PASS"); in testAutoFillOneDatasetAndSave()
184 assertTextAndValue(findNodeByResourceId(saveRequest.structure, ID_INPUT), "ID"); in testAutoFillOneDatasetAndSave_usingUiAutomatorOnly()
185 assertTextAndValue(findNodeByResourceId(saveRequest.structure, ID_PASSWORD), "PASS"); in testAutoFillOneDatasetAndSave_usingUiAutomatorOnly()
242 assertTextAndValue(findNodeByResourceId(saveRequest.structure, ID_INPUT), "108"); in saveTest()
606 assertTextAndValue(findNodeByResourceId(saveRequest.structure, ID_INPUT), "108"); in saveUiRestoredAfterTappingLinkTest()
666 assertTextAndValue(findNodeByResourceId(saveRequest.structure, ID_INPUT), "108"); in tapLinkThenTapBackThenStartOverTest()
699 assertTextAndValue(findNodeByResourceId(saveRequest.structure, ID_INPUT), "42"); in tapLinkThenTapBackThenStartOverTest()
807 assertTextAndValue(findNodeByResourceId(saveRequest.structure, ID_INPUT), "ID"); in testSelectedDatasetsAreSentOnSaveRequest()
[all …]
DCheckoutActivityTest.java33 import static android.autofillservice.cts.Helper.findNodeByResourceId;
240 assertTextAndValue(findNodeByResourceId(saveRequest.structure, ID_CC_NUMBER), "4815162342"); in testSanitization()
241 assertListValue(findNodeByResourceId(saveRequest.structure, ID_CC_EXPIRATION), in testSanitization()
243 assertListValue(findNodeByResourceId(saveRequest.structure, ID_ADDRESS), in testSanitization()
245 assertToggleValue(findNodeByResourceId(saveRequest.structure, ID_HOME_ADDRESS), false); in testSanitization()
246 assertToggleValue(findNodeByResourceId(saveRequest.structure, ID_WORK_ADDRESS), true); in testSanitization()
247 assertToggleValue(findNodeByResourceId(saveRequest.structure, ID_SAVE_CC), false); in testSanitization()
DPreSimpleSaveActivityTest.java20 import static android.autofillservice.cts.Helper.findNodeByResourceId;
124 assertTextAndValue(findNodeByResourceId(saveRequest.structure, ID_PRE_INPUT), "108"); in saveUiRestoredAfterTappingLinkTest()
179 assertTextAndValue(findNodeByResourceId(saveRequest.structure, ID_PRE_INPUT), in tapLinkThenTapBackThenStartOverTest()
218 assertTextAndValue(findNodeByResourceId(saveRequest.structure, ID_INPUT), "42"); in tapLinkThenTapBackThenStartOverTest()
345 assertTextAndValue(findNodeByResourceId(saveRequest1.structure, ID_INPUT), "42"); in tapLinkLaunchTrampolineActivityThenTapBackAndStartNewSessionTest()
DViewAttributesTest.java19 import static android.autofillservice.cts.Helper.findNodeByResourceId;
140 return findNodeByResourceId(structure, resName).getAutofillHints(); in getHintsFromStructure()
183 AssistStructure.ViewNode outerView = findNodeByResourceId(structure, in checkViewLocationInAssistStructure()
251 AssistStructure.ViewNode outerView = findNodeByResourceId(structure, in checkViewLocationInAssistStructureAfterForceAutofill()
DWebViewActivityTest.java368 final ViewNode outside1FillNode = Helper.findNodeByResourceId(fillRequest.structure, in testAutofillAndSave_withExternalViews_loadWebViewFirst()
371 final ViewNode outside2FillNode = Helper.findNodeByResourceId(fillRequest.structure, in testAutofillAndSave_withExternalViews_loadWebViewFirst()
433 final ViewNode outside1SaveNode = Helper.findNodeByResourceId(saveRequest.structure, in testAutofillAndSave_withExternalViews_loadWebViewFirst()
436 final ViewNode outside2SaveNode = Helper.findNodeByResourceId(saveRequest.structure, in testAutofillAndSave_withExternalViews_loadWebViewFirst()
482 final ViewNode outside1FillNode = Helper.findNodeByResourceId(fillRequest1.structure, in testAutofillAndSave_withExternalViews_loadExternalViewsFirst()
485 final ViewNode outside2FillNode = Helper.findNodeByResourceId(fillRequest1.structure, in testAutofillAndSave_withExternalViews_loadExternalViewsFirst()
591 final ViewNode outside1SaveNode = Helper.findNodeByResourceId(saveRequest.structure, in testAutofillAndSave_withExternalViews_loadExternalViewsFirst()
594 final ViewNode outside2SaveNode = Helper.findNodeByResourceId(saveRequest.structure, in testAutofillAndSave_withExternalViews_loadExternalViewsFirst()
DVirtualContainerActivityTest.java27 import static android.autofillservice.cts.Helper.findNodeByResourceId;
190 final ViewNode urlBar = findNodeByResourceId(request.structure, ID_URL_BAR); in autofillTest()
191 final ViewNode usernameLabel = findNodeByResourceId(request.structure, ID_USERNAME_LABEL); in autofillTest()
192 final ViewNode username = findNodeByResourceId(request.structure, ID_USERNAME); in autofillTest()
193 final ViewNode passwordLabel = findNodeByResourceId(request.structure, ID_PASSWORD_LABEL); in autofillTest()
194 final ViewNode password = findNodeByResourceId(request.structure, ID_PASSWORD); in autofillTest()
585 final ViewNode username = findNodeByResourceId(saveRequest.structure, ID_USERNAME); in saveTest()
586 final ViewNode password = findNodeByResourceId(saveRequest.structure, ID_PASSWORD); in saveTest()
DLoginActivityTest.java32 import static android.autofillservice.cts.Helper.findNodeByResourceId;
368 findNodeByResourceId(request.structure, ID_USERNAME).isFocused()).isTrue(); in autofillOneDatasetTest()
370 findNodeByResourceId(request.structure, ID_PASSWORD).isFocused()).isFalse(); in autofillOneDatasetTest()
965 final ViewNode username = findNodeByResourceId(saveRequest.structure, ID_USERNAME); in testAutoFillOneDatasetAndSaveHidingOverlays()
967 final ViewNode password = findNodeByResourceId(saveRequest.structure, ID_PASSWORD); in testAutoFillOneDatasetAndSaveHidingOverlays()
1324 final ViewNode username = findNodeByResourceId(saveRequest.structure, ID_USERNAME); in saveOnlyTest()
1326 final ViewNode password = findNodeByResourceId(saveRequest.structure, ID_PASSWORD); in saveOnlyTest()
1451 final ViewNode username = findNodeByResourceId(saveRequest.structure, ID_USERNAME); in saveOnlyTestPreFilled()
1453 final ViewNode password = findNodeByResourceId(saveRequest.structure, ID_PASSWORD); in saveOnlyTestPreFilled()
1498 final ViewNode username = findNodeByResourceId(saveRequest.structure, ID_USERNAME); in testSaveOnlyTwoRequiredFieldsOnePrefilled()
[all …]
DAutoFinishSessionTest.java20 import static android.autofillservice.cts.Helper.findNodeByResourceId;
110 assertThat(findNodeByResourceId(saveRequest.structure, view) in removeViewsBaseTest()
248 assertThat(findNodeByResourceId(saveRequest.structure, "editText1") in activityToBackgroundShouldNotTriggerSave()
DSessionLifecycleTest.java23 import static android.autofillservice.cts.Helper.findNodeByResourceId;
229 final AssistStructure.ViewNode username = findNodeByResourceId(saveRequest.structure, in testDatasetAuthResponseWhileAutofilledAppIsLifecycled()
232 final AssistStructure.ViewNode password = findNodeByResourceId(saveRequest.structure, in testDatasetAuthResponseWhileAutofilledAppIsLifecycled()
462 final AssistStructure.ViewNode username = findNodeByResourceId(saveRequest.structure, in testSaveRemainsWhenAutofilledAppIsKilled()
DHelper.java284 static ViewNode findNodeByResourceId(AssistStructure structure, String resourceId) { in findNodeByResourceId() method in Helper
291 static ViewNode findNodeByResourceId(List<FillContext> contexts, String resourceId) { in findNodeByResourceId() method in Helper
298 static ViewNode findNodeByResourceId(ViewNode node, String resourceId) { in findNodeByResourceId() method in Helper
446 final ViewNode node = findNodeByResourceId(structure, resourceId); in assertTextOnly()
464 final ViewNode node = findNodeByResourceId(structure, resourceId); in assertTextAndValue()
474 final ViewNode node = findNodeByResourceId(structure, resourceId); in assertValue()
484 final ViewNode node = findNodeByResourceId(structure, resourceId); in assertTextFromResouces()
608 final ViewNode node = findNodeByResourceId(structure, resourceId); in assertTextIsSanitized()
618 final ViewNode node = findNodeByResourceId(structure, resourceId); in assertListValueIsSanitized()
627 final ViewNode node = findNodeByResourceId(structure, resourceId); in assertToggleIsSanitized()
[all …]
DAuthenticationActivity.java227 .asFillResponse((id) -> Helper.findNodeByResourceId(structure, id)); in doIt()
230 result = dataset.asDataset((id) -> Helper.findNodeByResourceId(structure, id)); in doIt()
DAuthenticationTest.java25 import static android.autofillservice.cts.Helper.findNodeByResourceId;
1025 final ViewNode usernameNode = findNodeByResourceId(saveRequest.structure, ID_USERNAME); in fillResponseAuthServiceHasNoDataTest()
1027 final ViewNode passwordNode = findNodeByResourceId(saveRequest.structure, ID_PASSWORD); in fillResponseAuthServiceHasNoDataTest()
DInstrumentedAutoFillService.java568 (id) -> Helper.findNodeByResourceId(contexts, id)); in onFillRequest()