Home
last modified time | relevance | path

Searched refs:signature (Results 1 – 6 of 6) sorted by relevance

/libnativehelper/include_platform_header_only/nativehelper/
Djni_macros.h152 #define MAKE_JNI_NATIVE_METHOD(name, signature, function) \ argument
153 _NATIVEHELPER_JNI_MAKE_METHOD(kNormalNative, name, signature, function)
158 #define MAKE_JNI_FAST_NATIVE_METHOD(name, signature, function) \ argument
159 _NATIVEHELPER_JNI_MAKE_METHOD(kFastNative, name, signature, function)
164 #define MAKE_JNI_CRITICAL_NATIVE_METHOD(name, signature, function) \ argument
165 _NATIVEHELPER_JNI_MAKE_METHOD(kCriticalNative, name, signature, function)
206 #define NATIVE_METHOD(className, functionName, signature) \ argument
207 MAKE_JNI_NATIVE_METHOD(#functionName, signature, className ## _ ## functionName)
209 #define OVERLOADED_NATIVE_METHOD(className, functionName, signature, identifier) \ argument
210 MAKE_JNI_NATIVE_METHOD(#functionName, signature, className ## _ ## identifier)
[all …]
/libnativehelper/
DJniConstants.c81 static jclass FindClass(JNIEnv* env, const char* signature, bool androidOnly) {
82 jclass cls = (*env)->FindClass(env, signature);
84 ALOG_ALWAYS_FATAL_IF(!androidOnly, "Class not found: %s", signature);
91 const char* name, const char* signature, bool isStatic) { in FindMethod() argument
94 method = (*env)->GetStaticMethodID(env, cls, name, signature); in FindMethod()
96 method = (*env)->GetMethodID(env, cls, name, signature); in FindMethod()
98 ALOG_ALWAYS_FATAL_IF(method == NULL, "Method not found: %s:%s", name, signature); in FindMethod()
103 const char* name, const char* signature, bool isStatic) { in FindField() argument
106 field = (*env)->GetStaticFieldID(env, cls, name, signature); in FindField()
108 field = (*env)->GetFieldID(env, cls, name, signature); in FindField()
[all …]
DREADME.md46 Java signature they are associated with.
/libnativehelper/include_platform_header_only/nativehelper/detail/
Dsignature_checker.h559 const FunctionSignatureDescriptor<T, kMaxSize>& signature) {
562 for (auto& arg : signature.args) {
565 if (count != signature.args.size() - 1) {
572 os << signature.ret;
588 ParseSignatureAsList(ConstexprStringView signature) { in ParseSignatureAsList() argument
604 while (!signature.empty()) { in ParseSignatureAsList()
607 char c = signature[0]; in ParseSignatureAsList()
611 signature = signature.substr(/*start*/1u); in ParseSignatureAsList()
615 char c = signature[0]; in ParseSignatureAsList()
618 signature = signature.substr(/*start*/1u); in ParseSignatureAsList()
[all …]
/libnativehelper/tests/
DJniSafeRegisterNativeMethods_test.cpp107 #define EXPECT_OK_SIGNATURE_PARSE(signature, args, ret) \ in TEST() argument
109 constexpr auto jni_descriptor = PARSE_SIGNATURE_AS_LIST(signature); \ in TEST()
1236 EXPECT_STREQ(expected.signature, actual.signature) << expected.name; in TEST()
/libnativehelper/include_jni/
Djni.h130 const char* signature; member