Home
last modified time | relevance | path

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

/cts/tests/contentcaptureservice/src/android/contentcaptureservice/cts/
DLoginActivity.java116 final AutofillId rootId = activity.getRootView().getAutofillId(); in assertJustInitialViewsAppeared()
129 assertViewAppeared(events, 3, grandpa2, decorView.getAutofillId()); in assertJustInitialViewsAppeared()
130 assertViewAppeared(events, 4, grandpa1, grandpa2.getAutofillId()); in assertJustInitialViewsAppeared()
131 assertViewAppeared(events, 5, sessionId, rootView, grandpa1.getAutofillId()); in assertJustInitialViewsAppeared()
150 final AutofillId rootId = activity.getRootView().getAutofillId(); in assertInitialViewsDisappeared()
165 grandpa1.getAutofillId(), grandpa2.getAutofillId(), in assertInitialViewsDisappeared()
166 activity.mUsernameLabel.getAutofillId(), activity.mUsername.getAutofillId(), in assertInitialViewsDisappeared()
167 activity.mPasswordLabel.getAutofillId(), activity.mPassword.getAutofillId()); in assertInitialViewsDisappeared()
173 grandpa1.getAutofillId(), grandpa2.getAutofillId(), in assertInitialViewsDisappeared()
174 decorView.getAutofillId(), in assertInitialViewsDisappeared()
[all …]
DLoginActivityTest.java188 final AutofillId rootId = activity.getRootView().getAutofillId(); in testSimpleLifecycle_rootViewSession()
195 assertViewAppeared(mainEvents, 3, grandpa2, decorView.getAutofillId()); in testSimpleLifecycle_rootViewSession()
196 assertViewAppeared(mainEvents, 4, grandpa1, grandpa2.getAutofillId()); in testSimpleLifecycle_rootViewSession()
203 decorView.getAutofillId(), in testSimpleLifecycle_rootViewSession()
204 grandpa2.getAutofillId(), grandpa1.getAutofillId()); in testSimpleLifecycle_rootViewSession()
226 grandpa1.getAutofillId()); in testSimpleLifecycle_rootViewSession()
234 activity.mUsernameLabel.getAutofillId(), activity.mUsername.getAutofillId(), in testSimpleLifecycle_rootViewSession()
235 activity.mPasswordLabel.getAutofillId(), activity.mPassword.getAutofillId()); in testSimpleLifecycle_rootViewSession()
312 final AutofillId rootId = activity.getRootView().getAutofillId(); in testSimpleLifecycle_changeContextOnCreate()
329 assertViewAppeared(events, 4, grandpa2, decorView.getAutofillId()); in testSimpleLifecycle_changeContextOnCreate()
[all …]
DCustomViewActivityTest.java125 final AutofillId customViewId = customView.getAutofillId(); in testVirtualView_wrongWay()
131 final AutofillId childId = child.getAutofillId(); in testVirtualView_wrongWay()
154 final AutofillId customViewId = activity.mCustomView.getAutofillId(); in testVirtualView_wrongWay()
155 Log.v(TAG, "assertJustInitialViewsAppeared(): grandpa1=" + grandpa1.getAutofillId() in testVirtualView_wrongWay()
156 + ", grandpa2=" + grandpa2.getAutofillId() + ", decor=" in testVirtualView_wrongWay()
157 + decorView.getAutofillId() + "customView=" + customViewId); in testVirtualView_wrongWay()
169 assertViewAppeared(events, 3, grandpa2, decorView.getAutofillId()); in testVirtualView_wrongWay()
170 assertViewAppeared(events, 4, grandpa1, grandpa2.getAutofillId()); in testVirtualView_wrongWay()
196 final AutofillId customViewId = customView.getAutofillId(); in testVirtualView_oneLevel()
202 final AutofillId child1Id = child1.getAutofillId(); in testVirtualView_oneLevel()
[all …]
DCustomViewActivity.java78 Log.d(TAG, "onCreate(): custom view id is " + mCustomView.getAutofillId()); in onCreate()
123 Log.v(TAG, "assertJustInitialViewsAppeared(): grandpa1=" + grandpa1.getAutofillId() in assertJustInitialViewsAppeared()
124 + ", grandpa2=" + grandpa2.getAutofillId() + ", decor=" in assertJustInitialViewsAppeared()
125 + decorView.getAutofillId()); in assertJustInitialViewsAppeared()
135 assertViewAppeared(events, 3, grandpa2, decorView.getAutofillId()); in assertJustInitialViewsAppeared()
136 assertViewAppeared(events, 4, grandpa1, grandpa2.getAutofillId()); in assertJustInitialViewsAppeared()
151 getDecorView().getAutofillId(), mCustomView.getAutofillId()); in assertInitialViewsDisappeared()
DAbstractRootViewActivity.java81 + " rootView=" + getRootView().getAutofillId() in onResume()
82 + ", grandParent=" + getGrandParent().getAutofillId() in onResume()
83 + ", grandGrandParent=" + getGrandGrandParent().getAutofillId()); in onResume()
DChildlessActivityTest.java311 final AutofillId rootId = rootView.getAutofillId(); in testAddAndRemoveImportantChild()
322 assertViewAppeared(events, 3, grandpa2, decorView.getAutofillId()); in testAddAndRemoveImportantChild()
323 assertViewAppeared(events, 4, grandpa1, grandpa2.getAutofillId()); in testAddAndRemoveImportantChild()
324 assertViewAppeared(events, 5, sessionId, rootView, grandpa1.getAutofillId()); in testAddAndRemoveImportantChild()
328 assertViewDisappeared(events, 9, child.getAutofillId()); in testAddAndRemoveImportantChild()
368 assertViewAppeared(events, 2, sessionId, child, rootView.getAutofillId()); in testAddImportantChildAfterSessionStarted()
369 assertViewAppeared(events, 3, sessionId, rootView, grandpa.getAutofillId()); in testAddImportantChildAfterSessionStarted()
396 final AutofillId childId = child.getAutofillId(); in testAddAndRemoveImportantChildOnDifferentSession()
416 assertViewAppeared(mainEvents, 2, mainSessionId, rootView, grandpa.getAutofillId()); in testAddAndRemoveImportantChildOnDifferentSession()
427 assertViewAppeared(childEvents, 1, childSessionId, child, rootView.getAutofillId()); in testAddAndRemoveImportantChildOnDifferentSession()
[all …]
DBlankWithTitleActivity.java66 assertViewsOptionallyDisappeared(events, minEvents, decorView.getAutofillId(), in assertDefaultEvents()
67 title.getAutofillId()); in assertDefaultEvents()
DAssertions.java162 .that(event.getViewNode().getAutofillId()) in assertDecorViewAppeared()
163 .isEqualTo(expectedDecorView.getAutofillId()); in assertDecorViewAppeared()
177 assertWithMessage("wrong autofill id on %s (%s)", event, index).that(node.getAutofillId()) in assertViewWithUnknownParentAppeared()
178 .isEqualTo(expectedView.getAutofillId()); in assertViewWithUnknownParentAppeared()
394 .that(node.getAutofillId()).isEqualTo(expectedId); in assertVirtualViewAppeared()
DAbstractContentCaptureActivity.java65 Log.d(mTag, "onResume(): decorViewId=" + getDecorView().getAutofillId()); in onResume()
DHelper.java123 Log.v(TAG, "newImportantView(text=" + text + ", id=" + child.getAutofillId() + ")"); in newImportantView()
/cts/tests/autofillservice/src/android/autofillservice/cts/
DMutableAutofillIdTest.java58 final AutofillId oldIdField1 = field1.getAutofillId(); in testDatasetPickerIsNotShownAfterViewIsSwappedOut()
73 assertEqualsIgnoreSession(node1Request1.getAutofillId(), oldIdField1); in testDatasetPickerIsNotShownAfterViewIsSwappedOut()
96 assertThat(field1.getAutofillId()).isEqualTo(newIdField1); in testDatasetPickerIsNotShownAfterViewIsSwappedOut()
115 assertEqualsIgnoreSession(node1Request2.getAutofillId(), newIdField1); in testDatasetPickerIsNotShownAfterViewIsSwappedOut()
134 final AutofillId oldIdField1 = field1.getAutofillId(); in testViewGoneDuringAutofillCanStillBeFilled()
149 assertEqualsIgnoreSession(node1Request1.getAutofillId(), oldIdField1); in testViewGoneDuringAutofillCanStillBeFilled()
162 assertEqualsIgnoreSession(field1.getAutofillId(), newIdField1); in testViewGoneDuringAutofillCanStillBeFilled()
198 final AutofillId oldIdField1 = field1.getAutofillId(); in saveWhenIdChanged()
210 assertEqualsIgnoreSession(node1Request1.getAutofillId(), oldIdField1); in saveWhenIdChanged()
223 assertThat(field1.getAutofillId()).isEqualTo(newIdField1); in saveWhenIdChanged()
[all …]
DDuplicateIdActivityTest.java110 final AutofillId id1 = view1.getAutofillId(); in testDoNotRestoreDuplicateAutofillIds()
111 final AutofillId id2 = view2.getAutofillId(); in testDoNotRestoreDuplicateAutofillIds()
149 final AutofillId recreatedId1 = recreatedView1.getAutofillId(); in testDoNotRestoreDuplicateAutofillIds()
150 final AutofillId recreatedId2 = recreatedView2.getAutofillId(); in testDoNotRestoreDuplicateAutofillIds()
151 final AutofillId newId1 = newView1.getAutofillId(); in testDoNotRestoreDuplicateAutofillIds()
174 assertEqualsIgnoreSession(newId1, child.getAutofillId()); in testDoNotRestoreDuplicateAutofillIds()
DWebViewMultiScreenLoginActivityTest.java27 import static android.autofillservice.cts.Helper.getAutofillId;
100 final AutofillId usernameId = getAutofillId(nodeResolver, HTML_NAME_USERNAME);
149 final AutofillId passwordId = getAutofillId(nodeResolver, HTML_NAME_PASSWORD);
207 usernameId.set(getAutofillId(nodeResolver, HTML_NAME_USERNAME));
244 final AutofillId passwordId = getAutofillId(nodeResolver, HTML_NAME_PASSWORD);
DHelper.java236 append(builder, "afId", node.getAutofillId()); in dump()
412 return node.getAutofillId(); in findAutofillIdByResourceId()
560 assertWithMessage("wrong text on %s", node.getAutofillId()).that(node.getText().toString()) in assertText()
563 final AutofillId id = node.getAutofillId(); in assertText()
578 final AutofillId id = node.getAutofillId(); in assertTextValue()
591 final AutofillId id = node.getAutofillId(); in assertListValue()
604 final AutofillId id = node.getAutofillId(); in assertToggleValue()
774 requiredIds[i] = node.getAutofillId(); in getAutofillIds()
784 public static AutofillId getAutofillId(Function<String, ViewNode> nodeResolver, in getAutofillId() method in Helper
792 return node.getAutofillId(); in getAutofillId()
DUsernameOnlyActivity.java56 return mUsernameEditText.getAutofillId(); in getUsernameAutofillId()
DVirtualContainerView.java121 mLoginButtonId = new AutofillId(getAutofillId(), LOGIN_BUTTON_VIRTUAL_ID); in VirtualContainerView()
206 structure.setAutofillId(getAutofillId()); in dispatchProvideAutofillStructure()
234 child.setAutofillId(structure.getAutofillId(), item.id); in onProvideAutofillVirtualStructure()
DLoginActivity.java320 Log.d(TAG, "addChild(" + child + "): id=" + child.getAutofillId()); in addChild()
DCannedFillResponse.java564 final AutofillId autofillId = node.getAutofillId(); in asDataset()
DSimpleSaveActivityTest.java1389 .setSaveTriggerId(mActivity.mCommit.getAutofillId()) in explicitlySaveButtonTest()
/cts/tests/contentcaptureservice/src/android/contentcaptureservice/cts/unit/
DViewNodeTest.java63 assertThat(node.getAutofillId()).isEqualTo(initialId); in testAutofillIdMethods_orphanView()
68 assertThat(node.getAutofillId()).isEqualTo(newId); in testAutofillIdMethods_orphanView()
72 assertThat(node.getAutofillId()).isEqualTo(new AutofillId(66, 6)); in testAutofillIdMethods_orphanView()
91 assertThat(node.getAutofillId()).isEqualTo(initialChildId); in testAutofillIdMethods_parentedView()
96 assertThat(node.getAutofillId()).isEqualTo(newChildId); in testAutofillIdMethods_parentedView()
101 assertThat(node.getAutofillId()).isEqualTo(newChildId); in testAutofillIdMethods_parentedView()
105 assertThat(node.getAutofillId()).isEqualTo(new AutofillId(66, 6)); in testAutofillIdMethods_parentedView()
115 assertThat(node.getAutofillId()).isEqualTo(new AutofillId(initialParentId, 108, 666)); in testAutofillIdMethods_explicitIdsConstructor()
120 assertThat(node.getAutofillId()).isEqualTo(newChildId); in testAutofillIdMethods_explicitIdsConstructor()
124 assertThat(node.getAutofillId()).isEqualTo(new AutofillId(66, 6)); in testAutofillIdMethods_explicitIdsConstructor()
[all …]
/cts/tests/autofillservice/src/android/autofillservice/cts/augmented/
DAbstractLoginNotImportantForAutofillTestCase.java48 final AutofillId expectedFocusedId = username.getAutofillId(); in testAutofill_none()
73 final AutofillId usernameId = username.getAutofillId(); in testAutofill_oneField()
109 final AutofillId usernameId = username.getAutofillId(); in testAutofill_twoFields()
114 .setField(mActivity.getPassword().getAutofillId(), "sweet") in testAutofill_twoFields()
146 final AutofillId usernameId = username.getAutofillId(); in testAutofill_manualRequest()
182 final AutofillId usernameId = username.getAutofillId(); in testAutofill_autoThenManualRequests()
DAugmentedLoginActivityTest.java103 final AutofillId usernameId = username.getAutofillId();
132 final AutofillId usernameId = username.getAutofillId();
161 final AutofillId expectedFocusedId = username.getAutofillId();
230 final AutofillId expectedFocusedId = username.getAutofillId();
293 final AutofillId usernameId = username.getAutofillId();
331 final AutofillId usernameId = username.getAutofillId();
361 final AutofillId usernameId = username.getAutofillId();
367 .setField(mActivity.getPassword().getAutofillId(), "sweet")
428 final AutofillId usernameId = username.getAutofillId();
434 .setField(mActivity.getPassword().getAutofillId(), "sweet")
[all …]
DDisableAutofillTest.java63 assertBasicRequestInfo(request, preSimpleActivity, preInput.getAutofillId(), in testAugmentedAutofill_standardAutofillDisabledByService_sameActivity()
67 final UiObject2 ui = mAugmentedUiBot.assertUiShown(preInput.getAutofillId(), "Augment Me"); in testAugmentedAutofill_standardAutofillDisabledByService_sameActivity()
103 final AutofillId inputId = input.getAutofillId(); in testAugmentedAutofill_standardAutofillDisabledByService_otherActivity()