/cts/apps/CameraITS/utils/ |
D | ui_interaction_utils.py | 95 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/ |
D | CompanionDeviceManagerUi.kt | 31 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/ |
D | SetPin15911591StepAutomation.java | 35 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()
|
D | SetPin1591StepAutomation.java | 35 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()
|
D | SetPin4444StepAutomation.java | 35 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()
|
D | IsItPossibleToSetPin4444StepAutomation.java | 33 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()
|
D | IsItPossibleToSetPin1591StepAutomation.java | 33 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()
|
D | IsItPossibleToSetNoScreenLockOrPasswordStepAutomation.java | 31 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()
|
D | SetNoScreenLockOrPasswordStepAutomation.java | 32 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/ |
D | IsThereTextExplainingThatAnITAdminHasLimitedThisFunctionalityStepAutomation.java | 32 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/ |
D | AugmentedUiBot.java | 69 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/ |
D | AbstractLoginNotImportantForAutofillTestCase.java | 95 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/ |
D | MockJobService.java | 116 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/ |
D | AccountsRemoveWorkProfileStepAutomation.java | 36 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()
|
D | AreWorkAccountsSeparateToPersonalStepAutomation.java | 37 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/ |
D | BugReportNotificationShareBugReportStepAutomation.kt | 17 TestApis.ui().device().openNotification() in automate() 21 TestApis.ui().device().findObject( in automate() 27 TestApis.ui().device().findObject( in automate()
|
D | BugReportNotificationDeclineToShareBugReportStepAutomation.kt | 16 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/ |
D | TapPreferenceInSettingsStepAutomation.java | 39 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()
|
D | IsPreferenceShownStepAutomation.java | 43 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/ |
D | IsAppShownInPersonalAppsStepAutomation.java | 42 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()
|
D | IsAppShownInWorkAppsStepAutomation.java | 43 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()
|
D | IsTurnedOffWorkProfileTextReplacedWithUpdatedStringStepAutomation.java | 32 boolean titleIsReplaced = TestApis.ui().device().findObject( in automate() 37 boolean contentIsReplaced = TestApis.ui().device().findObject( in automate()
|
/cts/tests/JobScheduler/src/android/jobscheduler/ |
D | MockJobService.java | 137 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/ |
D | DisableAutofillTest.java | 70 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/ |
D | IsAllTextOnWorkTabReplacedByUpdatedStringStepAutomation.java | 32 String emptyStateTitle = TestApis.ui().device().findObject( in automate() 35 String emptyStateSubtitle = TestApis.ui().device().findObject( in automate()
|