(env: JNIEnv, _class: JClass, ctx: JObject)
| 146 | |
| 147 | #[no_mangle] |
| 148 | pub extern "system" fn Java_ffi_FFI_init(env: JNIEnv, _class: JClass, ctx: JObject) { |
| 149 | log::debug!("MainService init from java"); |
| 150 | if let Ok(jvm) = env.get_java_vm() { |
| 151 | *JVM.write().unwrap() = Some(jvm); |
| 152 | if let Ok(context) = env.new_global_ref(ctx) { |
| 153 | *MAIN_SERVICE_CTX.write().unwrap() = Some(context); |
| 154 | init_ndk_context().ok(); |
| 155 | } |
| 156 | } |
| 157 | } |
| 158 | |
| 159 | #[derive(Debug, Deserialize, Clone)] |
| 160 | pub struct MediaCodecInfo { |
nothing calls this directly
no test coverage detected