1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86
// WARNING: This file was autogenerated by jni-bindgen. Any changes to this file may be lost!!! __jni_bindgen! { /// public final class [ScriptGroup.Builder2](https://developer.android.com/reference/android/renderscript/ScriptGroup.Builder2.html) /// /// Required feature: android-renderscript-ScriptGroup_Builder2 #[cfg(any(feature = "all", feature = "android-renderscript-ScriptGroup_Builder2"))] public final class ScriptGroup_Builder2 extends crate::java::lang::Object { /// <init> /// /// Required features: "android-renderscript-RenderScript" #[cfg(any(feature = "all", all(feature = "android-renderscript-RenderScript")))] pub fn new<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::renderscript::RenderScript>>) -> __jni_bindgen::Result<__jni_bindgen::Local<'env, crate::android::renderscript::ScriptGroup_Builder2>> { // class.path == "android/renderscript/ScriptGroup$Builder2", java.flags == PUBLIC, .name == "<init>", .descriptor == "(Landroid/renderscript/RenderScript;)V" unsafe { let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())]; let (__jni_class, __jni_method) = __jni_env.require_class_method("android/renderscript/ScriptGroup$Builder2\0", "<init>\0", "(Landroid/renderscript/RenderScript;)V\0"); __jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr()) } } /// [addInput](https://developer.android.com/reference/android/renderscript/ScriptGroup.Builder2.html#addInput()) /// /// Required features: "android-renderscript-ScriptGroup_Input" #[cfg(any(feature = "all", all(feature = "android-renderscript-ScriptGroup_Input")))] pub fn add_input<'env>(&'env self) -> __jni_bindgen::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::renderscript::ScriptGroup_Input>>> { // class.path == "android/renderscript/ScriptGroup$Builder2", java.flags == PUBLIC, .name == "addInput", .descriptor == "()Landroid/renderscript/ScriptGroup$Input;" unsafe { let __jni_args = []; let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env); let (__jni_class, __jni_method) = __jni_env.require_class_method("android/renderscript/ScriptGroup$Builder2\0", "addInput\0", "()Landroid/renderscript/ScriptGroup$Input;\0"); __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr()) } } // // Not emitting: Marked as varargs - haven't decided on how I want to handle this. // // Not emitting: Passing in arrays of objects is not yet supported // /// addKernel // /// // /// Required features: "android-renderscript-ScriptGroup_Closure", "android-renderscript-Script_KernelID", "android-renderscript-Type", "java-lang-Object" // #[cfg(any(feature = "all", all(feature = "android-renderscript-ScriptGroup_Closure", feature = "android-renderscript-Script_KernelID", feature = "android-renderscript-Type", feature = "java-lang-Object")))] // pub fn add_kernel<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::renderscript::Script_KernelID>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::renderscript::Type>>, arg2: Array { levels: 1, inner: Class(Id("java/lang/Object")) }) -> __jni_bindgen::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::renderscript::ScriptGroup_Closure>>> { // // class.path == "android/renderscript/ScriptGroup$Builder2", java.flags == PUBLIC | VARARGS, .name == "addKernel", .descriptor == "(Landroid/renderscript/Script$KernelID;Landroid/renderscript/Type;[Ljava/lang/Object;)Landroid/renderscript/ScriptGroup$Closure;" // unsafe { // let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1.into()), __jni_bindgen::AsJValue::as_jvalue(&arg2.into())]; // let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env); // let (__jni_class, __jni_method) = __jni_env.require_class_method("android/renderscript/ScriptGroup$Builder2\0", "addKernel\0", "(Landroid/renderscript/Script$KernelID;Landroid/renderscript/Type;[Ljava/lang/Object;)Landroid/renderscript/ScriptGroup$Closure;\0"); // __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr()) // } // } // // Not emitting: Marked as varargs - haven't decided on how I want to handle this. // // Not emitting: Passing in arrays of objects is not yet supported // /// addInvoke // /// // /// Required features: "android-renderscript-ScriptGroup_Closure", "android-renderscript-Script_InvokeID", "java-lang-Object" // #[cfg(any(feature = "all", all(feature = "android-renderscript-ScriptGroup_Closure", feature = "android-renderscript-Script_InvokeID", feature = "java-lang-Object")))] // pub fn add_invoke<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::renderscript::Script_InvokeID>>, arg1: Array { levels: 1, inner: Class(Id("java/lang/Object")) }) -> __jni_bindgen::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::renderscript::ScriptGroup_Closure>>> { // // class.path == "android/renderscript/ScriptGroup$Builder2", java.flags == PUBLIC | VARARGS, .name == "addInvoke", .descriptor == "(Landroid/renderscript/Script$InvokeID;[Ljava/lang/Object;)Landroid/renderscript/ScriptGroup$Closure;" // unsafe { // let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1.into())]; // let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env); // let (__jni_class, __jni_method) = __jni_env.require_class_method("android/renderscript/ScriptGroup$Builder2\0", "addInvoke\0", "(Landroid/renderscript/Script$InvokeID;[Ljava/lang/Object;)Landroid/renderscript/ScriptGroup$Closure;\0"); // __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr()) // } // } // // Not emitting: Marked as varargs - haven't decided on how I want to handle this. // // Not emitting: Passing in arrays of objects is not yet supported // /// create // /// // /// Required features: "android-renderscript-ScriptGroup", "android-renderscript-ScriptGroup_Future", "java-lang-String" // #[cfg(any(feature = "all", all(feature = "android-renderscript-ScriptGroup", feature = "android-renderscript-ScriptGroup_Future", feature = "java-lang-String")))] // pub fn create<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>, arg1: Array { levels: 1, inner: Class(Id("android/renderscript/ScriptGroup$Future")) }) -> __jni_bindgen::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::renderscript::ScriptGroup>>> { // // class.path == "android/renderscript/ScriptGroup$Builder2", java.flags == PUBLIC | VARARGS, .name == "create", .descriptor == "(Ljava/lang/String;[Landroid/renderscript/ScriptGroup$Future;)Landroid/renderscript/ScriptGroup;" // unsafe { // let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1.into())]; // let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env); // let (__jni_class, __jni_method) = __jni_env.require_class_method("android/renderscript/ScriptGroup$Builder2\0", "create\0", "(Ljava/lang/String;[Landroid/renderscript/ScriptGroup$Future;)Landroid/renderscript/ScriptGroup;\0"); // __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr()) // } // } } }