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

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

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

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

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

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

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