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-webkit-CacheManager"))]
__jni_bindgen! {
    /// public final class [CacheManager](https://developer.android.com/reference/android/webkit/CacheManager.html)
    ///
    /// Required feature: "android-webkit-CacheManager"
    #[deprecated] public final class CacheManager ("android/webkit/CacheManager") extends crate::java::lang::Object {

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

        /// [getCacheFileBaseDir](https://developer.android.com/reference/android/webkit/CacheManager.html#getCacheFileBaseDir())
        ///
        /// Required features: "java-io-File"
        #[cfg(any(feature = "all", all(feature = "java-io-File")))]
        #[deprecated] pub fn getCacheFileBaseDir<'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::io::File>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/webkit/CacheManager", java.flags == PUBLIC | STATIC, .name == "getCacheFileBaseDir", .descriptor == "()Ljava/io/File;"
            unsafe {
                let __jni_args = [];
                let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/webkit/CacheManager\0", "getCacheFileBaseDir\0", "()Ljava/io/File;\0");
                __jni_env.call_static_object_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [cacheDisabled](https://developer.android.com/reference/android/webkit/CacheManager.html#cacheDisabled())
        #[deprecated] pub fn cacheDisabled<'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::std::result::Result<bool, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/webkit/CacheManager", java.flags == PUBLIC | STATIC, .name == "cacheDisabled", .descriptor == "()Z"
            unsafe {
                let __jni_args = [];
                let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/webkit/CacheManager\0", "cacheDisabled\0", "()Z\0");
                __jni_env.call_static_boolean_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [startCacheTransaction](https://developer.android.com/reference/android/webkit/CacheManager.html#startCacheTransaction())
        #[deprecated] pub fn startCacheTransaction<'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::std::result::Result<bool, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/webkit/CacheManager", java.flags == PUBLIC | STATIC, .name == "startCacheTransaction", .descriptor == "()Z"
            unsafe {
                let __jni_args = [];
                let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/webkit/CacheManager\0", "startCacheTransaction\0", "()Z\0");
                __jni_env.call_static_boolean_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [endCacheTransaction](https://developer.android.com/reference/android/webkit/CacheManager.html#endCacheTransaction())
        #[deprecated] pub fn endCacheTransaction<'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::std::result::Result<bool, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/webkit/CacheManager", java.flags == PUBLIC | STATIC, .name == "endCacheTransaction", .descriptor == "()Z"
            unsafe {
                let __jni_args = [];
                let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/webkit/CacheManager\0", "endCacheTransaction\0", "()Z\0");
                __jni_env.call_static_boolean_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [getCacheFile](https://developer.android.com/reference/android/webkit/CacheManager.html#getCacheFile(java.lang.String,%20java.util.Map))
        ///
        /// Required features: "android-webkit-CacheManager_CacheResult", "java-lang-String", "java-util-Map"
        #[cfg(any(feature = "all", all(feature = "android-webkit-CacheManager_CacheResult", feature = "java-lang-String", feature = "java-util-Map")))]
        #[deprecated] pub fn getCacheFile<'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 crate::java::util::Map>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::webkit::CacheManager_CacheResult>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/webkit/CacheManager", java.flags == PUBLIC | STATIC, .name == "getCacheFile", .descriptor == "(Ljava/lang/String;Ljava/util/Map;)Landroid/webkit/CacheManager$CacheResult;"
            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_static_method("android/webkit/CacheManager\0", "getCacheFile\0", "(Ljava/lang/String;Ljava/util/Map;)Landroid/webkit/CacheManager$CacheResult;\0");
                __jni_env.call_static_object_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [saveCacheFile](https://developer.android.com/reference/android/webkit/CacheManager.html#saveCacheFile(java.lang.String,%20android.webkit.CacheManager.CacheResult))
        ///
        /// Required features: "android-webkit-CacheManager_CacheResult", "java-lang-String"
        #[cfg(any(feature = "all", all(feature = "android-webkit-CacheManager_CacheResult", feature = "java-lang-String")))]
        #[deprecated] pub fn saveCacheFile<'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 crate::android::webkit::CacheManager_CacheResult>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/webkit/CacheManager", java.flags == PUBLIC | STATIC, .name == "saveCacheFile", .descriptor == "(Ljava/lang/String;Landroid/webkit/CacheManager$CacheResult;)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_static_method("android/webkit/CacheManager\0", "saveCacheFile\0", "(Ljava/lang/String;Landroid/webkit/CacheManager$CacheResult;)V\0");
                __jni_env.call_static_void_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }
    }
}