/cts/tests/tests/jni/libjnitest/ |
D | android_jni_cts_StaticNonce.c | 29 static void StaticNonce_nop(JNIEnv *env, jclass clazz) { in StaticNonce_nop() argument 34 static jboolean StaticNonce_returnBoolean(JNIEnv *env, jclass clazz) { in StaticNonce_returnBoolean() argument 39 static jbyte StaticNonce_returnByte(JNIEnv *env, jclass clazz) { in StaticNonce_returnByte() argument 44 static jshort StaticNonce_returnShort(JNIEnv *env, jclass clazz) { in StaticNonce_returnShort() argument 49 static jchar StaticNonce_returnChar(JNIEnv *env, jclass clazz) { in StaticNonce_returnChar() argument 54 static jint StaticNonce_returnInt(JNIEnv *env, jclass clazz) { in StaticNonce_returnInt() argument 59 static jlong StaticNonce_returnLong(JNIEnv *env, jclass clazz) { in StaticNonce_returnLong() argument 64 static jfloat StaticNonce_returnFloat(JNIEnv *env, jclass clazz) { in StaticNonce_returnFloat() argument 69 static jdouble StaticNonce_returnDouble(JNIEnv *env, jclass clazz) { in StaticNonce_returnDouble() argument 74 static jobject StaticNonce_returnNull(JNIEnv *env, jclass clazz) { in StaticNonce_returnNull() argument [all …]
|
/cts/tools/cts-java-scanner-doclet/src/com/android/cts/javascannerdoclet/ |
D | CtsJavaScannerDoclet.java | 78 for (ClassDoc clazz : classes) { in start() 79 if (clazz.isAbstract()) { in start() 83 final boolean isJUnit3 = isJUnit3TestCase(clazz); in start() 84 if (!isJUnit3 && !isJUnit4TestClass(clazz)) { in start() 88 writer.append("suite:").println(clazz.containingPackage().name()); in start() 89 writer.append("case:").println(clazz.name()); in start() 90 for (; clazz != null; clazz = clazz.superclass()) { in start() 91 for (MethodDoc method : clazz.methods()) { in start() 145 private static boolean isJUnit3TestCase(ClassDoc clazz) { in isJUnit3TestCase() argument 146 while((clazz = clazz.superclass()) != null) { in isJUnit3TestCase() [all …]
|
/cts/tests/tests/mediastress/jni/ |
D | native-media-jni.cpp | 62 #define RETURN_ON_ASSERTION_FAILURE(cond, env, clazz) \ argument 65 Java_android_mediastress_cts_NativeMediaActivity_shutdown((env), (clazz)); \ 241 jclass clazz) in Java_android_mediastress_cts_NativeMediaActivity_shutdown() argument 285 jclass clazz) in Java_android_mediastress_cts_NativeMediaActivity_createEngine() argument 291 RETURN_ON_ASSERTION_FAILURE((XA_RESULT_SUCCESS == res), env, clazz); in Java_android_mediastress_cts_NativeMediaActivity_createEngine() 295 RETURN_ON_ASSERTION_FAILURE((XA_RESULT_SUCCESS == res), env, clazz); in Java_android_mediastress_cts_NativeMediaActivity_createEngine() 299 RETURN_ON_ASSERTION_FAILURE((XA_RESULT_SUCCESS == res), env, clazz); in Java_android_mediastress_cts_NativeMediaActivity_createEngine() 303 RETURN_ON_ASSERTION_FAILURE((XA_RESULT_SUCCESS == res), env, clazz); in Java_android_mediastress_cts_NativeMediaActivity_createEngine() 307 RETURN_ON_ASSERTION_FAILURE((XA_RESULT_SUCCESS == res), env, clazz); in Java_android_mediastress_cts_NativeMediaActivity_createEngine() 315 jclass clazz, jstring fileUri) in Java_android_mediastress_cts_NativeMediaActivity_createMediaPlayer() argument [all …]
|
/cts/tools/dex-tools/test/dex/reader/ |
D | DexTestsCommon.java | 96 for (DexClass clazz : file.getDefinedClasses()) { in getClass() 97 if(className.equals(clazz.getName())){ in getClass() 98 return clazz; in getClass() 105 protected DexField getField(DexClass clazz, String fieldName) { in getField() argument 106 assertNotNull(clazz); in getField() 108 for (DexField field : clazz.getFields()) { in getField() 113 fail("Field: " + fieldName +" not present in class: " + clazz.getName()); in getField() 114 …throw new IllegalArgumentException("Field: " + fieldName +" not present in class: " + clazz.getNam… in getField() 129 protected DexMethod getMethod(DexClass clazz, String methodName, String... typeNames) { in getMethod() argument 130 assertNotNull(clazz); in getMethod() [all …]
|
D | DexFileReaderTests.java | 85 DexClass clazz = dexFile.getDefinedClasses().get(0); in testT0() local 86 assertEquals("LT0;", clazz.getName()); in testT0() 87 assertPublic(clazz); in testT0() 89 assertEquals(4, clazz.getFields().size()); in testT0() 90 DexField field = getField(clazz, "publicIntField"); in testT0() 92 field = getField(clazz, "protectedLongField"); in testT0() 94 field = getField(clazz, "defaultShortField"); in testT0() 96 field = getField(clazz, "privateDoubleField"); in testT0() 99 DexMethod method = getMethod(clazz, "publicStringMethodInt", "I"); in testT0() 101 method = getMethod(clazz, "protectedStringMethodInt", "I");/** a.b.C */ in testT0() [all …]
|
D | LargeDexTests.java | 47 DexClass clazz = dexFile.getDefinedClasses().get(0); in testManyFields() local 48 assertEquals("LL0;", clazz.getName()); in testManyFields() 49 assertPublic(clazz); in testManyFields() 50 assertEquals(NR_OF_FIELDS, clazz.getFields().size()); in testManyFields()
|
/cts/hostsidetests/appsecurity/test-apps/SplitApp/jni/ |
D | com_android_cts_splitapp_Native.cpp | 46 jclass clazz; in registerNativeMethods() local 48 clazz = env->FindClass(className); in registerNativeMethods() 49 if (clazz == NULL) { in registerNativeMethods() 53 if (env->RegisterNatives(clazz, gMethods, numMethods) < 0) { in registerNativeMethods()
|
/cts/tools/utils/ |
D | DescriptionGenerator.java | 143 for (ClassDoc clazz : classes) { in start() 144 if ((!clazz.isAbstract()) && (isValidJUnitTestCase(clazz))) { in start() 145 xmlGenerator.addTestClass(new TestClass(clazz, ctsExpectationStore, architecture)); in start() 178 static boolean isValidJUnitTestCase(ClassDoc clazz) { in isValidJUnitTestCase() argument 179 while((clazz = clazz.superclass()) != null) { in isValidJUnitTestCase() 180 if (JUNIT_TEST_CASE_CLASS_NAME.equals(clazz.qualifiedName().toLowerCase())) { in isValidJUnitTestCase() 532 TestClass(ClassDoc clazz, ExpectationStore expectationStore, String architecture) { in TestClass() argument 533 mName = clazz.toString(); in TestClass() 534 mCases = getTestMethods(expectationStore, architecture, clazz); in TestClass() 544 String architecture, ClassDoc clazz) { in getTestMethods() argument [all …]
|
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/ |
D | InstrumentedAccessibilityService.java | 98 InstrumentationTestCase testCase, Class<T> clazz) { in enableService() argument 99 final String serviceName = clazz.getSimpleName(); in enableService() 121 final T instance = getInstanceForClass(clazz, TIMEOUT_SERVICE_ENABLE); in enableService() 136 private static <T extends InstrumentedAccessibilityService> T getInstanceForClass(Class clazz, in getInstanceForClass() argument 141 final WeakReference<InstrumentedAccessibilityService> ref = sInstances.get(clazz); in getInstanceForClass() 145 sInstances.remove(clazz); in getInstanceForClass()
|
/cts/tests/tests/security/jni/ |
D | android_security_cts_KernelSettingsTest.cpp | 36 jclass clazz = env->FindClass("android/security/cts/KernelSettingsTest"); in register_android_security_cts_KernelSettingsTest() local 37 return env->RegisterNatives(clazz, gMethods, in register_android_security_cts_KernelSettingsTest()
|
D | android_security_cts_SELinuxTest.cpp | 66 jclass clazz = env->FindClass("android/security/cts/SELinuxTest"); in register_android_security_cts_SELinuxTest() local 68 return env->RegisterNatives(clazz, gMethods, in register_android_security_cts_SELinuxTest()
|
D | android_security_cts_MMapExecutableTest.cpp | 81 jclass clazz = env->FindClass("android/security/cts/MMapExecutableTest"); in register_android_security_cts_MMapExecutableTest() local 83 clazz, gMethods, sizeof(gMethods) / sizeof(JNINativeMethod)); in register_android_security_cts_MMapExecutableTest()
|
/cts/tests/tests/os/jni/ |
D | android_os_cts_HardwareName.cpp | 39 jclass clazz = env->FindClass("android/os/cts/HardwareName"); in register_android_os_cts_HardwareName() local 41 return env->RegisterNatives(clazz, gMethods, in register_android_os_cts_HardwareName()
|
D | android_os_cts_TaggedPointer.cpp | 81 jclass clazz = env->FindClass("android/os/cts/TaggedPointer"); in register_android_os_cts_TaggedPointer() local 83 return env->RegisterNatives(clazz, gMethods, in register_android_os_cts_TaggedPointer()
|
D | android_os_cts_SeccompTest.cpp | 87 jclass clazz = env->FindClass("android/os/cts/SeccompTest"); in register_android_os_cts_SeccompTest() local 88 return env->RegisterNatives(clazz, methods, sizeof(methods) / sizeof(JNINativeMethod)); in register_android_os_cts_SeccompTest()
|
D | android_os_cts_NoExecutePermissionTest.cpp | 83 jclass clazz = env->FindClass("android/os/cts/NoExecutePermissionTest"); in register_android_os_cts_NoExecutePermissionTest() local 85 return env->RegisterNatives(clazz, gMethods, in register_android_os_cts_NoExecutePermissionTest()
|
D | android_os_cts_OSFeatures.cpp | 108 jclass clazz = env->FindClass("android/os/cts/OSFeatures"); in register_android_os_cts_OSFeatures() local 110 return env->RegisterNatives(clazz, gMethods, in register_android_os_cts_OSFeatures()
|
/cts/tools/cts-device-info/jni/ |
D | com_android_cts_deviceinfo_VulkanDeviceInfo.cpp | 38 jclass clazz = env->FindClass("com/android/cts/deviceinfo/VulkanDeviceInfo"); in register_com_android_cts_deviceinfo_VulkanDeviceInfo() local 39 return env->RegisterNatives(clazz, gMethods, in register_com_android_cts_deviceinfo_VulkanDeviceInfo()
|
/cts/tests/tests/drm/jni/ |
D | android_drm_cts_NativeCodeTest.cpp | 57 jclass clazz = env->FindClass("android/drm/cts/NativeCodeTest"); in register_android_drm_cts_NativeCodeTest() local 58 return env->RegisterNatives(clazz, gMethods, in register_android_drm_cts_NativeCodeTest()
|
/cts/libs/deviceutil/jni/ |
D | android_cts_FileUtils.cpp | 94 jint android_cts_FileUtils_setPermissions(JNIEnv* env, jobject clazz, in android_cts_FileUtils_setPermissions() argument 125 jclass clazz = env->FindClass("android/cts/util/FileUtils"); in register_android_cts_FileUtils() local 126 assert(clazz != null); in register_android_cts_FileUtils() 143 return env->RegisterNatives(clazz, gMethods, in register_android_cts_FileUtils()
|
/cts/hostsidetests/devicepolicy/app/PackageInstaller/src/com/android/cts/packageinstaller/ |
D | ManualPackageInstallTest.java | 34 .clazz(android.widget.Button.class.getName()) 38 .clazz(android.widget.ImageView.class.getName()) 42 .clazz(android.widget.Button.class.getName())
|
/cts/tests/accessibility/src/android/view/accessibility/cts/ |
D | AccessibilityRecordTest.java | 204 static void assertNoNewNonStaticFieldsAdded(Class<?> clazz, int expectedCount) { in assertNoNewNonStaticFieldsAdded() argument 207 while (clazz != Object.class) { in assertNoNewNonStaticFieldsAdded() 208 for (Field field : clazz.getDeclaredFields()) { in assertNoNewNonStaticFieldsAdded() 213 clazz = clazz.getSuperclass(); in assertNoNewNonStaticFieldsAdded()
|
/cts/tests/core/runner/src/com/android/cts/runner/ |
D | CtsTestRunListener.java | 168 Class<?> clazz = test.getClass(); in cleanup() local 170 while (clazz != TestCase.class) { in cleanup() 171 Field[] fields = clazz.getDeclaredFields(); in cleanup() 185 clazz = clazz.getSuperclass(); in cleanup()
|
/cts/tests/acceleration/src/android/acceleration/cts/ |
D | BaseAccelerationTest.java | 45 BaseAccelerationTest(Class<B> clazz) { in BaseAccelerationTest() argument 46 super(clazz); in BaseAccelerationTest()
|
/cts/tests/dram/jni/ |
D | MemoryNativeJni.cpp | 30 jclass clazz, jint bufferSize, jint repetition) in Java_android_dram_cts_MemoryNative_runMemcpy() argument 54 jclass clazz, jint bufferSize, jint repetition, jint c) in Java_android_dram_cts_MemoryNative_runMemset() argument
|