1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
// WARNING:  This file was autogenerated by jni-bindgen.  Any changes to this file may be lost!!!


#[cfg(any(feature = "all", feature = "android-hardware-camera2-CaptureFailure"))]
__jni_bindgen! {
    /// public class [CaptureFailure](https://developer.android.com/reference/android/hardware/camera2/CaptureFailure.html)
    ///
    /// Required feature: "android-hardware-camera2-CaptureFailure"
    public class CaptureFailure ("android/hardware/camera2/CaptureFailure") extends crate::java::lang::Object {

        /// [getRequest](https://developer.android.com/reference/android/hardware/camera2/CaptureFailure.html#getRequest())
        ///
        /// Required features: "android-hardware-camera2-CaptureRequest"
        #[cfg(any(feature = "all", all(feature = "android-hardware-camera2-CaptureRequest")))]
        pub fn getRequest<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::hardware::camera2::CaptureRequest>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/hardware/camera2/CaptureFailure", java.flags == PUBLIC, .name == "getRequest", .descriptor == "()Landroid/hardware/camera2/CaptureRequest;"
            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/hardware/camera2/CaptureFailure\0", "getRequest\0", "()Landroid/hardware/camera2/CaptureRequest;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

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

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

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

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

        /// public static final [REASON_ERROR](https://developer.android.com/reference/android/hardware/camera2/CaptureFailure.html#REASON_ERROR)
        pub const REASON_ERROR : i32 = 0;

        /// public static final [REASON_FLUSHED](https://developer.android.com/reference/android/hardware/camera2/CaptureFailure.html#REASON_FLUSHED)
        pub const REASON_FLUSHED : i32 = 1;
    }
}