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

        /// [apply](https://developer.android.com/reference/android/media/VolumeShaper.html#apply(android.media.VolumeShaper.Operation))
        ///
        /// Required features: "android-media-VolumeShaper_Operation"
        #[cfg(any(feature = "all", all(feature = "android-media-VolumeShaper_Operation")))]
        pub fn apply<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::media::VolumeShaper_Operation>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/media/VolumeShaper", java.flags == PUBLIC, .name == "apply", .descriptor == "(Landroid/media/VolumeShaper$Operation;)V"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
                let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_method) = __jni_env.require_class_method("android/media/VolumeShaper\0", "apply\0", "(Landroid/media/VolumeShaper$Operation;)V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [replace](https://developer.android.com/reference/android/media/VolumeShaper.html#replace(android.media.VolumeShaper.Configuration,%20android.media.VolumeShaper.Operation,%20boolean))
        ///
        /// Required features: "android-media-VolumeShaper_Configuration", "android-media-VolumeShaper_Operation"
        #[cfg(any(feature = "all", all(feature = "android-media-VolumeShaper_Configuration", feature = "android-media-VolumeShaper_Operation")))]
        pub fn replace<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::media::VolumeShaper_Configuration>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::media::VolumeShaper_Operation>>, arg2: bool) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/media/VolumeShaper", java.flags == PUBLIC, .name == "replace", .descriptor == "(Landroid/media/VolumeShaper$Configuration;Landroid/media/VolumeShaper$Operation;Z)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_env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_method) = __jni_env.require_class_method("android/media/VolumeShaper\0", "replace\0", "(Landroid/media/VolumeShaper$Configuration;Landroid/media/VolumeShaper$Operation;Z)V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

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

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