#[cfg(any(feature = "all", feature = "android-hardware-Camera_Face"))]
__jni_bindgen! {
#[deprecated] public class Camera_Face ("android/hardware/Camera$Face") extends crate::java::lang::Object {
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>> {
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())
}
}
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)
}
}
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)
}
}
#[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)
}
}
#[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)
}
}
#[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)
}
}
#[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)
}
}
#[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)
}
}
#[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)
}
}
#[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)
}
}
#[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)
}
}
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)
}
}
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)
}
}
}
}