MCPcopy Create free account
hub / github.com/Tencent/tgfx / JNIInit

Method JNIInit

src/platform/android/HandlerThread.cpp:29–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27static jmethodID HandlerThread_getLooper;
28
29void HandlerThread::JNIInit(JNIEnv* env) {
30 HandlerThreadClass = env->FindClass("android/os/HandlerThread");
31 HandlerThread_Constructor =
32 env->GetMethodID(HandlerThreadClass.get(), "<init>", "(Ljava/lang/String;)V");
33 HandlerThread_start = env->GetMethodID(HandlerThreadClass.get(), "start", "()V");
34 HandlerThread_quit = env->GetMethodID(HandlerThreadClass.get(), "quit", "()Z");
35 HandlerThread_getLooper =
36 env->GetMethodID(HandlerThreadClass.get(), "getLooper", "()Landroid/os/Looper;");
37}
38
39std::shared_ptr<HandlerThread> HandlerThread::Make() {
40 JNIEnvironment environment;

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected