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

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

        /// [get](https://developer.android.com/reference/android/media/CamcorderProfile.html#get(int,%20int))
        ///
        /// Required features: "android-media-CamcorderProfile"
        #[cfg(any(feature = "all", all(feature = "android-media-CamcorderProfile")))]
        pub fn get_int_int<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: i32, arg1: i32) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::media::CamcorderProfile>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/media/CamcorderProfile", java.flags == PUBLIC | STATIC, .name == "get", .descriptor == "(II)Landroid/media/CamcorderProfile;"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0), __jni_bindgen::AsJValue::as_jvalue(&arg1)];
                let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/media/CamcorderProfile\0", "get\0", "(II)Landroid/media/CamcorderProfile;\0");
                __jni_env.call_static_object_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }

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

        /// [hasProfile](https://developer.android.com/reference/android/media/CamcorderProfile.html#hasProfile(int,%20int))
        pub fn hasProfile_int_int<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: i32, arg1: i32) -> __jni_bindgen::std::result::Result<bool, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/media/CamcorderProfile", java.flags == PUBLIC | STATIC, .name == "hasProfile", .descriptor == "(II)Z"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0), __jni_bindgen::AsJValue::as_jvalue(&arg1)];
                let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/media/CamcorderProfile\0", "hasProfile\0", "(II)Z\0");
                __jni_env.call_static_boolean_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }

        /// public static final [QUALITY_1080P](https://developer.android.com/reference/android/media/CamcorderProfile.html#QUALITY_1080P)
        pub const QUALITY_1080P : i32 = 6;

        /// public static final [QUALITY_2160P](https://developer.android.com/reference/android/media/CamcorderProfile.html#QUALITY_2160P)
        pub const QUALITY_2160P : i32 = 8;

        /// public static final [QUALITY_480P](https://developer.android.com/reference/android/media/CamcorderProfile.html#QUALITY_480P)
        pub const QUALITY_480P : i32 = 4;

        /// public static final [QUALITY_720P](https://developer.android.com/reference/android/media/CamcorderProfile.html#QUALITY_720P)
        pub const QUALITY_720P : i32 = 5;

        /// public static final [QUALITY_CIF](https://developer.android.com/reference/android/media/CamcorderProfile.html#QUALITY_CIF)
        pub const QUALITY_CIF : i32 = 3;

        /// public static final [QUALITY_HIGH](https://developer.android.com/reference/android/media/CamcorderProfile.html#QUALITY_HIGH)
        pub const QUALITY_HIGH : i32 = 1;

        /// public static final [QUALITY_HIGH_SPEED_1080P](https://developer.android.com/reference/android/media/CamcorderProfile.html#QUALITY_HIGH_SPEED_1080P)
        pub const QUALITY_HIGH_SPEED_1080P : i32 = 2004;

        /// public static final [QUALITY_HIGH_SPEED_2160P](https://developer.android.com/reference/android/media/CamcorderProfile.html#QUALITY_HIGH_SPEED_2160P)
        pub const QUALITY_HIGH_SPEED_2160P : i32 = 2005;

        /// public static final [QUALITY_HIGH_SPEED_480P](https://developer.android.com/reference/android/media/CamcorderProfile.html#QUALITY_HIGH_SPEED_480P)
        pub const QUALITY_HIGH_SPEED_480P : i32 = 2002;

        /// public static final [QUALITY_HIGH_SPEED_720P](https://developer.android.com/reference/android/media/CamcorderProfile.html#QUALITY_HIGH_SPEED_720P)
        pub const QUALITY_HIGH_SPEED_720P : i32 = 2003;

        /// public static final [QUALITY_HIGH_SPEED_HIGH](https://developer.android.com/reference/android/media/CamcorderProfile.html#QUALITY_HIGH_SPEED_HIGH)
        pub const QUALITY_HIGH_SPEED_HIGH : i32 = 2001;

        /// public static final [QUALITY_HIGH_SPEED_LOW](https://developer.android.com/reference/android/media/CamcorderProfile.html#QUALITY_HIGH_SPEED_LOW)
        pub const QUALITY_HIGH_SPEED_LOW : i32 = 2000;

        /// public static final [QUALITY_LOW](https://developer.android.com/reference/android/media/CamcorderProfile.html#QUALITY_LOW)
        pub const QUALITY_LOW : i32 = 0;

        /// public static final [QUALITY_QCIF](https://developer.android.com/reference/android/media/CamcorderProfile.html#QUALITY_QCIF)
        pub const QUALITY_QCIF : i32 = 2;

        /// public static final [QUALITY_QVGA](https://developer.android.com/reference/android/media/CamcorderProfile.html#QUALITY_QVGA)
        pub const QUALITY_QVGA : i32 = 7;

        /// public static final [QUALITY_TIME_LAPSE_1080P](https://developer.android.com/reference/android/media/CamcorderProfile.html#QUALITY_TIME_LAPSE_1080P)
        pub const QUALITY_TIME_LAPSE_1080P : i32 = 1006;

        /// public static final [QUALITY_TIME_LAPSE_2160P](https://developer.android.com/reference/android/media/CamcorderProfile.html#QUALITY_TIME_LAPSE_2160P)
        pub const QUALITY_TIME_LAPSE_2160P : i32 = 1008;

        /// public static final [QUALITY_TIME_LAPSE_480P](https://developer.android.com/reference/android/media/CamcorderProfile.html#QUALITY_TIME_LAPSE_480P)
        pub const QUALITY_TIME_LAPSE_480P : i32 = 1004;

        /// public static final [QUALITY_TIME_LAPSE_720P](https://developer.android.com/reference/android/media/CamcorderProfile.html#QUALITY_TIME_LAPSE_720P)
        pub const QUALITY_TIME_LAPSE_720P : i32 = 1005;

        /// public static final [QUALITY_TIME_LAPSE_CIF](https://developer.android.com/reference/android/media/CamcorderProfile.html#QUALITY_TIME_LAPSE_CIF)
        pub const QUALITY_TIME_LAPSE_CIF : i32 = 1003;

        /// public static final [QUALITY_TIME_LAPSE_HIGH](https://developer.android.com/reference/android/media/CamcorderProfile.html#QUALITY_TIME_LAPSE_HIGH)
        pub const QUALITY_TIME_LAPSE_HIGH : i32 = 1001;

        /// public static final [QUALITY_TIME_LAPSE_LOW](https://developer.android.com/reference/android/media/CamcorderProfile.html#QUALITY_TIME_LAPSE_LOW)
        pub const QUALITY_TIME_LAPSE_LOW : i32 = 1000;

        /// public static final [QUALITY_TIME_LAPSE_QCIF](https://developer.android.com/reference/android/media/CamcorderProfile.html#QUALITY_TIME_LAPSE_QCIF)
        pub const QUALITY_TIME_LAPSE_QCIF : i32 = 1002;

        /// public static final [QUALITY_TIME_LAPSE_QVGA](https://developer.android.com/reference/android/media/CamcorderProfile.html#QUALITY_TIME_LAPSE_QVGA)
        pub const QUALITY_TIME_LAPSE_QVGA : i32 = 1007;

        /// **get** public [audioBitRate](https://developer.android.com/reference/android/media/CamcorderProfile.html#audioBitRate)
        pub fn audioBitRate<'env>(&'env self) -> i32 {
            unsafe {
                let env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_field) = env.require_class_field("android/media/CamcorderProfile\0", "audioBitRate\0", "I\0");
                env.get_int_field(self.0.object, __jni_field)
            }
        }

        /// **set** public [audioBitRate](https://developer.android.com/reference/android/media/CamcorderProfile.html#audioBitRate)
        pub fn set_audioBitRate<'env>(&'env self, value: i32) {
            unsafe {
                let env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_field) = env.require_class_field("android/media/CamcorderProfile\0", "audioBitRate\0", "I\0");
                env.set_int_field(self.0.object, __jni_field, value)
            }
        }

        /// **get** public [audioChannels](https://developer.android.com/reference/android/media/CamcorderProfile.html#audioChannels)
        pub fn audioChannels<'env>(&'env self) -> i32 {
            unsafe {
                let env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_field) = env.require_class_field("android/media/CamcorderProfile\0", "audioChannels\0", "I\0");
                env.get_int_field(self.0.object, __jni_field)
            }
        }

        /// **set** public [audioChannels](https://developer.android.com/reference/android/media/CamcorderProfile.html#audioChannels)
        pub fn set_audioChannels<'env>(&'env self, value: i32) {
            unsafe {
                let env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_field) = env.require_class_field("android/media/CamcorderProfile\0", "audioChannels\0", "I\0");
                env.set_int_field(self.0.object, __jni_field, value)
            }
        }

        /// **get** public [audioCodec](https://developer.android.com/reference/android/media/CamcorderProfile.html#audioCodec)
        pub fn audioCodec<'env>(&'env self) -> i32 {
            unsafe {
                let env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_field) = env.require_class_field("android/media/CamcorderProfile\0", "audioCodec\0", "I\0");
                env.get_int_field(self.0.object, __jni_field)
            }
        }

        /// **set** public [audioCodec](https://developer.android.com/reference/android/media/CamcorderProfile.html#audioCodec)
        pub fn set_audioCodec<'env>(&'env self, value: i32) {
            unsafe {
                let env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_field) = env.require_class_field("android/media/CamcorderProfile\0", "audioCodec\0", "I\0");
                env.set_int_field(self.0.object, __jni_field, value)
            }
        }

        /// **get** public [audioSampleRate](https://developer.android.com/reference/android/media/CamcorderProfile.html#audioSampleRate)
        pub fn audioSampleRate<'env>(&'env self) -> i32 {
            unsafe {
                let env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_field) = env.require_class_field("android/media/CamcorderProfile\0", "audioSampleRate\0", "I\0");
                env.get_int_field(self.0.object, __jni_field)
            }
        }

        /// **set** public [audioSampleRate](https://developer.android.com/reference/android/media/CamcorderProfile.html#audioSampleRate)
        pub fn set_audioSampleRate<'env>(&'env self, value: i32) {
            unsafe {
                let env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_field) = env.require_class_field("android/media/CamcorderProfile\0", "audioSampleRate\0", "I\0");
                env.set_int_field(self.0.object, __jni_field, value)
            }
        }

        /// **get** public [duration](https://developer.android.com/reference/android/media/CamcorderProfile.html#duration)
        pub fn duration<'env>(&'env self) -> i32 {
            unsafe {
                let env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_field) = env.require_class_field("android/media/CamcorderProfile\0", "duration\0", "I\0");
                env.get_int_field(self.0.object, __jni_field)
            }
        }

        /// **set** public [duration](https://developer.android.com/reference/android/media/CamcorderProfile.html#duration)
        pub fn set_duration<'env>(&'env self, value: i32) {
            unsafe {
                let env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_field) = env.require_class_field("android/media/CamcorderProfile\0", "duration\0", "I\0");
                env.set_int_field(self.0.object, __jni_field, value)
            }
        }

        /// **get** public [fileFormat](https://developer.android.com/reference/android/media/CamcorderProfile.html#fileFormat)
        pub fn fileFormat<'env>(&'env self) -> i32 {
            unsafe {
                let env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_field) = env.require_class_field("android/media/CamcorderProfile\0", "fileFormat\0", "I\0");
                env.get_int_field(self.0.object, __jni_field)
            }
        }

        /// **set** public [fileFormat](https://developer.android.com/reference/android/media/CamcorderProfile.html#fileFormat)
        pub fn set_fileFormat<'env>(&'env self, value: i32) {
            unsafe {
                let env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_field) = env.require_class_field("android/media/CamcorderProfile\0", "fileFormat\0", "I\0");
                env.set_int_field(self.0.object, __jni_field, value)
            }
        }

        /// **get** public [quality](https://developer.android.com/reference/android/media/CamcorderProfile.html#quality)
        pub fn quality<'env>(&'env self) -> i32 {
            unsafe {
                let env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_field) = env.require_class_field("android/media/CamcorderProfile\0", "quality\0", "I\0");
                env.get_int_field(self.0.object, __jni_field)
            }
        }

        /// **set** public [quality](https://developer.android.com/reference/android/media/CamcorderProfile.html#quality)
        pub fn set_quality<'env>(&'env self, value: i32) {
            unsafe {
                let env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_field) = env.require_class_field("android/media/CamcorderProfile\0", "quality\0", "I\0");
                env.set_int_field(self.0.object, __jni_field, value)
            }
        }

        /// **get** public [videoBitRate](https://developer.android.com/reference/android/media/CamcorderProfile.html#videoBitRate)
        pub fn videoBitRate<'env>(&'env self) -> i32 {
            unsafe {
                let env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_field) = env.require_class_field("android/media/CamcorderProfile\0", "videoBitRate\0", "I\0");
                env.get_int_field(self.0.object, __jni_field)
            }
        }

        /// **set** public [videoBitRate](https://developer.android.com/reference/android/media/CamcorderProfile.html#videoBitRate)
        pub fn set_videoBitRate<'env>(&'env self, value: i32) {
            unsafe {
                let env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_field) = env.require_class_field("android/media/CamcorderProfile\0", "videoBitRate\0", "I\0");
                env.set_int_field(self.0.object, __jni_field, value)
            }
        }

        /// **get** public [videoCodec](https://developer.android.com/reference/android/media/CamcorderProfile.html#videoCodec)
        pub fn videoCodec<'env>(&'env self) -> i32 {
            unsafe {
                let env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_field) = env.require_class_field("android/media/CamcorderProfile\0", "videoCodec\0", "I\0");
                env.get_int_field(self.0.object, __jni_field)
            }
        }

        /// **set** public [videoCodec](https://developer.android.com/reference/android/media/CamcorderProfile.html#videoCodec)
        pub fn set_videoCodec<'env>(&'env self, value: i32) {
            unsafe {
                let env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_field) = env.require_class_field("android/media/CamcorderProfile\0", "videoCodec\0", "I\0");
                env.set_int_field(self.0.object, __jni_field, value)
            }
        }

        /// **get** public [videoFrameHeight](https://developer.android.com/reference/android/media/CamcorderProfile.html#videoFrameHeight)
        pub fn videoFrameHeight<'env>(&'env self) -> i32 {
            unsafe {
                let env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_field) = env.require_class_field("android/media/CamcorderProfile\0", "videoFrameHeight\0", "I\0");
                env.get_int_field(self.0.object, __jni_field)
            }
        }

        /// **set** public [videoFrameHeight](https://developer.android.com/reference/android/media/CamcorderProfile.html#videoFrameHeight)
        pub fn set_videoFrameHeight<'env>(&'env self, value: i32) {
            unsafe {
                let env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_field) = env.require_class_field("android/media/CamcorderProfile\0", "videoFrameHeight\0", "I\0");
                env.set_int_field(self.0.object, __jni_field, value)
            }
        }

        /// **get** public [videoFrameRate](https://developer.android.com/reference/android/media/CamcorderProfile.html#videoFrameRate)
        pub fn videoFrameRate<'env>(&'env self) -> i32 {
            unsafe {
                let env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_field) = env.require_class_field("android/media/CamcorderProfile\0", "videoFrameRate\0", "I\0");
                env.get_int_field(self.0.object, __jni_field)
            }
        }

        /// **set** public [videoFrameRate](https://developer.android.com/reference/android/media/CamcorderProfile.html#videoFrameRate)
        pub fn set_videoFrameRate<'env>(&'env self, value: i32) {
            unsafe {
                let env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_field) = env.require_class_field("android/media/CamcorderProfile\0", "videoFrameRate\0", "I\0");
                env.set_int_field(self.0.object, __jni_field, value)
            }
        }

        /// **get** public [videoFrameWidth](https://developer.android.com/reference/android/media/CamcorderProfile.html#videoFrameWidth)
        pub fn videoFrameWidth<'env>(&'env self) -> i32 {
            unsafe {
                let env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_field) = env.require_class_field("android/media/CamcorderProfile\0", "videoFrameWidth\0", "I\0");
                env.get_int_field(self.0.object, __jni_field)
            }
        }

        /// **set** public [videoFrameWidth](https://developer.android.com/reference/android/media/CamcorderProfile.html#videoFrameWidth)
        pub fn set_videoFrameWidth<'env>(&'env self, value: i32) {
            unsafe {
                let env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_field) = env.require_class_field("android/media/CamcorderProfile\0", "videoFrameWidth\0", "I\0");
                env.set_int_field(self.0.object, __jni_field, value)
            }
        }
    }
}