/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 | ApplicationTest.java | 36 final Instrumentation instrumentation = getInstrumentation(); in testApplication() local 37 final Context targetContext = instrumentation.getTargetContext(); in testApplication() 42 final Activity activity = instrumentation.startActivitySync(intent); in testApplication() 59 instrumentation.waitForIdleSync(); in testApplication()
|
/cts/common/device-side/util/src/com/android/compatibility/common/util/ |
D | CtsTouchUtils.java | 43 public static void emulateTapOnViewCenter(Instrumentation instrumentation, View view) { in emulateTapOnViewCenter() argument 44 emulateTapOnView(instrumentation, view, view.getWidth() / 2, view.getHeight() / 2); in emulateTapOnViewCenter() 56 public static void emulateTapOnView(Instrumentation instrumentation, View anchorView, in emulateTapOnView() argument 64 final UiAutomation uiAutomation = instrumentation.getUiAutomation(); in emulateTapOnView() 72 instrumentation.waitForIdleSync(); in emulateTapOnView() 81 public static void emulateDoubleTapOnViewCenter(Instrumentation instrumentation, View view) { in emulateDoubleTapOnViewCenter() argument 82 emulateDoubleTapOnView(instrumentation, view, view.getWidth() / 2, view.getHeight() / 2); in emulateDoubleTapOnViewCenter() 94 public static void emulateDoubleTapOnView(Instrumentation instrumentation, View anchorView, in emulateDoubleTapOnView() argument 102 final UiAutomation uiAutomation = instrumentation.getUiAutomation(); in emulateDoubleTapOnView() 113 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()
|
D | SystemUtil.java | 56 public static String runShellCommand(Instrumentation instrumentation, String cmd) in runShellCommand() argument 58 ParcelFileDescriptor pfd = instrumentation.getUiAutomation().executeShellCommand(cmd); in runShellCommand()
|
/cts/tests/app/app/src/android/app/stubs/ |
D | OrientationTestUtils.java | 43 final Instrumentation instrumentation) { in toggleOrientationSync() argument 48 changeOrientation(activity, instrumentation, newOrientation); in toggleOrientationSync() 49 changeOrientation(activity, instrumentation, originalOrientation); in toggleOrientationSync() 58 public static void switchOrientation(final Activity activity, Instrumentation instrumentation) { in switchOrientation() argument 63 changeOrientation(activity, instrumentation, newOrientation); in switchOrientation() 67 Instrumentation instrumentation, final int orientation) { in changeOrientation() argument 69 if (instrumentation != null) { in changeOrientation() 70 instrumentation.waitForIdleSync(); in changeOrientation()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | Utils.java | 46 Instrumentation instrumentation) { in enableAppOps() argument 47 setAppOps(packageName, operation, instrumentation, true); in enableAppOps() 51 Instrumentation instrumentation) { in disableAppOps() argument 52 setAppOps(packageName, operation, instrumentation, false); in disableAppOps() 62 Instrumentation instrumentation, boolean enable) { in setAppOps() argument 69 instrumentation.getUiAutomation().executeShellCommand(cmd.toString()); in setAppOps() 81 ParcelFileDescriptor pfd = instrumentation.getUiAutomation().executeShellCommand( in setAppOps() 89 Instrumentation instrumentation, boolean on) throws IOException { in toggleNotificationPolicyAccess() argument 92 String alreadyEnabledServices = querryNotificationPolicyAccessPakages(instrumentation); in toggleNotificationPolicyAccess() 102 setNotificationPolicyAccessPackages(enabledServices, instrumentation); in toggleNotificationPolicyAccess() [all …]
|
/cts/tests/tests/telecom/src/android/telecom/cts/ |
D | TestUtils.java | 140 public static String setDefaultDialer(Instrumentation instrumentation, String packageName) in setDefaultDialer() argument 142 return executeShellCommand(instrumentation, COMMAND_SET_DEFAULT_DIALER + packageName); in setDefaultDialer() 145 public static String getDefaultDialer(Instrumentation instrumentation) throws Exception { in getDefaultDialer() argument 146 return executeShellCommand(instrumentation, COMMAND_GET_DEFAULT_DIALER); in getDefaultDialer() 149 public static String getSystemDialer(Instrumentation instrumentation) throws Exception { in getSystemDialer() argument 150 return executeShellCommand(instrumentation, COMMAND_GET_SYSTEM_DIALER); in getSystemDialer() 153 public static void enablePhoneAccount(Instrumentation instrumentation, in enablePhoneAccount() argument 156 executeShellCommand(instrumentation, COMMAND_ENABLE in enablePhoneAccount() 161 public static void registerSimPhoneAccount(Instrumentation instrumentation, in registerSimPhoneAccount() argument 164 executeShellCommand(instrumentation, COMMAND_REGISTER_SIM in registerSimPhoneAccount() [all …]
|
/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/accessibility/src/android/view/accessibility/cts/ |
D | ServiceControlUtils.java | 50 public static void enableSpeakingAndVibratingServices(Instrumentation instrumentation) in enableSpeakingAndVibratingServices() argument 52 Context context = instrumentation.getContext(); in enableSpeakingAndVibratingServices() 55 UiAutomation uiAutomation = instrumentation.getUiAutomation(); in enableSpeakingAndVibratingServices() 115 public static void enableMultipleFeedbackTypesService(Instrumentation instrumentation) in enableMultipleFeedbackTypesService() argument 117 Context context = instrumentation.getContext(); in enableMultipleFeedbackTypesService() 120 UiAutomation uiAutomation = instrumentation.getUiAutomation(); in enableMultipleFeedbackTypesService() 167 public static void turnAccessibilityOff(Instrumentation instrumentation) { in turnAccessibilityOff() argument 182 AccessibilityManager manager = (AccessibilityManager) instrumentation in turnAccessibilityOff()
|
/cts/tests/tests/view/src/android/view/animation/cts/ |
D | AnimationTestUtils.java | 52 public static void assertRunAnimation(final Instrumentation instrumentation, in assertRunAnimation() argument 55 assertRunAnimation(instrumentation, activityTestRule, view, animation, in assertRunAnimation() 69 public static void assertRunAnimation(final Instrumentation instrumentation, in assertRunAnimation() argument 81 instrumentation.waitForIdleSync(); in assertRunAnimation()
|
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/ |
D | ShellCommandBuilder.java | 36 public static ShellCommandBuilder create(Instrumentation instrumentation) { in create() argument 37 return new ShellCommandBuilder(instrumentation); in create() 40 private ShellCommandBuilder(Instrumentation instrumentation) { in ShellCommandBuilder() argument 41 mInstrumentation = instrumentation; in ShellCommandBuilder()
|
D | InstrumentedAccessibilityService.java | 115 Instrumentation instrumentation, Class<T> clazz) { in enableService() argument 117 final Context context = instrumentation.getContext(); in enableService() 132 ShellCommandBuilder.create(instrumentation) in enableService() 140 ShellCommandBuilder.create(instrumentation) in enableService() 177 public static void disableAllServices(Instrumentation instrumentation) { in disableAllServices() argument 179 final Context context = instrumentation.getContext(); in disableAllServices() 188 ShellCommandBuilder.create(instrumentation) in disableAllServices()
|
D | StubAccessibilityButtonService.java | 23 public static StubAccessibilityButtonService enableSelf(Instrumentation instrumentation) { in enableSelf() argument 25 instrumentation, StubAccessibilityButtonService.class); in enableSelf()
|
D | StubFingerprintGestureService.java | 23 public static StubFingerprintGestureService enableSelf(Instrumentation instrumentation) { in enableSelf() argument 25 instrumentation, StubFingerprintGestureService.class); in enableSelf()
|
D | StubMagnificationAccessibilityService.java | 25 Instrumentation instrumentation) { in enableSelf() argument 27 instrumentation, StubMagnificationAccessibilityService.class); in enableSelf()
|
D | AccessibilityFingerprintGestureTest.java | 62 Instrumentation instrumentation = InstrumentationRegistry.getInstrumentation(); in setUp() local 63 mFingerprintManager = instrumentation.getContext().getPackageManager() in setUp() 65 ? instrumentation.getContext().getSystemService(FingerprintManager.class) : null; in setUp() 66 mFingerprintGestureService = StubFingerprintGestureService.enableSelf(instrumentation); in setUp()
|
D | StubGestureAccessibilityService.java | 31 public static StubGestureAccessibilityService enableSelf(Instrumentation instrumentation) { in enableSelf() argument 33 instrumentation, StubGestureAccessibilityService.class); in enableSelf()
|
D | AccessibilityButtonTest.java | 55 Instrumentation instrumentation = InstrumentationRegistry.getInstrumentation(); in setUp() local 56 mService = StubAccessibilityButtonService.enableSelf(instrumentation); in setUp()
|
/cts/hostsidetests/shortcuts/deviceside/multiuser/src/android/content/pm/cts/shortcut/multiuser/ |
D | Launcher.java | 25 public static void setAsDefaultLauncher(Instrumentation instrumentation, Context context) { in setAsDefaultLauncher() argument 26 setDefaultLauncher(instrumentation, in setAsDefaultLauncher()
|
/cts/hostsidetests/shortcuts/deviceside/upgrade/src/android/content/pm/cts/shortcut/upgrade/ |
D | Launcher.java | 25 public static void setAsDefaultLauncher(Instrumentation instrumentation, Context context) { in setAsDefaultLauncher() argument 26 setDefaultLauncher(instrumentation, in setAsDefaultLauncher()
|
/cts/libs/wrappedgtest/src/ |
D | WrappedGTestActivity.java | 27 public void setInstrumentation(WrappedGTestInstrumentation instrumentation) { in setInstrumentation() argument 28 mInstrumentation = instrumentation; in setInstrumentation()
|
/cts/tests/tests/widget/src/android/widget/cts/util/ |
D | ListUtil.java | 35 public ListUtil(ListView listView, Instrumentation instrumentation) { in ListUtil() argument 37 mInstrumentation = instrumentation; in ListUtil()
|
/cts/tests/JobScheduler/src/android/jobscheduler/cts/ |
D | ConstraintTest.java | 76 public void injectInstrumentation(Instrumentation instrumentation) { in injectInstrumentation() argument 77 super.injectInstrumentation(instrumentation); in injectInstrumentation() 78 mContext = instrumentation.getContext(); in injectInstrumentation()
|