Home
last modified time | relevance | path

Searched refs:uiDevice (Results 1 – 25 of 35) 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.kt61 private val uiDevice: UiDevice = UiDevice.getInstance(instrumentation) constant in android.permission4.cts.CameraMicIndicatorsPermissionTest
86 uiDevice.wakeUp() in setUp()
89 uiDevice.findObject(By.text("Close"))?.click() in setUp()
163 val appView = uiDevice.findObject(UiSelector().textContains(APP_LABEL)) in testCameraAndMicIndicator()
172 uiDevice.openQuickSettings() in testCameraAndMicIndicator()
207 val appView = uiDevice.findObject(UiSelector().textContains(micLabel)) in assertCarIndicatorsShown()
213 val appView = uiDevice.findObject(UiSelector().textContains(APP_LABEL)) in assertCarIndicatorsShown()
230 val iconView = uiDevice.findObject(UiSelector().descriptionContains(micLabel)) in assertPrivacyChipAndIndicatorsPresent()
234 val iconView = uiDevice.findObject(UiSelector().descriptionContains(cameraLabel)) in assertPrivacyChipAndIndicatorsPresent()
237 val appView = uiDevice.findObject(UiSelector().textContains(APP_LABEL)) 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 in android.packageinstaller.install.cts.PackageInstallerTestBase
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/
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>()
DExternalSourcesTestAppOpDenied.kt46 private val uiDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()) constant in android.packageinstaller.install_appop_denied.cts.ExternalSourcesTest
49 assertNotNull(errorMessage, uiDevice.wait(Until.findObject(selector), TIMEOUT)) in assertUiObject()
54 uiDevice.pressBack() in assertInstallBlocked()
/cts/tests/tests/permission3/src/android/permission3/cts/
DBasePermissionTest.kt57 protected val uiDevice: UiDevice = UiDevice.getInstance(instrumentation) constant in android.permission3.cts.BasePermissionTest
84 uiDevice.wakeUp() in setUp()
87 uiDevice.findObject(By.text("Close"))?.click() in setUp()
153 uiDevice.pressBack() in pressBack()
158 uiDevice.pressHome() in pressHome()
DPermissionTapjackingTest.kt93 uiDevice.click(buttonCenter.x, buttonCenter.y) in tryClicking()
111 uiDevice.click(buttonCenter.x, buttonCenter.y) in tryClicking()
DPermissionHistoryTest.kt73 uiDevice.pressBack() in testToggleSystemApps()
/cts/tests/tests/sensorprivacy/src/android/sensorprivacy/cts/
DSensorPrivacyBaseTest.kt78 protected val uiDevice = UiDevice.getInstance(instrumentation)!! in <lambda>() constant
91 uiDevice.wakeUp() in <lambda>()
93 uiDevice.waitForIdle() in <lambda>()
406 uiDevice.pressKeyCode(KeyEvent.KEYCODE_SLEEP) in <lambda>()
410 uiDevice.pressKeyCode(KeyEvent.KEYCODE_WAKEUP) in <lambda>()
425 uiDevice.pressKeyCode(KeyEvent.KEYCODE_SLEEP) in <lambda>()
429 uiDevice.pressKeyCode(KeyEvent.KEYCODE_WAKEUP) in <lambda>()
/cts/tests/tests/os/src/android/os/cts/
DAppHibernationUtils.kt193 private fun expandNotificationsWatch(uiDevice: UiDevice) { in expandNotificationsWatch()
194 with(uiDevice) { in expandNotificationsWatch()
215 val uiDevice = UiAutomatorUtils.getUiDevice() in waitFindNotification() constant
220 view = uiDevice.wait(Until.findObject(selector), VIEW_WAIT_TIMEOUT) in waitFindNotification()
236 isAtEnd = uiDevice.hasObject(By.res(SYSUI_PKG_NAME, CLEAR_ALL_BUTTON_ID)) in waitFindNotification()
/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/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/tests/appop/src/android/app/appops/cts/
DForegroundModeTest.kt75 val uiDevice = UiDevice.getInstance(instrumentation) in <lambda>() constant
76 uiDevice.wakeUp() in <lambda>()
77 uiDevice.executeShellCommand("wm dismiss-keyguard") in <lambda>()
78 uiDevice.executeShellCommand("input keyevent KEYCODE_HOME") in <lambda>()
/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/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/inputmethod/src/android/view/inputmethod/cts/util/
DTestWebView.java52 Impl(Context context, UiDevice uiDevice, String maker) { in Impl() argument
54 mUiDevice = uiDevice; in Impl()
/cts/tests/inputmethod/src/android/view/inputmethod/cts/
DInputMethodManagerTest.java227 final UiDevice uiDevice = in testShowInputMethodPicker() local
229 assertThat(uiDevice.wait(Until.hasObject(By.text(MOCK_IME_LABEL)), TIMEOUT)).isTrue(); in testShowInputMethodPicker()
230 assertThat(uiDevice.findObject(By.text(HIDDEN_FROM_PICKER_IME_LABEL))).isNull(); in testShowInputMethodPicker()
/cts/tests/framework/base/windowmanager/src/android/server/wm/
DAnrTests.java169 UiDevice uiDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()); in clickCloseAppOnAnrDialog() local
170 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()

12