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 = "org-apache-http-conn-ClientConnectionRequest"))]
__jni_bindgen! {
    /// public interface [ClientConnectionRequest](https://developer.android.com/reference/org/apache/http/conn/ClientConnectionRequest.html)
    ///
    /// Required feature: "org-apache-http-conn-ClientConnectionRequest"
    #[deprecated] public interface ClientConnectionRequest ("org/apache/http/conn/ClientConnectionRequest") extends crate::java::lang::Object {

        /// [getConnection](https://developer.android.com/reference/org/apache/http/conn/ClientConnectionRequest.html#getConnection(long,%20java.util.concurrent.TimeUnit))
        ///
        /// Required features: "java-util-concurrent-TimeUnit", "org-apache-http-conn-ManagedClientConnection"
        #[cfg(any(feature = "all", all(feature = "java-util-concurrent-TimeUnit", feature = "org-apache-http-conn-ManagedClientConnection")))]
        pub fn getConnection<'env>(&'env self, arg0: i64, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::util::concurrent::TimeUnit>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::org::apache::http::conn::ManagedClientConnection>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "org/apache/http/conn/ClientConnectionRequest", java.flags == PUBLIC | ABSTRACT, .name == "getConnection", .descriptor == "(JLjava/util/concurrent/TimeUnit;)Lorg/apache/http/conn/ManagedClientConnection;"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0), __jni_bindgen::AsJValue::as_jvalue(&arg1.into())];
                let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_method) = __jni_env.require_class_method("org/apache/http/conn/ClientConnectionRequest\0", "getConnection\0", "(JLjava/util/concurrent/TimeUnit;)Lorg/apache/http/conn/ManagedClientConnection;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

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