#[cfg(any(feature = "all", feature = "android-util-FloatMath"))]
__jni_bindgen! {
public class FloatMath ("android/util/FloatMath") extends crate::java::lang::Object {
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>> {
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())
}
}
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>> {
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())
}
}
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>> {
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())
}
}
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>> {
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())
}
}
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>> {
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())
}
}
}
}