(env: *mut JNIEnv, obj: jobject)
| 56 | } |
| 57 | |
| 58 | pub(crate) fn cache_classloader_of(env: *mut JNIEnv, obj: jobject) -> errors::Result<()> { |
| 59 | unsafe { |
| 60 | let classloader_instance = (opt_to_res(cache::get_jni_call_object_method())?)( |
| 61 | env, |
| 62 | obj, |
| 63 | cache::get_get_classloader_method()?, |
| 64 | ); |
| 65 | let mut g = CLASSLOADER.lock().unwrap(); |
| 66 | let classloader_instance = jni_utils::create_global_ref_from_local_ref(classloader_instance, env)?; |
| 67 | |
| 68 | *g = Some(J4rsAndroidClassloader { |
| 69 | class_loader: classloader_instance, |
| 70 | }); |
| 71 | Ok(()) |
| 72 | } |
| 73 | } |
| 74 | |
| 75 | pub(crate) fn create_java_vm( |
| 76 | _jvm: *mut *mut JavaVM, |
nothing calls this directly
no test coverage detected