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

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

        /// **get** public [id](https://developer.android.com/reference/android/hardware/Camera.Face.html#id)
        pub fn id<'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/hardware/Camera$Face\0", "id\0", "I\0");
                env.get_int_field(self.0.object, __jni_field)
            }
        }

        /// **set** public [id](https://developer.android.com/reference/android/hardware/Camera.Face.html#id)
        pub fn set_id<'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/hardware/Camera$Face\0", "id\0", "I\0");
                env.set_int_field(self.0.object, __jni_field, value)
            }
        }

        /// **get** public [leftEye](https://developer.android.com/reference/android/hardware/Camera.Face.html#leftEye)
        ///
        /// Required feature: "android-graphics-Point"
        #[cfg(any(feature = "all", feature = "android-graphics-Point"))]
        pub fn leftEye<'env>(&'env self) -> __jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::graphics::Point>> {
            unsafe {
                let env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_field) = env.require_class_field("android/hardware/Camera$Face\0", "leftEye\0", "Landroid/graphics/Point;\0");
                env.get_object_field(self.0.object, __jni_field)
            }
        }

        /// **set** public [leftEye](https://developer.android.com/reference/android/hardware/Camera.Face.html#leftEye)
        ///
        /// Required feature: "android-graphics-Point"
        #[cfg(any(feature = "all", feature = "android-graphics-Point"))]
        pub fn set_leftEye<'env, 'obj>(&'env self, value: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'obj crate::android::graphics::Point>>) {
            unsafe {
                let env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_field) = env.require_class_field("android/hardware/Camera$Face\0", "leftEye\0", "Landroid/graphics/Point;\0");
                env.set_object_field(self.0.object, __jni_field, value)
            }
        }

        /// **get** public [mouth](https://developer.android.com/reference/android/hardware/Camera.Face.html#mouth)
        ///
        /// Required feature: "android-graphics-Point"
        #[cfg(any(feature = "all", feature = "android-graphics-Point"))]
        pub fn mouth<'env>(&'env self) -> __jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::graphics::Point>> {
            unsafe {
                let env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_field) = env.require_class_field("android/hardware/Camera$Face\0", "mouth\0", "Landroid/graphics/Point;\0");
                env.get_object_field(self.0.object, __jni_field)
            }
        }

        /// **set** public [mouth](https://developer.android.com/reference/android/hardware/Camera.Face.html#mouth)
        ///
        /// Required feature: "android-graphics-Point"
        #[cfg(any(feature = "all", feature = "android-graphics-Point"))]
        pub fn set_mouth<'env, 'obj>(&'env self, value: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'obj crate::android::graphics::Point>>) {
            unsafe {
                let env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_field) = env.require_class_field("android/hardware/Camera$Face\0", "mouth\0", "Landroid/graphics/Point;\0");
                env.set_object_field(self.0.object, __jni_field, value)
            }
        }

        /// **get** public [rect](https://developer.android.com/reference/android/hardware/Camera.Face.html#rect)
        ///
        /// Required feature: "android-graphics-Rect"
        #[cfg(any(feature = "all", feature = "android-graphics-Rect"))]
        pub fn rect<'env>(&'env self) -> __jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::graphics::Rect>> {
            unsafe {
                let env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_field) = env.require_class_field("android/hardware/Camera$Face\0", "rect\0", "Landroid/graphics/Rect;\0");
                env.get_object_field(self.0.object, __jni_field)
            }
        }

        /// **set** public [rect](https://developer.android.com/reference/android/hardware/Camera.Face.html#rect)
        ///
        /// Required feature: "android-graphics-Rect"
        #[cfg(any(feature = "all", feature = "android-graphics-Rect"))]
        pub fn set_rect<'env, 'obj>(&'env self, value: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'obj crate::android::graphics::Rect>>) {
            unsafe {
                let env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_field) = env.require_class_field("android/hardware/Camera$Face\0", "rect\0", "Landroid/graphics/Rect;\0");
                env.set_object_field(self.0.object, __jni_field, value)
            }
        }

        /// **get** public [rightEye](https://developer.android.com/reference/android/hardware/Camera.Face.html#rightEye)
        ///
        /// Required feature: "android-graphics-Point"
        #[cfg(any(feature = "all", feature = "android-graphics-Point"))]
        pub fn rightEye<'env>(&'env self) -> __jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::graphics::Point>> {
            unsafe {
                let env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_field) = env.require_class_field("android/hardware/Camera$Face\0", "rightEye\0", "Landroid/graphics/Point;\0");
                env.get_object_field(self.0.object, __jni_field)
            }
        }

        /// **set** public [rightEye](https://developer.android.com/reference/android/hardware/Camera.Face.html#rightEye)
        ///
        /// Required feature: "android-graphics-Point"
        #[cfg(any(feature = "all", feature = "android-graphics-Point"))]
        pub fn set_rightEye<'env, 'obj>(&'env self, value: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'obj crate::android::graphics::Point>>) {
            unsafe {
                let env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_field) = env.require_class_field("android/hardware/Camera$Face\0", "rightEye\0", "Landroid/graphics/Point;\0");
                env.set_object_field(self.0.object, __jni_field, value)
            }
        }

        /// **get** public [score](https://developer.android.com/reference/android/hardware/Camera.Face.html#score)
        pub fn score<'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/hardware/Camera$Face\0", "score\0", "I\0");
                env.get_int_field(self.0.object, __jni_field)
            }
        }

        /// **set** public [score](https://developer.android.com/reference/android/hardware/Camera.Face.html#score)
        pub fn set_score<'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/hardware/Camera$Face\0", "score\0", "I\0");
                env.set_int_field(self.0.object, __jni_field, value)
            }
        }
    }
}