Home
last modified time | relevance | path

Searched refs:testClassName (Results 1 – 25 of 49) sorted by relevance

12

/cts/hostsidetests/classloaders/useslibrary/src/android/classloaders/cts/
DUtils.java36 public static void runDeviceTests(ITestDevice device, String packageName, String testClassName, in runDeviceTests() argument
38 runDeviceTests(device, packageName, testClassName, testMethodName, USER_SYSTEM, null); in runDeviceTests()
41 public static void runDeviceTests(ITestDevice device, String packageName, String testClassName, in runDeviceTests() argument
44 runDeviceTests(device, packageName, testClassName, testMethodName, USER_SYSTEM, testArgs); in runDeviceTests()
47 public static void runDeviceTests(ITestDevice device, String packageName, String testClassName, in runDeviceTests() argument
49 runDeviceTests(device, packageName, testClassName, testMethodName, userId, null); in runDeviceTests()
52 public static void runDeviceTests(ITestDevice device, String packageName, String testClassName, in runDeviceTests() argument
56 runDeviceTests(device, packageName, testClassName, testMethodName, userId, testArgs, in runDeviceTests()
60 public static void runDeviceTests(ITestDevice device, String packageName, String testClassName, in runDeviceTests() argument
64 if (testClassName != null && testClassName.startsWith(".")) { in runDeviceTests()
[all …]
/cts/hostsidetests/packagemanager/dynamicmime/src/android/dynamicmime/cts/
DRebootTestCaseBase.java42 protected void runTestWithReboot(String testClassName, String testMethodName) in runTestWithReboot() argument
44 runPreReboot(testClassName, testMethodName); in runTestWithReboot()
47 runPostReboot(testClassName, testMethodName); in runTestWithReboot()
50 protected void runPostReboot(String testClassName, String testMethodName) in runPostReboot() argument
52 runDeviceTests(PACKAGE_TEST_APP, PACKAGE_REBOOT_TESTS + ".PostReboot" + testClassName, in runPostReboot()
60 protected void runPreReboot(String testClassName, String testMethodName) in runPreReboot() argument
62 runDeviceTests(PACKAGE_TEST_APP, PACKAGE_REBOOT_TESTS + ".PreReboot" + testClassName, in runPreReboot()
/cts/hostsidetests/appsecurity/src/android/appsecurity/cts/
DUtils.java74 String testClassName, String testMethodName) throws DeviceNotAvailableException { in runDeviceTestsAsCurrentUser() argument
75 runDeviceTests(device, packageName, testClassName, testMethodName, device.getCurrentUser(), in runDeviceTestsAsCurrentUser()
80 String testClassName, String testMethodName, Map<String, String> testArgs) in runDeviceTestsAsCurrentUser() argument
82 runDeviceTests(device, packageName, testClassName, testMethodName, device.getCurrentUser(), in runDeviceTestsAsCurrentUser()
86 public static void runDeviceTests(ITestDevice device, String packageName, String testClassName, in runDeviceTests() argument
88 runDeviceTests(device, packageName, testClassName, testMethodName, USER_SYSTEM, null); in runDeviceTests()
91 public static void runDeviceTests(ITestDevice device, String packageName, String testClassName, in runDeviceTests() argument
94 runDeviceTests(device, packageName, testClassName, testMethodName, USER_SYSTEM, testArgs); in runDeviceTests()
97 public static void runDeviceTests(ITestDevice device, String packageName, String testClassName, in runDeviceTests() argument
99 runDeviceTests(device, packageName, testClassName, testMethodName, userId, null); in runDeviceTests()
[all …]
DAccessSerialNumberTest.java38 private void runDeviceTests(String packageName, String testClassName, String testMethodName) in runDeviceTests() argument
40 Utils.runDeviceTests(getDevice(), packageName, testClassName, testMethodName); in runDeviceTests() local
DPermissionEscalationTest.java80 private void runDeviceTests(String packageName, String testClassName, String testMethodName) in runDeviceTests() argument
82 Utils.runDeviceTestsAsCurrentUser(getDevice(), packageName, testClassName, testMethodName); in runDeviceTests() local
/cts/hostsidetests/media/src/android/media/cts/
DBaseMediaHostSideTest.java74 String pkgName, @Nullable String testClassName, @Nullable String testMethodName) in runDeviceTests() argument
76 RemoteAndroidTestRunner testRunner = getTestRunner(pkgName, testClassName, testMethodName); in runDeviceTests()
113 String pkgName, String testClassName, String testMethodName) { in getTestRunner() argument
114 if (testClassName != null && testClassName.startsWith(".")) { in getTestRunner()
115 testClassName = pkgName + testClassName; in getTestRunner()
123 if (testClassName != null && testMethodName != null) { in getTestRunner()
124 testRunner.setMethodName(testClassName, testMethodName); in getTestRunner()
125 } else if (testClassName != null) { in getTestRunner()
126 testRunner.setClassName(testClassName); in getTestRunner()
/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/
DBaseDeviceOwnerTest.java80 protected final void executeDeviceOwnerTest(String testClassName) throws Exception { in executeDeviceOwnerTest() argument
81 executeDeviceOwnerTestOnSpecificUser(testClassName, mPrimaryUserId); in executeDeviceOwnerTest()
84 protected final void executeDeviceOwnerTestOnDeviceOwnerUser(String testClassName) in executeDeviceOwnerTestOnDeviceOwnerUser() argument
86 executeDeviceOwnerTestOnSpecificUser(testClassName, mDeviceOwnerUserId); in executeDeviceOwnerTestOnDeviceOwnerUser()
89 private void executeDeviceOwnerTestOnSpecificUser(String testClassName, int userId) in executeDeviceOwnerTestOnSpecificUser() argument
91 String testClass = DEVICE_OWNER_PKG + "." + testClassName; in executeDeviceOwnerTestOnSpecificUser()
DProfileOwnerTest.java86 private void executeProfileOwnerTest(String testClassName) throws Exception { in executeProfileOwnerTest() argument
87 String testClass = PROFILE_OWNER_PKG + "." + testClassName; in executeProfileOwnerTest()
88 CLog.d("executeProfileOwnerTest(): running %s on user %d", testClassName, mUserId); in executeProfileOwnerTest()
DMixedDeviceOwnerTest.java303 private void runSecurityLoggingTests(String packageName, String testClassName) in runSecurityLoggingTests() argument
308 runDeviceTestsAsUser(packageName, testClassName, "testEnablingSecurityLogging", userId); in runSecurityLoggingTests()
314 runDeviceTestsAsUser(packageName, testClassName, "testGenerateLogs", userId); in runSecurityLoggingTests()
315 runDeviceTestsAsUser(packageName, testClassName, "testVerifyGeneratedLogs", userId); in runSecurityLoggingTests()
318 runDeviceTestsAsUser(packageName, testClassName, in runSecurityLoggingTests()
322 runDeviceTestsAsUser(packageName, testClassName, in runSecurityLoggingTests()
434 protected void runDeviceTestsAsUser(String pkgName, String testClassName, String testName, in runDeviceTestsAsUser() argument
441 pkgName, testClassName, testName, userId, newParams); in runDeviceTestsAsUser()
DMixedManagedProfileOwnerTest.java326 private void testNetworkLoggingOnWorkProfile(String packageName, String testClassName) in testNetworkLoggingOnWorkProfile() argument
330 runDeviceTestsAsUser(packageName, testClassName, in testNetworkLoggingOnWorkProfile()
334 runDeviceTestsAsUser(packageName, testClassName, in testNetworkLoggingOnWorkProfile()
341 runDeviceTestsAsUser(packageName, testClassName, in testNetworkLoggingOnWorkProfile()
345 runDeviceTestsAsUser(packageName, testClassName, in testNetworkLoggingOnWorkProfile()
DOrgOwnedProfileOwnerTest.java254 private void testSecurityLoggingOnWorkProfile(String packageName, String testClassName) in testSecurityLoggingOnWorkProfile() argument
260 runDeviceTestsAsUser(packageName, testClassName, in testSecurityLoggingOnWorkProfile()
272 runDeviceTestsAsUser(packageName, testClassName, "testGenerateLogs", mUserId); in testSecurityLoggingOnWorkProfile()
274 runDeviceTestsAsUser(packageName, testClassName, "testVerifyGeneratedLogs", mUserId); in testSecurityLoggingOnWorkProfile()
277 runDeviceTestsAsUser(packageName, testClassName, in testSecurityLoggingOnWorkProfile()
281 runDeviceTestsAsUser(packageName, testClassName, in testSecurityLoggingOnWorkProfile()
559 private void testNetworkLoggingOnWorkProfile(String packageName, String testClassName) in testNetworkLoggingOnWorkProfile() argument
563 runDeviceTestsAsUser(packageName, testClassName, in testNetworkLoggingOnWorkProfile()
567 runDeviceTestsAsUser(packageName, testClassName, in testNetworkLoggingOnWorkProfile()
574 runDeviceTestsAsUser(packageName, testClassName, in testNetworkLoggingOnWorkProfile()
[all …]
/cts/hostsidetests/content/src/android/content/cts/
DBaseContextCrossProfileTest.java139 String testClassName, in runDeviceTests() argument
143 if (testClassName != null && testClassName.startsWith(".")) { in runDeviceTests()
144 testClassName = packageName + testClassName; in runDeviceTests()
150 if (testClassName != null && testMethodName != null) { in runDeviceTests()
151 testRunner.setMethodName(testClassName, testMethodName); in runDeviceTests()
152 } else if (testClassName != null) { in runDeviceTests()
153 testRunner.setClassName(testClassName); in runDeviceTests()
DInvalidSyncAuthoritiesHostTest.java75 private void runDeviceTests(String packageName, String testClassName, String testMethodName) in runDeviceTests() argument
77 Utils.runDeviceTests(getDevice(), packageName, testClassName, testMethodName); in runDeviceTests() local
/cts/hostsidetests/packagemanager/stats/src/com/android/cts/packagemanager/stats/host/
DUtils.java55 String testClassName, String testMethodName, Map<String, String> testArgs) in runDeviceTests() argument
57 if (testClassName != null && testClassName.startsWith(".")) { in runDeviceTests()
58 testClassName = packageName + testClassName; in runDeviceTests()
63 if (testClassName != null && testMethodName != null) { in runDeviceTests()
64 testRunner.setMethodName(testClassName, testMethodName); in runDeviceTests()
65 } else if (testClassName != null) { in runDeviceTests()
66 testRunner.setClassName(testClassName); in runDeviceTests()
/cts/hostsidetests/atrace/src/android/atrace/cts/
DAtraceHostTestBase.java137 String testClassName, String testMethodName) in runDeviceTests() argument
139 if (testClassName != null && testClassName.startsWith(".")) { in runDeviceTests()
140 testClassName = pkgName + testClassName; in runDeviceTests()
146 if (testClassName != null && testMethodName != null) { in runDeviceTests()
147 testRunner.setMethodName(testClassName, testMethodName); in runDeviceTests()
148 } else if (testClassName != null) { in runDeviceTests()
149 testRunner.setClassName(testClassName); in runDeviceTests()
/cts/hostsidetests/dumpsys/src/android/dumpsys/cts/
DBaseDumpsysTest.java162 @Nullable String testClassName, @Nullable String testMethodName) in runDeviceTests() argument
164 if (testClassName != null && testClassName.startsWith(".")) { in runDeviceTests()
165 testClassName = pkgName + testClassName; in runDeviceTests()
170 if (testClassName != null && testMethodName != null) { in runDeviceTests()
171 testRunner.setMethodName(testClassName, testMethodName); in runDeviceTests()
172 } else if (testClassName != null) { in runDeviceTests()
173 testRunner.setClassName(testClassName); in runDeviceTests()
/cts/hostsidetests/accounts/src/android/host/accounts/
DAccountManagerXUserTest.java208 public static void runDeviceTests(ITestDevice device, String packageName, String testClassName, in runDeviceTests() argument
212 if (testClassName != null && testClassName.startsWith(".")) { in runDeviceTests()
213 testClassName = packageName + testClassName; in runDeviceTests()
219 if (testClassName != null && testMethodName != null) { in runDeviceTests()
220 testRunner.setMethodName(testClassName, testMethodName); in runDeviceTests()
221 } else if (testClassName != null) { in runDeviceTests()
222 testRunner.setClassName(testClassName); in runDeviceTests()
/cts/hostsidetests/settings/src/com/google/android/cts/settings/
DPrivacyDeviceOwnerTest.java180 String pkgName, @Nullable String testClassName, @Nullable String testMethodName) in runDeviceTests() argument
182 if (testClassName != null && testClassName.startsWith(".")) { in runDeviceTests()
183 testClassName = pkgName + testClassName; in runDeviceTests()
191 if (testClassName != null && testMethodName != null) { in runDeviceTests()
192 testRunner.setMethodName(testClassName, testMethodName); in runDeviceTests()
193 } else if (testClassName != null) { in runDeviceTests()
194 testRunner.setClassName(testClassName); in runDeviceTests()
198 CLog.i("Running %s.%s on user %d", testClassName, testMethodName, mTestUserId); in runDeviceTests()
/cts/hostsidetests/webkit/src/com/android/cts/webkit/
DWebViewHostSideStartupTest.java62 private TestRunResult runSingleDeviceTest(String packageName, String testClassName, in runSingleDeviceTest() argument
64 testClassName = packageName + "." + testClassName; in runSingleDeviceTest()
68 testRunner.setMethodName(testClassName, testMethodName); in runSingleDeviceTest()
/cts/hostsidetests/packagemanager/multiuser/src/com/android/tests/packagemanager/multiuser/host/
DPackageManagerMultiUserTestBase.java68 String pkgName, @Nullable String testClassName, in runDeviceTestAsUser() argument
71 if (testClassName != null && testClassName.startsWith(".")) { in runDeviceTestAsUser()
72 testClassName = pkgName + testClassName; in runDeviceTestAsUser()
79 testClassName, in runDeviceTestAsUser() local
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/lib/
DDeviceUtils.java84 @Nullable String testClassName, @Nullable String testMethodName) in runDeviceTests() argument
86 return internalRunDeviceTests(device, pkgName, testClassName, testMethodName, null); in runDeviceTests()
102 @Nullable String testClassName, @Nullable String testMethodName, in runDeviceTests() argument
105 return internalRunDeviceTests(device, pkgName, testClassName, testMethodName, listener); in runDeviceTests()
109 @Nullable String testClassName, @Nullable String testMethodName, in internalRunDeviceTests() argument
112 if (testClassName != null && testClassName.startsWith(".")) { in internalRunDeviceTests()
113 testClassName = pkgName + testClassName; in internalRunDeviceTests()
118 if (testClassName != null && testMethodName != null) { in internalRunDeviceTests()
119 testRunner.setMethodName(testClassName, testMethodName); in internalRunDeviceTests()
120 } else if (testClassName != null) { in internalRunDeviceTests()
[all …]
/cts/hostsidetests/shortcuts/hostside/src/android/content/pm/cts/shortcuthost/
DBaseShortcutManagerHostTest.java120 String pkgName, @Nullable String testClassName, int userId) in runDeviceTestsAsUser() argument
122 runDeviceTestsAsUser(pkgName, testClassName, null /*testMethodName*/, userId); in runDeviceTestsAsUser()
127 String pkgName, @Nullable String testClassName, String testMethodName, int userId) in runDeviceTestsAsUser() argument
131 if (testClassName != null) { in runDeviceTestsAsUser()
132 if (testClassName.startsWith(".")) { in runDeviceTestsAsUser()
133 testClassName = pkgName + testClassName; in runDeviceTestsAsUser()
135 opts.setTestClassName(testClassName); in runDeviceTestsAsUser()
/cts/hostsidetests/videoencodingminimum/src/android/videoqualityfloor/cts/
DCtsVideoQualityFloorHostTest.java327 private void runDeviceTests(String pkgName, @Nullable String testClassName, in runDeviceTests() argument
329 RemoteAndroidTestRunner testRunner = getTestRunner(pkgName, testClassName, testMethodName); in runDeviceTests()
335 private RemoteAndroidTestRunner getTestRunner(String pkgName, String testClassName, in getTestRunner() argument
337 if (testClassName != null && testClassName.startsWith(".")) { in getTestRunner()
338 testClassName = pkgName + testClassName; in getTestRunner()
346 if (testClassName != null && testMethodName != null) { in getTestRunner()
347 testRunner.setMethodName(testClassName, testMethodName); in getTestRunner()
348 } else if (testClassName != null) { in getTestRunner()
349 testRunner.setClassName(testClassName); in getTestRunner()
/cts/tests/tests/webkit/src/android/webkit/cts/
DTestProcessService.java42 public Bundle run(String testClassName) {
47 Class testClass = Class.forName(testClassName);
/cts/hostsidetests/mediapc/videoencodingquality/src/
DCtsVideoEncodingQualityHostTest.java531 private void runDeviceTests(String pkgName, @Nullable String testClassName, in runDeviceTests() argument
533 RemoteAndroidTestRunner testRunner = getTestRunner(pkgName, testClassName, testMethodName); in runDeviceTests()
539 private RemoteAndroidTestRunner getTestRunner(String pkgName, String testClassName, in getTestRunner() argument
541 if (testClassName != null && testClassName.startsWith(".")) { in getTestRunner()
542 testClassName = pkgName + testClassName; in getTestRunner()
550 if (testClassName != null && testMethodName != null) { in getTestRunner()
551 testRunner.setMethodName(testClassName, testMethodName); in getTestRunner()
552 } else if (testClassName != null) { in getTestRunner()
553 testRunner.setClassName(testClassName); in getTestRunner()

12