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-MediaTimestamp"))]
__jni_bindgen! {
    /// public final class [MediaTimestamp](https://developer.android.com/reference/android/media/MediaTimestamp.html)
    ///
    /// Required feature: "android-media-MediaTimestamp"
    public final class MediaTimestamp ("android/media/MediaTimestamp") extends crate::java::lang::Object {

        /// [getAnchorMediaTimeUs](https://developer.android.com/reference/android/media/MediaTimestamp.html#getAnchorMediaTimeUs())
        pub fn getAnchorMediaTimeUs<'env>(&'env self) -> __jni_bindgen::std::result::Result<i64, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/media/MediaTimestamp", java.flags == PUBLIC, .name == "getAnchorMediaTimeUs", .descriptor == "()J"
            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/MediaTimestamp\0", "getAnchorMediaTimeUs\0", "()J\0");
                __jni_env.call_long_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [getAnchorSytemNanoTime](https://developer.android.com/reference/android/media/MediaTimestamp.html#getAnchorSytemNanoTime())
        pub fn getAnchorSytemNanoTime<'env>(&'env self) -> __jni_bindgen::std::result::Result<i64, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/media/MediaTimestamp", java.flags == PUBLIC, .name == "getAnchorSytemNanoTime", .descriptor == "()J"
            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/MediaTimestamp\0", "getAnchorSytemNanoTime\0", "()J\0");
                __jni_env.call_long_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [getMediaClockRate](https://developer.android.com/reference/android/media/MediaTimestamp.html#getMediaClockRate())
        pub fn getMediaClockRate<'env>(&'env self) -> __jni_bindgen::std::result::Result<f32, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/media/MediaTimestamp", java.flags == PUBLIC, .name == "getMediaClockRate", .descriptor == "()F"
            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/MediaTimestamp\0", "getMediaClockRate\0", "()F\0");
                __jni_env.call_float_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }
    }
}