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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
// WARNING: This file was autogenerated by jni-bindgen. Any changes to this file may be lost!!!
#[cfg(any(feature = "all", feature = "android-media-ExifInterface"))]
__jni_bindgen! {
/// public class [ExifInterface](https://developer.android.com/reference/android/media/ExifInterface.html)
///
/// Required feature: "android-media-ExifInterface"
public class ExifInterface ("android/media/ExifInterface") extends crate::java::lang::Object {
/// [ExifInterface](https://developer.android.com/reference/android/media/ExifInterface.html#ExifInterface(java.lang.String))
///
/// Required features: "java-lang-String"
#[cfg(any(feature = "all", all(feature = "java-lang-String")))]
pub fn new<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::android::media::ExifInterface>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/media/ExifInterface", java.flags == PUBLIC, .name == "<init>", .descriptor == "(Ljava/lang/String;)V"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/media/ExifInterface\0", "<init>\0", "(Ljava/lang/String;)V\0");
__jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [getAttribute](https://developer.android.com/reference/android/media/ExifInterface.html#getAttribute(java.lang.String))
///
/// Required features: "java-lang-String"
#[cfg(any(feature = "all", all(feature = "java-lang-String")))]
pub fn getAttribute<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::lang::String>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/media/ExifInterface", java.flags == PUBLIC, .name == "getAttribute", .descriptor == "(Ljava/lang/String;)Ljava/lang/String;"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/media/ExifInterface\0", "getAttribute\0", "(Ljava/lang/String;)Ljava/lang/String;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getAttributeInt](https://developer.android.com/reference/android/media/ExifInterface.html#getAttributeInt(java.lang.String,%20int))
///
/// Required features: "java-lang-String"
#[cfg(any(feature = "all", all(feature = "java-lang-String")))]
pub fn getAttributeInt<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>, arg1: i32) -> __jni_bindgen::std::result::Result<i32, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/media/ExifInterface", java.flags == PUBLIC, .name == "getAttributeInt", .descriptor == "(Ljava/lang/String;I)I"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1)];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/media/ExifInterface\0", "getAttributeInt\0", "(Ljava/lang/String;I)I\0");
__jni_env.call_int_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getAttributeDouble](https://developer.android.com/reference/android/media/ExifInterface.html#getAttributeDouble(java.lang.String,%20double))
///
/// Required features: "java-lang-String"
#[cfg(any(feature = "all", all(feature = "java-lang-String")))]
pub fn getAttributeDouble<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>, arg1: f64) -> __jni_bindgen::std::result::Result<f64, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/media/ExifInterface", java.flags == PUBLIC, .name == "getAttributeDouble", .descriptor == "(Ljava/lang/String;D)D"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1)];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/media/ExifInterface\0", "getAttributeDouble\0", "(Ljava/lang/String;D)D\0");
__jni_env.call_double_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [setAttribute](https://developer.android.com/reference/android/media/ExifInterface.html#setAttribute(java.lang.String,%20java.lang.String))
///
/// Required features: "java-lang-String"
#[cfg(any(feature = "all", all(feature = "java-lang-String")))]
pub fn setAttribute<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/media/ExifInterface", java.flags == PUBLIC, .name == "setAttribute", .descriptor == "(Ljava/lang/String;Ljava/lang/String;)V"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1.into())];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/media/ExifInterface\0", "setAttribute\0", "(Ljava/lang/String;Ljava/lang/String;)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [saveAttributes](https://developer.android.com/reference/android/media/ExifInterface.html#saveAttributes())
pub fn saveAttributes<'env>(&'env self) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/media/ExifInterface", java.flags == PUBLIC, .name == "saveAttributes", .descriptor == "()V"
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/media/ExifInterface\0", "saveAttributes\0", "()V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [hasThumbnail](https://developer.android.com/reference/android/media/ExifInterface.html#hasThumbnail())
pub fn hasThumbnail<'env>(&'env self) -> __jni_bindgen::std::result::Result<bool, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/media/ExifInterface", java.flags == PUBLIC, .name == "hasThumbnail", .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/media/ExifInterface\0", "hasThumbnail\0", "()Z\0");
__jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getThumbnail](https://developer.android.com/reference/android/media/ExifInterface.html#getThumbnail())
pub fn getThumbnail<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, __jni_bindgen::ByteArray>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/media/ExifInterface", java.flags == PUBLIC, .name == "getThumbnail", .descriptor == "()[B"
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/media/ExifInterface\0", "getThumbnail\0", "()[B\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getLatLong](https://developer.android.com/reference/android/media/ExifInterface.html#getLatLong(float%5B%5D))
pub fn getLatLong<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env __jni_bindgen::FloatArray>>) -> __jni_bindgen::std::result::Result<bool, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/media/ExifInterface", java.flags == PUBLIC, .name == "getLatLong", .descriptor == "([F)Z"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/media/ExifInterface\0", "getLatLong\0", "([F)Z\0");
__jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getAltitude](https://developer.android.com/reference/android/media/ExifInterface.html#getAltitude(double))
pub fn getAltitude<'env>(&'env self, arg0: f64) -> __jni_bindgen::std::result::Result<f64, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/media/ExifInterface", java.flags == PUBLIC, .name == "getAltitude", .descriptor == "(D)D"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0)];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/media/ExifInterface\0", "getAltitude\0", "(D)D\0");
__jni_env.call_double_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// public static final [ORIENTATION_FLIP_HORIZONTAL](https://developer.android.com/reference/android/media/ExifInterface.html#ORIENTATION_FLIP_HORIZONTAL)
pub const ORIENTATION_FLIP_HORIZONTAL : i32 = 2;
/// public static final [ORIENTATION_FLIP_VERTICAL](https://developer.android.com/reference/android/media/ExifInterface.html#ORIENTATION_FLIP_VERTICAL)
pub const ORIENTATION_FLIP_VERTICAL : i32 = 4;
/// public static final [ORIENTATION_NORMAL](https://developer.android.com/reference/android/media/ExifInterface.html#ORIENTATION_NORMAL)
pub const ORIENTATION_NORMAL : i32 = 1;
/// public static final [ORIENTATION_ROTATE_180](https://developer.android.com/reference/android/media/ExifInterface.html#ORIENTATION_ROTATE_180)
pub const ORIENTATION_ROTATE_180 : i32 = 3;
/// public static final [ORIENTATION_ROTATE_270](https://developer.android.com/reference/android/media/ExifInterface.html#ORIENTATION_ROTATE_270)
pub const ORIENTATION_ROTATE_270 : i32 = 8;
/// public static final [ORIENTATION_ROTATE_90](https://developer.android.com/reference/android/media/ExifInterface.html#ORIENTATION_ROTATE_90)
pub const ORIENTATION_ROTATE_90 : i32 = 6;
/// public static final [ORIENTATION_TRANSPOSE](https://developer.android.com/reference/android/media/ExifInterface.html#ORIENTATION_TRANSPOSE)
pub const ORIENTATION_TRANSPOSE : i32 = 5;
/// public static final [ORIENTATION_TRANSVERSE](https://developer.android.com/reference/android/media/ExifInterface.html#ORIENTATION_TRANSVERSE)
pub const ORIENTATION_TRANSVERSE : i32 = 7;
/// public static final [ORIENTATION_UNDEFINED](https://developer.android.com/reference/android/media/ExifInterface.html#ORIENTATION_UNDEFINED)
pub const ORIENTATION_UNDEFINED : i32 = 0;
/// public static final [TAG_APERTURE](https://developer.android.com/reference/android/media/ExifInterface.html#TAG_APERTURE)
pub const TAG_APERTURE : &'static str = "FNumber";
/// public static final [TAG_DATETIME](https://developer.android.com/reference/android/media/ExifInterface.html#TAG_DATETIME)
pub const TAG_DATETIME : &'static str = "DateTime";
/// public static final [TAG_EXPOSURE_TIME](https://developer.android.com/reference/android/media/ExifInterface.html#TAG_EXPOSURE_TIME)
pub const TAG_EXPOSURE_TIME : &'static str = "ExposureTime";
/// public static final [TAG_FLASH](https://developer.android.com/reference/android/media/ExifInterface.html#TAG_FLASH)
pub const TAG_FLASH : &'static str = "Flash";
/// public static final [TAG_FOCAL_LENGTH](https://developer.android.com/reference/android/media/ExifInterface.html#TAG_FOCAL_LENGTH)
pub const TAG_FOCAL_LENGTH : &'static str = "FocalLength";
/// public static final [TAG_GPS_ALTITUDE](https://developer.android.com/reference/android/media/ExifInterface.html#TAG_GPS_ALTITUDE)
pub const TAG_GPS_ALTITUDE : &'static str = "GPSAltitude";
/// public static final [TAG_GPS_ALTITUDE_REF](https://developer.android.com/reference/android/media/ExifInterface.html#TAG_GPS_ALTITUDE_REF)
pub const TAG_GPS_ALTITUDE_REF : &'static str = "GPSAltitudeRef";
/// public static final [TAG_GPS_DATESTAMP](https://developer.android.com/reference/android/media/ExifInterface.html#TAG_GPS_DATESTAMP)
pub const TAG_GPS_DATESTAMP : &'static str = "GPSDateStamp";
/// public static final [TAG_GPS_LATITUDE](https://developer.android.com/reference/android/media/ExifInterface.html#TAG_GPS_LATITUDE)
pub const TAG_GPS_LATITUDE : &'static str = "GPSLatitude";
/// public static final [TAG_GPS_LATITUDE_REF](https://developer.android.com/reference/android/media/ExifInterface.html#TAG_GPS_LATITUDE_REF)
pub const TAG_GPS_LATITUDE_REF : &'static str = "GPSLatitudeRef";
/// public static final [TAG_GPS_LONGITUDE](https://developer.android.com/reference/android/media/ExifInterface.html#TAG_GPS_LONGITUDE)
pub const TAG_GPS_LONGITUDE : &'static str = "GPSLongitude";
/// public static final [TAG_GPS_LONGITUDE_REF](https://developer.android.com/reference/android/media/ExifInterface.html#TAG_GPS_LONGITUDE_REF)
pub const TAG_GPS_LONGITUDE_REF : &'static str = "GPSLongitudeRef";
/// public static final [TAG_GPS_PROCESSING_METHOD](https://developer.android.com/reference/android/media/ExifInterface.html#TAG_GPS_PROCESSING_METHOD)
pub const TAG_GPS_PROCESSING_METHOD : &'static str = "GPSProcessingMethod";
/// public static final [TAG_GPS_TIMESTAMP](https://developer.android.com/reference/android/media/ExifInterface.html#TAG_GPS_TIMESTAMP)
pub const TAG_GPS_TIMESTAMP : &'static str = "GPSTimeStamp";
/// public static final [TAG_IMAGE_LENGTH](https://developer.android.com/reference/android/media/ExifInterface.html#TAG_IMAGE_LENGTH)
pub const TAG_IMAGE_LENGTH : &'static str = "ImageLength";
/// public static final [TAG_IMAGE_WIDTH](https://developer.android.com/reference/android/media/ExifInterface.html#TAG_IMAGE_WIDTH)
pub const TAG_IMAGE_WIDTH : &'static str = "ImageWidth";
/// public static final [TAG_ISO](https://developer.android.com/reference/android/media/ExifInterface.html#TAG_ISO)
pub const TAG_ISO : &'static str = "ISOSpeedRatings";
/// public static final [TAG_MAKE](https://developer.android.com/reference/android/media/ExifInterface.html#TAG_MAKE)
pub const TAG_MAKE : &'static str = "Make";
/// public static final [TAG_MODEL](https://developer.android.com/reference/android/media/ExifInterface.html#TAG_MODEL)
pub const TAG_MODEL : &'static str = "Model";
/// public static final [TAG_ORIENTATION](https://developer.android.com/reference/android/media/ExifInterface.html#TAG_ORIENTATION)
pub const TAG_ORIENTATION : &'static str = "Orientation";
/// public static final [TAG_WHITE_BALANCE](https://developer.android.com/reference/android/media/ExifInterface.html#TAG_WHITE_BALANCE)
pub const TAG_WHITE_BALANCE : &'static str = "WhiteBalance";
/// public static final [WHITEBALANCE_AUTO](https://developer.android.com/reference/android/media/ExifInterface.html#WHITEBALANCE_AUTO)
pub const WHITEBALANCE_AUTO : i32 = 0;
/// public static final [WHITEBALANCE_MANUAL](https://developer.android.com/reference/android/media/ExifInterface.html#WHITEBALANCE_MANUAL)
pub const WHITEBALANCE_MANUAL : i32 = 1;
}
}