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

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

        /// [IpSecAlgorithm](https://developer.android.com/reference/android/net/IpSecAlgorithm.html#IpSecAlgorithm(java.lang.String,%20byte%5B%5D,%20int))
        ///
        /// Required features: "java-lang-String"
        #[cfg(any(feature = "all", all(feature = "java-lang-String")))]
        pub fn new_String_byte_array_int<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env __jni_bindgen::ByteArray>>, arg2: i32) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::android::net::IpSecAlgorithm>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/net/IpSecAlgorithm", java.flags == PUBLIC, .name == "<init>", .descriptor == "(Ljava/lang/String;[BI)V"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1.into()), __jni_bindgen::AsJValue::as_jvalue(&arg2)];
                let (__jni_class, __jni_method) = __jni_env.require_class_method("android/net/IpSecAlgorithm\0", "<init>\0", "(Ljava/lang/String;[BI)V\0");
                __jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [getName](https://developer.android.com/reference/android/net/IpSecAlgorithm.html#getName())
        ///
        /// Required features: "java-lang-String"
        #[cfg(any(feature = "all", all(feature = "java-lang-String")))]
        pub fn getName<'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/IpSecAlgorithm", java.flags == PUBLIC, .name == "getName", .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/IpSecAlgorithm\0", "getName\0", "()Ljava/lang/String;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [getKey](https://developer.android.com/reference/android/net/IpSecAlgorithm.html#getKey())
        pub fn getKey<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, __jni_bindgen::ByteArray>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/net/IpSecAlgorithm", java.flags == PUBLIC, .name == "getKey", .descriptor == "()[B"
            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/IpSecAlgorithm\0", "getKey\0", "()[B\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

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

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

        /// public static final [AUTH_CRYPT_AES_GCM](https://developer.android.com/reference/android/net/IpSecAlgorithm.html#AUTH_CRYPT_AES_GCM)
        pub const AUTH_CRYPT_AES_GCM : &'static str = "rfc4106(gcm(aes))";

        /// public static final [AUTH_HMAC_MD5](https://developer.android.com/reference/android/net/IpSecAlgorithm.html#AUTH_HMAC_MD5)
        pub const AUTH_HMAC_MD5 : &'static str = "hmac(md5)";

        /// public static final [AUTH_HMAC_SHA1](https://developer.android.com/reference/android/net/IpSecAlgorithm.html#AUTH_HMAC_SHA1)
        pub const AUTH_HMAC_SHA1 : &'static str = "hmac(sha1)";

        /// public static final [AUTH_HMAC_SHA256](https://developer.android.com/reference/android/net/IpSecAlgorithm.html#AUTH_HMAC_SHA256)
        pub const AUTH_HMAC_SHA256 : &'static str = "hmac(sha256)";

        /// public static final [AUTH_HMAC_SHA384](https://developer.android.com/reference/android/net/IpSecAlgorithm.html#AUTH_HMAC_SHA384)
        pub const AUTH_HMAC_SHA384 : &'static str = "hmac(sha384)";

        /// public static final [AUTH_HMAC_SHA512](https://developer.android.com/reference/android/net/IpSecAlgorithm.html#AUTH_HMAC_SHA512)
        pub const AUTH_HMAC_SHA512 : &'static str = "hmac(sha512)";

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

        /// public static final [CRYPT_AES_CBC](https://developer.android.com/reference/android/net/IpSecAlgorithm.html#CRYPT_AES_CBC)
        pub const CRYPT_AES_CBC : &'static str = "cbc(aes)";
    }
}