Home
last modified time | relevance | path

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

1234

/cts/tests/tests/content/CtsSyncAccountAccessOtherCertTests/src/com/android/cts/content/
DCtsSyncAccountAccessOtherCertTestCases.java115 UiDevice uiDevice = getUiDevice(); in testAccountAccess_otherCertAsAuthenticatorCanNotSeeAccount() local
116 if (uiDevice.openNotification()) { in testAccountAccess_otherCertAsAuthenticatorCanNotSeeAccount()
118 UiObject2 scrollable = uiDevice.findObject(By.scrollable(true)); in testAccountAccess_otherCertAsAuthenticatorCanNotSeeAccount()
124 clear = uiDevice.findObject(By.text("Clear all")); in testAccountAccess_otherCertAsAuthenticatorCanNotSeeAccount()
142 UiObject2 notification = findPermissionNotificationInStream(uiDevice); in testAccountAccess_otherCertAsAuthenticatorCanNotSeeAccount()
144 UiObject2 openButton = uiDevice.wait( in testAccountAccess_otherCertAsAuthenticatorCanNotSeeAccount()
151 uiDevice.openNotification(); in testAccountAccess_otherCertAsAuthenticatorCanNotSeeAccount()
156 UiObject2 permissionRequest = uiDevice.wait( in testAccountAccess_otherCertAsAuthenticatorCanNotSeeAccount()
185 uiDevice.wait(Until.findObject(By.text(ALLOW_SYNC)), UI_TIMEOUT_MILLIS).click(); in testAccountAccess_otherCertAsAuthenticatorCanNotSeeAccount()
195 private UiObject2 findPermissionNotificationInStream(UiDevice uiDevice) { in findPermissionNotificationInStream() argument
[all …]
/cts/tests/PhotoPicker/src/android/photopicker/cts/util/
DPhotoPickerUiUtils.java98 public static void findAndClickBrowse(UiDevice uiDevice) throws Exception { in findAndClickBrowse() argument
99 final UiObject overflowMenu = getOverflowMenuObject(uiDevice); in findAndClickBrowse()
100 clickAndWait(uiDevice, overflowMenu); in findAndClickBrowse()
103 clickAndWait(uiDevice, browseButton); in findAndClickBrowse()
106 public static UiObject findSettingsOverflowMenuItem(UiDevice uiDevice) throws Exception { in findSettingsOverflowMenuItem() argument
107 final UiObject overflowMenu = getOverflowMenuObject(uiDevice); in findSettingsOverflowMenuItem()
108 clickAndWait(uiDevice, overflowMenu); in findSettingsOverflowMenuItem()
112 public static UiObject getOverflowMenuObject(UiDevice uiDevice) { in getOverflowMenuObject() argument
114 verifyOverflowMenuExists(uiDevice); in getOverflowMenuObject()
165 private static void verifyOverflowMenuExists(UiDevice uiDevice) { in verifyOverflowMenuExists() argument
[all …]
/cts/tests/app/src/android/app/cts/
DUpdateMediaTapToTransferSenderDisplayTest.kt56 private lateinit var uiDevice: UiDevice in permissionsRule() variable in android.app.cts.UpdateMediaTapToTransferSenderDisplayTest
65 uiDevice = UiDevice.getInstance(instrumentation) in permissionsRule()
66 uiDevice.wakeUp() in permissionsRule()
84 val chip = uiDevice.findObject(By.res(MEDIA_SENDER_CHIP_ID)) in tearDown()
153 val chip = uiDevice.findObject(By.res(MEDIA_SENDER_CHIP_ID)) in almostCloseToStartCast_displaysChip()
169 val chip = uiDevice.findObject(By.res(MEDIA_SENDER_CHIP_ID)) in almostCloseToEndCast_displaysChip()
185 val chip = uiDevice.findObject(By.res(MEDIA_SENDER_CHIP_ID)) in transferToReceiverTriggered_displaysChip()
201 val chip = uiDevice.findObject(By.res(MEDIA_SENDER_CHIP_ID)) in transferToThisDeviceTriggered_displaysChip()
225 val chip = uiDevice.findObject(By.res(MEDIA_SENDER_CHIP_ID)) in transferToReceiverSucceeded_nullCallback_displaysChip()
249 val chip = uiDevice.findObject(By.res(MEDIA_SENDER_CHIP_ID)) in transferToReceiverSucceeded_withCallbackAndExecutor_displaysChip()
[all …]
DUpdateMediaTapToTransferReceiverDisplayTest.kt56 private lateinit var uiDevice: UiDevice in permissionsRule() variable in android.app.cts.UpdateMediaTapToTransferReceiverDisplayTest
65 uiDevice = UiDevice.getInstance(instrumentation) in permissionsRule()
66 uiDevice.wakeUp() in permissionsRule()
83 val chip = uiDevice.findObject(By.res(MEDIA_RECEIVER_CHIP_ID)) in tearDown()
111 val chip = uiDevice.findObject(By.res(MEDIA_RECEIVER_CHIP_ID)) in closeToSender_displaysChip()
128 val chip = uiDevice.findObject(By.res(MEDIA_RECEIVER_CHIP_ID)) in farFromSender_hidesChip()
141 val chip = uiDevice.findObject(By.res(MEDIA_RECEIVER_CHIP_ID)) in farFromSender_hidesChip()
158 val chip = uiDevice.findObject(By.res(MEDIA_RECEIVER_CHIP_ID)) in transferToReceiverSucceeded_hidesChip()
171 val chip = uiDevice.findObject(By.res(MEDIA_RECEIVER_CHIP_ID)) in transferToReceiverSucceeded_hidesChip()
188 val chip = uiDevice.findObject(By.res(MEDIA_RECEIVER_CHIP_ID)) in transferToReceiverFailed_hidesChip()
[all …]
/cts/tests/tests/packageinstaller/nopermission/src/android.packageinstaller.nopermission.cts/
DNoPermissionTests.kt64 private var uiDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()) in <lambda>() variable
80 if (!uiDevice.isScreenOn) { in <lambda>()
81 uiDevice.wakeUp() in <lambda>()
83 uiDevice.executeShellCommand(WM_DISMISS_KEYGUARD_COMMAND) in <lambda>()
99 uiDevice.waitForIdle() in <lambda>()
134 assertTrue(errorMessage, uiDevice.wait(Until.hasObject(selector), WAIT_FOR_UI_TIMEOUT)) in <lambda>()
135 uiDevice.pressBack() in <lambda>()
140 assertFalse(errorMessage, uiDevice.wait(Until.hasObject(selector), WAIT_FOR_UI_TIMEOUT)) in <lambda>()
141 uiDevice.pressBack() in <lambda>()
178 uiDevice.executeShellCommand("pm uninstall $TEST_APK_PACKAGE_NAME") in <lambda>()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2024-0020/src/android/security/cts/CVE-2024-0020/
DDeviceTest.java66 UiDevice uiDevice = null; in testPocCVE_2024_0020() local
144 uiDevice = UiDevice.getInstance(instrumentation); in testPocCVE_2024_0020()
146 assume().that(clickUiObject(uiDevice, By.text("Advanced"))).isTrue(); in testPocCVE_2024_0020()
169 .that(clickUiObject(uiDevice, By.text(text))) in testPocCVE_2024_0020()
174 .that(clickUiObject(uiDevice, By.text(currentPackageName))) in testPocCVE_2024_0020()
180 .that(clickUiObject(uiDevice, By.res("android:id/button_always"))) in testPocCVE_2024_0020()
191 uiDevice.wait( in testPocCVE_2024_0020()
201 uiDevice.pressHome(); in testPocCVE_2024_0020()
214 private boolean clickUiObject(UiDevice uiDevice, BySelector selector) throws Exception { in clickUiObject() argument
215 boolean objectFound = uiDevice.wait(Until.hasObject(selector), TIMEOUT_MS); in clickUiObject()
[all …]
/cts/tests/tests/packageinstaller/install/src/android/packageinstaller/install/cts/
DInstallSourceInfoTest.kt46 uiDevice.executeShellCommand("input keyevent KEYCODE_WAKEUP") in prepareDevice()
48 uiDevice.executeShellCommand("wm dismiss-keyguard") in prepareDevice()
50 uiDevice.executeShellCommand("cmd statusbar collapse") in prepareDevice()
52 uiDevice.executeShellCommand("am broadcast -a android.intent.action.CLOSE_SYSTEM_DIALOGS") in prepareDevice()
54 uiDevice.executeShellCommand("settings put secure odi_captions_enabled 0") in prepareDevice()
76 uiDevice.executeShellCommand("pm install $TEST_APK_LOCATION/$TEST_APK_NAME") in installViaAdb()
89 uiDevice.executeShellCommand( in installViaAdbValidInstallerName()
102 uiDevice.executeShellCommand( in installViaAdbInvalidInstallerName()
DInstallSourceInfoMultiUserTest.kt54 uiDevice.executeShellCommand( in setUp()
56 uiDevice.executeShellCommand( in setUp()
62 uiDevice.executeShellCommand("pm uninstall $TEST_APK_PACKAGE_NAME") in tearDown()
76 uiDevice.executeShellCommand( in installOnUserAndCheckInfo()
/cts/hostsidetests/securitybulletin/test-apps/CVE_2023_35667/test-app/src/android/security/cts/CVE_2023_35667_test/
DDeviceTest.java73 UiDevice uiDevice = UiDevice.getInstance(instrumentation); in testPocCVE_2023_35667() local
76 .that(waitForVisibleObject(uiDevice, packageName + ".aaaaaa", 5000L)) in testPocCVE_2023_35667()
79 .that(waitForVisibleObject(uiDevice, packageName + ".aaaaab", 5000L)) in testPocCVE_2023_35667()
86 .that(waitForVisibleObject(uiDevice, packageName, 5000L)) in testPocCVE_2023_35667()
94 private UiObject2 waitForVisibleObject(UiDevice uiDevice, String text, long timeout) { in waitForVisibleObject() argument
95 UiObject2 uiObject = uiDevice.wait(Until.findObject(By.text(text)), timeout); in waitForVisibleObject()
/cts/hostsidetests/securitybulletin/src/android/security/cts/
DCVE_2023_35667.java49 ITestDevice uiDevice = getDevice(); in testPocCVE_2023_35667() local
51 uiDevice.executeShellV2Command( in testPocCVE_2023_35667()
57 uiDevice.executeShellV2Command( in testPocCVE_2023_35667()
63 uiDevice.executeShellV2Command( in testPocCVE_2023_35667()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2024-23707/src/android/security/cts/CVE_2024_23707/
DDeviceTest.java71 UiDevice uiDevice = UiDevice.getInstance(instrumentation); in testPocCVE_2024_23707() local
75 uiDevice, in testPocCVE_2024_23707()
86 uiDevice, in testPocCVE_2024_23707()
105 private boolean clickUiObject(UiDevice uiDevice, BySelector selector) throws Exception { in clickUiObject() argument
106 boolean objectFound = uiDevice.wait(Until.hasObject(selector), 5000 /* timeout */); in clickUiObject()
108 UiObject2 uiobject = uiDevice.findObject(selector); in clickUiObject()
/cts/tests/tests/content/src/android/content/res/cts/config/
DOverrideConfigTest.kt49 private val uiDevice = UiDevice.getInstance(instrumentation)!! constant
68 uiDevice.freezeRotation() in setUpRotation()
69 uiDevice.setOrientationNatural() in setUpRotation()
83 uiDevice.setOrientationLeft() in setUpRotation()
91 uiDevice.unfreezeRotation() in resetRotation()
103 uiDevice.setOrientationNatural() in setOrientationPortrait()
105 uiDevice.setOrientationLeft() in setOrientationPortrait()
191 uiDevice.setOrientationLeft() in <lambda>()
193 uiDevice.setOrientationNatural() in <lambda>()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2023-21249/test-app/src/android/security/cts/CVE_2023_21249_test/
DDeviceTest.java88 final UiDevice uiDevice = UiDevice.getInstance(instrumentation); in testPocCVE_2023_21249() local
126 .that(clickUiObject(uiDevice, selector)) in testPocCVE_2023_21249()
131 if (!uiDevice.wait(Until.gone(selector), TIMEOUT_MS)) { in testPocCVE_2023_21249()
132 clickUiObject(uiDevice, selector); in testPocCVE_2023_21249()
183 private boolean clickUiObject(UiDevice uiDevice, BySelector selector) throws Exception { in clickUiObject() argument
184 boolean objectFound = uiDevice.wait(Until.hasObject(selector), TIMEOUT_MS); in clickUiObject()
186 UiObject2 uiobject = uiDevice.findObject(selector); in clickUiObject()
/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>()
192 uiDevice.wait(Until.findObject(By.res(SYSTEM_PACKAGE_NAME, resId)), TIMEOUT) in <lambda>()
200 uiDevice.executeShellCommand("settings put secure $secureSetting $value") in <lambda>()
213 uiDevice.executeShellCommand("pm uninstall $TEST_APK_PACKAGE_NAME") in <lambda>()
/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 in android.packageinstaller.install_appop_default.cts.PackageInstallerTestBase
97 if (!uiDevice.isScreenOn) { in <lambda>()
98 uiDevice.wakeUp() in <lambda>()
100 uiDevice.executeShellCommand("wm dismiss-keyguard") in <lambda>()
119 uiDevice.waitForIdle() in <lambda>()
192 uiDevice.wait(Until.findObject(By.res(SYSTEM_PACKAGE_NAME, resId)), TIMEOUT) in <lambda>()
200 uiDevice.executeShellCommand("settings put secure $secureSetting $value") in <lambda>()
213 uiDevice.executeShellCommand("pm uninstall $TEST_APK_PACKAGE_NAME") in <lambda>()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2023-21238/src/android/security/cts/CVE_2023_21238/
DDeviceTest.java63 UiDevice uiDevice = null; in testPocCVE_2023_21238() local
71 uiDevice = UiDevice.getInstance(instrumentation); in testPocCVE_2023_21238()
124 assumeTrue("Opening notification shade unsuccessful", uiDevice.openNotification()); in testPocCVE_2023_21238()
127 uiDevice.wait(Until.hasObject(By.text(title)), 3000 /* timeout */); in testPocCVE_2023_21238()
129 uiDevice.findObject(By.res(context.getPackageName(), cveId + "img")); in testPocCVE_2023_21238()
138 uiDevice.pressHome(); in testPocCVE_2023_21238()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2023-21286/src/android/security/cts/CVE_2023_21286/
DDeviceTest.java62 UiDevice uiDevice = null; in testPocCVE_2023_21286() local
70 uiDevice = UiDevice.getInstance(instrumentation); in testPocCVE_2023_21286()
125 assumeTrue("Opening notification shade unsuccessful", uiDevice.openNotification()); in testPocCVE_2023_21286()
128 uiDevice.wait(Until.hasObject(By.text(title)), 3000 /* timeout */); in testPocCVE_2023_21286()
130 uiDevice.findObject(By.res(context.getPackageName(), cveId + "img")); in testPocCVE_2023_21286()
139 uiDevice.pressHome(); in testPocCVE_2023_21286()
/cts/tests/tests/companion/uiautomation/src/android/companion/cts/uiautomation/
DAssociationRevokedTestBase.kt39 val uiDevice: UiDevice = UiDevice.getInstance(instrumentation) constant in android.companion.cts.uiautomation.AssociationRevokedTestBase
40 protected val confirmationUi = CompanionDeviceManagerUi(uiDevice)
55 uiDevice.waitForIdle() in setUp()
60 uiDevice.pressBack() in tearDown()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2023-21277/src/android/security/cts/CVE_2023_21277/
DDeviceTest.java59 UiDevice uiDevice = null; in testPocCVE_2023_21277() local
67 uiDevice = UiDevice.getInstance(instrumentation); in testPocCVE_2023_21277()
130 .that(uiDevice.openNotification()) in testPocCVE_2023_21277()
134 uiDevice.wait(Until.hasObject(By.text(title)), 3000 /* timeout */); in testPocCVE_2023_21277()
135 UiObject2 exposedImg = uiDevice.findObject(By.res(packageName, cveId + "img")); in testPocCVE_2023_21277()
145 uiDevice.pressHome(); in testPocCVE_2023_21277()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2023-21279/src/android/security/cts/CVE_2023_21279/
DDeviceTest.java65 UiDevice uiDevice = null; in testPocCVE_2023_21279() local
74 uiDevice = UiDevice.getInstance(instrumentation); in testPocCVE_2023_21279()
130 assumeTrue("Opening notification shade unsuccessful", uiDevice.openNotification()); in testPocCVE_2023_21279()
133 uiDevice.wait(Until.hasObject(By.text(title)), 3000 /* timeout */); in testPocCVE_2023_21279()
135 uiDevice.findObject(By.res(context.getPackageName(), cveId + "img")); in testPocCVE_2023_21279()
144 uiDevice.pressHome(); in testPocCVE_2023_21279()
/cts/tests/tests/security/src/android/security/cts/
DCVE_2023_20960.java50 UiDevice uiDevice = null; in testPocCVE_2023_20960() local
54 uiDevice = UiDevice.getInstance(instrumentation); in testPocCVE_2023_20960()
93 uiDevice.executeShellCommand( in testPocCVE_2023_20960()
108 uiDevice.executeShellCommand( in testPocCVE_2023_20960()
123 uiDevice.pressHome(); in testPocCVE_2023_20960()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2023-35669/test-app/src/android/security/cts/CVE_2023_35669_test/
DDeviceTest.java132 UiDevice uiDevice = UiDevice.getInstance(instrumentation); in testCVE_2023_35669() local
133 clickObject(context, uiDevice, context.getString(R.string.accountName)); in testCVE_2023_35669()
136 clickObject(context, uiDevice, context.getString(R.string.removeAccount)); in testCVE_2023_35669()
139 clickObject(context, uiDevice, context.getString(R.string.removeAccount)); in testCVE_2023_35669()
151 public void clickObject(Context context, UiDevice uiDevice, String objectName) { in clickObject() argument
154 UiObject2 uiObject = uiDevice.wait(Until.findObject(removeAccountSelector), TIMEOUT_MS); in clickObject()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2023-21135/src/android/security/cts/CVE_2023_21135/
DDeviceTest.java44 final UiDevice uiDevice = UiDevice.getInstance(getInstrumentation()); in testNotificationPermission() local
53 uiDevice.findObject(By.text(context.getString(R.string.deviceAndAppNotific))); in testNotificationPermission()
58 uiDevice.findObject(By.text(context.getPackageName())); in testNotificationPermission()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2023-21131/test-app/src/android/security/cts/CVE_2023_21131_test/
DDeviceTest.java145 UiDevice uiDevice = UiDevice.getInstance(instrumentation); in testCVE_2023_21131() local
146 clickObject(context, uiDevice, context.getString(R.string.accountName)); in testCVE_2023_21131()
149 clickObject(context, uiDevice, context.getString(R.string.removeAccount)); in testCVE_2023_21131()
152 clickObject(context, uiDevice, context.getString(R.string.removeAccount)); in testCVE_2023_21131()
164 public void clickObject(Context context, UiDevice uiDevice, String objectName) in clickObject() argument
168 UiObject2 uiObject = uiDevice.wait(Until.findObject(removeAccountSelector), TIMEOUT_MS); in clickObject()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2023-21254/test-app/src/android/security/cts/CVE_2023_21254_test/
DDeviceTest.java87 final UiDevice uiDevice = UiDevice.getInstance(instrumentation); in testPocCVE_2023_21254() local
123 .that(uiDevice.wait(Until.hasObject(selector), uiTimeoutMs)) in testPocCVE_2023_21254()
125 uiDevice.findObject(selector).click(); in testPocCVE_2023_21254()
128 if (!uiDevice.wait(Until.gone(selector), uiTimeoutMs)) { in testPocCVE_2023_21254()
129 uiDevice.findObject(selector).click(); in testPocCVE_2023_21254()

1234