Home
last modified time | relevance | path

Searched refs:cls (Results 1 – 25 of 32) sorted by relevance

12

/cts/tests/core/runner/src/com/android/cts/core/runner/support/
DTestNgRunner.java184 private Description generateTestNgDescription(Class<?> cls) { in generateTestNgDescription() argument
186 Description parent = Description.createSuiteDescription(cls); in generateTestNgDescription()
189 Log.d("TestNgRunner", "Generating TestNg Description for class " + cls.getName()); in generateTestNgDescription()
193 for (Method m : cls.getDeclaredMethods()) { in generateTestNgDescription()
213 Log.d("TestNgRunner", "Already added child " + cls.getName() + "#" + name); in generateTestNgDescription()
218 Description child = Description.createTestDescription(cls, name); in generateTestNgDescription()
223 Log.d("TestNgRunner", "Add child " + cls.getName() + "#" + name); in generateTestNgDescription()
DTestNgRunnerBuilder.java41 private static boolean isTestNgTestClass(Class<?> cls) { in isTestNgTestClass() argument
43 if (cls.getAnnotation(Test.class) != null) { in isTestNgTestClass()
48 for (Method m : cls.getDeclaredMethods()) { in isTestNgTestClass()
/cts/tests/core/runner-axt/src/com/android/cts/core/runner/support/
DTestNgRunner.java184 private Description generateTestNgDescription(Class<?> cls) { in generateTestNgDescription() argument
186 Description parent = Description.createSuiteDescription(cls); in generateTestNgDescription()
189 Log.d("TestNgRunner", "Generating TestNg Description for class " + cls.getName()); in generateTestNgDescription()
193 for (Method m : cls.getDeclaredMethods()) { in generateTestNgDescription()
213 Log.d("TestNgRunner", "Already added child " + cls.getName() + "#" + name); in generateTestNgDescription()
218 Description child = Description.createTestDescription(cls, name); in generateTestNgDescription()
223 Log.d("TestNgRunner", "Add child " + cls.getName() + "#" + name); in generateTestNgDescription()
DTestNgRunnerBuilder.java41 private static boolean isTestNgTestClass(Class<?> cls) { in isTestNgTestClass() argument
43 if (cls.getAnnotation(Test.class) != null) { in isTestNgTestClass()
48 for (Method m : cls.getDeclaredMethods()) { in isTestNgTestClass()
/cts/tests/jdwp/runner/device-side/src/com/android/compatibility/dalvik/
DDalvikTestRunner.java223 Class<?> cls = loader.loadClass(e); in getClasses() local
224 if (isTestClass(cls)) { in getClasses()
225 classes.add(cls); in getClasses()
248 private static boolean isTestClass(Class<?> cls) { in isTestClass() argument
254 if (cls == null) { in isTestClass()
257 for (Annotation a : cls.getAnnotations()) { in isTestClass()
264 if (!hasPublicTestMethods(cls)) { in isTestClass()
268 throw new RuntimeException(cls.toString(), exc); in isTestClass()
272 int modifiers = cls.getModifiers(); in isTestClass()
273 return (Test.class.isAssignableFrom(cls) in isTestClass()
[all …]
/cts/tools/cts-api-coverage/src/com/android/cts/apicoverage/
DTestCaseReport.java319 Class<?> cls = cl.loadClass(className); in getJarTestClasses() local
321 if (IRemoteTest.class.isAssignableFrom(cls) in getJarTestClasses()
322 || Test.class.isAssignableFrom(cls)) { in getJarTestClasses()
323 classes.add(cls); in getJarTestClasses()
324 } else if (!Modifier.isAbstract(cls.getModifiers()) in getJarTestClasses()
325 && hasJUnit4Annotation(cls)) { in getJarTestClasses()
326 classes.add(cls); in getJarTestClasses()
492 for (TestSuite.Package.Class cls : pkg.getClassesList()) { in printTestSuite()
493 for (TestSuite.Package.Class.Method mtd : cls.getMethodsList()) { in printTestSuite()
498 cls.getName(), in printTestSuite()
[all …]
DJarTestFinder.java60 Class<?> cls = cl.loadClass(className); in getClasses() local
61 int modifiers = cls.getModifiers(); in getClasses()
68 classes.add(cls); in getClasses()
DComparisonReport.java78 for (TestSuite.Package.Class cls : pkg.getClassesList()) { in writeComparsionReport()
79 for (TestSuite.Package.Class.Method mtd : cls.getMethodsList()) { in writeComparsionReport()
84 cls.getName(), in writeComparsionReport()
88 String testApkType = String.format("%s,%s", cls.getApk(), pkg.getType()); in writeComparsionReport()
/cts/apps/CameraITS/tools/
Dhardware.py63 def __new__(cls, *args, **kwargs): argument
67 if not cls._instance:
68 cls._instance = super(Device, cls).__new__(cls, *args, **kwargs)
69 return cls._instance
169 cls = self._read_sys_hex_attr(inf_path, self._INF_CLASS)
172 if self._USB_CDC_ACM_CLASS != cls:
/cts/tests/app/app/src/android/app/stubs/
DCommandReceiver.java107 private void doStartForegroundService(Context context, Class cls) { in doStartForegroundService() argument
108 Intent fgsIntent = new Intent(context, cls); in doStartForegroundService()
114 private void doStartForegroundServiceWithType(Context context, Class cls, int type) { in doStartForegroundServiceWithType() argument
115 Intent fgsIntent = new Intent(context, cls); in doStartForegroundServiceWithType()
122 private void doStopForegroundService(Context context, Class cls) { in doStopForegroundService() argument
123 Intent fgsIntent = new Intent(context, cls); in doStopForegroundService()
/cts/tests/framework/base/windowmanager/src/android/server/wm/
DWindowManagerTestBase.java48 static <T extends FocusableActivity> T startActivity(Class<T> cls) throws InterruptedException { in startActivity() argument
49 return startActivity(cls, DEFAULT_DISPLAY); in startActivity()
52 static <T extends FocusableActivity> T startActivity(Class<T> cls, int displayId) in startActivity() argument
57 new Intent(getInstrumentation().getTargetContext(), cls) in startActivity()
/cts/tools/release-parser/src/com/android/cts/releaseparser/
DTestSuiteParser.java439 Class<?> cls = cl.loadClass(className); in getJarTestClasses() local
441 if (IRemoteTest.class.isAssignableFrom(cls) in getJarTestClasses()
442 || Test.class.isAssignableFrom(cls)) { in getJarTestClasses()
443 classes.add(cls); in getJarTestClasses()
444 } else if (!Modifier.isAbstract(cls.getModifiers()) in getJarTestClasses()
445 && hasJUnit4Annotation(cls)) { in getJarTestClasses()
446 classes.add(cls); in getJarTestClasses()
505 for (ApiClass cls : pkg.getClassesList()) { in writeCsvFile()
506 for (ApiMethod mtd : cls.getMethodsList()) { in writeCsvFile()
511 cls.getName(), in writeCsvFile()
[all …]
DJarTestFinder.java57 Class<?> cls = cl.loadClass(className); in getClasses() local
58 int modifiers = cls.getModifiers(); in getClasses()
65 classes.add(cls); in getClasses()
/cts/tests/tests/voicesettings/src/android/voicesettings/cts/
DBroadcastTestBase.java137 String pkg, String cls) throws Exception { in startTestAndWaitForBroadcast() argument
140 mActivity.startTest(testCaseType.toString(), pkg, cls); in startTestAndWaitForBroadcast() local
179 String pkg, String cls) in startTestAndWaitForChange() argument
188 mActivity.startTest(testCaseType.toString(), pkg, cls); in startTestAndWaitForChange() local
DBroadcastTestStartActivity.java42 void startTest(String testCaseType, String pkg, String cls) { in startTest() argument
47 intent.setComponent(new ComponentName(pkg, cls)); in startTest()
/cts/hostsidetests/jvmti/base/jni/
Dtracking.cpp32 static std::string GetClassName(JNIEnv* jni_env, jclass cls) { in GetClassName() argument
33 ScopedLocalRef<jclass> class_class(jni_env, jni_env->GetObjectClass(cls)); in GetClassName()
36 jni_env, reinterpret_cast<jstring>(jni_env->CallObjectMethod(cls, mid))); in GetClassName()
/cts/tests/tests/os/jni/
Dandroid_os_cts_OSFeatures.cpp65 jclass cls = env->FindClass("java/lang/RuntimeException"); in android_os_cts_OSFeatures_hasSeccompSupport() local
66 env->ThrowNew(cls, "fork failed"); in android_os_cts_OSFeatures_hasSeccompSupport()
/cts/common/device-side/util/src/com/android/compatibility/common/util/
DBroadcastTestStartActivity.java40 void startTest(String testCaseType, String pkg, String cls) { in startTest() argument
45 intent.setComponent(new ComponentName(pkg, cls)); in startTest()
DBusinessLogicDeviceExecutor.java76 protected ResolvedMethod getResolvedMethod(Class cls, String methodName, String... args) in getResolvedMethod() argument
78 List<Method> nameMatches = getMethodsWithName(cls, methodName); in getResolvedMethod()
DBroadcastTestBase.java101 String pkg, String cls) throws Exception { in startTestAndWaitForBroadcast() argument
104 mActivity.startTest(testCaseType.toString(), pkg, cls); in startTestAndWaitForBroadcast() local
/cts/tests/tests/security/jni/
Dandroid_security_cts_LinuxRngTest.cpp39 jclass cls = env->FindClass("java/io/IOException"); in throwIOException() local
40 env->ThrowNew(cls, message); in throwIOException()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DBusinessLogicDeviceExecutor.java76 protected ResolvedMethod getResolvedMethod(Class cls, String methodName, String... args) in getResolvedMethod() argument
78 List<Method> nameMatches = getMethodsWithName(cls, methodName); in getResolvedMethod()
/cts/tests/framework/base/windowmanager/appPrereleaseSdk/fake-framework/src/android/content/
DComponentName.java20 public ComponentName(String pkg, String cls) {} in ComponentName() argument
/cts/hostsidetests/seccomp/app/src/android/seccomp/cts/app/
DSeccompDeviceTest.java166 private IsolatedConnection bindService(Class<?> cls) { in bindService() argument
168 intent.setClass(mContext, cls); in bindService()
/cts/tests/tests/tools/processors/view_inspector/src/android/processor/view/inspector/cts/
DPlatformInspectableProcessorTest.java797 private <T> InspectionCompanion<T> loadCompanion(Class<T> cls) { in loadCompanion() argument
798 final ClassLoader classLoader = cls.getClassLoader(); in loadCompanion()
799 final String companionName = String.format("%s$InspectionCompanion", cls.getName()); in loadCompanion()
806 fail(String.format("Unable to load companion for %s", cls.getCanonicalName())); in loadCompanion()
808 fail(String.format("Unable to instantiate companion for %s", cls.getCanonicalName())); in loadCompanion()

12