jni-android-sys 0.0.10

Autogenerated glue code for access Android JVM APIs from Rust
// WARNING:  This file was autogenerated by jni-bindgen.  Any changes to this file may be lost!!!


#[cfg(any(feature = "all", feature = "android-renderscript-RenderScriptGL"))]
__jni_bindgen! {
    /// public class [RenderScriptGL](https://developer.android.com/reference/android/renderscript/RenderScriptGL.html)
    ///
    /// Required feature: "android-renderscript-RenderScriptGL"
    public class RenderScriptGL ("android/renderscript/RenderScriptGL") extends crate::android::renderscript::RenderScript {

        /// [RenderScriptGL](https://developer.android.com/reference/android/renderscript/RenderScriptGL.html#RenderScriptGL(android.content.Context,%20android.renderscript.RenderScriptGL.SurfaceConfig))
        ///
        /// Required features: "android-content-Context", "android-renderscript-RenderScriptGL_SurfaceConfig"
        #[cfg(any(feature = "all", all(feature = "android-content-Context", feature = "android-renderscript-RenderScriptGL_SurfaceConfig")))]
        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::content::Context>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::renderscript::RenderScriptGL_SurfaceConfig>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::android::renderscript::RenderScriptGL>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/renderscript/RenderScriptGL", java.flags == PUBLIC, .name == "<init>", .descriptor == "(Landroid/content/Context;Landroid/renderscript/RenderScriptGL$SurfaceConfig;)V"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1.into())];
                let (__jni_class, __jni_method) = __jni_env.require_class_method("android/renderscript/RenderScriptGL\0", "<init>\0", "(Landroid/content/Context;Landroid/renderscript/RenderScriptGL$SurfaceConfig;)V\0");
                __jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [setSurface](https://developer.android.com/reference/android/renderscript/RenderScriptGL.html#setSurface(android.view.SurfaceHolder,%20int,%20int))
        ///
        /// Required features: "android-view-SurfaceHolder"
        #[cfg(any(feature = "all", all(feature = "android-view-SurfaceHolder")))]
        pub fn setSurface<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::view::SurfaceHolder>>, arg1: i32, arg2: i32) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/renderscript/RenderScriptGL", java.flags == PUBLIC, .name == "setSurface", .descriptor == "(Landroid/view/SurfaceHolder;II)V"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1), __jni_bindgen::AsJValue::as_jvalue(&arg2)];
                let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_method) = __jni_env.require_class_method("android/renderscript/RenderScriptGL\0", "setSurface\0", "(Landroid/view/SurfaceHolder;II)V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [getHeight](https://developer.android.com/reference/android/renderscript/RenderScriptGL.html#getHeight())
        pub fn getHeight<'env>(&'env self) -> __jni_bindgen::std::result::Result<i32, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/renderscript/RenderScriptGL", java.flags == PUBLIC, .name == "getHeight", .descriptor == "()I"
            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/RenderScriptGL\0", "getHeight\0", "()I\0");
                __jni_env.call_int_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [getWidth](https://developer.android.com/reference/android/renderscript/RenderScriptGL.html#getWidth())
        pub fn getWidth<'env>(&'env self) -> __jni_bindgen::std::result::Result<i32, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/renderscript/RenderScriptGL", java.flags == PUBLIC, .name == "getWidth", .descriptor == "()I"
            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/RenderScriptGL\0", "getWidth\0", "()I\0");
                __jni_env.call_int_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [pause](https://developer.android.com/reference/android/renderscript/RenderScriptGL.html#pause())
        pub fn pause<'env>(&'env self) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/renderscript/RenderScriptGL", java.flags == PUBLIC, .name == "pause", .descriptor == "()V"
            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/RenderScriptGL\0", "pause\0", "()V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [resume](https://developer.android.com/reference/android/renderscript/RenderScriptGL.html#resume())
        pub fn resume<'env>(&'env self) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/renderscript/RenderScriptGL", java.flags == PUBLIC, .name == "resume", .descriptor == "()V"
            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/RenderScriptGL\0", "resume\0", "()V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [bindRootScript](https://developer.android.com/reference/android/renderscript/RenderScriptGL.html#bindRootScript(android.renderscript.Script))
        ///
        /// Required features: "android-renderscript-Script"
        #[cfg(any(feature = "all", all(feature = "android-renderscript-Script")))]
        pub fn bindRootScript<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::renderscript::Script>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/renderscript/RenderScriptGL", java.flags == PUBLIC, .name == "bindRootScript", .descriptor == "(Landroid/renderscript/Script;)V"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
                let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_method) = __jni_env.require_class_method("android/renderscript/RenderScriptGL\0", "bindRootScript\0", "(Landroid/renderscript/Script;)V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [bindProgramStore](https://developer.android.com/reference/android/renderscript/RenderScriptGL.html#bindProgramStore(android.renderscript.ProgramStore))
        ///
        /// Required features: "android-renderscript-ProgramStore"
        #[cfg(any(feature = "all", all(feature = "android-renderscript-ProgramStore")))]
        pub fn bindProgramStore<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::renderscript::ProgramStore>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/renderscript/RenderScriptGL", java.flags == PUBLIC, .name == "bindProgramStore", .descriptor == "(Landroid/renderscript/ProgramStore;)V"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
                let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_method) = __jni_env.require_class_method("android/renderscript/RenderScriptGL\0", "bindProgramStore\0", "(Landroid/renderscript/ProgramStore;)V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [bindProgramFragment](https://developer.android.com/reference/android/renderscript/RenderScriptGL.html#bindProgramFragment(android.renderscript.ProgramFragment))
        ///
        /// Required features: "android-renderscript-ProgramFragment"
        #[cfg(any(feature = "all", all(feature = "android-renderscript-ProgramFragment")))]
        pub fn bindProgramFragment<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::renderscript::ProgramFragment>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/renderscript/RenderScriptGL", java.flags == PUBLIC, .name == "bindProgramFragment", .descriptor == "(Landroid/renderscript/ProgramFragment;)V"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
                let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_method) = __jni_env.require_class_method("android/renderscript/RenderScriptGL\0", "bindProgramFragment\0", "(Landroid/renderscript/ProgramFragment;)V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [bindProgramRaster](https://developer.android.com/reference/android/renderscript/RenderScriptGL.html#bindProgramRaster(android.renderscript.ProgramRaster))
        ///
        /// Required features: "android-renderscript-ProgramRaster"
        #[cfg(any(feature = "all", all(feature = "android-renderscript-ProgramRaster")))]
        pub fn bindProgramRaster<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::renderscript::ProgramRaster>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/renderscript/RenderScriptGL", java.flags == PUBLIC, .name == "bindProgramRaster", .descriptor == "(Landroid/renderscript/ProgramRaster;)V"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
                let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_method) = __jni_env.require_class_method("android/renderscript/RenderScriptGL\0", "bindProgramRaster\0", "(Landroid/renderscript/ProgramRaster;)V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [bindProgramVertex](https://developer.android.com/reference/android/renderscript/RenderScriptGL.html#bindProgramVertex(android.renderscript.ProgramVertex))
        ///
        /// Required features: "android-renderscript-ProgramVertex"
        #[cfg(any(feature = "all", all(feature = "android-renderscript-ProgramVertex")))]
        pub fn bindProgramVertex<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::renderscript::ProgramVertex>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/renderscript/RenderScriptGL", java.flags == PUBLIC, .name == "bindProgramVertex", .descriptor == "(Landroid/renderscript/ProgramVertex;)V"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
                let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_method) = __jni_env.require_class_method("android/renderscript/RenderScriptGL\0", "bindProgramVertex\0", "(Landroid/renderscript/ProgramVertex;)V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }
    }
}