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

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

        /// [getTargetHeapUtilization](https://developer.android.com/reference/dalvik/system/VMRuntime.html#getTargetHeapUtilization())
        pub fn getTargetHeapUtilization<'env>(&'env self) -> __jni_bindgen::std::result::Result<f32, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "dalvik/system/VMRuntime", java.flags == PUBLIC | NATIVE, .name == "getTargetHeapUtilization", .descriptor == "()F"
            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("dalvik/system/VMRuntime\0", "getTargetHeapUtilization\0", "()F\0");
                __jni_env.call_float_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [setTargetHeapUtilization](https://developer.android.com/reference/dalvik/system/VMRuntime.html#setTargetHeapUtilization(float))
        pub fn setTargetHeapUtilization<'env>(&'env self, arg0: f32) -> __jni_bindgen::std::result::Result<f32, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "dalvik/system/VMRuntime", java.flags == PUBLIC, .name == "setTargetHeapUtilization", .descriptor == "(F)F"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0)];
                let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_method) = __jni_env.require_class_method("dalvik/system/VMRuntime\0", "setTargetHeapUtilization\0", "(F)F\0");
                __jni_env.call_float_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [getMinimumHeapSize](https://developer.android.com/reference/dalvik/system/VMRuntime.html#getMinimumHeapSize())
        pub fn getMinimumHeapSize<'env>(&'env self) -> __jni_bindgen::std::result::Result<i64, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "dalvik/system/VMRuntime", java.flags == PUBLIC, .name == "getMinimumHeapSize", .descriptor == "()J"
            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("dalvik/system/VMRuntime\0", "getMinimumHeapSize\0", "()J\0");
                __jni_env.call_long_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [setMinimumHeapSize](https://developer.android.com/reference/dalvik/system/VMRuntime.html#setMinimumHeapSize(long))
        pub fn setMinimumHeapSize<'env>(&'env self, arg0: i64) -> __jni_bindgen::std::result::Result<i64, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "dalvik/system/VMRuntime", java.flags == PUBLIC | SYNCRONIZED, .name == "setMinimumHeapSize", .descriptor == "(J)J"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0)];
                let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_method) = __jni_env.require_class_method("dalvik/system/VMRuntime\0", "setMinimumHeapSize\0", "(J)J\0");
                __jni_env.call_long_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

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

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

        /// [getExternalBytesAllocated](https://developer.android.com/reference/dalvik/system/VMRuntime.html#getExternalBytesAllocated())
        pub fn getExternalBytesAllocated<'env>(&'env self) -> __jni_bindgen::std::result::Result<i64, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "dalvik/system/VMRuntime", java.flags == PUBLIC | NATIVE, .name == "getExternalBytesAllocated", .descriptor == "()J"
            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("dalvik/system/VMRuntime\0", "getExternalBytesAllocated\0", "()J\0");
                __jni_env.call_long_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }
    }
}