/cts/hostsidetests/appsecurity/test-apps/ReviewPermissionHelper/src/com/android/cts/reviewpermissionhelper/ |
D | ReviewPermissionsTest.kt | 53 val uiDevice = UiDevice.getInstance(instrumentation) constant 63 uiDevice.wait(Until.findObject( in clickContinue() 78 uiDevice.wait(Until.findObject( in cancelReviewPermissions() 94 uiDevice.wait(Until.findObject(By.text("Calendar")), UI_TIMEOUT).click() in denyGrantDenyCalendarPermissions() 96 uiDevice.wait(Until.findObject(By.res("android:id/button1")), UI_TIMEOUT).click() in denyGrantDenyCalendarPermissions() 99 uiDevice.waitForIdle() in denyGrantDenyCalendarPermissions() 100 uiDevice.wait(Until.findObject(By.text("Calendar")), UI_TIMEOUT).click() in denyGrantDenyCalendarPermissions() 103 uiDevice.waitForIdle() in denyGrantDenyCalendarPermissions() 104 uiDevice.wait(Until.findObject(By.text("Calendar")), UI_TIMEOUT).click() in denyGrantDenyCalendarPermissions() 106 uiDevice.waitForIdle() in denyGrantDenyCalendarPermissions() [all …]
|
/cts/tests/tests/content/CtsSyncAccountAccessOtherCertTests/src/com/android/cts/content/ |
D | CtsSyncAccountAccessOtherCertTestCases.java | 114 UiDevice uiDevice = getUiDevice(); in testAccountAccess_otherCertAsAuthenticatorCanNotSeeAccount() local 116 UiObject2 notification = findPermissionNotificationInStream(uiDevice); in testAccountAccess_otherCertAsAuthenticatorCanNotSeeAccount() 118 UiObject2 openButton = uiDevice.wait( in testAccountAccess_otherCertAsAuthenticatorCanNotSeeAccount() 125 uiDevice.openNotification(); in testAccountAccess_otherCertAsAuthenticatorCanNotSeeAccount() 127 UiObject2 permissionRequest = uiDevice.wait( in testAccountAccess_otherCertAsAuthenticatorCanNotSeeAccount() 147 uiDevice.wait(Until.findObject(By.text(ALLOW_SYNC)), UI_TIMEOUT_MILLIS).click(); in testAccountAccess_otherCertAsAuthenticatorCanNotSeeAccount() 157 private UiObject2 findPermissionNotificationInStream(UiDevice uiDevice) { in findPermissionNotificationInStream() argument 158 uiDevice.pressHome(); in findPermissionNotificationInStream() 159 swipeUp(uiDevice); in findPermissionNotificationInStream() 160 if (uiDevice.hasObject(By.text(PERMISSION_REQUESTED))) { in findPermissionNotificationInStream() [all …]
|
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/ |
D | WipeDataNotificationTest.java | 26 UiDevice uiDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()); in testWipeDataWithReasonVerification() local 27 uiDevice.openNotification(); in testWipeDataWithReasonVerification() 28 Boolean wipeDataTitleExist = uiDevice.wait(Until.hasObject(By.text(WIPE_DATA_TITLE)), in testWipeDataWithReasonVerification() 30 Boolean wipeDataReasonExist = uiDevice.wait(Until.hasObject(By.text(TEST_WIPE_DATA_REASON)), in testWipeDataWithReasonVerification() 39 UiObject2 notification = uiDevice.findObject(By.text(WIPE_DATA_TITLE)); in testWipeDataWithReasonVerification() 46 UiDevice uiDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()); in testWipeDataWithoutReasonVerification() local 47 uiDevice.openNotification(); in testWipeDataWithoutReasonVerification() 48 Boolean wipeDataTitleExist = uiDevice.wait(Until.hasObject(By.text(WIPE_DATA_TITLE)), in testWipeDataWithoutReasonVerification()
|
/cts/tests/tests/packageinstaller/nopermission/src/android.packageinstaller.nopermission.cts/ |
D | NoPermissionTests.kt | 67 private var uiDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()) in <lambda>() variable 83 if (!uiDevice.isScreenOn) { in <lambda>() 84 uiDevice.wakeUp() in <lambda>() 86 uiDevice.executeShellCommand(WM_DISMISS_KEYGUARD_COMMAND) in <lambda>() 107 uiDevice.waitForIdle() in <lambda>() 140 assertTrue(errorMessage, uiDevice.wait(Until.hasObject(selector), WAIT_FOR_UI_TIMEOUT)) in <lambda>() 141 uiDevice.pressBack() in <lambda>() 146 assertFalse(errorMessage, uiDevice.wait(Until.hasObject(selector), WAIT_FOR_UI_TIMEOUT)) in <lambda>() 147 uiDevice.pressBack() in <lambda>() 184 uiDevice.executeShellCommand("pm uninstall $TEST_APK_PACKAGE_NAME") in <lambda>()
|
/cts/tests/tests/packageinstaller/install/src/android/packageinstaller/install/cts/ |
D | PackageInstallerTestBase.kt | 69 private val uiDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()) in <lambda>() constant 96 if (!uiDevice.isScreenOn) { in <lambda>() 97 uiDevice.wakeUp() in <lambda>() 99 uiDevice.executeShellCommand("wm dismiss-keyguard") in <lambda>() 118 uiDevice.waitForIdle() in <lambda>() 194 uiDevice.wait(Until.findObject(By.res(SYSTEM_PACKAGE_NAME, resId)), TIMEOUT) in <lambda>() 216 uiDevice.executeShellCommand("pm uninstall $TEST_APK_PACKAGE_NAME") in <lambda>()
|
D | ExternalSourcesTest.kt | 49 private val uiDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()) constant in android.packageinstaller.install.cts.ExternalSourcesTest 56 assertNotNull(errorMessage, uiDevice.wait(Until.findObject(selector), TIMEOUT)) in assertUiObject() 62 uiDevice.pressBack() in assertInstallAllowed() 67 uiDevice.pressBack() in assertInstallBlocked()
|
/cts/tests/tests/print/printTestUtilLib/src/android/print/test/ |
D | BasePrintTest.java | 586 UiDevice uiDevice = getUiDevice(); in selectPrinter() local 587 UiObject2 destinationSpinner = uiDevice.wait(Until.findObject( in selectPrinter() 605 UiDevice uiDevice = getUiDevice(); in selectPrinterSpinnerOpen() local 606 UiObject2 printerOption = uiDevice.wait(Until.findObject(By.text(printerName)), in selectPrinterSpinnerOpen() 634 UiDevice uiDevice = getUiDevice(); in changeOrientation() local 635 UiObject orientationSpinner = uiDevice.findObject(new UiSelector().resourceId( in changeOrientation() 638 UiObject orientationOption = uiDevice.findObject(new UiSelector().text(orientation)); in changeOrientation() 659 UiDevice uiDevice = getUiDevice(); in changeMediaSize() local 660 UiObject mediaSizeSpinner = uiDevice.findObject(new UiSelector().resourceId( in changeMediaSize() 663 UiObject mediaSizeOption = uiDevice.findObject(new UiSelector().text(mediaSize)); in changeMediaSize() [all …]
|
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/devicepolicy/provisioning/ |
D | SilentProvisioningTestManager.java | 141 UiDevice uiDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()); in wakeUpAndDismissInsecureKeyguard() local 142 uiDevice.wakeUp(); in wakeUpAndDismissInsecureKeyguard() 143 uiDevice.pressMenu(); in wakeUpAndDismissInsecureKeyguard()
|
/cts/common/device-side/util/src/com/android/compatibility/common/util/devicepolicy/provisioning/ |
D | SilentProvisioningTestManager.java | 140 UiDevice uiDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()); in wakeUpAndDismissInsecureKeyguard() local 141 uiDevice.wakeUp(); in wakeUpAndDismissInsecureKeyguard() 142 uiDevice.pressMenu(); in wakeUpAndDismissInsecureKeyguard()
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | WidgetAttributeTest.kt | 50 private lateinit var uiDevice: UiDevice variable in android.widget.cts.WidgetAttributeTest 54 uiDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()) in setUp() 55 uiDevice.executeShellCommand(ENABLE_SHELL_COMMAND) in setUp() 61 uiDevice.executeShellCommand(DISABLE_SHELL_COMMAND) in tearDown()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | AudioPlaybackCaptureActivity.java | 129 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/app/src/android/app/cts/ |
D | ActivityManagerMemoryClassTest.java | 186 UiDevice uiDevice = UiDevice.getInstance(getInstrumentation()); in testGetMemoryClass() local 187 int density = resetDensityIfNeeded(uiDevice); in testGetMemoryClass() 196 restoreDensityIfNeeded(uiDevice, density); in testGetMemoryClass()
|
D | ActivityManagerTest.java | 323 final UiDevice uiDevice = UiDevice.getInstance(mInstrumentation); 324 final String output = uiDevice.executeShellCommand(cmd);
|
/cts/tests/tests/view/surfacevalidator/src/android/view/cts/surfacevalidator/ |
D | CapturedActivity.java | 117 UiDevice uiDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()); in dismissPermissionDialog() local 118 UiObject2 acceptButton = uiDevice.wait(Until.findObject(By.res(ACCEPT_RESOURCE_ID)), in dismissPermissionDialog()
|
/cts/tests/JobScheduler/src/android/jobscheduler/cts/ |
D | JobThrottlingTest.java | 109 private static boolean isDeviceIdleEnabled(UiDevice uiDevice) throws Exception { in isDeviceIdleEnabled() argument 110 final String output = uiDevice.executeShellCommand("cmd deviceidle enabled deep").trim(); in isDeviceIdleEnabled()
|