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.cpp45 ScopedLocalRef<jclass> jlaeClass(env, env->FindClass("java/lang/AssertionError")); in AssertionError()
53 static void throwException(JNIEnv* env, jclass /*clazz*/, jstring className, jstring message) { in throwException() argument
60 jclass /*clazz*/, in throwExceptionWithIntFormat() argument
70 jclass /*clazz*/, in throwNullPointerException() argument
76 static void throwRuntimeException(JNIEnv* env, jclass /*clazz*/, jstring message) { in throwRuntimeException() argument
81 static void throwIOException(JNIEnv* env, jclass /*clazz*/, jint cause) { in throwIOException() argument
85 static void logException(JNIEnv* env, jclass /*clazz*/, jthrowable throwable) { in logException() argument
89 static jobject fileDescriptorCreate(JNIEnv* env, jclass /*clazz*/, jint unix_fd) { in fileDescriptorCreate() argument
93 static jint fileDescriptorGetFD(JNIEnv* env, jclass /*clazz*/, jobject jiofd) { in fileDescriptorGetFD() argument
97 static jint fileDescriptorGetFDCompatQR(JNIEnv* env, jclass /*clazz*/, jobject jiofd) { in fileDescriptorGetFDCompatQR() 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) { \
DJNIHelp.c58 jclass clazz = (*env)->FindClass(env, className); in FindMethod()
81 jclass exceptionClass = (*env)->GetObjectClass(env, thrown); // Always succeeds in GetExceptionSummary()
128 jclass clazz = (*env)->FindClass(env, "java/io/StringWriter"); in NewStringWriter()
142 jclass clazz = (*env)->FindClass(env, "java/io/PrintWriter"); in NewPrintWriter()
244 jclass clazz = (*env)->FindClass(env, className); in jniRegisterNativeMethods()
282 jclass exceptionClass = (*env)->FindClass(env, className); in jniThrowException()
330 jclass stringClass = (*env)->FindClass(env, "java/lang/String"); in jniCreateStringArray()
DJNIHelpCompat.c40 jclass fileDescriptorClass = (*env)->FindClass(env, "java/io/FileDescriptor"); in jniGetFDFromFileDescriptor_QR()
DJNIPlatformHelp.c66 jclass nioAccessClass = JniConstants_NIOAccessClass(env); in jniGetNioBufferBaseArray()
74 jclass nioAccessClass = JniConstants_NIOAccessClass(env); in jniGetNioBufferBaseArrayOffset()
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()
Dscoped_bytes.h38 jclass byteArrayClass = env->FindClass("[B"); in ScopedBytes()
/libnativehelper/include_platform_header_only/nativehelper/detail/
Dsignature_checker.h783 TYPE_TRAIT_FN(jclass, "Ljava/lang/Class;", kFastNative, kFinal, kFirstOrLater…