/cts/tests/app/src/android/app/cts/ |
D | Instrumentation_ActivityMonitorTest.java | 48 Instrumentation instrumentation = getInstrumentation(); in testActivityMonitor() local 49 ActivityMonitor am = instrumentation.addMonitor( in testActivityMonitor() 51 Context context = instrumentation.getTargetContext(); in testActivityMonitor() 66 instrumentation.waitForIdleSync(); in testActivityMonitor() 76 instrumentation.removeMonitor(am); in testActivityMonitor() 94 final Instrumentation instrumentation = getInstrumentation(); in testActivityMonitor_onStartActivity() local 95 final Context context = instrumentation.getTargetContext(); in testActivityMonitor_onStartActivity() 101 instrumentation.addMonitor(cam1); in testActivityMonitor_onStartActivity() 109 instrumentation.removeMonitor(cam1); in testActivityMonitor_onStartActivity() 115 instrumentation.addMonitor(cam2); in testActivityMonitor_onStartActivity() [all …]
|
D | TestContextTest.java | 25 Instrumentation instrumentation = getInstrumentation(); in testTestOpPackageName() local 26 assertEquals("android.app.cts", instrumentation.getContext().getPackageName()); in testTestOpPackageName() 29 assertEquals("android.app.stubs", instrumentation.getContext().getOpPackageName()); in testTestOpPackageName() 31 instrumentation.getContext().getContentResolver().query( in testTestOpPackageName()
|
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | CtsTouchUtils.java | 70 public static void emulateTapOnViewCenter(Instrumentation instrumentation, in emulateTapOnViewCenter() argument 72 emulateTapOnView(instrumentation, activityTestRule, view, view.getWidth() / 2, in emulateTapOnViewCenter() 85 public static void emulateTapOnView(Instrumentation instrumentation, in emulateTapOnView() argument 94 final UiAutomation uiAutomation = instrumentation.getUiAutomation(); in emulateTapOnView() 106 instrumentation.waitForIdleSync(); in emulateTapOnView() 116 public static void emulateDoubleTapOnViewCenter(Instrumentation instrumentation, in emulateDoubleTapOnViewCenter() argument 118 emulateDoubleTapOnView(instrumentation, activityTestRule, view, view.getWidth() / 2, in emulateDoubleTapOnViewCenter() 131 public static void emulateDoubleTapOnView(Instrumentation instrumentation, in emulateDoubleTapOnView() argument 140 final UiAutomation uiAutomation = instrumentation.getUiAutomation(); in emulateDoubleTapOnView() 155 instrumentation.waitForIdleSync(); in emulateDoubleTapOnView() [all …]
|
D | CtsKeyEventUtil.java | 48 public static void sendString(final Instrumentation instrumentation, final View targetView, in sendString() argument 63 sendKey(instrumentation, targetView, KeyEvent.changeTimeRepeat( in sendString() 77 public static void sendKeys(final Instrumentation instrumentation, final View targetView, in sendKeys() argument 83 sendKeyDownUp(instrumentation, targetView, keys[i]); in sendKeys() 103 public static void sendKeys(final Instrumentation instrumentation, final View targetView, in sendKeys() argument 129 sendKeyDownUp(instrumentation, targetView, keyCode); in sendKeys() 153 public static void sendKeyDownUp(final Instrumentation instrumentation, final View targetView, in sendKeyDownUp() argument 155 sendKey(instrumentation, targetView, new KeyEvent(KeyEvent.ACTION_DOWN, key)); in sendKeyDownUp() 156 sendKey(instrumentation, targetView, new KeyEvent(KeyEvent.ACTION_UP, key)); in sendKeyDownUp() 166 public static void sendKey(final Instrumentation instrumentation, final View targetView, in sendKey() argument [all …]
|
D | LocationUtils.java | 27 public static void registerMockLocationProvider(Instrumentation instrumentation, in registerMockLocationProvider() argument 31 command.append(instrumentation.getContext().getPackageName()); in registerMockLocationProvider() 35 SystemUtil.runShellCommand(instrumentation, command.toString()); in registerMockLocationProvider()
|
/cts/common/device-side/util/src/com/android/compatibility/common/util/ |
D | CtsTouchUtils.java | 69 public static void emulateTapOnViewCenter(Instrumentation instrumentation, in emulateTapOnViewCenter() argument 71 emulateTapOnView(instrumentation, activityTestRule, view, view.getWidth() / 2, in emulateTapOnViewCenter() 84 public static void emulateTapOnView(Instrumentation instrumentation, in emulateTapOnView() argument 93 final UiAutomation uiAutomation = instrumentation.getUiAutomation(); in emulateTapOnView() 105 instrumentation.waitForIdleSync(); in emulateTapOnView() 115 public static void emulateDoubleTapOnViewCenter(Instrumentation instrumentation, in emulateDoubleTapOnViewCenter() argument 117 emulateDoubleTapOnView(instrumentation, activityTestRule, view, view.getWidth() / 2, in emulateDoubleTapOnViewCenter() 130 public static void emulateDoubleTapOnView(Instrumentation instrumentation, in emulateDoubleTapOnView() argument 139 final UiAutomation uiAutomation = instrumentation.getUiAutomation(); in emulateDoubleTapOnView() 154 instrumentation.waitForIdleSync(); in emulateDoubleTapOnView() [all …]
|
D | CtsKeyEventUtil.java | 48 public static void sendString(final Instrumentation instrumentation, final View targetView, in sendString() argument 63 sendKey(instrumentation, targetView, KeyEvent.changeTimeRepeat( in sendString() 77 public static void sendKeys(final Instrumentation instrumentation, final View targetView, in sendKeys() argument 83 sendKeyDownUp(instrumentation, targetView, keys[i]); in sendKeys() 103 public static void sendKeys(final Instrumentation instrumentation, final View targetView, in sendKeys() argument 129 sendKeyDownUp(instrumentation, targetView, keyCode); in sendKeys() 153 public static void sendKeyDownUp(final Instrumentation instrumentation, final View targetView, in sendKeyDownUp() argument 155 sendKey(instrumentation, targetView, new KeyEvent(KeyEvent.ACTION_DOWN, key)); in sendKeyDownUp() 156 sendKey(instrumentation, targetView, new KeyEvent(KeyEvent.ACTION_UP, key)); in sendKeyDownUp() 166 public static void sendKey(final Instrumentation instrumentation, final View targetView, in sendKey() argument [all …]
|
D | LocationUtils.java | 27 public static void registerMockLocationProvider(Instrumentation instrumentation, in registerMockLocationProvider() argument 31 command.append(instrumentation.getContext().getPackageName()); in registerMockLocationProvider() 35 SystemUtil.runShellCommand(instrumentation, command.toString()); in registerMockLocationProvider()
|
/cts/tests/tests/telecom/src/android/telecom/cts/ |
D | TestUtils.java | 278 public static String setDefaultDialer(Instrumentation instrumentation, String packageName) in setDefaultDialer() argument 280 return executeShellCommand(instrumentation, COMMAND_SET_DEFAULT_DIALER + packageName); in setDefaultDialer() 283 public static String setSystemDialerOverride(Instrumentation instrumentation) throws Exception { in setSystemDialerOverride() argument 284 return executeShellCommand(instrumentation, COMMAND_SET_SYSTEM_DIALER + INCALL_COMPONENT); in setSystemDialerOverride() 288 Instrumentation instrumentation) throws Exception { in clearSystemDialerOverride() argument 289 return executeShellCommand(instrumentation, COMMAND_SET_SYSTEM_DIALER + "default"); in clearSystemDialerOverride() 292 public static String setCtsPhoneAccountSuggestionService(Instrumentation instrumentation, in setCtsPhoneAccountSuggestionService() argument 294 return executeShellCommand(instrumentation, in setCtsPhoneAccountSuggestionService() 299 public static String getDefaultDialer(Instrumentation instrumentation) throws Exception { in getDefaultDialer() argument 300 return executeShellCommand(instrumentation, COMMAND_GET_DEFAULT_DIALER); in getDefaultDialer() [all …]
|
/cts/tests/tests/text/src/android/text/method/cts/ |
D | KeyListenerTestCase.java | 69 final Instrumentation instrumentation = InstrumentationRegistry.getInstrumentation(); in enableAutoCapSettings() local 70 final Context context = instrumentation.getContext(); in enableAutoCapSettings() 71 instrumentation.runOnMainSync(() -> { in enableAutoCapSettings() 81 instrumentation.waitForIdleSync(); in enableAutoCapSettings() 86 final Instrumentation instrumentation = InstrumentationRegistry.getInstrumentation(); in resetAutoCapSettings() local 87 final Context context = instrumentation.getContext(); in resetAutoCapSettings() 88 instrumentation.runOnMainSync(() -> { in resetAutoCapSettings() 97 instrumentation.waitForIdleSync(); in resetAutoCapSettings()
|
/cts/tests/inputmethod/src/android/view/inputmethod/cts/ |
D | FocusHandlingTest.java | 239 final Instrumentation instrumentation = InstrumentationRegistry.getInstrumentation(); in testFocusableWindowDoesNotInvalidateExistingInputConnection() local 242 instrumentation.getUiAutomation(), in testFocusableWindowDoesNotInvalidateExistingInputConnection() 248 instrumentation.runOnMainSync(() -> editText.requestFocus()); in testFocusableWindowDoesNotInvalidateExistingInputConnection() 260 instrumentation.runOnMainSync(() -> editText.setText("")); in testFocusableWindowDoesNotInvalidateExistingInputConnection() 264 final Context context = instrumentation.getTargetContext(); in testFocusableWindowDoesNotInvalidateExistingInputConnection() 275 instrumentation.runOnMainSync(() -> popupWindow.showAsDropDown(editText)); in testFocusableWindowDoesNotInvalidateExistingInputConnection() 276 instrumentation.waitForIdleSync(); in testFocusableWindowDoesNotInvalidateExistingInputConnection() 286 instrumentation.runOnMainSync(() -> editText.setText("")); in testFocusableWindowDoesNotInvalidateExistingInputConnection() 292 instrumentation.runOnMainSync(() -> { in testFocusableWindowDoesNotInvalidateExistingInputConnection() 316 instrumentation.runOnMainSync(() -> editText.setText("")); in testFocusableWindowDoesNotInvalidateExistingInputConnection() [all …]
|
/cts/tests/tests/media/src/android/media/cts/ |
D | Utils.java | 51 Instrumentation instrumentation) { in enableAppOps() argument 52 setAppOps(packageName, operation, instrumentation, true); in enableAppOps() 56 Instrumentation instrumentation) { in disableAppOps() argument 57 setAppOps(packageName, operation, instrumentation, false); in disableAppOps() 82 Instrumentation instrumentation, boolean enable) { in setAppOps() argument 89 instrumentation.getUiAutomation().executeShellCommand(cmd.toString()); in setAppOps() 101 ParcelFileDescriptor pfd = instrumentation.getUiAutomation().executeShellCommand( in setAppOps() 109 Instrumentation instrumentation, boolean on) throws IOException { in toggleNotificationPolicyAccess() argument 114 UiAutomation uiAutomation = instrumentation.getUiAutomation(); in toggleNotificationPolicyAccess() 129 NotificationManager nm = (NotificationManager) instrumentation.getContext() in toggleNotificationPolicyAccess()
|
/cts/tests/tests/mediastress/src/android/mediastress/cts/ |
D | NativeMediaTest.java | 69 final Instrumentation instrumentation = getInstrumentation(); in runPlayTest() local 73 instrumentation.runOnMainSync(() -> { in runPlayTest() 74 instrumentation.callActivityOnPause(activity); in runPlayTest() 76 instrumentation.waitForIdleSync(); in runPlayTest() 78 instrumentation.runOnMainSync(() -> { in runPlayTest() 79 instrumentation.callActivityOnResume(activity); in runPlayTest()
|
/cts/tests/tests/view/src/android/view/animation/cts/ |
D | AnimationTestUtils.java | 53 public static void assertRunAnimation(final Instrumentation instrumentation, in assertRunAnimation() argument 56 assertRunAnimation(instrumentation, activityTestRule, view, animation, in assertRunAnimation() 70 public static void assertRunAnimation(final Instrumentation instrumentation, in assertRunAnimation() argument 82 instrumentation.waitForIdleSync(); in assertRunAnimation()
|
/cts/tests/tests/notificationlegacy/notificationlegacy20/src/android/app/notification/legacy20/cts/ |
D | LegacyNotificationManager20Test.java | 154 Instrumentation instrumentation, boolean on) throws IOException { in toggleNotificationPolicyAccess() argument 158 runCommand(command, instrumentation); in toggleNotificationPolicyAccess() 167 Instrumentation instrumentation, boolean suspend) throws IOException { in suspendPackage() argument 171 runCommand(command, instrumentation); in suspendPackage() 174 private void toggleListenerAccess(String componentName, Instrumentation instrumentation, in toggleListenerAccess() argument 180 runCommand(command, instrumentation); in toggleListenerAccess() 188 private void runCommand(String command, Instrumentation instrumentation) throws IOException { in runCommand() argument 189 UiAutomation uiAutomation = instrumentation.getUiAutomation(); in runCommand()
|
/cts/tests/inputmethod/src/android/view/inputmethod/cts/util/ |
D | TestUtils.java | 55 final Instrumentation instrumentation = InstrumentationRegistry.getInstrumentation(); in getOnMainSync() local 56 instrumentation.runOnMainSync(() -> result.set(supplier.get())); in getOnMainSync() 74 final Instrumentation instrumentation = InstrumentationRegistry.getInstrumentation(); in waitOnMainUntil() local 79 instrumentation.runOnMainSync(() -> { in waitOnMainUntil()
|
/cts/tests/tests/view/src/android/view/cts/ |
D | View_InitialFocusTest.java | 55 Instrumentation instrumentation = InstrumentationRegistry.getInstrumentation(); in setup() local 56 instrumentation.setInTouchMode(true); in setup() 60 Instrumentation instrumentation = InstrumentationRegistry.getInstrumentation(); in getInitialAndFirstFocus() local 64 instrumentation.waitForIdleSync(); in getInitialAndFirstFocus() 67 instrumentation.sendKeyDownUpSync(KeyEvent.KEYCODE_TAB); // leaves touch-mode in getInitialAndFirstFocus()
|
D | View_FocusHandlingTest.java | 54 Instrumentation instrumentation = InstrumentationRegistry.getInstrumentation(); in testFocusHandling() local 55 instrumentation.setInTouchMode(false); in testFocusHandling() 306 Instrumentation instrumentation = InstrumentationRegistry.getInstrumentation(); in testSizeHandling() local 317 instrumentation.waitForIdleSync(); in testSizeHandling() 326 instrumentation.waitForIdleSync(); in testSizeHandling() 346 instrumentation.waitForIdleSync(); in testSizeHandling() 354 instrumentation.waitForIdleSync(); in testSizeHandling() 359 instrumentation.waitForIdleSync(); in testSizeHandling() 369 instrumentation.waitForIdleSync(); in testSizeHandling() 374 instrumentation.waitForIdleSync(); in testSizeHandling() [all …]
|
/cts/tests/accessibility/common/src/android/accessibility/cts/common/ |
D | InstrumentedAccessibilityService.java | 170 Instrumentation instrumentation, Class<T> clazz) { in enableService() argument 172 final Context context = instrumentation.getContext(); in enableService() 186 ShellCommandBuilder.create(instrumentation) in enableService() 194 ShellCommandBuilder.create(instrumentation) in enableService() 231 public static void disableAllServices(Instrumentation instrumentation) { in disableAllServices() argument 233 final Context context = instrumentation.getContext(); in disableAllServices() 244 final UiAutomation uiAutomation = instrumentation.getUiAutomation( in disableAllServices()
|
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/utils/ |
D | ActivityLaunchUtils.java | 63 Instrumentation instrumentation, UiAutomation uiAutomation, in launchActivityAndWaitForItToBeOnscreen() argument 73 homeScreenOrBust(instrumentation.getContext(), uiAutomation); in launchActivityAndWaitForItToBeOnscreen() 78 instrumentation.runOnMainSync(() -> { in launchActivityAndWaitForItToBeOnscreen() 82 instrumentation.waitForIdleSync(); in launchActivityAndWaitForItToBeOnscreen() 83 activityTitle.append(getActivityTitle(instrumentation, mTempActivity)); in launchActivityAndWaitForItToBeOnscreen() 102 Instrumentation instrumentation, Activity activity) { in getActivityTitle() argument 104 instrumentation.runOnMainSync(() -> titleBuilder.append(activity.getTitle())); in getActivityTitle()
|
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/ |
D | AccessibilityFingerprintGestureTest.java | 71 Instrumentation instrumentation = InstrumentationRegistry.getInstrumentation(); in setUp() local 72 mFingerprintManager = instrumentation.getContext().getPackageManager() in setUp() 74 ? instrumentation.getContext().getSystemService(FingerprintManager.class) : null; in setUp() 75 mFingerprintGestureService = StubFingerprintGestureService.enableSelf(instrumentation); in setUp()
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/ |
D | CloseOnOutsideTests.java | 69 Instrumentation instrumentation = InstrumentationRegistry.getInstrumentation(); in touchAndAssert() local 72 instrumentation.runOnMainSync(() -> assertFalse(mTestActivity.getActivity().isFinishing())); in touchAndAssert() 76 instrumentation.runOnMainSync( in touchAndAssert()
|
/cts/tests/tests/notificationlegacy/notificationlegacy27/src/android/app/notification/legacy/cts/ |
D | LegacyNotificationManagerTest.java | 357 Instrumentation instrumentation, boolean on) throws IOException { in toggleNotificationPolicyAccess() argument 364 runCommand(command, instrumentation); in toggleNotificationPolicyAccess() 373 Instrumentation instrumentation, boolean suspend) throws IOException { in suspendPackage() argument 379 runCommand(command, instrumentation); in suspendPackage() 382 private void toggleListenerAccess(String componentName, Instrumentation instrumentation, in toggleListenerAccess() argument 390 runCommand(command, instrumentation); in toggleListenerAccess() 398 private void runCommand(String command, Instrumentation instrumentation) throws IOException { in runCommand() argument 399 UiAutomation uiAutomation = instrumentation.getUiAutomation(); in runCommand()
|
/cts/tests/app/src/android/app/cts/android/app/cts/tools/ |
D | ServiceProcessController.java | 56 public ServiceProcessController(Context context, Instrumentation instrumentation, in ServiceProcessController() argument 59 this(context, instrumentation, myPackageName, serviceIntents, 5*1000); in ServiceProcessController() 62 public ServiceProcessController(Context context, Instrumentation instrumentation, in ServiceProcessController() argument 66 mInstrumentation = instrumentation; in ServiceProcessController() 100 mUidWatcher = new WatchUidRunner(instrumentation, appInfo.uid, mDefaultWaitTime); in ServiceProcessController()
|
/cts/tests/tests/widget/ |
D | TEST_MAPPING | 7 "instrumentation-arg": "size:=small" 10 "instrumentation-arg": "notAnnotation:=androidx.test.filters.FlakyTest"
|