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.c80 static jclass FindClass(JNIEnv* env, const char* signature, bool androidOnly) {
81 jclass cls = (*env)->FindClass(env, signature);
83 ALOG_ALWAYS_FATAL_IF(!androidOnly, "Class not found: %s", signature);
90 const char* name, const char* signature, bool isStatic) { in FindMethod() argument
93 method = (*env)->GetStaticMethodID(env, cls, name, signature); in FindMethod()
95 method = (*env)->GetMethodID(env, cls, name, signature); in FindMethod()
97 ALOG_ALWAYS_FATAL_IF(method == NULL, "Method not found: %s:%s", name, signature); in FindMethod()
102 const char* name, const char* signature, bool isStatic) { in FindField() argument
105 field = (*env)->GetStaticFieldID(env, cls, name, signature); in FindField()
107 field = (*env)->GetFieldID(env, cls, name, signature); in FindField()
[all …]
DREADME.md48 Java signature they are associated with.
/libnativehelper/include_platform_header_only/nativehelper/detail/
Dsignature_checker.h558 const FunctionSignatureDescriptor<T, kMaxSize>& signature) {
561 for (auto& arg : signature.args) {
564 if (count != signature.args.size() - 1) {
571 os << signature.ret;
587 ParseSignatureAsList(ConstexprStringView signature) { in ParseSignatureAsList() argument
603 while (!signature.empty()) { in ParseSignatureAsList()
606 char c = signature[0]; in ParseSignatureAsList()
610 signature = signature.substr(/*start*/1u); in ParseSignatureAsList()
614 char c = signature[0]; in ParseSignatureAsList()
617 signature = signature.substr(/*start*/1u); in ParseSignatureAsList()
[all …]
/libnativehelper/tests/
DJniSafeRegisterNativeMethods_test.cpp119 #define EXPECT_OK_SIGNATURE_PARSE(signature, args, ret) \ in TEST() argument
121 constexpr auto jni_descriptor = PARSE_SIGNATURE_AS_LIST(signature); \ in TEST()
1248 EXPECT_STREQ(expected.signature, actual.signature) << expected.name; in TEST()
/libnativehelper/include_jni/
Djni.h130 const char* signature; member