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

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

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

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

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