/libnativehelper/platform_include/nativehelper/ |
D | jni_macros.h | 30 #define NATIVE_METHOD(className, functionName, signature) \ argument 33 _NATIVEHELPER_JNI_MACRO_CAST(void*) (className ## _ ## functionName) \ 40 #define OVERLOADED_NATIVE_METHOD(className, functionName, signature, identifier) \ argument 43 _NATIVEHELPER_JNI_MACRO_CAST(void*) (className ## _ ## identifier) \ 50 #define FAST_NATIVE_METHOD(className, functionName, signature) \ argument 53 _NATIVEHELPER_JNI_MACRO_CAST(void*) (className ## _ ## functionName) \ 62 #define OVERLOADED_FAST_NATIVE_METHOD(className, functionName, signature, identifier) \ argument 65 _NATIVEHELPER_JNI_MACRO_CAST(void*) (className ## _ ## identifier) \
|
/libnativehelper/include/nativehelper/ |
D | JNIHelp.h | 45 int jniRegisterNativeMethods(C_JNIEnv* env, const char* className, const JNINativeMethod* gMethods,… 61 int jniThrowException(C_JNIEnv* env, const char* className, const char* msg); 128 inline int jniRegisterNativeMethods(JNIEnv* env, const char* className, const JNINativeMethod* gMet… in jniRegisterNativeMethods() argument 129 return jniRegisterNativeMethods(&env->functions, className, gMethods, numMethods); in jniRegisterNativeMethods() 132 inline int jniThrowException(JNIEnv* env, const char* className, const char* msg) { in jniThrowException() argument 133 return jniThrowException(&env->functions, className, msg); in jniThrowException() 136 extern "C" int jniThrowExceptionFmt(C_JNIEnv* env, const char* className, const char* fmt, va_list … 142 inline int jniThrowExceptionFmt(JNIEnv* env, const char* className, const char* fmt, ...) { in jniThrowExceptionFmt() argument 145 return jniThrowExceptionFmt(&env->functions, className, fmt, args); in jniThrowExceptionFmt()
|
D | JniConstants.h | 85 #define NATIVE_METHOD(className, functionName, signature) \ argument 86 { #functionName, signature, reinterpret_cast<void*>(className ## _ ## functionName) }
|
/libnativehelper/include_deprecated/ |
D | JNIHelp.h | 45 int jniRegisterNativeMethods(C_JNIEnv* env, const char* className, const JNINativeMethod* gMethods,… 61 int jniThrowException(C_JNIEnv* env, const char* className, const char* msg); 128 inline int jniRegisterNativeMethods(JNIEnv* env, const char* className, const JNINativeMethod* gMet… in jniRegisterNativeMethods() argument 129 return jniRegisterNativeMethods(&env->functions, className, gMethods, numMethods); in jniRegisterNativeMethods() 132 inline int jniThrowException(JNIEnv* env, const char* className, const char* msg) { in jniThrowException() argument 133 return jniThrowException(&env->functions, className, msg); in jniThrowException() 136 extern "C" int jniThrowExceptionFmt(C_JNIEnv* env, const char* className, const char* fmt, va_list … 142 inline int jniThrowExceptionFmt(JNIEnv* env, const char* className, const char* fmt, ...) { in jniThrowExceptionFmt() argument 145 return jniThrowExceptionFmt(&env->functions, className, fmt, args); in jniThrowExceptionFmt()
|
D | JniConstants.h | 85 #define NATIVE_METHOD(className, functionName, signature) \ argument 86 { #functionName, signature, reinterpret_cast<void*>(className ## _ ## functionName) }
|
/libnativehelper/ |
D | JNIHelp.cpp | 70 static jclass findClass(C_JNIEnv* env, const char* className) { in findClass() argument 72 return (*env)->FindClass(e, className); in findClass() 75 extern "C" int jniRegisterNativeMethods(C_JNIEnv* env, const char* className, in jniRegisterNativeMethods() argument 80 ALOGV("Registering %s's %d native methods...", className, numMethods); in jniRegisterNativeMethods() 82 scoped_local_ref<jclass> c(env, findClass(env, className)); in jniRegisterNativeMethods() 88 className) == -1) { in jniRegisterNativeMethods() 100 if (asprintf(&tmp, "RegisterNatives failed for '%s'; aborting...", className) == -1) { in jniRegisterNativeMethods() 226 extern "C" int jniThrowException(C_JNIEnv* env, const char* className, const char* msg) { in jniThrowException() argument 237 ALOGW("Discarding pending exception (%s) to throw %s", text.c_str(), className); in jniThrowException() 241 scoped_local_ref<jclass> exceptionClass(env, findClass(env, className)); in jniThrowException() [all …]
|