/cts/tests/tests/provider/src/android/provider/cts/ |
D | ProviderTestUtils.java | 41 static void setDefaultSmsApp(boolean setToSmsApp, String packageName, UiAutomation uiAutomation) in setDefaultSmsApp() argument 45 executeShellCommand(command, uiAutomation); in setDefaultSmsApp() 48 static String executeShellCommand(String command, UiAutomation uiAutomation) in executeShellCommand() argument 50 ParcelFileDescriptor pfd = uiAutomation.executeShellCommand(command.toString()); in executeShellCommand() 67 static String setBackupTransport(String transport, UiAutomation uiAutomation) throws Exception { in setBackupTransport() argument 68 String output = executeShellCommand("bmgr transport " + transport, uiAutomation); in setBackupTransport() 78 static boolean setBackupEnabled(boolean enable, UiAutomation uiAutomation) throws Exception { in setBackupEnabled() argument 81 String output = executeShellCommand("bmgr enabled", uiAutomation); in setBackupEnabled() 90 executeShellCommand("bmgr enable " + enable, uiAutomation); in setBackupEnabled() 94 static boolean hasBackupTransport(String transport, UiAutomation uiAutomation) in hasBackupTransport() argument [all …]
|
/cts/tests/tests/uiautomation/src/android/app/uiautomation/cts/ |
D | UiAutomationTest.java | 58 UiAutomation uiAutomation = getInstrumentation().getUiAutomation(); in setUp() local 59 AccessibilityServiceInfo info = uiAutomation.getServiceInfo(); in setUp() 61 uiAutomation.setServiceInfo(info); in setUp() 62 grantWriteSecureSettingsPermission(uiAutomation); in setUp() 69 UiAutomation uiAutomation = getInstrumentation().getUiAutomation(); in testWindowContentFrameStats() local 78 uiAutomation.waitForIdle( in testWindowContentFrameStats() 82 final int windowId = findAppWindowId(uiAutomation.getWindows()); in testWindowContentFrameStats() 86 assertTrue(uiAutomation.clearWindowContentFrameStats(windowId)); in testWindowContentFrameStats() 92 scrollListView(uiAutomation, listView, listView.getAdapter().getCount() - 1); in testWindowContentFrameStats() 93 scrollListView(uiAutomation, listView, 0); in testWindowContentFrameStats() [all …]
|
/cts/common/device-side/util/src/com/android/compatibility/common/util/ |
D | CtsTouchUtils.java | 89 final UiAutomation uiAutomation = instrumentation.getUiAutomation(); in emulateTapOnView() local 92 injectDownEvent(uiAutomation, downTime, xOnScreen, yOnScreen, null); in emulateTapOnView() 93 injectMoveEventForTap(uiAutomation, downTime, touchSlop, xOnScreen, yOnScreen); in emulateTapOnView() 94 injectUpEvent(uiAutomation, downTime, false, xOnScreen, yOnScreen, null); in emulateTapOnView() 127 final UiAutomation uiAutomation = instrumentation.getUiAutomation(); in emulateDoubleTapOnView() local 130 injectDownEvent(uiAutomation, downTime, xOnScreen, yOnScreen, null); in emulateDoubleTapOnView() 131 injectMoveEventForTap(uiAutomation, downTime, touchSlop, xOnScreen, yOnScreen); in emulateDoubleTapOnView() 132 injectUpEvent(uiAutomation, downTime, false, xOnScreen, yOnScreen, null); in emulateDoubleTapOnView() 133 injectDownEvent(uiAutomation, downTime, xOnScreen, yOnScreen, null); in emulateDoubleTapOnView() 134 injectMoveEventForTap(uiAutomation, downTime, touchSlop, xOnScreen, yOnScreen); in emulateDoubleTapOnView() [all …]
|
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/utils/ |
D | ActivityLaunchUtils.java | 43 UiAutomation uiAutomation, ActivityTestRule<? extends Activity> rule) throws Exception { in launchActivityAndWaitForItToBeOnscreen() argument 49 AccessibilityServiceInfo info = uiAutomation.getServiceInfo(); in launchActivityAndWaitForItToBeOnscreen() 51 uiAutomation.setServiceInfo(info); in launchActivityAndWaitForItToBeOnscreen() 52 final AccessibilityEvent awaitedEvent = uiAutomation.executeAndWaitForEvent( in launchActivityAndWaitForItToBeOnscreen() 65 findWindowByTitle(uiAutomation, activityTitle); in launchActivityAndWaitForItToBeOnscreen() 87 UiAutomation uiAutomation, CharSequence title) { in findWindowByTitle() argument 88 final List<AccessibilityWindowInfo> windows = uiAutomation.getWindows(); in findWindowByTitle()
|
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/ |
D | AccessibilityWindowQueryTest.java | 149 UiAutomation uiAutomation = getInstrumentation().getUiAutomation(); in testNoWindowsAccessIfFlagNotSet() local 150 assertTrue(uiAutomation.getWindows().isEmpty()); in testNoWindowsAccessIfFlagNotSet() 153 final AccessibilityNodeInfo button1 = uiAutomation.getRootInActiveWindow() in testNoWindowsAccessIfFlagNotSet() 158 AccessibilityEvent event = uiAutomation.executeAndWaitForEvent( in testNoWindowsAccessIfFlagNotSet() 170 UiAutomation uiAutomation = getInstrumentation().getUiAutomation(); in testTraverseAllWindows() local 172 List<AccessibilityWindowInfo> windows = uiAutomation.getWindows(); in testTraverseAllWindows() 204 UiAutomation uiAutomation = getInstrumentation().getUiAutomation(); in testTraverseWindowFromEvent() local 207 final AccessibilityNodeInfo button1 = uiAutomation.getRootInActiveWindow() in testTraverseWindowFromEvent() 212 AccessibilityEvent event = uiAutomation.executeAndWaitForEvent( in testTraverseWindowFromEvent() 241 UiAutomation uiAutomation = getInstrumentation().getUiAutomation(); in testInteractWithAppWindow() local [all …]
|
D | AccessibilityEndToEndTest.java | 577 final UiAutomation uiAutomation = instrumentation.getUiAutomation(); in testViewHeadingReportedToAccessibility() local 578 final AccessibilityNodeInfo editTextNode = uiAutomation.getRootInActiveWindow() in testViewHeadingReportedToAccessibility() 585 uiAutomation.executeAndWaitForEvent(() -> instrumentation.runOnMainSync(() -> in testViewHeadingReportedToAccessibility() 598 final UiAutomation uiAutomation = instrumentation.getUiAutomation(); in testTooltipTextReportedToAccessibility() local 599 final AccessibilityNodeInfo buttonNode = uiAutomation.getRootInActiveWindow() in testTooltipTextReportedToAccessibility() 611 final UiAutomation uiAutomation = instrumentation.getUiAutomation(); in testTooltipTextActionsReportedToAccessibility() local 612 final AccessibilityNodeInfo buttonNode = uiAutomation.getRootInActiveWindow() in testTooltipTextActionsReportedToAccessibility() 619 uiAutomation.executeAndWaitForEvent(() -> buttonNode.performAction( in testTooltipTextActionsReportedToAccessibility() 634 final UiAutomation uiAutomation = instrumentation.getUiAutomation(); in testTraversalBeforeReportedToAccessibility() local 635 final AccessibilityNodeInfo buttonNode = uiAutomation.getRootInActiveWindow() in testTraversalBeforeReportedToAccessibility() [all …]
|
D | AccessibilityFocusAndInputFocusSyncTest.java | 243 final UiAutomation uiAutomation = instrumentation.getUiAutomation(); in testScreenReaderFocusableAttribute_reportedToAccessibility() local 244 final AccessibilityNodeInfo secondButton = uiAutomation.getRootInActiveWindow() in testScreenReaderFocusableAttribute_reportedToAccessibility()
|
/cts/tests/accessibility/src/android/view/accessibility/cts/ |
D | ServiceControlUtils.java | 60 UiAutomation uiAutomation = instrumentation.getUiAutomation(); in enableSpeakingAndVibratingServices() local 66 ParcelFileDescriptor fd = uiAutomation.executeShellCommand("settings --user cur put secure " in enableSpeakingAndVibratingServices() 73 uiAutomation.destroy(); in enableSpeakingAndVibratingServices() 125 UiAutomation uiAutomation = instrumentation.getUiAutomation(); in enableMultipleFeedbackTypesService() local 131 ParcelFileDescriptor fd = uiAutomation.executeShellCommand("settings --user cur put secure " in enableMultipleFeedbackTypesService() 138 uiAutomation.destroy(); in enableMultipleFeedbackTypesService()
|
/cts/tests/inputmethod/mockime/src/com/android/cts/mockime/ |
D | MockImeSession.java | 139 @NonNull UiAutomation uiAutomation, @NonNull String command) throws IOException { in executeShellCommand() 142 uiAutomation.executeShellCommand(command))) { in executeShellCommand() 191 private MockImeSession(@NonNull Context context, @NonNull UiAutomation uiAutomation) { in MockImeSession() argument 193 mUiAutomation = uiAutomation; in MockImeSession() 240 @NonNull UiAutomation uiAutomation, in create() argument 242 final MockImeSession client = new MockImeSession(context, uiAutomation); in create()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | Utils.java | 93 UiAutomation uiAutomation = instrumentation.getUiAutomation(); in toggleNotificationPolicyAccess() local 95 try (ParcelFileDescriptor fd = uiAutomation.executeShellCommand(command)) { in toggleNotificationPolicyAccess() 105 uiAutomation.destroy(); in toggleNotificationPolicyAccess()
|
/cts/tests/tests/text/src/android/text/method/cts/ |
D | PasswordTransformationMethodTest.java | 125 UiAutomation uiAutomation = mInstrumentation.getUiAutomation(); in enableAppOps() local 131 uiAutomation.executeShellCommand(cmd.toString()); in enableAppOps() 141 ParcelFileDescriptor pfd = uiAutomation.executeShellCommand(queryStr); in enableAppOps()
|
/cts/tests/tests/notificationlegacy/src/android/app/notification/legacy/cts/ |
D | LegacyNotificationManagerTest.java | 287 UiAutomation uiAutomation = instrumentation.getUiAutomation(); in runCommand() local 289 try (ParcelFileDescriptor fd = uiAutomation.executeShellCommand(command)) { in runCommand() 299 uiAutomation.destroy(); in runCommand()
|
/cts/tests/inputmethod/src/android/view/inputmethod/cts/ |
D | NavigationBarColorTest.java | 245 final UiAutomation uiAutomation = in getNavigationBarBitmap() local 248 InstrumentationRegistry.getContext(), uiAutomation, builder)) { in getNavigationBarBitmap() argument 274 final Bitmap bitmap = uiAutomation.takeScreenshot(); in getNavigationBarBitmap()
|
/cts/tests/tests/text/src/android/text/format/cts/ |
D | DateFormatTest.java | 97 UiAutomation uiAutomation = InstrumentationRegistry.getInstrumentation().getUiAutomation(); in enableAppOps() local 103 uiAutomation.executeShellCommand(cmd.toString()); in enableAppOps() 113 ParcelFileDescriptor pfd = uiAutomation.executeShellCommand(queryStr); in enableAppOps()
|
/cts/tests/app/src/android/app/cts/ |
D | NotificationManagerTest.java | 1091 UiAutomation uiAutomation = instrumentation.getUiAutomation(); in runCommand() local 1093 try (ParcelFileDescriptor fd = uiAutomation.executeShellCommand(command)) { in runCommand() 1103 uiAutomation.destroy(); in runCommand()
|