jni-android-sys 0.0.10

Autogenerated glue code for access Android JVM APIs from Rust
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
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
// WARNING:  This file was autogenerated by jni-bindgen.  Any changes to this file may be lost!!!


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

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

        /// [containsKey](https://developer.android.com/reference/android/media/MediaFormat.html#containsKey(java.lang.String))
        ///
        /// Required features: "java-lang-String"
        #[cfg(any(feature = "all", all(feature = "java-lang-String")))]
        pub fn containsKey<'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<bool, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/media/MediaFormat", java.flags == PUBLIC | FINAL, .name == "containsKey", .descriptor == "(Ljava/lang/String;)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/MediaFormat\0", "containsKey\0", "(Ljava/lang/String;)Z\0");
                __jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [getInteger](https://developer.android.com/reference/android/media/MediaFormat.html#getInteger(java.lang.String))
        ///
        /// Required features: "java-lang-String"
        #[cfg(any(feature = "all", all(feature = "java-lang-String")))]
        pub fn getInteger<'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<i32, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/media/MediaFormat", java.flags == PUBLIC | FINAL, .name == "getInteger", .descriptor == "(Ljava/lang/String;)I"
            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/MediaFormat\0", "getInteger\0", "(Ljava/lang/String;)I\0");
                __jni_env.call_int_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [getLong](https://developer.android.com/reference/android/media/MediaFormat.html#getLong(java.lang.String))
        ///
        /// Required features: "java-lang-String"
        #[cfg(any(feature = "all", all(feature = "java-lang-String")))]
        pub fn getLong<'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<i64, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/media/MediaFormat", java.flags == PUBLIC | FINAL, .name == "getLong", .descriptor == "(Ljava/lang/String;)J"
            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/MediaFormat\0", "getLong\0", "(Ljava/lang/String;)J\0");
                __jni_env.call_long_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [getFloat](https://developer.android.com/reference/android/media/MediaFormat.html#getFloat(java.lang.String))
        ///
        /// Required features: "java-lang-String"
        #[cfg(any(feature = "all", all(feature = "java-lang-String")))]
        pub fn getFloat<'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<f32, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/media/MediaFormat", java.flags == PUBLIC | FINAL, .name == "getFloat", .descriptor == "(Ljava/lang/String;)F"
            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/MediaFormat\0", "getFloat\0", "(Ljava/lang/String;)F\0");
                __jni_env.call_float_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [getString](https://developer.android.com/reference/android/media/MediaFormat.html#getString(java.lang.String))
        ///
        /// Required features: "java-lang-String"
        #[cfg(any(feature = "all", all(feature = "java-lang-String")))]
        pub fn getString<'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/MediaFormat", java.flags == PUBLIC | FINAL, .name == "getString", .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/MediaFormat\0", "getString\0", "(Ljava/lang/String;)Ljava/lang/String;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [getByteBuffer](https://developer.android.com/reference/android/media/MediaFormat.html#getByteBuffer(java.lang.String))
        ///
        /// Required features: "java-lang-String", "java-nio-ByteBuffer"
        #[cfg(any(feature = "all", all(feature = "java-lang-String", feature = "java-nio-ByteBuffer")))]
        pub fn getByteBuffer<'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::nio::ByteBuffer>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/media/MediaFormat", java.flags == PUBLIC | FINAL, .name == "getByteBuffer", .descriptor == "(Ljava/lang/String;)Ljava/nio/ByteBuffer;"
            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/MediaFormat\0", "getByteBuffer\0", "(Ljava/lang/String;)Ljava/nio/ByteBuffer;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [getFeatureEnabled](https://developer.android.com/reference/android/media/MediaFormat.html#getFeatureEnabled(java.lang.String))
        ///
        /// Required features: "java-lang-String"
        #[cfg(any(feature = "all", all(feature = "java-lang-String")))]
        pub fn getFeatureEnabled<'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<bool, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/media/MediaFormat", java.flags == PUBLIC, .name == "getFeatureEnabled", .descriptor == "(Ljava/lang/String;)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/MediaFormat\0", "getFeatureEnabled\0", "(Ljava/lang/String;)Z\0");
                __jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [setInteger](https://developer.android.com/reference/android/media/MediaFormat.html#setInteger(java.lang.String,%20int))
        ///
        /// Required features: "java-lang-String"
        #[cfg(any(feature = "all", all(feature = "java-lang-String")))]
        pub fn setInteger<'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<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/media/MediaFormat", java.flags == PUBLIC | FINAL, .name == "setInteger", .descriptor == "(Ljava/lang/String;I)V"
            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/MediaFormat\0", "setInteger\0", "(Ljava/lang/String;I)V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [setLong](https://developer.android.com/reference/android/media/MediaFormat.html#setLong(java.lang.String,%20long))
        ///
        /// Required features: "java-lang-String"
        #[cfg(any(feature = "all", all(feature = "java-lang-String")))]
        pub fn setLong<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>, arg1: i64) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/media/MediaFormat", java.flags == PUBLIC | FINAL, .name == "setLong", .descriptor == "(Ljava/lang/String;J)V"
            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/MediaFormat\0", "setLong\0", "(Ljava/lang/String;J)V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [setFloat](https://developer.android.com/reference/android/media/MediaFormat.html#setFloat(java.lang.String,%20float))
        ///
        /// Required features: "java-lang-String"
        #[cfg(any(feature = "all", all(feature = "java-lang-String")))]
        pub fn setFloat<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>, arg1: f32) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/media/MediaFormat", java.flags == PUBLIC | FINAL, .name == "setFloat", .descriptor == "(Ljava/lang/String;F)V"
            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/MediaFormat\0", "setFloat\0", "(Ljava/lang/String;F)V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [setString](https://developer.android.com/reference/android/media/MediaFormat.html#setString(java.lang.String,%20java.lang.String))
        ///
        /// Required features: "java-lang-String"
        #[cfg(any(feature = "all", all(feature = "java-lang-String")))]
        pub fn setString<'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/MediaFormat", java.flags == PUBLIC | FINAL, .name == "setString", .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/MediaFormat\0", "setString\0", "(Ljava/lang/String;Ljava/lang/String;)V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [setByteBuffer](https://developer.android.com/reference/android/media/MediaFormat.html#setByteBuffer(java.lang.String,%20java.nio.ByteBuffer))
        ///
        /// Required features: "java-lang-String", "java-nio-ByteBuffer"
        #[cfg(any(feature = "all", all(feature = "java-lang-String", feature = "java-nio-ByteBuffer")))]
        pub fn setByteBuffer<'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::nio::ByteBuffer>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/media/MediaFormat", java.flags == PUBLIC | FINAL, .name == "setByteBuffer", .descriptor == "(Ljava/lang/String;Ljava/nio/ByteBuffer;)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/MediaFormat\0", "setByteBuffer\0", "(Ljava/lang/String;Ljava/nio/ByteBuffer;)V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [setFeatureEnabled](https://developer.android.com/reference/android/media/MediaFormat.html#setFeatureEnabled(java.lang.String,%20boolean))
        ///
        /// Required features: "java-lang-String"
        #[cfg(any(feature = "all", all(feature = "java-lang-String")))]
        pub fn setFeatureEnabled<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>, arg1: bool) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/media/MediaFormat", java.flags == PUBLIC, .name == "setFeatureEnabled", .descriptor == "(Ljava/lang/String;Z)V"
            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/MediaFormat\0", "setFeatureEnabled\0", "(Ljava/lang/String;Z)V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [createAudioFormat](https://developer.android.com/reference/android/media/MediaFormat.html#createAudioFormat(java.lang.String,%20int,%20int))
        ///
        /// Required features: "android-media-MediaFormat", "java-lang-String"
        #[cfg(any(feature = "all", all(feature = "android-media-MediaFormat", feature = "java-lang-String")))]
        pub fn createAudioFormat<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>, arg1: i32, arg2: i32) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::media::MediaFormat>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/media/MediaFormat", java.flags == PUBLIC | STATIC | FINAL, .name == "createAudioFormat", .descriptor == "(Ljava/lang/String;II)Landroid/media/MediaFormat;"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1), __jni_bindgen::AsJValue::as_jvalue(&arg2)];
                let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/media/MediaFormat\0", "createAudioFormat\0", "(Ljava/lang/String;II)Landroid/media/MediaFormat;\0");
                __jni_env.call_static_object_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [createSubtitleFormat](https://developer.android.com/reference/android/media/MediaFormat.html#createSubtitleFormat(java.lang.String,%20java.lang.String))
        ///
        /// Required features: "android-media-MediaFormat", "java-lang-String"
        #[cfg(any(feature = "all", all(feature = "android-media-MediaFormat", feature = "java-lang-String")))]
        pub fn createSubtitleFormat<'env>(__jni_env: &'env __jni_bindgen::Env, 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::std::option::Option<__jni_bindgen::Local<'env, crate::android::media::MediaFormat>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/media/MediaFormat", java.flags == PUBLIC | STATIC | FINAL, .name == "createSubtitleFormat", .descriptor == "(Ljava/lang/String;Ljava/lang/String;)Landroid/media/MediaFormat;"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1.into())];
                let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/media/MediaFormat\0", "createSubtitleFormat\0", "(Ljava/lang/String;Ljava/lang/String;)Landroid/media/MediaFormat;\0");
                __jni_env.call_static_object_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [createVideoFormat](https://developer.android.com/reference/android/media/MediaFormat.html#createVideoFormat(java.lang.String,%20int,%20int))
        ///
        /// Required features: "android-media-MediaFormat", "java-lang-String"
        #[cfg(any(feature = "all", all(feature = "android-media-MediaFormat", feature = "java-lang-String")))]
        pub fn createVideoFormat<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>, arg1: i32, arg2: i32) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::media::MediaFormat>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/media/MediaFormat", java.flags == PUBLIC | STATIC | FINAL, .name == "createVideoFormat", .descriptor == "(Ljava/lang/String;II)Landroid/media/MediaFormat;"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1), __jni_bindgen::AsJValue::as_jvalue(&arg2)];
                let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/media/MediaFormat\0", "createVideoFormat\0", "(Ljava/lang/String;II)Landroid/media/MediaFormat;\0");
                __jni_env.call_static_object_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [toString](https://developer.android.com/reference/android/media/MediaFormat.html#toString())
        ///
        /// Required features: "java-lang-String"
        #[cfg(any(feature = "all", all(feature = "java-lang-String")))]
        pub fn toString<'env>(&'env self) -> __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/MediaFormat", java.flags == PUBLIC, .name == "toString", .descriptor == "()Ljava/lang/String;"
            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/MediaFormat\0", "toString\0", "()Ljava/lang/String;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// public static final [KEY_AAC_DRC_ATTENUATION_FACTOR](https://developer.android.com/reference/android/media/MediaFormat.html#KEY_AAC_DRC_ATTENUATION_FACTOR)
        pub const KEY_AAC_DRC_ATTENUATION_FACTOR : &'static str = "aac-drc-cut-level";

        /// public static final [KEY_AAC_DRC_BOOST_FACTOR](https://developer.android.com/reference/android/media/MediaFormat.html#KEY_AAC_DRC_BOOST_FACTOR)
        pub const KEY_AAC_DRC_BOOST_FACTOR : &'static str = "aac-drc-boost-level";

        /// public static final [KEY_AAC_DRC_HEAVY_COMPRESSION](https://developer.android.com/reference/android/media/MediaFormat.html#KEY_AAC_DRC_HEAVY_COMPRESSION)
        pub const KEY_AAC_DRC_HEAVY_COMPRESSION : &'static str = "aac-drc-heavy-compression";

        /// public static final [KEY_AAC_DRC_TARGET_REFERENCE_LEVEL](https://developer.android.com/reference/android/media/MediaFormat.html#KEY_AAC_DRC_TARGET_REFERENCE_LEVEL)
        pub const KEY_AAC_DRC_TARGET_REFERENCE_LEVEL : &'static str = "aac-target-ref-level";

        /// public static final [KEY_AAC_ENCODED_TARGET_LEVEL](https://developer.android.com/reference/android/media/MediaFormat.html#KEY_AAC_ENCODED_TARGET_LEVEL)
        pub const KEY_AAC_ENCODED_TARGET_LEVEL : &'static str = "aac-encoded-target-level";

        /// public static final [KEY_AAC_MAX_OUTPUT_CHANNEL_COUNT](https://developer.android.com/reference/android/media/MediaFormat.html#KEY_AAC_MAX_OUTPUT_CHANNEL_COUNT)
        pub const KEY_AAC_MAX_OUTPUT_CHANNEL_COUNT : &'static str = "aac-max-output-channel_count";

        /// public static final [KEY_AAC_PROFILE](https://developer.android.com/reference/android/media/MediaFormat.html#KEY_AAC_PROFILE)
        pub const KEY_AAC_PROFILE : &'static str = "aac-profile";

        /// public static final [KEY_AAC_SBR_MODE](https://developer.android.com/reference/android/media/MediaFormat.html#KEY_AAC_SBR_MODE)
        pub const KEY_AAC_SBR_MODE : &'static str = "aac-sbr-mode";

        /// public static final [KEY_AUDIO_SESSION_ID](https://developer.android.com/reference/android/media/MediaFormat.html#KEY_AUDIO_SESSION_ID)
        pub const KEY_AUDIO_SESSION_ID : &'static str = "audio-session-id";

        /// public static final [KEY_BITRATE_MODE](https://developer.android.com/reference/android/media/MediaFormat.html#KEY_BITRATE_MODE)
        pub const KEY_BITRATE_MODE : &'static str = "bitrate-mode";

        /// public static final [KEY_BIT_RATE](https://developer.android.com/reference/android/media/MediaFormat.html#KEY_BIT_RATE)
        pub const KEY_BIT_RATE : &'static str = "bitrate";

        /// public static final [KEY_CAPTURE_RATE](https://developer.android.com/reference/android/media/MediaFormat.html#KEY_CAPTURE_RATE)
        pub const KEY_CAPTURE_RATE : &'static str = "capture-rate";

        /// public static final [KEY_CHANNEL_COUNT](https://developer.android.com/reference/android/media/MediaFormat.html#KEY_CHANNEL_COUNT)
        pub const KEY_CHANNEL_COUNT : &'static str = "channel-count";

        /// public static final [KEY_CHANNEL_MASK](https://developer.android.com/reference/android/media/MediaFormat.html#KEY_CHANNEL_MASK)
        pub const KEY_CHANNEL_MASK : &'static str = "channel-mask";

        /// public static final [KEY_COLOR_FORMAT](https://developer.android.com/reference/android/media/MediaFormat.html#KEY_COLOR_FORMAT)
        pub const KEY_COLOR_FORMAT : &'static str = "color-format";

        /// public static final [KEY_COMPLEXITY](https://developer.android.com/reference/android/media/MediaFormat.html#KEY_COMPLEXITY)
        pub const KEY_COMPLEXITY : &'static str = "complexity";

        /// public static final [KEY_DURATION](https://developer.android.com/reference/android/media/MediaFormat.html#KEY_DURATION)
        pub const KEY_DURATION : &'static str = "durationUs";

        /// public static final [KEY_FLAC_COMPRESSION_LEVEL](https://developer.android.com/reference/android/media/MediaFormat.html#KEY_FLAC_COMPRESSION_LEVEL)
        pub const KEY_FLAC_COMPRESSION_LEVEL : &'static str = "flac-compression-level";

        /// public static final [KEY_FRAME_RATE](https://developer.android.com/reference/android/media/MediaFormat.html#KEY_FRAME_RATE)
        pub const KEY_FRAME_RATE : &'static str = "frame-rate";

        /// public static final [KEY_HEIGHT](https://developer.android.com/reference/android/media/MediaFormat.html#KEY_HEIGHT)
        pub const KEY_HEIGHT : &'static str = "height";

        /// public static final [KEY_IS_ADTS](https://developer.android.com/reference/android/media/MediaFormat.html#KEY_IS_ADTS)
        pub const KEY_IS_ADTS : &'static str = "is-adts";

        /// public static final [KEY_IS_AUTOSELECT](https://developer.android.com/reference/android/media/MediaFormat.html#KEY_IS_AUTOSELECT)
        pub const KEY_IS_AUTOSELECT : &'static str = "is-autoselect";

        /// public static final [KEY_IS_DEFAULT](https://developer.android.com/reference/android/media/MediaFormat.html#KEY_IS_DEFAULT)
        pub const KEY_IS_DEFAULT : &'static str = "is-default";

        /// public static final [KEY_IS_FORCED_SUBTITLE](https://developer.android.com/reference/android/media/MediaFormat.html#KEY_IS_FORCED_SUBTITLE)
        pub const KEY_IS_FORCED_SUBTITLE : &'static str = "is-forced-subtitle";

        /// public static final [KEY_I_FRAME_INTERVAL](https://developer.android.com/reference/android/media/MediaFormat.html#KEY_I_FRAME_INTERVAL)
        pub const KEY_I_FRAME_INTERVAL : &'static str = "i-frame-interval";

        /// public static final [KEY_LANGUAGE](https://developer.android.com/reference/android/media/MediaFormat.html#KEY_LANGUAGE)
        pub const KEY_LANGUAGE : &'static str = "language";

        /// public static final [KEY_MAX_HEIGHT](https://developer.android.com/reference/android/media/MediaFormat.html#KEY_MAX_HEIGHT)
        pub const KEY_MAX_HEIGHT : &'static str = "max-height";

        /// public static final [KEY_MAX_INPUT_SIZE](https://developer.android.com/reference/android/media/MediaFormat.html#KEY_MAX_INPUT_SIZE)
        pub const KEY_MAX_INPUT_SIZE : &'static str = "max-input-size";

        /// public static final [KEY_MAX_WIDTH](https://developer.android.com/reference/android/media/MediaFormat.html#KEY_MAX_WIDTH)
        pub const KEY_MAX_WIDTH : &'static str = "max-width";

        /// public static final [KEY_MIME](https://developer.android.com/reference/android/media/MediaFormat.html#KEY_MIME)
        pub const KEY_MIME : &'static str = "mime";

        /// public static final [KEY_PROFILE](https://developer.android.com/reference/android/media/MediaFormat.html#KEY_PROFILE)
        pub const KEY_PROFILE : &'static str = "profile";

        /// public static final [KEY_PUSH_BLANK_BUFFERS_ON_STOP](https://developer.android.com/reference/android/media/MediaFormat.html#KEY_PUSH_BLANK_BUFFERS_ON_STOP)
        pub const KEY_PUSH_BLANK_BUFFERS_ON_STOP : &'static str = "push-blank-buffers-on-shutdown";

        /// public static final [KEY_REPEAT_PREVIOUS_FRAME_AFTER](https://developer.android.com/reference/android/media/MediaFormat.html#KEY_REPEAT_PREVIOUS_FRAME_AFTER)
        pub const KEY_REPEAT_PREVIOUS_FRAME_AFTER : &'static str = "repeat-previous-frame-after";

        /// public static final [KEY_SAMPLE_RATE](https://developer.android.com/reference/android/media/MediaFormat.html#KEY_SAMPLE_RATE)
        pub const KEY_SAMPLE_RATE : &'static str = "sample-rate";

        /// public static final [KEY_TEMPORAL_LAYERING](https://developer.android.com/reference/android/media/MediaFormat.html#KEY_TEMPORAL_LAYERING)
        pub const KEY_TEMPORAL_LAYERING : &'static str = "ts-schema";

        /// public static final [KEY_WIDTH](https://developer.android.com/reference/android/media/MediaFormat.html#KEY_WIDTH)
        pub const KEY_WIDTH : &'static str = "width";

        /// public static final [MIMETYPE_AUDIO_AAC](https://developer.android.com/reference/android/media/MediaFormat.html#MIMETYPE_AUDIO_AAC)
        pub const MIMETYPE_AUDIO_AAC : &'static str = "audio/mp4a-latm";

        /// public static final [MIMETYPE_AUDIO_AC3](https://developer.android.com/reference/android/media/MediaFormat.html#MIMETYPE_AUDIO_AC3)
        pub const MIMETYPE_AUDIO_AC3 : &'static str = "audio/ac3";

        /// public static final [MIMETYPE_AUDIO_AMR_NB](https://developer.android.com/reference/android/media/MediaFormat.html#MIMETYPE_AUDIO_AMR_NB)
        pub const MIMETYPE_AUDIO_AMR_NB : &'static str = "audio/3gpp";

        /// public static final [MIMETYPE_AUDIO_AMR_WB](https://developer.android.com/reference/android/media/MediaFormat.html#MIMETYPE_AUDIO_AMR_WB)
        pub const MIMETYPE_AUDIO_AMR_WB : &'static str = "audio/amr-wb";

        /// public static final [MIMETYPE_AUDIO_FLAC](https://developer.android.com/reference/android/media/MediaFormat.html#MIMETYPE_AUDIO_FLAC)
        pub const MIMETYPE_AUDIO_FLAC : &'static str = "audio/flac";

        /// public static final [MIMETYPE_AUDIO_G711_ALAW](https://developer.android.com/reference/android/media/MediaFormat.html#MIMETYPE_AUDIO_G711_ALAW)
        pub const MIMETYPE_AUDIO_G711_ALAW : &'static str = "audio/g711-alaw";

        /// public static final [MIMETYPE_AUDIO_G711_MLAW](https://developer.android.com/reference/android/media/MediaFormat.html#MIMETYPE_AUDIO_G711_MLAW)
        pub const MIMETYPE_AUDIO_G711_MLAW : &'static str = "audio/g711-mlaw";

        /// public static final [MIMETYPE_AUDIO_MPEG](https://developer.android.com/reference/android/media/MediaFormat.html#MIMETYPE_AUDIO_MPEG)
        pub const MIMETYPE_AUDIO_MPEG : &'static str = "audio/mpeg";

        /// public static final [MIMETYPE_AUDIO_MSGSM](https://developer.android.com/reference/android/media/MediaFormat.html#MIMETYPE_AUDIO_MSGSM)
        pub const MIMETYPE_AUDIO_MSGSM : &'static str = "audio/gsm";

        /// public static final [MIMETYPE_AUDIO_OPUS](https://developer.android.com/reference/android/media/MediaFormat.html#MIMETYPE_AUDIO_OPUS)
        pub const MIMETYPE_AUDIO_OPUS : &'static str = "audio/opus";

        /// public static final [MIMETYPE_AUDIO_QCELP](https://developer.android.com/reference/android/media/MediaFormat.html#MIMETYPE_AUDIO_QCELP)
        pub const MIMETYPE_AUDIO_QCELP : &'static str = "audio/qcelp";

        /// public static final [MIMETYPE_AUDIO_RAW](https://developer.android.com/reference/android/media/MediaFormat.html#MIMETYPE_AUDIO_RAW)
        pub const MIMETYPE_AUDIO_RAW : &'static str = "audio/raw";

        /// public static final [MIMETYPE_AUDIO_VORBIS](https://developer.android.com/reference/android/media/MediaFormat.html#MIMETYPE_AUDIO_VORBIS)
        pub const MIMETYPE_AUDIO_VORBIS : &'static str = "audio/vorbis";

        /// public static final [MIMETYPE_TEXT_CEA_608](https://developer.android.com/reference/android/media/MediaFormat.html#MIMETYPE_TEXT_CEA_608)
        pub const MIMETYPE_TEXT_CEA_608 : &'static str = "text/cea-608";

        /// public static final [MIMETYPE_TEXT_VTT](https://developer.android.com/reference/android/media/MediaFormat.html#MIMETYPE_TEXT_VTT)
        pub const MIMETYPE_TEXT_VTT : &'static str = "text/vtt";

        /// public static final [MIMETYPE_VIDEO_AVC](https://developer.android.com/reference/android/media/MediaFormat.html#MIMETYPE_VIDEO_AVC)
        pub const MIMETYPE_VIDEO_AVC : &'static str = "video/avc";

        /// public static final [MIMETYPE_VIDEO_H263](https://developer.android.com/reference/android/media/MediaFormat.html#MIMETYPE_VIDEO_H263)
        pub const MIMETYPE_VIDEO_H263 : &'static str = "video/3gpp";

        /// public static final [MIMETYPE_VIDEO_HEVC](https://developer.android.com/reference/android/media/MediaFormat.html#MIMETYPE_VIDEO_HEVC)
        pub const MIMETYPE_VIDEO_HEVC : &'static str = "video/hevc";

        /// public static final [MIMETYPE_VIDEO_MPEG2](https://developer.android.com/reference/android/media/MediaFormat.html#MIMETYPE_VIDEO_MPEG2)
        pub const MIMETYPE_VIDEO_MPEG2 : &'static str = "video/mpeg2";

        /// public static final [MIMETYPE_VIDEO_MPEG4](https://developer.android.com/reference/android/media/MediaFormat.html#MIMETYPE_VIDEO_MPEG4)
        pub const MIMETYPE_VIDEO_MPEG4 : &'static str = "video/mp4v-es";

        /// public static final [MIMETYPE_VIDEO_RAW](https://developer.android.com/reference/android/media/MediaFormat.html#MIMETYPE_VIDEO_RAW)
        pub const MIMETYPE_VIDEO_RAW : &'static str = "video/raw";

        /// public static final [MIMETYPE_VIDEO_VP8](https://developer.android.com/reference/android/media/MediaFormat.html#MIMETYPE_VIDEO_VP8)
        pub const MIMETYPE_VIDEO_VP8 : &'static str = "video/x-vnd.on2.vp8";

        /// public static final [MIMETYPE_VIDEO_VP9](https://developer.android.com/reference/android/media/MediaFormat.html#MIMETYPE_VIDEO_VP9)
        pub const MIMETYPE_VIDEO_VP9 : &'static str = "video/x-vnd.on2.vp9";
    }
}