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

        /// [TrafficStats](https://developer.android.com/reference/android/net/TrafficStats.html#TrafficStats())
        pub fn new<'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::android::net::TrafficStats>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/net/TrafficStats", java.flags == PUBLIC, .name == "<init>", .descriptor == "()V"
            unsafe {
                let __jni_args = [];
                let (__jni_class, __jni_method) = __jni_env.require_class_method("android/net/TrafficStats\0", "<init>\0", "()V\0");
                __jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }

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

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

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

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

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

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

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

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

        /// [getUidTxBytes](https://developer.android.com/reference/android/net/TrafficStats.html#getUidTxBytes(int))
        pub fn getUidTxBytes<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: i32) -> __jni_bindgen::std::result::Result<i64, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/net/TrafficStats", java.flags == PUBLIC | STATIC | NATIVE, .name == "getUidTxBytes", .descriptor == "(I)J"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0)];
                let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/net/TrafficStats\0", "getUidTxBytes\0", "(I)J\0");
                __jni_env.call_static_long_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [getUidRxBytes](https://developer.android.com/reference/android/net/TrafficStats.html#getUidRxBytes(int))
        pub fn getUidRxBytes<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: i32) -> __jni_bindgen::std::result::Result<i64, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/net/TrafficStats", java.flags == PUBLIC | STATIC | NATIVE, .name == "getUidRxBytes", .descriptor == "(I)J"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0)];
                let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/net/TrafficStats\0", "getUidRxBytes\0", "(I)J\0");
                __jni_env.call_static_long_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }

        /// public static final [UNSUPPORTED](https://developer.android.com/reference/android/net/TrafficStats.html#UNSUPPORTED)
        pub const UNSUPPORTED : i32 = -1;
    }
}