Searched refs:jclass (Results 1 – 8 of 8) sorted by relevance
/libnativehelper/ |
D | JniConstants.cpp | 44 jclass g_file_descriptor_class = nullptr; // java.io.FileDescriptor 45 jclass g_nio_access_class = nullptr; // java.nio.Access 46 jclass g_nio_buffer_class = nullptr; // java.nio.Buffer 47 jclass g_reference_class = nullptr; // java.lang.ref.Reference 48 jclass g_string_class = nullptr; // java.lang.String 85 jclass FindClass(JNIEnv* env, const char* name) { in FindClass() 86 ScopedLocalRef<jclass> klass(env, env->FindClass(name)); in FindClass() 88 return reinterpret_cast<jclass>(env->NewGlobalRef(klass.get())); in FindClass() 91 jfieldID FindField(JNIEnv* env, jclass klass, const char* name, const char* desc) { in FindField() 97 jmethodID FindMethod(JNIEnv* env, jclass klass, const char* name, const char* signature) { in FindMethod() [all …]
|
D | JniConstants.h | 23 static jclass GetFileDescriptorClass(JNIEnv* env); 35 static jclass GetNioAccessClass(JNIEnv* env); 44 static jclass GetNioBufferClass(JNIEnv* env); 65 static jclass GetReferenceClass(JNIEnv* env); 71 static jclass GetStringClass(JNIEnv* env);
|
D | JNIHelp.cpp | 61 static jclass findClass(C_JNIEnv* env, const char* className) { in findClass() 73 scoped_local_ref<jclass> c(env, findClass(env, className)); in jniRegisterNativeMethods() 94 … scoped_local_ref<jclass> exceptionClass(env, (*env)->GetObjectClass(e, exception)); // can't fail in getExceptionSummary() 95 scoped_local_ref<jclass> classClass(env, in getExceptionSummary() 144 scoped_local_ref<jclass> stringWriterClass(env, findClass(env, "java/io/StringWriter")); in getStackTrace() 153 scoped_local_ref<jclass> printWriterClass(env, findClass(env, "java/io/PrintWriter")); in getStackTrace() 173 … scoped_local_ref<jclass> exceptionClass(env, (*env)->GetObjectClass(e, exception)); // can't fail in getStackTrace() 214 scoped_local_ref<jclass> exceptionClass(env, findClass(env, className)); in jniThrowException() 360 jclass nioAccessClass = JniConstants::GetNioAccessClass(e); in jniGetNioBufferBaseArray() 368 jclass nioAccessClass = JniConstants::GetNioAccessClass(e); in jniGetNioBufferBaseArrayOffset()
|
/libnativehelper/include_jni/ |
D | jni.h | 63 typedef _jclass* jclass; typedef 85 typedef jobject jclass; typedef 158 jclass (*DefineClass)(JNIEnv*, const char*, jobject, const jbyte*, 160 jclass (*FindClass)(JNIEnv*, const char*); 165 jobject (*ToReflectedMethod)(JNIEnv*, jclass, jmethodID, jboolean); 167 jclass (*GetSuperclass)(JNIEnv*, jclass); 168 jboolean (*IsAssignableFrom)(JNIEnv*, jclass, jclass); 171 jobject (*ToReflectedField)(JNIEnv*, jclass, jfieldID, jboolean); 174 jint (*ThrowNew)(JNIEnv *, jclass, const char *); 191 jobject (*AllocObject)(JNIEnv*, jclass); [all …]
|
/libnativehelper/tests/ |
D | JniSafeRegisterNativeMethods_test.cpp | 237 …ALID_JNI_ARGUMENT_TYPE(true,(is_valid_jni_argument_type<kNormalNative, /*pos*/1u, jclass>::value)); in TEST() 267 static void bad_noref_jint_norm(JNIEnv*, jclass, jint&) {} in bad_noref_jint_norm() 289 static void v_ek(JNIEnv*, jclass) {} in v_ek() 298 DEC_TEST_FN_IMPL(normal2_ ## name, ret_t, JNIEnv*, jclass, __VA_ARGS__) \ 303 DEC_TEST_FN_IMPL(normal2_ ## name, ret_t, JNIEnv*, jclass) \ 317 FN0(f3,NORMAL ,jclass) \ 339 FN(af3,NORMAL ,jclass,jclass) \ 641 EXPECT_EQUALISH_JNI_DESCRIPTORS("Ljava/lang/Class;", jclass); in TEST() 894 static jlong android_os_Parcel_setDataSize(JNIEnv*, jclass, jlong, jint) { return 0; } in android_os_Parcel_setDataSize() argument 896 static void android_os_Parcel_setDataCapacity(JNIEnv*, jclass, jlong, jint) {} in android_os_Parcel_setDataCapacity() argument [all …]
|
/libnativehelper/header_only_include/nativehelper/ |
D | nativehelper_utils.h | 38 jclass e_class = env->FindClass("java/lang/NullPointerException"); in jniThrowNullPointerException()
|
D | scoped_bytes.h | 38 jclass byteArrayClass = env->FindClass("[B"); in ScopedBytes()
|
/libnativehelper/platform_include/nativehelper/detail/ |
D | signature_checker.h | 783 TYPE_TRAIT_FN(jclass, "Ljava/lang/Class;", kFastNative, kFinal, kFirstOrLater…
|