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
// WARNING: This file was autogenerated by jni-bindgen. Any changes to this file may be lost!!!
#[cfg(any(feature = "all", feature = "android-graphics-ImageDecoder_DecodeException"))]
__jni_bindgen! {
/// public final class [ImageDecoder.DecodeException](https://developer.android.com/reference/android/graphics/ImageDecoder.DecodeException.html)
///
/// Required feature: "android-graphics-ImageDecoder_DecodeException"
public final class ImageDecoder_DecodeException ("android/graphics/ImageDecoder$DecodeException") extends crate::java::io::IOException {
/// [getError](https://developer.android.com/reference/android/graphics/ImageDecoder.DecodeException.html#getError())
pub fn getError<'env>(&'env self) -> __jni_bindgen::std::result::Result<i32, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/graphics/ImageDecoder$DecodeException", java.flags == PUBLIC, .name == "getError", .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/graphics/ImageDecoder$DecodeException\0", "getError\0", "()I\0");
__jni_env.call_int_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getSource](https://developer.android.com/reference/android/graphics/ImageDecoder.DecodeException.html#getSource())
///
/// Required features: "android-graphics-ImageDecoder_Source"
#[cfg(any(feature = "all", all(feature = "android-graphics-ImageDecoder_Source")))]
pub fn getSource<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::graphics::ImageDecoder_Source>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/graphics/ImageDecoder$DecodeException", java.flags == PUBLIC, .name == "getSource", .descriptor == "()Landroid/graphics/ImageDecoder$Source;"
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/graphics/ImageDecoder$DecodeException\0", "getSource\0", "()Landroid/graphics/ImageDecoder$Source;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// public static final [SOURCE_EXCEPTION](https://developer.android.com/reference/android/graphics/ImageDecoder.DecodeException.html#SOURCE_EXCEPTION)
pub const SOURCE_EXCEPTION : i32 = 1;
/// public static final [SOURCE_INCOMPLETE](https://developer.android.com/reference/android/graphics/ImageDecoder.DecodeException.html#SOURCE_INCOMPLETE)
pub const SOURCE_INCOMPLETE : i32 = 2;
/// public static final [SOURCE_MALFORMED_DATA](https://developer.android.com/reference/android/graphics/ImageDecoder.DecodeException.html#SOURCE_MALFORMED_DATA)
pub const SOURCE_MALFORMED_DATA : i32 = 3;
}
}