MCPcopy Create free account
hub / github.com/android/ndk-samples / FindMethod

Function FindMethod

exceptions/app/src/main/cpp/exception_helper.cpp:33–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31#include <string>
32
33static jmethodID FindMethod(JNIEnv* env, const char* className,
34 const char* methodName, const char* descriptor) {
35 jclass clazz = env->FindClass(className);
36 jmethodID methodId = env->GetMethodID(clazz, methodName, descriptor);
37 env->DeleteLocalRef(clazz);
38 return methodId;
39}
40
41static bool AppendJString(JNIEnv* env, jstring text, std::string* dst) {
42 const char* utfText = env->GetStringUTFChars(text, NULL);

Callers 1

GetExceptionSummaryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected