#[cfg(any(feature = "all", feature = "android-net-rtp-AudioCodec"))]
__jni_bindgen! {
public class AudioCodec ("android/net/rtp/AudioCodec") extends crate::java::lang::Object {
#[cfg(any(feature = "all", all(feature = "android-net-rtp-AudioCodec")))]
pub fn getCodecs<'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::net::rtp::AudioCodec, crate::java::lang::Throwable>>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
unsafe {
let __jni_args = [];
let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/net/rtp/AudioCodec\0", "getCodecs\0", "()[Landroid/net/rtp/AudioCodec;\0");
__jni_env.call_static_object_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
#[cfg(any(feature = "all", all(feature = "android-net-rtp-AudioCodec", feature = "java-lang-String")))]
pub fn getCodec<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: i32, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>, arg2: 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::net::rtp::AudioCodec>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0), __jni_bindgen::AsJValue::as_jvalue(&arg1.into()), __jni_bindgen::AsJValue::as_jvalue(&arg2.into())];
let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/net/rtp/AudioCodec\0", "getCodec\0", "(ILjava/lang/String;Ljava/lang/String;)Landroid/net/rtp/AudioCodec;\0");
__jni_env.call_static_object_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
pub fn r#type<'env>(&'env self) -> i32 {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/net/rtp/AudioCodec\0", "type\0", "I\0");
env.get_int_field(self.0.object, __jni_field)
}
}
#[cfg(any(feature = "all", feature = "java-lang-String"))]
pub fn rtpmap<'env>(&'env self) -> __jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::lang::String>> {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/net/rtp/AudioCodec\0", "rtpmap\0", "Ljava/lang/String;\0");
env.get_object_field(self.0.object, __jni_field)
}
}
#[cfg(any(feature = "all", feature = "java-lang-String"))]
pub fn fmtp<'env>(&'env self) -> __jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::lang::String>> {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/net/rtp/AudioCodec\0", "fmtp\0", "Ljava/lang/String;\0");
env.get_object_field(self.0.object, __jni_field)
}
}
#[cfg(any(feature = "all", feature = "android-net-rtp-AudioCodec"))]
pub fn PCMU<'env>(env: &'env __jni_bindgen::Env) -> __jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::net::rtp::AudioCodec>> {
unsafe {
let (__jni_class, __jni_field) = env.require_class_static_field("android/net/rtp/AudioCodec\0", "PCMU\0", "Landroid/net/rtp/AudioCodec;\0");
env.get_static_object_field(__jni_class, __jni_field)
}
}
#[cfg(any(feature = "all", feature = "android-net-rtp-AudioCodec"))]
pub fn PCMA<'env>(env: &'env __jni_bindgen::Env) -> __jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::net::rtp::AudioCodec>> {
unsafe {
let (__jni_class, __jni_field) = env.require_class_static_field("android/net/rtp/AudioCodec\0", "PCMA\0", "Landroid/net/rtp/AudioCodec;\0");
env.get_static_object_field(__jni_class, __jni_field)
}
}
#[cfg(any(feature = "all", feature = "android-net-rtp-AudioCodec"))]
pub fn GSM<'env>(env: &'env __jni_bindgen::Env) -> __jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::net::rtp::AudioCodec>> {
unsafe {
let (__jni_class, __jni_field) = env.require_class_static_field("android/net/rtp/AudioCodec\0", "GSM\0", "Landroid/net/rtp/AudioCodec;\0");
env.get_static_object_field(__jni_class, __jni_field)
}
}
#[cfg(any(feature = "all", feature = "android-net-rtp-AudioCodec"))]
pub fn GSM_EFR<'env>(env: &'env __jni_bindgen::Env) -> __jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::net::rtp::AudioCodec>> {
unsafe {
let (__jni_class, __jni_field) = env.require_class_static_field("android/net/rtp/AudioCodec\0", "GSM_EFR\0", "Landroid/net/rtp/AudioCodec;\0");
env.get_static_object_field(__jni_class, __jni_field)
}
}
#[cfg(any(feature = "all", feature = "android-net-rtp-AudioCodec"))]
pub fn AMR<'env>(env: &'env __jni_bindgen::Env) -> __jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::net::rtp::AudioCodec>> {
unsafe {
let (__jni_class, __jni_field) = env.require_class_static_field("android/net/rtp/AudioCodec\0", "AMR\0", "Landroid/net/rtp/AudioCodec;\0");
env.get_static_object_field(__jni_class, __jni_field)
}
}
}
}