Home
last modified time | relevance | path

Searched refs:mUiBot (Results 1 – 25 of 48) sorted by relevance

12

/cts/tests/autofillservice/src/android/autofillservice/cts/
DSessionLifecycleTest.java98 Helper.disableAutoRotation(mUiBot); in disableAutoRotation()
113 mUiBot.assertGoneByRelativeId(ID_USERNAME, Timeouts.ACTIVITY_RESURRECTION); in finishLoginActivityOnAnotherProcess()
151 mUiBot.assertShownByRelativeId(ID_USERNAME); in startAndWaitExternalActivity()
193 mUiBot.selectByRelativeId(ID_USERNAME); in testDatasetAuthResponseWhileAutofilledAppIsLifecycled()
199 mUiBot.assertDatasets("authenticate"); in testDatasetAuthResponseWhileAutofilledAppIsLifecycled()
203 mUiBot.setScreenOrientation(LANDSCAPE); in testDatasetAuthResponseWhileAutofilledAppIsLifecycled()
204 mUiBot.setScreenOrientation(PORTRAIT); in testDatasetAuthResponseWhileAutofilledAppIsLifecycled()
207 mUiBot.assertShownByRelativeId(ID_USERNAME); in testDatasetAuthResponseWhileAutofilledAppIsLifecycled()
213 mUiBot.selectDataset("authenticate"); in testDatasetAuthResponseWhileAutofilledAppIsLifecycled()
220 mUiBot.setScreenOrientation(PORTRAIT); in testDatasetAuthResponseWhileAutofilledAppIsLifecycled()
[all …]
DPreSimpleSaveActivityTest.java83 mUiBot.assertShownByRelativeId(ID_INPUT); in saveUiRestoredAfterTappingLinkTest()
90 WelcomeActivity.assertShowingDefaultMessage(mUiBot); in saveUiRestoredAfterTappingLinkTest()
91 mUiBot.assertSaveNotShowing(SAVE_DATA_TYPE_PASSWORD); in saveUiRestoredAfterTappingLinkTest()
96 mUiBot.setScreenOrientation(UiBot.LANDSCAPE); in saveUiRestoredAfterTappingLinkTest()
97 WelcomeActivity.assertShowingDefaultMessage(mUiBot); in saveUiRestoredAfterTappingLinkTest()
100 mUiBot.pressBack(); in saveUiRestoredAfterTappingLinkTest()
112 mUiBot.saveForAutofill(newSaveUi, true); in saveUiRestoredAfterTappingLinkTest()
142 mUiBot.assertShownByRelativeId(ID_INPUT); in tapLinkThenTapBackThenStartOverTest()
149 WelcomeActivity.assertShowingDefaultMessage(mUiBot); in tapLinkThenTapBackThenStartOverTest()
150 mUiBot.assertSaveNotShowing(SAVE_DATA_TYPE_PASSWORD); in tapLinkThenTapBackThenStartOverTest()
[all …]
DDatasetFilteringTest.java92 mUiBot.assertDatasets(aa, ab, b); in testFilter()
96 mUiBot.assertDatasets(aa, ab); in testFilter()
100 mUiBot.assertDatasets(aa); in testFilter()
104 mUiBot.assertDatasets(aa, ab); in testFilter()
108 mUiBot.assertDatasets(aa, ab, b); in testFilter()
114 mUiBot.assertNoDatasets(); in testFilter()
146 mUiBot.assertDatasets(aa, ab, b); in testFilter_injectingEvents()
150 mUiBot.assertDatasets(aa, ab); in testFilter_injectingEvents()
154 mUiBot.assertDatasets(aa); in testFilter_injectingEvents()
158 mUiBot.assertDatasets(aa, ab); in testFilter_injectingEvents()
[all …]
DAuthenticationTest.java93 mUiBot.assertDatasets("Tap to auth dataset"); in datasetAuthTwoFields()
100 mUiBot.assertDatasets("Tap to auth dataset"); in datasetAuthTwoFields()
106 mUiBot.assertDatasets("Tap to auth dataset"); in datasetAuthTwoFields()
111 mUiBot.selectDataset("Tap to auth dataset"); in datasetAuthTwoFields()
114 mUiBot.assertDatasets("Tap to auth dataset"); in datasetAuthTwoFields()
120 mUiBot.assertDatasets("Tap to auth dataset"); in datasetAuthTwoFields()
130 mUiBot.selectDataset("Tap to auth dataset"); in datasetAuthTwoFields()
132 mUiBot.assertNoDatasets(); in datasetAuthTwoFields()
182 mUiBot.selectDataset("Tap to auth dataset"); in testDatasetAuthTwoFieldsReplaceResponse()
187 mUiBot.selectDataset("Dataset"); in testDatasetAuthTwoFieldsReplaceResponse()
[all …]
DSimpleSaveActivityTest.java122 mUiBot.selectDataset("YO"); in testAutoFillOneDatasetAndSave()
130 final UiObject2 saveUi = mUiBot.assertUpdateShowing(SAVE_DATA_TYPE_GENERIC); in testAutoFillOneDatasetAndSave()
133 mUiBot.saveForAutofill(saveUi, true); in testAutoFillOneDatasetAndSave()
175 mUiBot.selectDataset("YO"); in testAutoFillOneDatasetAndSave_largeAssistStructure()
183 final UiObject2 saveUi = mUiBot.assertUpdateShowing(SAVE_DATA_TYPE_GENERIC); in testAutoFillOneDatasetAndSave_largeAssistStructure()
186 mUiBot.saveForAutofill(saveUi, true); in testAutoFillOneDatasetAndSave_largeAssistStructure()
224 mUiBot.assertShownByRelativeId(ID_INPUT).click(); in testAutoFillOneDatasetAndSave_usingUiAutomatorOnly()
228 mUiBot.selectDataset("YO"); in testAutoFillOneDatasetAndSave_usingUiAutomatorOnly()
231 final UiObject2 input = mUiBot.assertShownByRelativeId(ID_INPUT); in testAutoFillOneDatasetAndSave_usingUiAutomatorOnly()
232 final UiObject2 password = mUiBot.assertShownByRelativeId(ID_PASSWORD); in testAutoFillOneDatasetAndSave_usingUiAutomatorOnly()
[all …]
DPartitionedActivityTest.java85 mUiBot.assertDatasets("l1c1"); in testAutofillTwoPartitionsSkipFirst()
87 mUiBot.assertDatasets("l1c2"); in testAutofillTwoPartitionsSkipFirst()
111 mUiBot.assertDatasets("l2c1"); in testAutofillTwoPartitionsSkipFirst()
113 mUiBot.assertDatasets("l2c2"); in testAutofillTwoPartitionsSkipFirst()
120 mUiBot.selectDataset("l1c1"); in testAutofillTwoPartitionsSkipFirst()
131 mUiBot.selectDataset("l2c2"); in testAutofillTwoPartitionsSkipFirst()
167 mUiBot.selectDataset("Partition 1"); in testAutofillTwoPartitionsInSequence()
197 mUiBot.selectDataset("Partition 2"); in testAutofillTwoPartitionsInSequence()
246 mUiBot.selectDataset("Partition 1"); in autofill4PartitionsTest()
280 mUiBot.selectDataset("Partition 2"); in autofill4PartitionsTest()
[all …]
DSettingsIntentTest.java66 mUiBot.assertShownByText(InstrumentedAutoFillService.sServiceLabel);
67 mUiBot.assertShownByText(InstrumentedAutoFillServiceCompatMode.sServiceLabel);
68 mUiBot.assertShownByText(NoOpAutofillService.SERVICE_LABEL);
69 mUiBot.assertNotShowingForSure(BadAutofillService.SERVICE_LABEL);
72 mUiBot.pressBack();
84 final UiObject2 object = mUiBot
94 final UiObject2 msgObj = mUiBot.assertShownById("android:id/message");
100 mUiBot.assertNotShowingForSure(InstrumentedAutoFillService.sServiceLabel);
101 mUiBot.assertNotShowingForSure(InstrumentedAutoFillServiceCompatMode.sServiceLabel);
102 mUiBot.assertNotShowingForSure(NoOpAutofillService.SERVICE_LABEL);
[all …]
DLoginActivityTest.java136 mUiBot.assertNoDatasetsEver(); in testAutoFillNoDatasets()
155 mUiBot.assertNoDatasetsEver(); in testAutoFillNoDatasets_multipleFields_alwaysNull()
160 mUiBot.assertNoDatasetsEver(); in testAutoFillNoDatasets_multipleFields_alwaysNull()
163 mUiBot.assertNoDatasetsEver(); in testAutoFillNoDatasets_multipleFields_alwaysNull()
166 mUiBot.assertNoDatasetsEver(); in testAutoFillNoDatasets_multipleFields_alwaysNull()
184 mUiBot.assertNoDatasetsEver(); in testAutofillAutomaticallyAfterServiceReturnedNoDatasets()
204 mUiBot.selectDataset("The Dude"); in testAutofillAutomaticallyAfterServiceReturnedNoDatasets()
226 mUiBot.assertNoDatasetsEver(); in testAutofillManuallyAfterServiceReturnedNoDatasets()
241 mUiBot.selectDataset("The Dude"); in testAutofillManuallyAfterServiceReturnedNoDatasets()
262 mUiBot.assertNoDatasetsEver(); in testAutofillManuallyAndSaveAfterServiceReturnedNoDatasets()
[all …]
DWebViewMultiScreenLoginActivityTest.java89 final MyWebView myWebView = mActivity.loadWebView(mUiBot);
113 mUiBot.assertNoDatasetsEver();
128 final UiObject2 saveUi1 = mUiBot.assertSaveShowing(
131 mUiBot.assertChildText(saveUi1, ID_USERNAME_LABEL, "User:");
132 mUiBot.assertChildText(saveUi1, ID_USERNAME, "dude");
135 mUiBot.saveForAutofill(saveUi1, true);
144 mActivity.waitForPasswordScreen(mUiBot);
161 mUiBot.assertNoDatasetsEver();
177 final UiObject2 saveUi2 = mUiBot.assertSaveShowing(
179 mUiBot.assertChildText(saveUi2, ID_PASSWORD_LABEL, "Pass:");
[all …]
DWebViewActivityTest.java75 mActivity.loadWebView(mUiBot);
85 mUiBot.assertNoDatasetsEver();
105 final MyWebView myWebView = mActivity.loadWebView(mUiBot, usesAppContext);
121 mUiBot.assertDatasets("The Dude");
127 mUiBot.assertNoDatasets();
130 final UiObject2 datasetPicker = mUiBot.assertDatasets("The Dude");
133 mUiBot.selectDataset(datasetPicker, "The Dude");
135 mUiBot.assertNoDatasets();
178 mActivity.loadWebView(mUiBot);
191 mUiBot.assertNoDatasetsEver();
[all …]
DOnClickActionTest.java119 final UiObject2 saveUi = mUiBot.assertSaveShowing(SAVE_DATA_TYPE_GENERIC);
139 mUiBot.saveForAutofill(saveUi, true);
153 mUiBot.assertChildText(saveUi, ID_USERNAME_LABEL, "User:");
154 mUiBot.assertChildText(saveUi, ID_USERNAME_MASKED, "****");
158 mUiBot.assertChildText(saveUi, ID_PASSWORD_LABEL, "Pass:");
159 mUiBot.assertChildText(saveUi, ID_PASSWORD_MASKED, "....");
164 return mUiBot.assertChildText(saveUi, ID_SHOW, "SHOW");
173 mUiBot.assertChildText(saveUi, ID_USERNAME_LABEL, "User:");
174 mUiBot.assertChildText(saveUi, ID_USERNAME_PLAIN, "42");
178 mUiBot.assertChildText(saveUi, ID_PASSWORD_LABEL, "Pass:");
[all …]
DFillEventHistoryTest.java103 mUiBot.selectDataset("authentication"); in testDatasetAuthenticationSelected()
140 mUiBot.selectDataset("authentication"); in testAuthenticationSelected()
141 mUiBot.assertDatasets("dataset"); in testAuthenticationSelected()
172 mUiBot.selectDataset("dataset1"); in testDatasetSelected_twoResponses()
208 mUiBot.selectDataset("dataset3"); in testDatasetSelected_twoResponses()
253 mUiBot.selectDataset("dataset1"); in testNoEvents_whenServiceReturnsNullResponse()
268 mUiBot.assertNoDatasets(); in testNoEvents_whenServiceReturnsNullResponse()
290 mUiBot.selectDataset("dataset1"); in testNoEvents_whenServiceReturnsFailure()
305 mUiBot.assertNoDatasets(); in testNoEvents_whenServiceReturnsFailure()
327 mUiBot.selectDataset("dataset1"); in testNoEvents_whenServiceTimesout()
[all …]
DMultiScreenLoginTest.java94 mUiBot.assertNoDatasetsEver();
99 mUiBot.saveForAutofill(true, SAVE_DATA_TYPE_USERNAME);
126 mUiBot.assertNoDatasetsEver();
131 mUiBot.saveForAutofill(true, SAVE_DATA_TYPE_PASSWORD);
168 mUiBot.assertNoDatasetsEver();
173 mUiBot.assertSaveNotShowing();
197 mUiBot.assertNoDatasetsEver();
202 mUiBot.saveForAutofill(true, SAVE_DATA_TYPE_USERNAME, SAVE_DATA_TYPE_PASSWORD);
254 mUiBot.assertNoDatasetsEver();
259 mUiBot.assertSaveNotShowing();
[all …]
DMutableAutofillIdTest.java74 mUiBot.assertDatasets("l1c1"); in testDatasetPickerIsNotShownAfterViewIsSwappedOut()
78 mUiBot.assertDatasets("l1c2"); in testDatasetPickerIsNotShownAfterViewIsSwappedOut()
116 mUiBot.assertNoDatasets(); in testDatasetPickerIsNotShownAfterViewIsSwappedOut()
120 final UiObject2 datasetPicker = mUiBot.assertDatasets("l1c2"); in testDatasetPickerIsNotShownAfterViewIsSwappedOut()
125 mUiBot.selectDataset(datasetPicker, "l1c2"); in testDatasetPickerIsNotShownAfterViewIsSwappedOut()
150 mUiBot.assertDatasets("l1c1"); in testViewGoneDuringAutofillCanStillBeFilled()
154 final UiObject2 picker1 = mUiBot.assertDatasets("l1c2"); in testViewGoneDuringAutofillCanStillBeFilled()
167 mUiBot.selectDataset(picker1, "l1c2"); in testViewGoneDuringAutofillCanStillBeFilled()
176 final UiObject2 picker2 = mUiBot.assertDatasets("l1c1"); in testViewGoneDuringAutofillCanStillBeFilled()
180 mUiBot.selectDataset(picker2, "l1c1"); in testViewGoneDuringAutofillCanStillBeFilled()
[all …]
DMultiWindowLoginActivityTest.java78 mUiBot.waitForWindowChange(() -> tap(view));
96 mUiBot.waitForWindowSplit();
118 mUiBot.assertDatasets("The Dude");
131 mUiBot.assertShownByRelativeId(Helper.ID_USERNAME); // MultiWindowLoginActivity
132 mUiBot.assertShownByRelativeId(MultiWindowEmptyActivity.ID_EMPTY);
135 mUiBot.assertNoDatasets();
144 mUiBot.assertDatasets("The Dude");
149 mUiBot.assertNoDatasets();
DMultipleFragmentLoginTest.java77 mUiBot.assertNoDatasetsEver(); // UI is only shown on editText1
91 mUiBot.selectDataset("dataset1");
92 mUiBot.assertShownByText("editText1-autofilled");
150 mUiBot.selectDataset("dataset2");
151 mUiBot.assertShownByText("editText3-autofilled");
152 mUiBot.assertShownByText("editText4-autofilled");
159 mUiBot.saveForAutofill(true, SAVE_DATA_TYPE_GENERIC);
221 mUiBot.assertNoDatasetsEver(); // UI is only shown on editText1
227 mUiBot.assertDatasets("dataset1");
237 mUiBot.assertNoDatasets();
DDialogLauncherActivityTest.java56 mActivity.launchDialog(mUiBot);
71 mUiBot.assertNoDatasetsEver();
93 mActivity.launchDialog(mUiBot);
111 final UiObject2 picker = mUiBot.assertDatasets("The Dude");
117 mUiBot.selectDataset("The Dude");
DCustomDescriptionDateTest.java84 mUiBot.assertNoDatasetsEver();
91 final UiObject2 saveUi = mUiBot.assertSaveShowing(SAVE_DATA_TYPE_GENERIC);
99 mUiBot.assertChild(saveUi, "first", (o) -> assertThat(o.getText()).isEqualTo("12/2010"));
100 mUiBot.assertChild(saveUi, "second", (o) -> assertThat(o.getText()).isEqualTo("12-10"));
148 mUiBot.assertDatasets("The end of the world");
157 mUiBot.assertSaveNotShowing(SAVE_DATA_TYPE_GENERIC);
159 mUiBot.assertSaveShowing(SAVE_DATA_TYPE_GENERIC);
DAutoFinishSessionTest.java88 mUiBot.assertNoDatasetsEver();
112 mUiBot.saveForAutofill(true, SAVE_DATA_TYPE_GENERIC);
137 mUiBot.assertSaveNotShowing(SAVE_DATA_TYPE_GENERIC);
218 mUiBot.assertNoDatasetsEver();
238 mUiBot.assertSaveNotShowing(SAVE_DATA_TYPE_GENERIC);
241 mUiBot.selectByRelativeId(ID_BUTTON);
245 mUiBot.assertSaveNotShowing(SAVE_DATA_TYPE_GENERIC);
251 mUiBot.saveForAutofill(true, SAVE_DATA_TYPE_GENERIC);
DVirtualContainerActivityTest.java136 mUiBot.waitForWindowChange(() -> mActivity.mUsername.changeFocus(true)); in focusToUsername()
151 mUiBot.waitForWindowChange(() -> mActivity.mPassword.changeFocus(true)); in focusToPassword()
247 mUiBot.selectDataset("DUDE"); in autofillTest()
288 mUiBot.selectDataset("THE DUDE"); in testAutofillTwoDatasets()
320 mUiBot.selectDataset("The Dude"); in testAutofillManuallyOneDataset()
372 mUiBot.selectDataset(picker, pickFirst ? "The Dude" : "Jenny"); in autofillManuallyTwoDatasets()
433 mUiBot.assertNoDatasetsEver(); in testAutofillCallbackNoDatasets()
456 mUiBot.assertNoDatasetsEver(); in testAutofillCallbackNoDatasetsButSaveInfo()
463 mUiBot.assertSaveNotShowing(SAVE_DATA_TYPE_PASSWORD); in testAutofillCallbackNoDatasetsButSaveInfo()
487 mUiBot.pressBack(); in testSaveDialogNotShownWhenBackIsPressed()
[all …]
DOptionalSaveActivityTest.java121 mUiBot.assertNoDatasetsEver();
134 mUiBot.saveForAutofill(true, SAVE_DATA_TYPE_ADDRESS);
178 mUiBot.assertNoDatasetsEver();
191 mUiBot.assertSaveNotShowing(SAVE_DATA_TYPE_ADDRESS);
313 mUiBot.selectDataset("Da Dataset");
325 mUiBot.updateForAutofill(true, SAVE_DATA_TYPE_ADDRESS);
409 mUiBot.selectDataset("Da Dataset");
421 mUiBot.assertSaveNotShowing(SAVE_DATA_TYPE_ADDRESS);
630 mUiBot.assertSaveShowing(SAVE_DATA_TYPE_ADDRESS);
632 mUiBot.assertSaveNotShowing(SAVE_DATA_TYPE_ADDRESS);
[all …]
DAbstractLoginActivityTestCase.java47 mUiBot.waitForWindowChange(() -> mActivity.onUsername(View::requestFocus));
56 event = mUiBot.waitForWindowChange(() -> mActivity.onUsername(View::requestFocus),
70 mUiBot.waitForWindowChange(() -> mActivity.onPassword(View::requestFocus));
/cts/tests/autofillservice/src/android/autofillservice/cts/augmented/
DAugmentedUiBot.java39 private final UiBot mUiBot; field in AugmentedUiBot
43 mUiBot = uiBot; in AugmentedUiBot()
53 mUiBot.assertNeverShownByRelativeId("augmented autofil UI", R.id.augmentedAutofillUi, in assertUiNeverShown()
68 final UiObject2 ui = mUiBot.assertShownByRelativeId(R.id.augmentedAutofillUi); in assertUiShown()
89 mUiBot.assertGoneByRelativeId(R.id.augmentedAutofillUi, AUGMENTED_FILL_TIMEOUT); in assertUiGone()
DAugmentedLoginActivityTest.java116 mUiBot.assertNoDatasetsEver();
145 mUiBot.assertNoDatasetsEver();
174 mUiBot.assertNoDatasetsEver();
194 mUiBot.selectDataset("The Dude");
205 mUiBot.updateForAutofill(true, SAVE_DATA_TYPE_PASSWORD);
242 mUiBot.assertNoDatasetsEver();
262 mUiBot.selectDataset("The Dude");
273 mUiBot.updateForAutofill(true, SAVE_DATA_TYPE_PASSWORD);
312 mUiBot.assertNoDatasetsEver();
346 mUiBot.assertNoDatasetsEver();
[all …]
DAbstractLoginNotImportantForAutofillTestCase.java59 mUiBot.assertNoDatasetsEver(); in testAutofill_none()
90 mUiBot.assertNoDatasetsEver(); in testAutofill_oneField()
127 mUiBot.assertNoDatasetsEver(); in testAutofill_twoFields()
163 mUiBot.assertNoDatasetsEver(); in testAutofill_manualRequest()
198 mUiBot.assertNoDatasetsEver(); in testAutofill_autoThenManualRequests()
221 mUiBot.assertNoDatasetsEver(); in testAutofill_autoThenManualRequests()

12