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-os-StrictMode_VmPolicy_Builder"))]
__jni_bindgen! {
    /// public final class [StrictMode.VmPolicy.Builder](https://developer.android.com/reference/android/os/StrictMode.VmPolicy.Builder.html)
    ///
    /// Required feature: "android-os-StrictMode_VmPolicy_Builder"
    public final class StrictMode_VmPolicy_Builder ("android/os/StrictMode$VmPolicy$Builder") extends crate::java::lang::Object {

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

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

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

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

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

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

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