/libnativehelper/platform_include/nativehelper/ |
D | jni_macros.h | 153 #define MAKE_JNI_NATIVE_METHOD(name, signature, function) \ argument 154 _NATIVEHELPER_JNI_MAKE_METHOD(kNormalNative, name, signature, function) 159 #define MAKE_JNI_FAST_NATIVE_METHOD(name, signature, function) \ argument 160 _NATIVEHELPER_JNI_MAKE_METHOD(kFastNative, name, signature, function) 165 #define MAKE_JNI_CRITICAL_NATIVE_METHOD(name, signature, function) \ argument 166 _NATIVEHELPER_JNI_MAKE_METHOD(kCriticalNative, name, signature, function) 176 #define MAKE_JNI_NATIVE_METHOD_AUTOSIG(name, function) \ argument 177 _NATIVEHELPER_JNI_MAKE_METHOD_AUTOSIG(kNormalNative, name, function) 184 #define MAKE_JNI_FAST_NATIVE_METHOD_AUTOSIG(name, function) \ argument 185 _NATIVEHELPER_JNI_MAKE_METHOD_AUTOSIG(kFastNative, name, function) [all …]
|
/libnativehelper/ |
D | JniConstants.cpp | 85 jclass FindClass(JNIEnv* env, const char* name) { in FindClass() argument 86 ScopedLocalRef<jclass> klass(env, env->FindClass(name)); in FindClass() 87 ALOG_ALWAYS_FATAL_IF(klass.get() == nullptr, "failed to find class '%s'", name); in FindClass() 91 jfieldID FindField(JNIEnv* env, jclass klass, const char* name, const char* desc) { in FindField() argument 92 jfieldID result = env->GetFieldID(klass, name, desc); in FindField() 93 ALOG_ALWAYS_FATAL_IF(result == nullptr, "failed to find field '%s:%s'", name, desc); in FindField() 97 jmethodID FindMethod(JNIEnv* env, jclass klass, const char* name, const char* signature) { in FindMethod() argument 98 jmethodID result = env->GetMethodID(klass, name, signature); in FindMethod() 99 ALOG_ALWAYS_FATAL_IF(result == nullptr, "failed to find method '%s%s'", name, signature); in FindMethod() 103 jmethodID FindStaticMethod(JNIEnv* env, jclass klass, const char* name, const char* signature) { in FindStaticMethod() argument [all …]
|
D | Android.bp | 16 name: "jni_headers", 28 name: "libnativehelper_header_only", 39 name: "jni_platform_headers", 50 name: "libnativehelper", 89 name: "libnativehelper_compat_libc++", 112 name: "ndk_jni.h",
|
D | NOTICE | 58 separable from, or merely link (or bind by name) to the interfaces of,
|
/libnativehelper/tests/jni_gtest/ |
D | Android.bp | 3 name: "jni_gtest_headers", 9 name: "jni_gtest_defaults",
|
/libnativehelper/tests/ |
D | JniSafeRegisterNativeMethods_test.cpp | 293 #define DEC_TEST_FN_IMPL(name, ret_t, ...) \ argument 294 static ret_t name (__VA_ARGS__) { return TestReturnAnything{}; } 296 #define DEC_TEST_FN(name, correct, ret_t, ...) \ argument 297 DEC_TEST_FN_IMPL(normal_ ## name, ret_t, JNIEnv*, jobject, __VA_ARGS__) \ 298 DEC_TEST_FN_IMPL(normal2_ ## name, ret_t, JNIEnv*, jclass, __VA_ARGS__) \ 299 DEC_TEST_FN_IMPL(critical_ ## name, ret_t, __VA_ARGS__) 301 #define DEC_TEST_FN0(name, correct, ret_t) \ argument 302 DEC_TEST_FN_IMPL(normal_ ## name, ret_t, JNIEnv*, jobject) \ 303 DEC_TEST_FN_IMPL(normal2_ ## name, ret_t, JNIEnv*, jclass) \ 304 DEC_TEST_FN_IMPL(critical_ ## name, ret_t) [all …]
|
D | Android.bp | 4 name: "JniInvocation_test", 16 name: "JniSafeRegisterNativeMethods_test", 68 name: "libnativehelper_api_test",
|
/libnativehelper/include_jni/ |
D | jni.h | 130 const char* name; member 499 jclass DefineClass(const char *name, jobject loader, const jbyte* buf, in DefineClass() 501 { return functions->DefineClass(this, name, loader, buf, bufLen); } in DefineClass() 503 jclass FindClass(const char* name) in FindClass() 504 { return functions->FindClass(this, name); } in FindClass() 590 jmethodID GetMethodID(jclass clazz, const char* name, const char* sig) in GetMethodID() 591 { return functions->GetMethodID(this, clazz, name, sig); } in GetMethodID() 693 jfieldID GetFieldID(jclass clazz, const char* name, const char* sig) in GetFieldID() 694 { return functions->GetFieldID(this, clazz, name, sig); } in GetFieldID() 734 jmethodID GetStaticMethodID(jclass clazz, const char* name, const char* sig) in GetStaticMethodID() [all …]
|
/libnativehelper/platform_include/nativehelper/detail/ |
D | signature_checker.h | 1420 const_cast<decltype(JNINativeMethod::name)>(name_), \ 1431 const_cast<decltype(JNINativeMethod::name)>(name_), \
|