jni-android-sys 0.0.10

Autogenerated glue code for access Android JVM APIs from Rust
// WARNING:  This file was autogenerated by jni-bindgen.  Any changes to this file may be lost!!!


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

        /// [getCodecCount](https://developer.android.com/reference/android/media/MediaCodecList.html#getCodecCount())
        pub fn getCodecCount<'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::std::result::Result<i32, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/media/MediaCodecList", java.flags == PUBLIC | STATIC | FINAL | NATIVE, .name == "getCodecCount", .descriptor == "()I"
            unsafe {
                let __jni_args = [];
                let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/media/MediaCodecList\0", "getCodecCount\0", "()I\0");
                __jni_env.call_static_int_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }

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