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-content-pm-ProviderInfo"))]
__jni_bindgen! {
    /// public final class [ProviderInfo](https://developer.android.com/reference/android/content/pm/ProviderInfo.html)
    ///
    /// Required feature: "android-content-pm-ProviderInfo"
    public final class ProviderInfo ("android/content/pm/ProviderInfo") extends crate::android::content::pm::ComponentInfo, implements crate::android::os::Parcelable {

        /// [ProviderInfo](https://developer.android.com/reference/android/content/pm/ProviderInfo.html#ProviderInfo())
        pub fn new<'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::android::content::pm::ProviderInfo>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/content/pm/ProviderInfo", java.flags == PUBLIC, .name == "<init>", .descriptor == "()V"
            unsafe {
                let __jni_args = [];
                let (__jni_class, __jni_method) = __jni_env.require_class_method("android/content/pm/ProviderInfo\0", "<init>\0", "()V\0");
                __jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }

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

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

        /// [writeToParcel](https://developer.android.com/reference/android/content/pm/ProviderInfo.html#writeToParcel(android.os.Parcel,%20int))
        ///
        /// Required features: "android-os-Parcel"
        #[cfg(any(feature = "all", all(feature = "android-os-Parcel")))]
        pub fn writeToParcel<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::os::Parcel>>, arg1: i32) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/content/pm/ProviderInfo", java.flags == PUBLIC, .name == "writeToParcel", .descriptor == "(Landroid/os/Parcel;I)V"
            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/content/pm/ProviderInfo\0", "writeToParcel\0", "(Landroid/os/Parcel;I)V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

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

        /// **get** public [authority](https://developer.android.com/reference/android/content/pm/ProviderInfo.html#authority)
        ///
        /// Required feature: "java-lang-String"
        #[cfg(any(feature = "all", feature = "java-lang-String"))]
        pub fn authority<'env>(&'env self) -> __jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::lang::String>> {
            unsafe {
                let env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_field) = env.require_class_field("android/content/pm/ProviderInfo\0", "authority\0", "Ljava/lang/String;\0");
                env.get_object_field(self.0.object, __jni_field)
            }
        }

        /// **set** public [authority](https://developer.android.com/reference/android/content/pm/ProviderInfo.html#authority)
        ///
        /// Required feature: "java-lang-String"
        #[cfg(any(feature = "all", feature = "java-lang-String"))]
        pub fn set_authority<'env, 'obj>(&'env self, value: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'obj crate::java::lang::String>>) {
            unsafe {
                let env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_field) = env.require_class_field("android/content/pm/ProviderInfo\0", "authority\0", "Ljava/lang/String;\0");
                env.set_object_field(self.0.object, __jni_field, value)
            }
        }

        /// **get** public [readPermission](https://developer.android.com/reference/android/content/pm/ProviderInfo.html#readPermission)
        ///
        /// Required feature: "java-lang-String"
        #[cfg(any(feature = "all", feature = "java-lang-String"))]
        pub fn readPermission<'env>(&'env self) -> __jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::lang::String>> {
            unsafe {
                let env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_field) = env.require_class_field("android/content/pm/ProviderInfo\0", "readPermission\0", "Ljava/lang/String;\0");
                env.get_object_field(self.0.object, __jni_field)
            }
        }

        /// **set** public [readPermission](https://developer.android.com/reference/android/content/pm/ProviderInfo.html#readPermission)
        ///
        /// Required feature: "java-lang-String"
        #[cfg(any(feature = "all", feature = "java-lang-String"))]
        pub fn set_readPermission<'env, 'obj>(&'env self, value: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'obj crate::java::lang::String>>) {
            unsafe {
                let env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_field) = env.require_class_field("android/content/pm/ProviderInfo\0", "readPermission\0", "Ljava/lang/String;\0");
                env.set_object_field(self.0.object, __jni_field, value)
            }
        }

        /// **get** public [writePermission](https://developer.android.com/reference/android/content/pm/ProviderInfo.html#writePermission)
        ///
        /// Required feature: "java-lang-String"
        #[cfg(any(feature = "all", feature = "java-lang-String"))]
        pub fn writePermission<'env>(&'env self) -> __jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::lang::String>> {
            unsafe {
                let env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_field) = env.require_class_field("android/content/pm/ProviderInfo\0", "writePermission\0", "Ljava/lang/String;\0");
                env.get_object_field(self.0.object, __jni_field)
            }
        }

        /// **set** public [writePermission](https://developer.android.com/reference/android/content/pm/ProviderInfo.html#writePermission)
        ///
        /// Required feature: "java-lang-String"
        #[cfg(any(feature = "all", feature = "java-lang-String"))]
        pub fn set_writePermission<'env, 'obj>(&'env self, value: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'obj crate::java::lang::String>>) {
            unsafe {
                let env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_field) = env.require_class_field("android/content/pm/ProviderInfo\0", "writePermission\0", "Ljava/lang/String;\0");
                env.set_object_field(self.0.object, __jni_field, value)
            }
        }

        /// **get** public [grantUriPermissions](https://developer.android.com/reference/android/content/pm/ProviderInfo.html#grantUriPermissions)
        pub fn grantUriPermissions<'env>(&'env self) -> bool {
            unsafe {
                let env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_field) = env.require_class_field("android/content/pm/ProviderInfo\0", "grantUriPermissions\0", "Z\0");
                env.get_boolean_field(self.0.object, __jni_field)
            }
        }

        /// **set** public [grantUriPermissions](https://developer.android.com/reference/android/content/pm/ProviderInfo.html#grantUriPermissions)
        pub fn set_grantUriPermissions<'env>(&'env self, value: bool) {
            unsafe {
                let env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_field) = env.require_class_field("android/content/pm/ProviderInfo\0", "grantUriPermissions\0", "Z\0");
                env.set_boolean_field(self.0.object, __jni_field, value)
            }
        }

        /// **get** public [uriPermissionPatterns](https://developer.android.com/reference/android/content/pm/ProviderInfo.html#uriPermissionPatterns)
        ///
        /// Required feature: "android-os-PatternMatcher"
        #[cfg(any(feature = "all", feature = "android-os-PatternMatcher"))]
        pub fn uriPermissionPatterns<'env>(&'env self) -> __jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, __jni_bindgen::ObjectArray<crate::android::os::PatternMatcher, crate::java::lang::Throwable>>> {
            unsafe {
                let env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_field) = env.require_class_field("android/content/pm/ProviderInfo\0", "uriPermissionPatterns\0", "[Landroid/os/PatternMatcher;\0");
                env.get_object_field(self.0.object, __jni_field)
            }
        }

        /// **set** public [uriPermissionPatterns](https://developer.android.com/reference/android/content/pm/ProviderInfo.html#uriPermissionPatterns)
        ///
        /// Required feature: "android-os-PatternMatcher"
        #[cfg(any(feature = "all", feature = "android-os-PatternMatcher"))]
        pub fn set_uriPermissionPatterns<'env, 'obj>(&'env self, value: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'obj __jni_bindgen::ObjectArray<crate::android::os::PatternMatcher, crate::java::lang::Throwable>>>) {
            unsafe {
                let env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_field) = env.require_class_field("android/content/pm/ProviderInfo\0", "uriPermissionPatterns\0", "[Landroid/os/PatternMatcher;\0");
                env.set_object_field(self.0.object, __jni_field, value)
            }
        }

        /// **get** public [pathPermissions](https://developer.android.com/reference/android/content/pm/ProviderInfo.html#pathPermissions)
        ///
        /// Required feature: "android-content-pm-PathPermission"
        #[cfg(any(feature = "all", feature = "android-content-pm-PathPermission"))]
        pub fn pathPermissions<'env>(&'env self) -> __jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, __jni_bindgen::ObjectArray<crate::android::content::pm::PathPermission, crate::java::lang::Throwable>>> {
            unsafe {
                let env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_field) = env.require_class_field("android/content/pm/ProviderInfo\0", "pathPermissions\0", "[Landroid/content/pm/PathPermission;\0");
                env.get_object_field(self.0.object, __jni_field)
            }
        }

        /// **set** public [pathPermissions](https://developer.android.com/reference/android/content/pm/ProviderInfo.html#pathPermissions)
        ///
        /// Required feature: "android-content-pm-PathPermission"
        #[cfg(any(feature = "all", feature = "android-content-pm-PathPermission"))]
        pub fn set_pathPermissions<'env, 'obj>(&'env self, value: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'obj __jni_bindgen::ObjectArray<crate::android::content::pm::PathPermission, crate::java::lang::Throwable>>>) {
            unsafe {
                let env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_field) = env.require_class_field("android/content/pm/ProviderInfo\0", "pathPermissions\0", "[Landroid/content/pm/PathPermission;\0");
                env.set_object_field(self.0.object, __jni_field, value)
            }
        }

        /// **get** public [multiprocess](https://developer.android.com/reference/android/content/pm/ProviderInfo.html#multiprocess)
        pub fn multiprocess<'env>(&'env self) -> bool {
            unsafe {
                let env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_field) = env.require_class_field("android/content/pm/ProviderInfo\0", "multiprocess\0", "Z\0");
                env.get_boolean_field(self.0.object, __jni_field)
            }
        }

        /// **set** public [multiprocess](https://developer.android.com/reference/android/content/pm/ProviderInfo.html#multiprocess)
        pub fn set_multiprocess<'env>(&'env self, value: bool) {
            unsafe {
                let env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_field) = env.require_class_field("android/content/pm/ProviderInfo\0", "multiprocess\0", "Z\0");
                env.set_boolean_field(self.0.object, __jni_field, value)
            }
        }

        /// **get** public [initOrder](https://developer.android.com/reference/android/content/pm/ProviderInfo.html#initOrder)
        pub fn initOrder<'env>(&'env self) -> i32 {
            unsafe {
                let env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_field) = env.require_class_field("android/content/pm/ProviderInfo\0", "initOrder\0", "I\0");
                env.get_int_field(self.0.object, __jni_field)
            }
        }

        /// **set** public [initOrder](https://developer.android.com/reference/android/content/pm/ProviderInfo.html#initOrder)
        pub fn set_initOrder<'env>(&'env self, value: i32) {
            unsafe {
                let env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_field) = env.require_class_field("android/content/pm/ProviderInfo\0", "initOrder\0", "I\0");
                env.set_int_field(self.0.object, __jni_field, value)
            }
        }

        /// public static final [FLAG_SINGLE_USER](https://developer.android.com/reference/android/content/pm/ProviderInfo.html#FLAG_SINGLE_USER)
        pub const FLAG_SINGLE_USER : i32 = 1073741824;

        /// **get** public [flags](https://developer.android.com/reference/android/content/pm/ProviderInfo.html#flags)
        pub fn flags<'env>(&'env self) -> i32 {
            unsafe {
                let env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_field) = env.require_class_field("android/content/pm/ProviderInfo\0", "flags\0", "I\0");
                env.get_int_field(self.0.object, __jni_field)
            }
        }

        /// **set** public [flags](https://developer.android.com/reference/android/content/pm/ProviderInfo.html#flags)
        pub fn set_flags<'env>(&'env self, value: i32) {
            unsafe {
                let env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_field) = env.require_class_field("android/content/pm/ProviderInfo\0", "flags\0", "I\0");
                env.set_int_field(self.0.object, __jni_field, value)
            }
        }

        /// **get** public [isSyncable](https://developer.android.com/reference/android/content/pm/ProviderInfo.html#isSyncable)
        #[deprecated] pub fn isSyncable<'env>(&'env self) -> bool {
            unsafe {
                let env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_field) = env.require_class_field("android/content/pm/ProviderInfo\0", "isSyncable\0", "Z\0");
                env.get_boolean_field(self.0.object, __jni_field)
            }
        }

        /// **set** public [isSyncable](https://developer.android.com/reference/android/content/pm/ProviderInfo.html#isSyncable)
        #[deprecated] pub fn set_isSyncable<'env>(&'env self, value: bool) {
            unsafe {
                let env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_field) = env.require_class_field("android/content/pm/ProviderInfo\0", "isSyncable\0", "Z\0");
                env.set_boolean_field(self.0.object, __jni_field, value)
            }
        }

        /// **get** public static final [CREATOR](https://developer.android.com/reference/android/content/pm/ProviderInfo.html#CREATOR)
        ///
        /// Required feature: "android-os-Parcelable_Creator"
        #[cfg(any(feature = "all", feature = "android-os-Parcelable_Creator"))]
        pub fn CREATOR<'env>(env: &'env __jni_bindgen::Env) -> __jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::os::Parcelable_Creator>> {
            unsafe {
                let (__jni_class, __jni_field) = env.require_class_static_field("android/content/pm/ProviderInfo\0", "CREATOR\0", "Landroid/os/Parcelable$Creator;\0");
                env.get_static_object_field(__jni_class, __jni_field)
            }
        }
    }
}