Home
last modified time | relevance | path

Searched refs:instrumentation (Results 1 – 23 of 23) sorted by relevance

/cts/tests/app/src/android/app/cts/
DOrientationTestUtils.java43 final Instrumentation instrumentation) { in toggleOrientationSync() argument
48 changeOrientation(activity, instrumentation, newOrientation); in toggleOrientationSync()
49 changeOrientation(activity, instrumentation, originalOrientation); in toggleOrientationSync()
53 Instrumentation instrumentation, final int orientation) { in changeOrientation() argument
55 if (instrumentation != null) { in changeOrientation()
56 instrumentation.waitForIdleSync(); in changeOrientation()
/cts/tests/tests/telecom/src/android/telecom/cts/
DTestUtils.java70 public static String setDefaultDialer(Instrumentation instrumentation, String packageName) in setDefaultDialer() argument
72 return executeShellCommand(instrumentation, COMMAND_SET_DEFAULT_DIALER + packageName); in setDefaultDialer()
75 public static String getDefaultDialer(Instrumentation instrumentation) throws Exception { in getDefaultDialer() argument
76 return executeShellCommand(instrumentation, COMMAND_GET_DEFAULT_DIALER); in getDefaultDialer()
79 public static String getSystemDialer(Instrumentation instrumentation) throws Exception { in getSystemDialer() argument
80 return executeShellCommand(instrumentation, COMMAND_GET_SYSTEM_DIALER); in getSystemDialer()
83 public static void enablePhoneAccount(Instrumentation instrumentation, in enablePhoneAccount() argument
86 executeShellCommand(instrumentation, COMMAND_ENABLE in enablePhoneAccount()
91 public static void registerSimPhoneAccount(Instrumentation instrumentation, in registerSimPhoneAccount() argument
94 executeShellCommand(instrumentation, COMMAND_REGISTER_SIM in registerSimPhoneAccount()
[all …]
/cts/tests/tests/view/src/android/view/animation/cts/
DAnimationTestUtils.java47 public static void assertRunAnimation(final Instrumentation instrumentation, in assertRunAnimation() argument
49 assertRunAnimation(instrumentation, view, animation, animation.getDuration()); in assertRunAnimation()
60 public static void assertRunAnimation(final Instrumentation instrumentation, in assertRunAnimation() argument
63 instrumentation.runOnMainSync(new Runnable() { in assertRunAnimation()
85 instrumentation.waitForIdleSync(); in assertRunAnimation()
96 public static void assertRunController(final Instrumentation instrumentation, in assertRunController() argument
100 instrumentation.runOnMainSync(new Runnable() { in assertRunController()
/cts/tests/tests/media/src/android/media/cts/
DUtils.java29 Instrumentation instrumentation) { in enableAppOps() argument
30 setAppOps(packageName, operation, instrumentation, true); in enableAppOps()
34 Instrumentation instrumentation) { in disableAppOps() argument
35 setAppOps(packageName, operation, instrumentation, false); in disableAppOps()
45 Instrumentation instrumentation, boolean enable) { in setAppOps() argument
52 instrumentation.getUiAutomation().executeShellCommand(cmd.toString()); in setAppOps()
64 ParcelFileDescriptor pfd = instrumentation.getUiAutomation().executeShellCommand( in setAppOps()
/cts/tests/tests/app/src/android/app/cts/
DApplicationTest.java34 final Instrumentation instrumentation = getInstrumentation(); in testApplication() local
35 final Context targetContext = instrumentation.getTargetContext(); in testApplication()
40 final Activity activity = instrumentation.startActivitySync(intent); in testApplication()
57 instrumentation.waitForIdleSync(); in testApplication()
DInstrumentation_ActivityMonitorTest.java40 Instrumentation instrumentation = getInstrumentation(); in testActivityMonitor() local
41 ActivityMonitor am = instrumentation.addMonitor( in testActivityMonitor()
43 Context context = instrumentation.getTargetContext(); in testActivityMonitor()
59 instrumentation.waitForIdleSync(); in testActivityMonitor()
69 instrumentation.removeMonitor(am); in testActivityMonitor()
DSystemFeaturesTest.java70 Instrumentation instrumentation = getInstrumentation(); in setUp() local
71 mContext = instrumentation.getTargetContext(); in setUp()
/cts/libs/deviceutil/src/android/cts/util/
DLocationUtils.java27 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()
DDeviceReportLog.java44 public void deliverReportToHost(Instrumentation instrumentation) { in deliverReportToHost() argument
50 instrumentation.sendStatus(INST_STATUS_IN_PROGRESS, output); in deliverReportToHost()
DSystemUtil.java58 public static String runShellCommand(Instrumentation instrumentation, String cmd) in runShellCommand() argument
60 ParcelFileDescriptor pfd = instrumentation.getUiAutomation().executeShellCommand(cmd); in runShellCommand()
/cts/tests/tests/calllog/src/android/calllog/cts/
DTestUtils.java39 public static String executeShellCommand(Instrumentation instrumentation, in executeShellCommand() argument
42 try (InputStream in = executeStreamedShellCommand(instrumentation, command)) { in executeShellCommand()
57 public static FileInputStream executeStreamedShellCommand(Instrumentation instrumentation, in executeStreamedShellCommand() argument
60 instrumentation.getUiAutomation().executeShellCommand(command); in executeStreamedShellCommand()
/cts/tests/tests/mediastress/src/android/mediastress/cts/
DNativeMediaTest.java76 final Instrumentation instrumentation = getInstrumentation(); in runPlayTest() local
80 instrumentation.callActivityOnPause(activity); in runPlayTest()
81 instrumentation.waitForIdleSync(); in runPlayTest()
83 instrumentation.callActivityOnResume(activity); in runPlayTest()
/cts/libs/wrappedgtest/src/
DWrappedGTestActivity.java27 public void setInstrumentation(WrappedGTestInstrumentation instrumentation) { in setInstrumentation() argument
28 mInstrumentation = instrumentation; in setInstrumentation()
/cts/common/device-side/util/src/com/android/compatibility/common/util/
DDeviceReportLog.java36 public void submit(Instrumentation instrumentation) { in submit() argument
40 instrumentation.sendStatus(INST_STATUS_IN_PROGRESS, output); in submit()
/cts/tests/tests/widget/src/android/widget/cts/util/
DListUtil.java35 public ListUtil(ListView listView, Instrumentation instrumentation) { in ListUtil() argument
37 mInstrumentation = instrumentation; in ListUtil()
/cts/tests/tests/text/src/android/text/style/cts/
DURLSpanTest.java67 Instrumentation instrumentation = getInstrumentation(); in testOnClick() local
68 ActivityMonitor am = instrumentation.addMonitor(MockURLSpanTestActivity.class.getName(), in testOnClick()
/cts/tools/cts-xml-generator/src/com/android/cts/xmlgenerator/
DCtsXmlGenerator.java54 String instrumentation = null; in main() local
73 instrumentation = getArg(args, ++i, "Missing value for instrumentation"); in main()
131 appNameSpace, appPackageName, name, runner, instrumentation, targetNameSpace, in main()
/cts/tests/tests/content/src/android/content/pm/cts/
DPackageInfoTest.java81 checkInfoArray(expected.instrumentation, actual.instrumentation); in checkPkgInfoSame()
/cts/tests/tests/widget/src/android/widget/cts/
DExpandableListTester.java45 Instrumentation instrumentation = activityInstrumentation.getInstrumentation(); in ExpandableListTester() local
46 mListUtil = new ListUtil(mExpandableListView, instrumentation); in ExpandableListTester()
DTabHost_TabSpecTest.java191 Instrumentation instrumentation = getInstrumentation(); in testSetContent3() local
192 ActivityMonitor am = instrumentation.addMonitor(MockURLSpanTestActivity.class.getName(), in testSetContent3()
DRemoteViewsTest.java555 Instrumentation instrumentation = getInstrumentation(); in testSetOnClickPendingIntent() local
556 ActivityMonitor am = instrumentation.addMonitor(MockURLSpanTestActivity.class.getName(), in testSetOnClickPendingIntent()
DTextViewTest.java851 Instrumentation instrumentation = getInstrumentation(); in testAccessFreezesText() local
852 ActivityMonitor am = instrumentation.addMonitor(MockURLSpanTestActivity.class.getName(), in testAccessFreezesText()
866 instrumentation.removeMonitor(am); in testAccessFreezesText()
882 am = instrumentation.addMonitor(MockURLSpanTestActivity.class.getName(), in testAccessFreezesText()
902 instrumentation.removeMonitor(am); in testAccessFreezesText()
/cts/common/host-side/xml-plan-generator/src/com/android/compatibility/common/xmlgenerator/
DXmlPlanGenerator.java173 final String instrumentation = argsMap.get("-i"); in main() local
197 runner, instrumentation, targetNameSpace, jarPath, testType, output); in main()