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-icu-math-MathContext"))]
__jni_bindgen! {
    /// public final class [MathContext](https://developer.android.com/reference/android/icu/math/MathContext.html)
    ///
    /// Required feature: "android-icu-math-MathContext"
    public final class MathContext ("android/icu/math/MathContext") extends crate::java::lang::Object, implements crate::java::io::Serializable {

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

        /// [MathContext](https://developer.android.com/reference/android/icu/math/MathContext.html#MathContext(int,%20int))
        pub fn new_int_int<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: i32, arg1: i32) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::android::icu::math::MathContext>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/icu/math/MathContext", java.flags == PUBLIC, .name == "<init>", .descriptor == "(II)V"
            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_method("android/icu/math/MathContext\0", "<init>\0", "(II)V\0");
                __jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [MathContext](https://developer.android.com/reference/android/icu/math/MathContext.html#MathContext(int,%20int,%20boolean))
        pub fn new_int_int_boolean<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: i32, arg1: i32, arg2: bool) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::android::icu::math::MathContext>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/icu/math/MathContext", java.flags == PUBLIC, .name == "<init>", .descriptor == "(IIZ)V"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0), __jni_bindgen::AsJValue::as_jvalue(&arg1), __jni_bindgen::AsJValue::as_jvalue(&arg2)];
                let (__jni_class, __jni_method) = __jni_env.require_class_method("android/icu/math/MathContext\0", "<init>\0", "(IIZ)V\0");
                __jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [MathContext](https://developer.android.com/reference/android/icu/math/MathContext.html#MathContext(int,%20int,%20boolean,%20int))
        pub fn new_int_int_boolean_int<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: i32, arg1: i32, arg2: bool, arg3: i32) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::android::icu::math::MathContext>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/icu/math/MathContext", java.flags == PUBLIC, .name == "<init>", .descriptor == "(IIZI)V"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0), __jni_bindgen::AsJValue::as_jvalue(&arg1), __jni_bindgen::AsJValue::as_jvalue(&arg2), __jni_bindgen::AsJValue::as_jvalue(&arg3)];
                let (__jni_class, __jni_method) = __jni_env.require_class_method("android/icu/math/MathContext\0", "<init>\0", "(IIZI)V\0");
                __jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }

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

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

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

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

        /// [toString](https://developer.android.com/reference/android/icu/math/MathContext.html#toString())
        ///
        /// Required features: "java-lang-String"
        #[cfg(any(feature = "all", all(feature = "java-lang-String")))]
        pub fn toString<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::lang::String>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/icu/math/MathContext", java.flags == PUBLIC, .name == "toString", .descriptor == "()Ljava/lang/String;"
            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/icu/math/MathContext\0", "toString\0", "()Ljava/lang/String;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// **get** public static final [DEFAULT](https://developer.android.com/reference/android/icu/math/MathContext.html#DEFAULT)
        ///
        /// Required feature: "android-icu-math-MathContext"
        #[cfg(any(feature = "all", feature = "android-icu-math-MathContext"))]
        pub fn DEFAULT<'env>(env: &'env __jni_bindgen::Env) -> __jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::icu::math::MathContext>> {
            unsafe {
                let (__jni_class, __jni_field) = env.require_class_static_field("android/icu/math/MathContext\0", "DEFAULT\0", "Landroid/icu/math/MathContext;\0");
                env.get_static_object_field(__jni_class, __jni_field)
            }
        }

        /// public static final [ENGINEERING](https://developer.android.com/reference/android/icu/math/MathContext.html#ENGINEERING)
        pub const ENGINEERING : i32 = 2;

        /// public static final [PLAIN](https://developer.android.com/reference/android/icu/math/MathContext.html#PLAIN)
        pub const PLAIN : i32 = 0;

        /// public static final [ROUND_CEILING](https://developer.android.com/reference/android/icu/math/MathContext.html#ROUND_CEILING)
        pub const ROUND_CEILING : i32 = 2;

        /// public static final [ROUND_DOWN](https://developer.android.com/reference/android/icu/math/MathContext.html#ROUND_DOWN)
        pub const ROUND_DOWN : i32 = 1;

        /// public static final [ROUND_FLOOR](https://developer.android.com/reference/android/icu/math/MathContext.html#ROUND_FLOOR)
        pub const ROUND_FLOOR : i32 = 3;

        /// public static final [ROUND_HALF_DOWN](https://developer.android.com/reference/android/icu/math/MathContext.html#ROUND_HALF_DOWN)
        pub const ROUND_HALF_DOWN : i32 = 5;

        /// public static final [ROUND_HALF_EVEN](https://developer.android.com/reference/android/icu/math/MathContext.html#ROUND_HALF_EVEN)
        pub const ROUND_HALF_EVEN : i32 = 6;

        /// public static final [ROUND_HALF_UP](https://developer.android.com/reference/android/icu/math/MathContext.html#ROUND_HALF_UP)
        pub const ROUND_HALF_UP : i32 = 4;

        /// public static final [ROUND_UNNECESSARY](https://developer.android.com/reference/android/icu/math/MathContext.html#ROUND_UNNECESSARY)
        pub const ROUND_UNNECESSARY : i32 = 7;

        /// public static final [ROUND_UP](https://developer.android.com/reference/android/icu/math/MathContext.html#ROUND_UP)
        pub const ROUND_UP : i32 = 0;

        /// public static final [SCIENTIFIC](https://developer.android.com/reference/android/icu/math/MathContext.html#SCIENTIFIC)
        pub const SCIENTIFIC : i32 = 1;
    }
}