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-RenderScript"))]
__jni_bindgen! {
    /// public class [RenderScript](https://developer.android.com/reference/android/renderscript/RenderScript.html)
    ///
    /// Required feature: "android-renderscript-RenderScript"
    public class RenderScript ("android/renderscript/RenderScript") extends crate::java::lang::Object {

        /// [setMessageHandler](https://developer.android.com/reference/android/renderscript/RenderScript.html#setMessageHandler(android.renderscript.RenderScript.RSMessageHandler))
        ///
        /// Required features: "android-renderscript-RenderScript_RSMessageHandler"
        #[cfg(any(feature = "all", all(feature = "android-renderscript-RenderScript_RSMessageHandler")))]
        pub fn setMessageHandler<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::renderscript::RenderScript_RSMessageHandler>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/renderscript/RenderScript", java.flags == PUBLIC, .name == "setMessageHandler", .descriptor == "(Landroid/renderscript/RenderScript$RSMessageHandler;)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/RenderScript\0", "setMessageHandler\0", "(Landroid/renderscript/RenderScript$RSMessageHandler;)V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [getMessageHandler](https://developer.android.com/reference/android/renderscript/RenderScript.html#getMessageHandler())
        ///
        /// Required features: "android-renderscript-RenderScript_RSMessageHandler"
        #[cfg(any(feature = "all", all(feature = "android-renderscript-RenderScript_RSMessageHandler")))]
        pub fn getMessageHandler<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::renderscript::RenderScript_RSMessageHandler>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/renderscript/RenderScript", java.flags == PUBLIC, .name == "getMessageHandler", .descriptor == "()Landroid/renderscript/RenderScript$RSMessageHandler;"
            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/RenderScript\0", "getMessageHandler\0", "()Landroid/renderscript/RenderScript$RSMessageHandler;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [setErrorHandler](https://developer.android.com/reference/android/renderscript/RenderScript.html#setErrorHandler(android.renderscript.RenderScript.RSErrorHandler))
        ///
        /// Required features: "android-renderscript-RenderScript_RSErrorHandler"
        #[cfg(any(feature = "all", all(feature = "android-renderscript-RenderScript_RSErrorHandler")))]
        pub fn setErrorHandler<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::renderscript::RenderScript_RSErrorHandler>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/renderscript/RenderScript", java.flags == PUBLIC, .name == "setErrorHandler", .descriptor == "(Landroid/renderscript/RenderScript$RSErrorHandler;)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/RenderScript\0", "setErrorHandler\0", "(Landroid/renderscript/RenderScript$RSErrorHandler;)V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [getErrorHandler](https://developer.android.com/reference/android/renderscript/RenderScript.html#getErrorHandler())
        ///
        /// Required features: "android-renderscript-RenderScript_RSErrorHandler"
        #[cfg(any(feature = "all", all(feature = "android-renderscript-RenderScript_RSErrorHandler")))]
        pub fn getErrorHandler<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::renderscript::RenderScript_RSErrorHandler>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/renderscript/RenderScript", java.flags == PUBLIC, .name == "getErrorHandler", .descriptor == "()Landroid/renderscript/RenderScript$RSErrorHandler;"
            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/RenderScript\0", "getErrorHandler\0", "()Landroid/renderscript/RenderScript$RSErrorHandler;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [setPriority](https://developer.android.com/reference/android/renderscript/RenderScript.html#setPriority(android.renderscript.RenderScript.Priority))
        ///
        /// Required features: "android-renderscript-RenderScript_Priority"
        #[cfg(any(feature = "all", all(feature = "android-renderscript-RenderScript_Priority")))]
        pub fn setPriority<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::renderscript::RenderScript_Priority>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/renderscript/RenderScript", java.flags == PUBLIC, .name == "setPriority", .descriptor == "(Landroid/renderscript/RenderScript$Priority;)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/RenderScript\0", "setPriority\0", "(Landroid/renderscript/RenderScript$Priority;)V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [getApplicationContext](https://developer.android.com/reference/android/renderscript/RenderScript.html#getApplicationContext())
        ///
        /// Required features: "android-content-Context"
        #[cfg(any(feature = "all", all(feature = "android-content-Context")))]
        pub fn getApplicationContext<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::content::Context>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/renderscript/RenderScript", java.flags == PUBLIC | FINAL, .name == "getApplicationContext", .descriptor == "()Landroid/content/Context;"
            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/RenderScript\0", "getApplicationContext\0", "()Landroid/content/Context;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

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

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

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

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