MCPcopy Create free account
hub / github.com/CodingGay/BlackDex / registerNativeMethods

Function registerNativeMethods

Bcore/src/main/cpp/VmCore.cpp:202–213  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

200};
201
202int registerNativeMethods(JNIEnv *env, const char *className,
203 JNINativeMethod *gMethods, int numMethods) {
204 jclass clazz;
205 clazz = env->FindClass(className);
206 if (clazz == nullptr) {
207 return JNI_FALSE;
208 }
209 if (env->RegisterNatives(clazz, gMethods, numMethods) < 0) {
210 return JNI_FALSE;
211 }
212 return JNI_TRUE;
213}
214
215int registerNatives(JNIEnv *env) {
216 if (!registerNativeMethods(env, VMCORE_CLASS, gMethods,

Callers 1

registerNativesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected