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
// WARNING: This file was autogenerated by jni-bindgen. Any changes to this file may be lost!!!
#[cfg(any(feature = "all", feature = "android-media-audiofx-AudioEffect"))]
__jni_bindgen! {
/// public class [AudioEffect](https://developer.android.com/reference/android/media/audiofx/AudioEffect.html)
///
/// Required feature: "android-media-audiofx-AudioEffect"
public class AudioEffect ("android/media/audiofx/AudioEffect") extends crate::java::lang::Object {
/// [release](https://developer.android.com/reference/android/media/audiofx/AudioEffect.html#release())
pub fn release<'env>(&'env self) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/media/audiofx/AudioEffect", java.flags == PUBLIC, .name == "release", .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/audiofx/AudioEffect\0", "release\0", "()V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getDescriptor](https://developer.android.com/reference/android/media/audiofx/AudioEffect.html#getDescriptor())
///
/// Required features: "android-media-audiofx-AudioEffect_Descriptor"
#[cfg(any(feature = "all", all(feature = "android-media-audiofx-AudioEffect_Descriptor")))]
pub fn getDescriptor<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::media::audiofx::AudioEffect_Descriptor>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/media/audiofx/AudioEffect", java.flags == PUBLIC, .name == "getDescriptor", .descriptor == "()Landroid/media/audiofx/AudioEffect$Descriptor;"
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/audiofx/AudioEffect\0", "getDescriptor\0", "()Landroid/media/audiofx/AudioEffect$Descriptor;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [queryEffects](https://developer.android.com/reference/android/media/audiofx/AudioEffect.html#queryEffects())
///
/// Required features: "android-media-audiofx-AudioEffect_Descriptor"
#[cfg(any(feature = "all", all(feature = "android-media-audiofx-AudioEffect_Descriptor")))]
pub fn queryEffects<'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, __jni_bindgen::ObjectArray<crate::android::media::audiofx::AudioEffect_Descriptor, crate::java::lang::Throwable>>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/media/audiofx/AudioEffect", java.flags == PUBLIC | STATIC, .name == "queryEffects", .descriptor == "()[Landroid/media/audiofx/AudioEffect$Descriptor;"
unsafe {
let __jni_args = [];
let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/media/audiofx/AudioEffect\0", "queryEffects\0", "()[Landroid/media/audiofx/AudioEffect$Descriptor;\0");
__jni_env.call_static_object_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [setEnabled](https://developer.android.com/reference/android/media/audiofx/AudioEffect.html#setEnabled(boolean))
pub fn setEnabled<'env>(&'env self, arg0: bool) -> __jni_bindgen::std::result::Result<i32, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/media/audiofx/AudioEffect", java.flags == PUBLIC, .name == "setEnabled", .descriptor == "(Z)I"
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/audiofx/AudioEffect\0", "setEnabled\0", "(Z)I\0");
__jni_env.call_int_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getId](https://developer.android.com/reference/android/media/audiofx/AudioEffect.html#getId())
pub fn getId<'env>(&'env self) -> __jni_bindgen::std::result::Result<i32, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/media/audiofx/AudioEffect", java.flags == PUBLIC, .name == "getId", .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/audiofx/AudioEffect\0", "getId\0", "()I\0");
__jni_env.call_int_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getEnabled](https://developer.android.com/reference/android/media/audiofx/AudioEffect.html#getEnabled())
pub fn getEnabled<'env>(&'env self) -> __jni_bindgen::std::result::Result<bool, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/media/audiofx/AudioEffect", java.flags == PUBLIC, .name == "getEnabled", .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/audiofx/AudioEffect\0", "getEnabled\0", "()Z\0");
__jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [hasControl](https://developer.android.com/reference/android/media/audiofx/AudioEffect.html#hasControl())
pub fn hasControl<'env>(&'env self) -> __jni_bindgen::std::result::Result<bool, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/media/audiofx/AudioEffect", java.flags == PUBLIC, .name == "hasControl", .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/audiofx/AudioEffect\0", "hasControl\0", "()Z\0");
__jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [setEnableStatusListener](https://developer.android.com/reference/android/media/audiofx/AudioEffect.html#setEnableStatusListener(android.media.audiofx.AudioEffect.OnEnableStatusChangeListener))
///
/// Required features: "android-media-audiofx-AudioEffect_OnEnableStatusChangeListener"
#[cfg(any(feature = "all", all(feature = "android-media-audiofx-AudioEffect_OnEnableStatusChangeListener")))]
pub fn setEnableStatusListener<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::media::audiofx::AudioEffect_OnEnableStatusChangeListener>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/media/audiofx/AudioEffect", java.flags == PUBLIC, .name == "setEnableStatusListener", .descriptor == "(Landroid/media/audiofx/AudioEffect$OnEnableStatusChangeListener;)V"
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/audiofx/AudioEffect\0", "setEnableStatusListener\0", "(Landroid/media/audiofx/AudioEffect$OnEnableStatusChangeListener;)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [setControlStatusListener](https://developer.android.com/reference/android/media/audiofx/AudioEffect.html#setControlStatusListener(android.media.audiofx.AudioEffect.OnControlStatusChangeListener))
///
/// Required features: "android-media-audiofx-AudioEffect_OnControlStatusChangeListener"
#[cfg(any(feature = "all", all(feature = "android-media-audiofx-AudioEffect_OnControlStatusChangeListener")))]
pub fn setControlStatusListener<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::media::audiofx::AudioEffect_OnControlStatusChangeListener>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/media/audiofx/AudioEffect", java.flags == PUBLIC, .name == "setControlStatusListener", .descriptor == "(Landroid/media/audiofx/AudioEffect$OnControlStatusChangeListener;)V"
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/audiofx/AudioEffect\0", "setControlStatusListener\0", "(Landroid/media/audiofx/AudioEffect$OnControlStatusChangeListener;)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// public static final [SUCCESS](https://developer.android.com/reference/android/media/audiofx/AudioEffect.html#SUCCESS)
pub const SUCCESS : i32 = 0;
/// public static final [ERROR](https://developer.android.com/reference/android/media/audiofx/AudioEffect.html#ERROR)
pub const ERROR : i32 = -1;
/// public static final [ALREADY_EXISTS](https://developer.android.com/reference/android/media/audiofx/AudioEffect.html#ALREADY_EXISTS)
pub const ALREADY_EXISTS : i32 = -2;
/// public static final [ERROR_NO_INIT](https://developer.android.com/reference/android/media/audiofx/AudioEffect.html#ERROR_NO_INIT)
pub const ERROR_NO_INIT : i32 = -3;
/// public static final [ERROR_BAD_VALUE](https://developer.android.com/reference/android/media/audiofx/AudioEffect.html#ERROR_BAD_VALUE)
pub const ERROR_BAD_VALUE : i32 = -4;
/// public static final [ERROR_INVALID_OPERATION](https://developer.android.com/reference/android/media/audiofx/AudioEffect.html#ERROR_INVALID_OPERATION)
pub const ERROR_INVALID_OPERATION : i32 = -5;
/// public static final [ERROR_NO_MEMORY](https://developer.android.com/reference/android/media/audiofx/AudioEffect.html#ERROR_NO_MEMORY)
pub const ERROR_NO_MEMORY : i32 = -6;
/// public static final [ERROR_DEAD_OBJECT](https://developer.android.com/reference/android/media/audiofx/AudioEffect.html#ERROR_DEAD_OBJECT)
pub const ERROR_DEAD_OBJECT : i32 = -7;
/// public static final [EFFECT_INSERT](https://developer.android.com/reference/android/media/audiofx/AudioEffect.html#EFFECT_INSERT)
pub const EFFECT_INSERT : &'static str = "Insert";
/// public static final [EFFECT_AUXILIARY](https://developer.android.com/reference/android/media/audiofx/AudioEffect.html#EFFECT_AUXILIARY)
pub const EFFECT_AUXILIARY : &'static str = "Auxiliary";
/// public static final [ACTION_DISPLAY_AUDIO_EFFECT_CONTROL_PANEL](https://developer.android.com/reference/android/media/audiofx/AudioEffect.html#ACTION_DISPLAY_AUDIO_EFFECT_CONTROL_PANEL)
pub const ACTION_DISPLAY_AUDIO_EFFECT_CONTROL_PANEL : &'static str = "android.media.action.DISPLAY_AUDIO_EFFECT_CONTROL_PANEL";
/// public static final [ACTION_OPEN_AUDIO_EFFECT_CONTROL_SESSION](https://developer.android.com/reference/android/media/audiofx/AudioEffect.html#ACTION_OPEN_AUDIO_EFFECT_CONTROL_SESSION)
pub const ACTION_OPEN_AUDIO_EFFECT_CONTROL_SESSION : &'static str = "android.media.action.OPEN_AUDIO_EFFECT_CONTROL_SESSION";
/// public static final [ACTION_CLOSE_AUDIO_EFFECT_CONTROL_SESSION](https://developer.android.com/reference/android/media/audiofx/AudioEffect.html#ACTION_CLOSE_AUDIO_EFFECT_CONTROL_SESSION)
pub const ACTION_CLOSE_AUDIO_EFFECT_CONTROL_SESSION : &'static str = "android.media.action.CLOSE_AUDIO_EFFECT_CONTROL_SESSION";
/// public static final [EXTRA_AUDIO_SESSION](https://developer.android.com/reference/android/media/audiofx/AudioEffect.html#EXTRA_AUDIO_SESSION)
pub const EXTRA_AUDIO_SESSION : &'static str = "android.media.extra.AUDIO_SESSION";
/// public static final [EXTRA_PACKAGE_NAME](https://developer.android.com/reference/android/media/audiofx/AudioEffect.html#EXTRA_PACKAGE_NAME)
pub const EXTRA_PACKAGE_NAME : &'static str = "android.media.extra.PACKAGE_NAME";
/// public static final [EXTRA_CONTENT_TYPE](https://developer.android.com/reference/android/media/audiofx/AudioEffect.html#EXTRA_CONTENT_TYPE)
pub const EXTRA_CONTENT_TYPE : &'static str = "android.media.extra.CONTENT_TYPE";
/// public static final [CONTENT_TYPE_MUSIC](https://developer.android.com/reference/android/media/audiofx/AudioEffect.html#CONTENT_TYPE_MUSIC)
pub const CONTENT_TYPE_MUSIC : i32 = 0;
/// public static final [CONTENT_TYPE_MOVIE](https://developer.android.com/reference/android/media/audiofx/AudioEffect.html#CONTENT_TYPE_MOVIE)
pub const CONTENT_TYPE_MOVIE : i32 = 1;
/// public static final [CONTENT_TYPE_GAME](https://developer.android.com/reference/android/media/audiofx/AudioEffect.html#CONTENT_TYPE_GAME)
pub const CONTENT_TYPE_GAME : i32 = 2;
/// public static final [CONTENT_TYPE_VOICE](https://developer.android.com/reference/android/media/audiofx/AudioEffect.html#CONTENT_TYPE_VOICE)
pub const CONTENT_TYPE_VOICE : i32 = 3;
}
}