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

        /// [floor](https://developer.android.com/reference/android/util/FloatMath.html#floor(float))
        pub fn floor<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: f32) -> __jni_bindgen::std::result::Result<f32, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/util/FloatMath", java.flags == PUBLIC | STATIC | NATIVE, .name == "floor", .descriptor == "(F)F"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0)];
                let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/util/FloatMath\0", "floor\0", "(F)F\0");
                __jni_env.call_static_float_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [ceil](https://developer.android.com/reference/android/util/FloatMath.html#ceil(float))
        pub fn ceil<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: f32) -> __jni_bindgen::std::result::Result<f32, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/util/FloatMath", java.flags == PUBLIC | STATIC | NATIVE, .name == "ceil", .descriptor == "(F)F"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0)];
                let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/util/FloatMath\0", "ceil\0", "(F)F\0");
                __jni_env.call_static_float_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [sin](https://developer.android.com/reference/android/util/FloatMath.html#sin(float))
        pub fn sin<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: f32) -> __jni_bindgen::std::result::Result<f32, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/util/FloatMath", java.flags == PUBLIC | STATIC | NATIVE, .name == "sin", .descriptor == "(F)F"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0)];
                let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/util/FloatMath\0", "sin\0", "(F)F\0");
                __jni_env.call_static_float_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [cos](https://developer.android.com/reference/android/util/FloatMath.html#cos(float))
        pub fn cos<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: f32) -> __jni_bindgen::std::result::Result<f32, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/util/FloatMath", java.flags == PUBLIC | STATIC | NATIVE, .name == "cos", .descriptor == "(F)F"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0)];
                let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/util/FloatMath\0", "cos\0", "(F)F\0");
                __jni_env.call_static_float_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [sqrt](https://developer.android.com/reference/android/util/FloatMath.html#sqrt(float))
        pub fn sqrt<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: f32) -> __jni_bindgen::std::result::Result<f32, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/util/FloatMath", java.flags == PUBLIC | STATIC | NATIVE, .name == "sqrt", .descriptor == "(F)F"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0)];
                let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/util/FloatMath\0", "sqrt\0", "(F)F\0");
                __jni_env.call_static_float_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [exp](https://developer.android.com/reference/android/util/FloatMath.html#exp(float))
        pub fn exp<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: f32) -> __jni_bindgen::std::result::Result<f32, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/util/FloatMath", java.flags == PUBLIC | STATIC | NATIVE, .name == "exp", .descriptor == "(F)F"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0)];
                let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/util/FloatMath\0", "exp\0", "(F)F\0");
                __jni_env.call_static_float_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [pow](https://developer.android.com/reference/android/util/FloatMath.html#pow(float,%20float))
        pub fn pow<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: f32, arg1: f32) -> __jni_bindgen::std::result::Result<f32, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/util/FloatMath", java.flags == PUBLIC | STATIC | NATIVE, .name == "pow", .descriptor == "(FF)F"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0), __jni_bindgen::AsJValue::as_jvalue(&arg1)];
                let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/util/FloatMath\0", "pow\0", "(FF)F\0");
                __jni_env.call_static_float_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [hypot](https://developer.android.com/reference/android/util/FloatMath.html#hypot(float,%20float))
        pub fn hypot<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: f32, arg1: f32) -> __jni_bindgen::std::result::Result<f32, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/util/FloatMath", java.flags == PUBLIC | STATIC | NATIVE, .name == "hypot", .descriptor == "(FF)F"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0), __jni_bindgen::AsJValue::as_jvalue(&arg1)];
                let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/util/FloatMath\0", "hypot\0", "(FF)F\0");
                __jni_env.call_static_float_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }
    }
}