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
// WARNING: This file was autogenerated by jni-bindgen. Any changes to this file may be lost!!!
#[cfg(any(feature = "all", feature = "android-media-AudioPresentation"))]
__jni_bindgen! {
/// public final class [AudioPresentation](https://developer.android.com/reference/android/media/AudioPresentation.html)
///
/// Required feature: "android-media-AudioPresentation"
public final class AudioPresentation ("android/media/AudioPresentation") extends crate::java::lang::Object {
/// [getLabels](https://developer.android.com/reference/android/media/AudioPresentation.html#getLabels())
///
/// Required features: "java-util-Map"
#[cfg(any(feature = "all", all(feature = "java-util-Map")))]
pub fn getLabels<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::util::Map>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/media/AudioPresentation", java.flags == PUBLIC, .name == "getLabels", .descriptor == "()Ljava/util/Map;"
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/AudioPresentation\0", "getLabels\0", "()Ljava/util/Map;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getLocale](https://developer.android.com/reference/android/media/AudioPresentation.html#getLocale())
///
/// Required features: "java-util-Locale"
#[cfg(any(feature = "all", all(feature = "java-util-Locale")))]
pub fn getLocale<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::util::Locale>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/media/AudioPresentation", java.flags == PUBLIC, .name == "getLocale", .descriptor == "()Ljava/util/Locale;"
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/AudioPresentation\0", "getLocale\0", "()Ljava/util/Locale;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getMasteringIndication](https://developer.android.com/reference/android/media/AudioPresentation.html#getMasteringIndication())
pub fn getMasteringIndication<'env>(&'env self) -> __jni_bindgen::std::result::Result<i32, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/media/AudioPresentation", java.flags == PUBLIC, .name == "getMasteringIndication", .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/media/AudioPresentation\0", "getMasteringIndication\0", "()I\0");
__jni_env.call_int_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [hasAudioDescription](https://developer.android.com/reference/android/media/AudioPresentation.html#hasAudioDescription())
pub fn hasAudioDescription<'env>(&'env self) -> __jni_bindgen::std::result::Result<bool, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/media/AudioPresentation", java.flags == PUBLIC, .name == "hasAudioDescription", .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/AudioPresentation\0", "hasAudioDescription\0", "()Z\0");
__jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [hasSpokenSubtitles](https://developer.android.com/reference/android/media/AudioPresentation.html#hasSpokenSubtitles())
pub fn hasSpokenSubtitles<'env>(&'env self) -> __jni_bindgen::std::result::Result<bool, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/media/AudioPresentation", java.flags == PUBLIC, .name == "hasSpokenSubtitles", .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/AudioPresentation\0", "hasSpokenSubtitles\0", "()Z\0");
__jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [hasDialogueEnhancement](https://developer.android.com/reference/android/media/AudioPresentation.html#hasDialogueEnhancement())
pub fn hasDialogueEnhancement<'env>(&'env self) -> __jni_bindgen::std::result::Result<bool, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/media/AudioPresentation", java.flags == PUBLIC, .name == "hasDialogueEnhancement", .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/AudioPresentation\0", "hasDialogueEnhancement\0", "()Z\0");
__jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// public static final [MASTERED_FOR_3D](https://developer.android.com/reference/android/media/AudioPresentation.html#MASTERED_FOR_3D)
pub const MASTERED_FOR_3D : i32 = 3;
/// public static final [MASTERED_FOR_HEADPHONE](https://developer.android.com/reference/android/media/AudioPresentation.html#MASTERED_FOR_HEADPHONE)
pub const MASTERED_FOR_HEADPHONE : i32 = 4;
/// public static final [MASTERED_FOR_STEREO](https://developer.android.com/reference/android/media/AudioPresentation.html#MASTERED_FOR_STEREO)
pub const MASTERED_FOR_STEREO : i32 = 1;
/// public static final [MASTERED_FOR_SURROUND](https://developer.android.com/reference/android/media/AudioPresentation.html#MASTERED_FOR_SURROUND)
pub const MASTERED_FOR_SURROUND : i32 = 2;
/// public static final [MASTERING_NOT_INDICATED](https://developer.android.com/reference/android/media/AudioPresentation.html#MASTERING_NOT_INDICATED)
pub const MASTERING_NOT_INDICATED : i32 = 0;
}
}