Home
last modified time | relevance | path

Searched refs:uiDevice (Results 1 – 25 of 28) sorted by relevance

12

/cts/tests/tests/content/CtsSyncAccountAccessOtherCertTests/src/com/android/cts/content/
DCtsSyncAccountAccessOtherCertTestCases.java119 UiDevice uiDevice = getUiDevice(); in testAccountAccess_otherCertAsAuthenticatorCanNotSeeAccount() local
121 UiObject2 notification = findPermissionNotificationInStream(uiDevice); in testAccountAccess_otherCertAsAuthenticatorCanNotSeeAccount()
123 UiObject2 openButton = uiDevice.wait( in testAccountAccess_otherCertAsAuthenticatorCanNotSeeAccount()
130 uiDevice.openNotification(); in testAccountAccess_otherCertAsAuthenticatorCanNotSeeAccount()
135 UiObject2 permissionRequest = uiDevice.wait( in testAccountAccess_otherCertAsAuthenticatorCanNotSeeAccount()
143 swipeUp(uiDevice); in testAccountAccess_otherCertAsAuthenticatorCanNotSeeAccount()
164 uiDevice.wait(Until.findObject(By.text(ALLOW_SYNC)), UI_TIMEOUT_MILLIS).click(); in testAccountAccess_otherCertAsAuthenticatorCanNotSeeAccount()
174 private UiObject2 findPermissionNotificationInStream(UiDevice uiDevice) { in findPermissionNotificationInStream() argument
175 uiDevice.pressHome(); in findPermissionNotificationInStream()
176 swipeUp(uiDevice); in findPermissionNotificationInStream()
[all …]
/cts/tests/tests/permission4/src/android/permission4/cts/
DCameraMicIndicatorsPermissionTest.kt66 private val uiDevice: UiDevice = UiDevice.getInstance(instrumentation) constant in android.permission4.cts.CameraMicIndicatorsPermissionTest
92 uiDevice.wakeUp() in setUp()
95 uiDevice.findObject(By.text("Close"))?.click() in setUp()
170 val appView = uiDevice.findObject(UiSelector().textContains(APP_LABEL)) in testCameraAndMicIndicator()
179 uiDevice.openQuickSettings() in testCameraAndMicIndicator()
214 val micLabelView = uiDevice.findObject(UiSelector().textContains(micLabel)) in assertCarIndicatorsShown()
217 val appView = uiDevice.findObject(UiSelector().textContains(APP_LABEL)) in assertCarIndicatorsShown()
221 val micLabelView = uiDevice.findObject(UiSelector().textContains(micLabel)) in assertCarIndicatorsShown()
223 val appView = uiDevice.findObject(UiSelector().textContains(APP_LABEL)) in assertCarIndicatorsShown()
241 val iconView = uiDevice.findObject(UiSelector().descriptionContains(micLabel)) in assertPrivacyChipAndIndicatorsPresent()
[all …]
/cts/tests/tests/packageinstaller/nopermission/src/android.packageinstaller.nopermission.cts/
DNoPermissionTests.kt71 private var uiDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()) variable
103 if (!uiDevice.isScreenOn) { in wakeUpScreen()
104 uiDevice.wakeUp() in wakeUpScreen()
106 uiDevice.executeShellCommand(WM_DISMISS_KEYGUARD_COMMAND) in wakeUpScreen()
121 uiDevice.waitForIdle() in waitForUIIdle()
154 assertTrue(errorMessage, uiDevice.wait(Until.hasObject(selector), WAIT_FOR_UI_TIMEOUT)) in assertInstallSucceeded()
155 uiDevice.pressBack() in assertInstallSucceeded()
160 assertFalse(errorMessage, uiDevice.wait(Until.hasObject(selector), WAIT_FOR_UI_TIMEOUT)) in assertInstallFailed()
161 uiDevice.pressBack() in assertInstallFailed()
198 uiDevice.executeShellCommand("pm uninstall $TEST_APK_PACKAGE_NAME") in uninstallTestPackage()
/cts/tests/tests/packageinstaller/install/src/android/packageinstaller/install/cts/
DPackageInstallerTestBase.kt74 private val uiDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()) in <lambda>() constant
101 if (!uiDevice.isScreenOn) { in <lambda>()
102 uiDevice.wakeUp() in <lambda>()
104 uiDevice.executeShellCommand("wm dismiss-keyguard") in <lambda>()
123 uiDevice.waitForIdle() in <lambda>()
204 uiDevice.wait(Until.findObject(By.res(SYSTEM_PACKAGE_NAME, resId)), TIMEOUT) in <lambda>()
212 uiDevice.executeShellCommand("settings put secure $secureSetting $value") in <lambda>()
216 uiDevice.executeShellCommand("settings --user 0 " + in <lambda>()
230 uiDevice.executeShellCommand("pm uninstall $TEST_APK_PACKAGE_NAME") in <lambda>()
DExternalSourcesTestAppOpAllowed.kt47 private val uiDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()) constant
50 assertNotNull(errorMessage, uiDevice.wait(Until.findObject(selector), TIMEOUT)) in assertUiObject()
56 uiDevice.pressBack() in assertInstallAllowed()
/cts/tests/tests/packageinstaller/install_appop_default/src/android/packageinstaller/install_appop_default/cts/
DPackageInstallerTestBase.kt70 private val uiDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()) in <lambda>() constant
97 if (!uiDevice.isScreenOn) { in <lambda>()
98 uiDevice.wakeUp() in <lambda>()
100 uiDevice.executeShellCommand("wm dismiss-keyguard") in <lambda>()
119 uiDevice.waitForIdle() in <lambda>()
190 uiDevice.wait(Until.findObject(By.res(SYSTEM_PACKAGE_NAME, resId)), TIMEOUT) in <lambda>()
198 uiDevice.executeShellCommand("settings put secure $secureSetting $value") in <lambda>()
211 uiDevice.executeShellCommand("pm uninstall $TEST_APK_PACKAGE_NAME") in <lambda>()
DExternalSourcesTestAppOpDefault.kt47 private val uiDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()) constant
50 assertNotNull(errorMessage, uiDevice.wait(Until.findObject(selector), TIMEOUT)) in assertUiObject()
55 uiDevice.pressBack() in assertInstallBlocked()
/cts/tests/tests/packageinstaller/install_appop_denied/src/android/packageinstaller/install_appop_denied/cts/
DExternalSourcesTestAppOpDenied.kt46 private val uiDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()) constant
49 assertNotNull(errorMessage, uiDevice.wait(Until.findObject(selector), TIMEOUT)) in assertUiObject()
54 uiDevice.pressBack() in assertInstallBlocked()
/cts/tests/tests/os/src/android/os/cts/
DAppHibernationUtils.kt200 private fun expandNotificationsWatch(uiDevice: UiDevice) { in expandNotificationsWatch()
201 with(uiDevice) { in expandNotificationsWatch()
222 val uiDevice = UiAutomatorUtils.getUiDevice() in waitFindNotification() constant
227 view = uiDevice.wait(Until.findObject(selector), VIEW_WAIT_TIMEOUT) in waitFindNotification()
243 isAtEnd = uiDevice.hasObject(By.res(SYSUI_PKG_NAME, CLEAR_ALL_BUTTON_ID)) in waitFindNotification()
DCompanionDeviceManagerTest.kt83 private val uiDevice = UiDevice.getInstance(instrumentation) constant
171 uiDevice.waitAndFind(By.desc("name filter")).text = "" in testProfiles()
172 uiDevice.waitForIdle() in testProfiles()
210 uiDevice.waitAndFind(By.desc("name filter")).text = "" in testRequestNotifications()
211 uiDevice.waitForIdle() in testRequestNotifications()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/devicepolicy/provisioning/
DSilentProvisioningTestManager.java144 UiDevice uiDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()); in wakeUpAndDismissInsecureKeyguard() local
145 uiDevice.wakeUp(); in wakeUpAndDismissInsecureKeyguard()
146 uiDevice.pressMenu(); in wakeUpAndDismissInsecureKeyguard()
/cts/tests/tests/permission3/src/android/permission3/cts/
DPermissionTapjackingTest.kt93 uiDevice.click(buttonCenter.x, buttonCenter.y) in tryClicking()
111 uiDevice.click(buttonCenter.x, buttonCenter.y) in tryClicking()
/cts/hostsidetests/graphics/framerateoverride/app/src/com/android/cts/graphics/framerateoverride/
DFrameRateOverrideTest.java69 final UiDevice uiDevice = in setUp() local
72 uiDevice.wakeUp(); in setUp()
73 uiDevice.executeShellCommand("wm dismiss-keyguard"); in setUp()
/cts/tests/tests/widget/src/android/widget/cts/
DWidgetAttributeTest.kt51 private lateinit var uiDevice: UiDevice variable in android.widget.cts.WidgetAttributeTest
55 uiDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()) in setUp()
56 uiDevice.executeShellCommand(ENABLE_SHELL_COMMAND) in setUp()
62 uiDevice.executeShellCommand(DISABLE_SHELL_COMMAND) in tearDown()
/cts/tests/translation/src/android/translation/cts/
DHelper.java143 final UiDevice uiDevice = in findObjectByResId() local
145 final UiObject2 foundObj = uiDevice.wait( in findObjectByResId()
/cts/tests/inputmethod/src/android/view/inputmethod/cts/util/
DMockTestActivityUtil.java133 UiDevice uiDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()); in launchSync() local
135 uiDevice.wait(Until.hasObject(activitySelector), timeout); in launchSync()
DTestWebView.java52 Impl(Context context, UiDevice uiDevice, String maker) { in Impl() argument
54 mUiDevice = uiDevice; in Impl()
/cts/tests/tests/media/src/android/media/cts/
DMediaProjectionActivity.java129 UiDevice uiDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()); in dismissPermissionDialog() local
130 UiObject2 acceptButton = uiDevice.wait(Until.findObject(By.res(ACCEPT_RESOURCE_ID)), in dismissPermissionDialog()
/cts/tests/tests/appop/src/android/app/appops/cts/
DForegroundModeAndActiveTest.kt79 val uiDevice = UiDevice.getInstance(instrumentation) in <lambda>() constant
80 uiDevice.wakeUp() in <lambda>()
81 uiDevice.executeShellCommand("wm dismiss-keyguard") in <lambda>()
82 uiDevice.executeShellCommand("input keyevent KEYCODE_HOME") in <lambda>()
/cts/tests/inputmethod/src/android/view/inputmethod/cts/
DInputMethodManagerTest.java228 final UiDevice uiDevice = in testShowInputMethodPicker() local
230 assertThat(uiDevice.wait(Until.hasObject(By.text(MOCK_IME_LABEL)), TIMEOUT)).isTrue(); in testShowInputMethodPicker()
231 assertThat(uiDevice.findObject(By.text(HIDDEN_FROM_PICKER_IME_LABEL))).isNull(); in testShowInputMethodPicker()
/cts/tests/framework/base/windowmanager/src/android/server/wm/
DAnrTests.java171 UiDevice uiDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()); in clickCloseAppOnAnrDialog() local
172 UiObject2 closeAppButton = uiDevice.wait(Until.findObject(By.res("android:id/aerr_close")), in clickCloseAppOnAnrDialog()
/cts/tests/app/src/android/app/cts/
DActivityManagerMemoryClassTest.java186 UiDevice uiDevice = UiDevice.getInstance(getInstrumentation()); in testGetMemoryClass() local
187 int density = resetDensityIfNeeded(uiDevice); in testGetMemoryClass()
196 restoreDensityIfNeeded(uiDevice, density); in testGetMemoryClass()
/cts/tests/tests/systemui/src/android/systemui/cts/tv/
DVpnDisclosureTest.kt122 uiDevice.wait(Until.findObject( in startVpnConnection()
DTvTestBase.kt50 protected val uiDevice: UiDevice = UiDevice.getInstance(instrumentation) constant in android.systemui.cts.tv.TvTestBase
/cts/tests/tests/view/surfacevalidator/src/android/view/cts/surfacevalidator/
DCapturedActivity.java145 UiDevice uiDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()); in dismissPermissionDialog() local
146 UiObject2 acceptButton = uiDevice.wait(Until.findObject(By.res(ACCEPT_RESOURCE_ID)), in dismissPermissionDialog()

12