/cts/tests/core/runner/src/com/android/cts/core/runner/support/ |
D | TestNgRunner.java | 184 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()
|
D | TestNgRunnerBuilder.java | 41 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/ |
D | TestNgRunner.java | 184 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()
|
D | TestNgRunnerBuilder.java | 41 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/ |
D | DalvikTestRunner.java | 223 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/ |
D | TestCaseReport.java | 319 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 …]
|
D | JarTestFinder.java | 60 Class<?> cls = cl.loadClass(className); in getClasses() local 61 int modifiers = cls.getModifiers(); in getClasses() 68 classes.add(cls); in getClasses()
|
D | ComparisonReport.java | 78 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/ |
D | hardware.py | 63 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/ |
D | CommandReceiver.java | 107 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/ |
D | WindowManagerTestBase.java | 48 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/ |
D | TestSuiteParser.java | 439 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 …]
|
D | JarTestFinder.java | 57 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/ |
D | BroadcastTestBase.java | 137 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
|
D | BroadcastTestStartActivity.java | 42 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/ |
D | tracking.cpp | 32 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/ |
D | android_os_cts_OSFeatures.cpp | 65 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/ |
D | BroadcastTestStartActivity.java | 40 void startTest(String testCaseType, String pkg, String cls) { in startTest() argument 45 intent.setComponent(new ComponentName(pkg, cls)); in startTest()
|
D | BusinessLogicDeviceExecutor.java | 76 protected ResolvedMethod getResolvedMethod(Class cls, String methodName, String... args) in getResolvedMethod() argument 78 List<Method> nameMatches = getMethodsWithName(cls, methodName); in getResolvedMethod()
|
D | BroadcastTestBase.java | 101 String pkg, String cls) throws Exception { in startTestAndWaitForBroadcast() argument 104 mActivity.startTest(testCaseType.toString(), pkg, cls); in startTestAndWaitForBroadcast() local
|
/cts/tests/tests/security/jni/ |
D | android_security_cts_LinuxRngTest.cpp | 39 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/ |
D | BusinessLogicDeviceExecutor.java | 76 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/ |
D | ComponentName.java | 20 public ComponentName(String pkg, String cls) {} in ComponentName() argument
|
/cts/hostsidetests/seccomp/app/src/android/seccomp/cts/app/ |
D | SeccompDeviceTest.java | 166 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/ |
D | PlatformInspectableProcessorTest.java | 797 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()
|