Home
last modified time | relevance | path

Searched refs:jclass (Results 1 – 12 of 12) sorted by relevance

/libnativehelper/include_jni/
Djni.h62 typedef _jclass* jclass; typedef
84 typedef jobject jclass; typedef
157 jclass (*DefineClass)(JNIEnv*, const char*, jobject, const jbyte*,
159 jclass (*FindClass)(JNIEnv*, const char*);
164 jobject (*ToReflectedMethod)(JNIEnv*, jclass, jmethodID, jboolean);
166 jclass (*GetSuperclass)(JNIEnv*, jclass);
167 jboolean (*IsAssignableFrom)(JNIEnv*, jclass, jclass);
170 jobject (*ToReflectedField)(JNIEnv*, jclass, jfieldID, jboolean);
173 jint (*ThrowNew)(JNIEnv *, jclass, const char *);
190 jobject (*AllocObject)(JNIEnv*, jclass);
[all …]
/libnativehelper/tests_mts/jni/
Djni_helper_jni.cpp33 static void throwException(JNIEnv* env, jclass /*clazz*/, jstring className, jstring message) { in throwException() argument
40 jclass /*clazz*/, in throwExceptionWithIntFormat() argument
50 jclass /*clazz*/, in throwNullPointerException() argument
56 static void throwRuntimeException(JNIEnv* env, jclass /*clazz*/, jstring message) { in throwRuntimeException() argument
61 static void throwIOException(JNIEnv* env, jclass /*clazz*/, jint cause) { in throwIOException() argument
65 static void throwErrnoException(JNIEnv* env, jclass /*clazz*/, jstring functionName, jint cause) { in throwErrnoException() argument
70 static void logException(JNIEnv* env, jclass /*clazz*/, jthrowable throwable) { in logException() argument
74 static jobject fileDescriptorCreate(JNIEnv* env, jclass /*clazz*/, jint unix_fd) { in fileDescriptorCreate() argument
78 static jint fileDescriptorGetFD(JNIEnv* env, jclass /*clazz*/, jobject jiofd) { in fileDescriptorGetFD() argument
82 static void fileDescriptorSetFD(JNIEnv* env, jclass /*clazz*/, jobject jiofd, jint unix_fd) { in fileDescriptorSetFD() argument
[all …]
/libnativehelper/
DJniConstants.h31 jclass JniConstants_FileDescriptorClass(JNIEnv* env);
32 jclass JniConstants_NIOAccessClass(JNIEnv* env);
33 jclass JniConstants_NioBufferClass(JNIEnv* env);
DJniConstants.c62 static jclass CLASS_NAME(cls) = NULL;
80 static jclass FindClass(JNIEnv* env, const char* signature, bool androidOnly) {
81 jclass cls = (*env)->FindClass(env, signature);
89 static jmethodID FindMethod(JNIEnv* env, jclass cls, in FindMethod()
101 static jfieldID FindField(JNIEnv* env, jclass cls, in FindField()
176 jclass JniConstants_ ## cls ## Class(JNIEnv* env) { \
DJNIPlatformHelp.c36 jclass nioAccessClass = JniConstants_NIOAccessClass(env); in jniGetNioBufferBaseArray()
44 jclass nioAccessClass = JniConstants_NIOAccessClass(env); in jniGetNioBufferBaseArrayOffset()
DJNIHelp.c59 jclass clazz = (*env)->FindClass(env, className); in FindMethod()
82 jclass exceptionClass = (*env)->GetObjectClass(env, thrown); // Always succeeds in GetExceptionSummary()
129 jclass clazz = (*env)->FindClass(env, "java/io/StringWriter"); in NewStringWriter()
143 jclass clazz = (*env)->FindClass(env, "java/io/PrintWriter"); in NewPrintWriter()
239 jclass exceptionClass = NULL; in ThrowException()
323 jclass clazz = (*env)->FindClass(env, className); in jniRegisterNativeMethods()
Dfile_descriptor_jni.c28 jclass jifd = JniConstants_FileDescriptorClass(env); in EnsureArgumentIsFileDescriptor()
/libnativehelper/tests/
DJniSafeRegisterNativeMethods_test.cpp236 …ALID_JNI_ARGUMENT_TYPE(true,(is_valid_jni_argument_type<kNormalNative, /*pos*/1u, jclass>::value)); in TEST()
266 static void bad_noref_jint_norm(JNIEnv*, jclass, jint&) {} in bad_noref_jint_norm()
288 static void v_ek(JNIEnv*, jclass) {} in v_ek()
297 DEC_TEST_FN_IMPL(normal2_ ## name, ret_t, JNIEnv*, jclass, __VA_ARGS__) \
302 DEC_TEST_FN_IMPL(normal2_ ## name, ret_t, JNIEnv*, jclass) \
316 FN0(f3,NORMAL ,jclass) \
338 FN(af3,NORMAL ,jclass,jclass) \
640 EXPECT_EQUALISH_JNI_DESCRIPTORS("Ljava/lang/Class;", jclass); in TEST()
893 static jlong android_os_Parcel_setDataSize(JNIEnv*, jclass, jlong, jint) { return 0; } in android_os_Parcel_setDataSize() argument
895 static void android_os_Parcel_setDataCapacity(JNIEnv*, jclass, jlong, jint) {} in android_os_Parcel_setDataCapacity() argument
[all …]
/libnativehelper/header_only_include/nativehelper/
Dnativehelper_utils.h38 jclass e_class = env->FindClass("java/lang/NullPointerException"); in jniThrowNullPointerException()
/libnativehelper/include/nativehelper/
DJNIHelp.h106 jclass clazz = env->FindClass(className); in FindMethod()
131 jclass exceptionClass = env->GetObjectClass(thrown); // Always succeeds in GetExceptionSummary()
178 jclass clazz = env->FindClass("java/io/StringWriter"); in NewStringWriter()
192 jclass clazz = env->FindClass("java/io/PrintWriter"); in NewPrintWriter()
292 jclass exceptionClass = NULL; in ThrowException()
362 jclass clazz = env->FindClass(className); in jniRegisterNativeMethods()
DtoStringArray.h29 jclass stringClass = env->FindClass("java/lang/String"); in toStringArray()
/libnativehelper/include_platform_header_only/nativehelper/detail/
Dsignature_checker.h783 TYPE_TRAIT_FN(jclass, "Ljava/lang/Class;", kFastNative, kFinal, kFirstOrLater…