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-net-wifi-hotspot2-PasspointConfiguration"))]
__jni_bindgen! {
    /// public final class [PasspointConfiguration](https://developer.android.com/reference/android/net/wifi/hotspot2/PasspointConfiguration.html)
    ///
    /// Required feature: "android-net-wifi-hotspot2-PasspointConfiguration"
    public final class PasspointConfiguration ("android/net/wifi/hotspot2/PasspointConfiguration") extends crate::java::lang::Object, implements crate::android::os::Parcelable {

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

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

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

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

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

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

        /// [describeContents](https://developer.android.com/reference/android/net/wifi/hotspot2/PasspointConfiguration.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/net/wifi/hotspot2/PasspointConfiguration", 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/net/wifi/hotspot2/PasspointConfiguration\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/net/wifi/hotspot2/PasspointConfiguration.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/net/wifi/hotspot2/PasspointConfiguration", 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/net/wifi/hotspot2/PasspointConfiguration\0", "writeToParcel\0", "(Landroid/os/Parcel;I)V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [equals](https://developer.android.com/reference/android/net/wifi/hotspot2/PasspointConfiguration.html#equals(java.lang.Object))
        ///
        /// Required features: "java-lang-Object"
        #[cfg(any(feature = "all", all(feature = "java-lang-Object")))]
        pub fn equals<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::Object>>) -> __jni_bindgen::std::result::Result<bool, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/net/wifi/hotspot2/PasspointConfiguration", java.flags == PUBLIC, .name == "equals", .descriptor == "(Ljava/lang/Object;)Z"
            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/net/wifi/hotspot2/PasspointConfiguration\0", "equals\0", "(Ljava/lang/Object;)Z\0");
                __jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

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

        /// [toString](https://developer.android.com/reference/android/net/wifi/hotspot2/PasspointConfiguration.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/net/wifi/hotspot2/PasspointConfiguration", 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/net/wifi/hotspot2/PasspointConfiguration\0", "toString\0", "()Ljava/lang/String;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// **get** public static final [CREATOR](https://developer.android.com/reference/android/net/wifi/hotspot2/PasspointConfiguration.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/net/wifi/hotspot2/PasspointConfiguration\0", "CREATOR\0", "Landroid/os/Parcelable$Creator;\0");
                env.get_static_object_field(__jni_class, __jni_field)
            }
        }
    }
}