Home
last modified time | relevance | path

Searched refs:ui (Results 1 – 25 of 126) sorted by relevance

123456

/cts/apps/CameraITS/utils/
Dui_interaction_utils.py95 dut.ui(text=ITS_ACTIVITY_TEXT),
103 jca_capture_button_visible = dut.ui(
108 logging.debug('Current UI dump: %s', dut.ui.dump())
129 dut.ui(res=QUICK_SETTINGS_RESOURCE_ID).click()
130 _find_ui_object_else_click(dut.ui(desc=ui_facing_description),
131 dut.ui(res=QUICK_SET_FLIP_CAMERA_RESOURCE_ID))
132 if not dut.ui(desc=ui_facing_description).wait.exists(
135 logging.debug('JCA UI dump: %s', dut.ui.dump())
140 dut.ui(res=QUICK_SETTINGS_RESOURCE_ID).click()
193 if dut.ui(text=AGREE_BUTTON).wait.exists(
[all …]
/cts/tests/tests/companion/uicommon/src/android/companion/cts/uicommon/
DCompanionDeviceManagerUi.kt31 open class CompanionDeviceManagerUi(private val ui: UiDevice) { constant in android.companion.cts.uicommon.CompanionDeviceManagerUi
33 get() = ui.hasObject(CONFIRMATION_UI)
38 ui.pressBack() in dismiss()
42 fun waitUntilVisible(timeout: Duration = 3.seconds) = ui.wait( in waitUntilVisible()
45 fun waitUntilNotificationVisible(isAuto: Boolean = false) = ui.wait( in waitUntilVisible()
49 fun waitUntilGone() = ui.waitShort(Until.gone(CONFIRMATION_UI), "CDM UI has not disappeared") in waitUntilVisible()
52 val firstDevice = ui.waitLongAndFind( in waitUntilVisible()
61 while (ui.hasObject(DEVICE_LIST) && elapsedTime < 5.seconds.inWholeMilliseconds) { in waitUntilVisible()
68 fun waitUntilPositiveButtonIsEnabledAndClick() = ui.waitLongAndFind( in waitUntilPositiveButtonIsEnabledAndClick()
72 fun waitUntilSystemDataTransferConfirmationVisible() = ui.wait( in waitUntilPositiveButtonIsEnabledAndClick()
[all …]
/cts/common/device-side/interactive/automation/src/main/java/com/android/interactive/steps/settings/password/
DSetPin15911591StepAutomation.java35 TestApis.ui().device().findObject( in automate()
39 TestApis.ui().device().findObject( in automate()
43 TestApis.ui().device().findObject( in automate()
47 UiObject nextButton = TestApis.ui().device().findObject(new UiSelector().text("Next")); in automate()
52 TestApis.ui().device().findObject( in automate()
56 UiObject confirmButton = TestApis.ui().device().findObject( in automate()
62 UiObject doneButton = TestApis.ui().device().findObject( in automate()
DSetPin1591StepAutomation.java35 TestApis.ui().device().findObject( in automate()
39 TestApis.ui().device().findObject( in automate()
43 TestApis.ui().device().findObject( in automate()
47 UiObject nextButton = TestApis.ui().device().findObject(new UiSelector().text("Next")); in automate()
52 TestApis.ui().device().findObject( in automate()
56 UiObject confirmButton = TestApis.ui().device().findObject( in automate()
62 UiObject doneButton = TestApis.ui().device().findObject( in automate()
DSetPin4444StepAutomation.java35 TestApis.ui().device().findObject( in automate()
39 TestApis.ui().device().findObject( in automate()
43 TestApis.ui().device().findObject( in automate()
49 UiObject nextButton = TestApis.ui().device().findObject(new UiSelector().text("Next")); in automate()
54 TestApis.ui().device().findObject( in automate()
58 UiObject confirmButton = TestApis.ui().device().findObject( in automate()
64 UiObject doneButton = TestApis.ui().device().findObject( in automate()
DIsItPossibleToSetPin4444StepAutomation.java33 TestApis.ui().device().findObject( in automate()
37 TestApis.ui().device().findObject( in automate()
41 TestApis.ui().device().findObject( in automate()
45 TestApis.ui().device().findObject( in automate()
49 return !TestApis.ui().device().findObject( in automate()
DIsItPossibleToSetPin1591StepAutomation.java33 TestApis.ui().device().findObject( in automate()
37 TestApis.ui().device().findObject( in automate()
41 TestApis.ui().device().findObject( in automate()
45 TestApis.ui().device().findObject( in automate()
49 return !TestApis.ui().device().findObject( in automate()
DIsItPossibleToSetNoScreenLockOrPasswordStepAutomation.java31 TestApis.ui().device().findObject( in automate()
35 if (!TestApis.ui().device().findObject( in automate()
41 TestApis.ui().device().findObject( in automate()
45 return !TestApis.ui().device().findObject( in automate()
DSetNoScreenLockOrPasswordStepAutomation.java32 TestApis.ui().device().findObject( in automate()
36 TestApis.ui().device().findObject( in automate()
/cts/common/device-side/interactive/automation/src/main/java/com/android/interactive/steps/settings/
DIsThereTextExplainingThatAnITAdminHasLimitedThisFunctionalityStepAutomation.java32 return TestApis.ui().device().findObject( in automate()
34 || TestApis.ui().device().findObject( in automate()
36 || TestApis.ui().device().findObject( in automate()
/cts/tests/autofillservice/src/android/autofillservice/cts/testcore/
DAugmentedUiBot.java69 final UiObject2 ui = mUiBot.assertShownByRelativeId(R.id.augmentedAutofillUi); in assertUiShown() local
71 assertWithMessage("Wrong text on UI").that(ui.getText()).isEqualTo(expectedText); in assertUiShown()
75 .that(ui.getContentDescription()).isEqualTo(expectedContentDescription); in assertUiShown()
79 return ui; in assertUiShown()
/cts/tests/autofillservice/src/android/autofillservice/cts/commontests/
DAbstractLoginNotImportantForAutofillTestCase.java95 final UiObject2 ui = mAugmentedUiBot.assertUiShown(usernameId, "Augment Me"); in testAutofill_oneField() local
98 ui.click(); in testAutofill_oneField()
132 final UiObject2 ui = mAugmentedUiBot.assertUiShown(usernameId, "Augment Me"); in testAutofill_twoFields() local
135 ui.click(); in testAutofill_twoFields()
170 final UiObject2 ui = mAugmentedUiBot.assertUiShown(usernameId, "Augment Me"); in testAutofill_manualRequest() local
173 ui.click(); in testAutofill_manualRequest()
228 final UiObject2 ui = mAugmentedUiBot.assertUiShown(usernameId, "Fill Me"); in testAutofill_autoThenManualRequests() local
231 ui.click(); in testAutofill_autoThenManualRequests()
/cts/tests/JobSchedulerSharedUid/src/android/jobscheduler/
DMockJobService.java116 for (int ui = 0; ui < expected.requireUrisGranted.length; ui++) { in onStartJob()
118 if (checkUriPermission(expected.requireUrisGranted[ui], in onStartJob()
125 + expected.requireUrisGranted[ui] in onStartJob()
131 if (checkUriPermission(expected.requireUrisGranted[ui], in onStartJob()
138 + expected.requireUrisGranted[ui] in onStartJob()
148 for (int ui = 0; ui < expected.requireUrisNotGranted.length; ui++) { in onStartJob()
150 if (checkUriPermission(expected.requireUrisNotGranted[ui], in onStartJob()
157 + expected.requireUrisNotGranted[ui] in onStartJob()
163 if (checkUriPermission(expected.requireUrisNotGranted[ui], in onStartJob()
170 + expected.requireUrisNotGranted[ui] in onStartJob()
/cts/common/device-side/interactive/automation/src/main/java/com/android/interactive/steps/enterprise/settings/
DAccountsRemoveWorkProfileStepAutomation.java36 TestApis.ui().device().findObject(new UiSelector().text("Work").className( in automate()
40 TestApis.ui().device().findObject(new UiSelector().text("Remove work profile").className( in automate()
44 TestApis.ui().device().findObject(new UiSelector().text("Delete").className( in automate()
DAreWorkAccountsSeparateToPersonalStepAutomation.java37 TestApis.ui().device().findObject( in automate()
41 TestApis.ui().device().findObject(new UiSelector().text("Work").className( in automate()
/cts/common/device-side/interactive/automation/src/main/java/com/android/interactive/steps/enterprise/bugreport/
DBugReportNotificationShareBugReportStepAutomation.kt17 TestApis.ui().device().openNotification() in automate()
21 TestApis.ui().device().findObject( in automate()
27 TestApis.ui().device().findObject( in automate()
DBugReportNotificationDeclineToShareBugReportStepAutomation.kt16 TestApis.ui().device().openNotification() in automate()
20 TestApis.ui().device().findObject( in automate()
26 TestApis.ui().device().findObject( in automate()
/cts/common/device-side/interactive/automation/src/main/java/com/google/android/interactive/steps/settings/
DTapPreferenceInSettingsStepAutomation.java39 UiObject2 preferenceList = TestApis.ui().device() in automate()
42 while (!TestApis.ui().device().hasObject(By.text(mPreferenceTitle)) in automate()
47 UiObject2 preference = TestApis.ui().device().findObject(By.text(mPreferenceTitle)); in automate()
DIsPreferenceShownStepAutomation.java43 UiObject2 preferenceList = TestApis.ui().device() in automate()
46 while (!TestApis.ui().device().hasObject(By.text(mPreferenceTitle)) in automate()
51 UiObject match = TestApis.ui().device().findObject( in automate()
/cts/common/device-side/interactive/automation/src/main/java/com/google/android/interactive/steps/enterprise/launcher/
DIsAppShownInPersonalAppsStepAutomation.java42 UiObject2 appList = TestApis.ui().device() in automate()
45 while (!TestApis.ui().device().hasObject(By.text(mAppLabel)) in automate()
50 UiObject match = TestApis.ui().device().findObject( in automate()
DIsAppShownInWorkAppsStepAutomation.java43 UiObject2 appList = TestApis.ui().device() in automate()
46 while (!TestApis.ui().device().hasObject(By.text(mAppLabel)) && appList.scroll( in automate()
51 UiObject match = TestApis.ui().device().findObject( in automate()
DIsTurnedOffWorkProfileTextReplacedWithUpdatedStringStepAutomation.java32 boolean titleIsReplaced = TestApis.ui().device().findObject( in automate()
37 boolean contentIsReplaced = TestApis.ui().device().findObject( in automate()
/cts/tests/JobScheduler/src/android/jobscheduler/
DMockJobService.java137 for (int ui = 0; ui < expected.requireUrisGranted.length; ui++) { in onStartJob()
139 if (checkUriPermission(expected.requireUrisGranted[ui], in onStartJob()
147 + expected.requireUrisGranted[ui] in onStartJob()
153 if (checkUriPermission(expected.requireUrisGranted[ui], in onStartJob()
161 + expected.requireUrisGranted[ui] in onStartJob()
171 for (int ui = 0; ui < expected.requireUrisNotGranted.length; ui++) { in onStartJob()
173 if (checkUriPermission(expected.requireUrisNotGranted[ui], in onStartJob()
181 + expected.requireUrisNotGranted[ui] in onStartJob()
187 if (checkUriPermission(expected.requireUrisNotGranted[ui], in onStartJob()
195 + expected.requireUrisNotGranted[ui] in onStartJob()
/cts/tests/autofillservice/src/android/autofillservice/cts/augmented/
DDisableAutofillTest.java70 final UiObject2 ui = mAugmentedUiBot.assertUiShown(preInput.getAutofillId(), "Augment Me"); in testAugmentedAutofill_standardAutofillDisabledByService_sameActivity() local
75 ui.click(); in testAugmentedAutofill_standardAutofillDisabledByService_sameActivity()
124 final UiObject2 ui = mAugmentedUiBot.assertUiShown(inputId, "Augment Me"); in testAugmentedAutofill_standardAutofillDisabledByService_otherActivity() local
129 ui.click(); in testAugmentedAutofill_standardAutofillDisabledByService_otherActivity()
/cts/common/device-side/interactive/automation/src/main/java/com/google/android/interactive/steps/enterprise/sharesheet/
DIsAllTextOnWorkTabReplacedByUpdatedStringStepAutomation.java32 String emptyStateTitle = TestApis.ui().device().findObject( in automate()
35 String emptyStateSubtitle = TestApis.ui().device().findObject( in automate()

123456