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 = "junit-framework-TestSuite"))]
__jni_bindgen! {
    /// public class [TestSuite](https://developer.android.com/reference/junit/framework/TestSuite.html)
    ///
    /// Required feature: "junit-framework-TestSuite"
    public class TestSuite ("junit/framework/TestSuite") extends crate::java::lang::Object, implements crate::junit::framework::Test {

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

        /// [TestSuite](https://developer.android.com/reference/junit/framework/TestSuite.html#TestSuite(java.lang.Class,%20java.lang.String))
        ///
        /// Required features: "java-lang-Class", "java-lang-String"
        #[cfg(any(feature = "all", all(feature = "java-lang-Class", feature = "java-lang-String")))]
        pub fn new_Class_String<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::Class>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::junit::framework::TestSuite>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "junit/framework/TestSuite", java.flags == PUBLIC, .name == "<init>", .descriptor == "(Ljava/lang/Class;Ljava/lang/String;)V"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1.into())];
                let (__jni_class, __jni_method) = __jni_env.require_class_method("junit/framework/TestSuite\0", "<init>\0", "(Ljava/lang/Class;Ljava/lang/String;)V\0");
                __jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [TestSuite](https://developer.android.com/reference/junit/framework/TestSuite.html#TestSuite(java.lang.Class))
        ///
        /// Required features: "java-lang-Class"
        #[cfg(any(feature = "all", all(feature = "java-lang-Class")))]
        pub fn new_Class<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::Class>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::junit::framework::TestSuite>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "junit/framework/TestSuite", java.flags == PUBLIC, .name == "<init>", .descriptor == "(Ljava/lang/Class;)V"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
                let (__jni_class, __jni_method) = __jni_env.require_class_method("junit/framework/TestSuite\0", "<init>\0", "(Ljava/lang/Class;)V\0");
                __jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [TestSuite](https://developer.android.com/reference/junit/framework/TestSuite.html#TestSuite(java.lang.String))
        ///
        /// Required features: "java-lang-String"
        #[cfg(any(feature = "all", all(feature = "java-lang-String")))]
        pub fn new_String<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::junit::framework::TestSuite>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "junit/framework/TestSuite", java.flags == PUBLIC, .name == "<init>", .descriptor == "(Ljava/lang/String;)V"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
                let (__jni_class, __jni_method) = __jni_env.require_class_method("junit/framework/TestSuite\0", "<init>\0", "(Ljava/lang/String;)V\0");
                __jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [addTest](https://developer.android.com/reference/junit/framework/TestSuite.html#addTest(junit.framework.Test))
        ///
        /// Required features: "junit-framework-Test"
        #[cfg(any(feature = "all", all(feature = "junit-framework-Test")))]
        pub fn addTest<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::junit::framework::Test>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "junit/framework/TestSuite", java.flags == PUBLIC, .name == "addTest", .descriptor == "(Ljunit/framework/Test;)V"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
                let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_method) = __jni_env.require_class_method("junit/framework/TestSuite\0", "addTest\0", "(Ljunit/framework/Test;)V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [addTestSuite](https://developer.android.com/reference/junit/framework/TestSuite.html#addTestSuite(java.lang.Class))
        ///
        /// Required features: "java-lang-Class"
        #[cfg(any(feature = "all", all(feature = "java-lang-Class")))]
        pub fn addTestSuite<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::Class>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "junit/framework/TestSuite", java.flags == PUBLIC, .name == "addTestSuite", .descriptor == "(Ljava/lang/Class;)V"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
                let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_method) = __jni_env.require_class_method("junit/framework/TestSuite\0", "addTestSuite\0", "(Ljava/lang/Class;)V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [createTest](https://developer.android.com/reference/junit/framework/TestSuite.html#createTest(java.lang.Class,%20java.lang.String))
        ///
        /// Required features: "java-lang-Class", "java-lang-String", "junit-framework-Test"
        #[cfg(any(feature = "all", all(feature = "java-lang-Class", feature = "java-lang-String", feature = "junit-framework-Test")))]
        pub fn createTest<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::Class>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::junit::framework::Test>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "junit/framework/TestSuite", java.flags == PUBLIC | STATIC, .name == "createTest", .descriptor == "(Ljava/lang/Class;Ljava/lang/String;)Ljunit/framework/Test;"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1.into())];
                let (__jni_class, __jni_method) = __jni_env.require_class_static_method("junit/framework/TestSuite\0", "createTest\0", "(Ljava/lang/Class;Ljava/lang/String;)Ljunit/framework/Test;\0");
                __jni_env.call_static_object_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }

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

        /// [getTestConstructor](https://developer.android.com/reference/junit/framework/TestSuite.html#getTestConstructor(java.lang.Class))
        ///
        /// Required features: "java-lang-Class", "java-lang-reflect-Constructor"
        #[cfg(any(feature = "all", all(feature = "java-lang-Class", feature = "java-lang-reflect-Constructor")))]
        pub fn getTestConstructor<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::Class>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::lang::reflect::Constructor>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "junit/framework/TestSuite", java.flags == PUBLIC | STATIC, .name == "getTestConstructor", .descriptor == "(Ljava/lang/Class;)Ljava/lang/reflect/Constructor;"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
                let (__jni_class, __jni_method) = __jni_env.require_class_static_method("junit/framework/TestSuite\0", "getTestConstructor\0", "(Ljava/lang/Class;)Ljava/lang/reflect/Constructor;\0");
                __jni_env.call_static_object_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [run](https://developer.android.com/reference/junit/framework/TestSuite.html#run(junit.framework.TestResult))
        ///
        /// Required features: "junit-framework-TestResult"
        #[cfg(any(feature = "all", all(feature = "junit-framework-TestResult")))]
        pub fn run<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::junit::framework::TestResult>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "junit/framework/TestSuite", java.flags == PUBLIC, .name == "run", .descriptor == "(Ljunit/framework/TestResult;)V"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
                let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_method) = __jni_env.require_class_method("junit/framework/TestSuite\0", "run\0", "(Ljunit/framework/TestResult;)V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [runTest](https://developer.android.com/reference/junit/framework/TestSuite.html#runTest(junit.framework.Test,%20junit.framework.TestResult))
        ///
        /// Required features: "junit-framework-Test", "junit-framework-TestResult"
        #[cfg(any(feature = "all", all(feature = "junit-framework-Test", feature = "junit-framework-TestResult")))]
        pub fn runTest<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::junit::framework::Test>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::junit::framework::TestResult>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "junit/framework/TestSuite", java.flags == PUBLIC, .name == "runTest", .descriptor == "(Ljunit/framework/Test;Ljunit/framework/TestResult;)V"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1.into())];
                let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_method) = __jni_env.require_class_method("junit/framework/TestSuite\0", "runTest\0", "(Ljunit/framework/Test;Ljunit/framework/TestResult;)V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [testAt](https://developer.android.com/reference/junit/framework/TestSuite.html#testAt(int))
        ///
        /// Required features: "junit-framework-Test"
        #[cfg(any(feature = "all", all(feature = "junit-framework-Test")))]
        pub fn testAt<'env>(&'env self, arg0: i32) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::junit::framework::Test>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "junit/framework/TestSuite", java.flags == PUBLIC, .name == "testAt", .descriptor == "(I)Ljunit/framework/Test;"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0)];
                let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_method) = __jni_env.require_class_method("junit/framework/TestSuite\0", "testAt\0", "(I)Ljunit/framework/Test;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

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

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

        /// [toString](https://developer.android.com/reference/junit/framework/TestSuite.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 == "junit/framework/TestSuite", 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("junit/framework/TestSuite\0", "toString\0", "()Ljava/lang/String;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [setName](https://developer.android.com/reference/junit/framework/TestSuite.html#setName(java.lang.String))
        ///
        /// Required features: "java-lang-String"
        #[cfg(any(feature = "all", all(feature = "java-lang-String")))]
        pub fn setName<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "junit/framework/TestSuite", java.flags == PUBLIC, .name == "setName", .descriptor == "(Ljava/lang/String;)V"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
                let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_method) = __jni_env.require_class_method("junit/framework/TestSuite\0", "setName\0", "(Ljava/lang/String;)V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [getName](https://developer.android.com/reference/junit/framework/TestSuite.html#getName())
        ///
        /// Required features: "java-lang-String"
        #[cfg(any(feature = "all", all(feature = "java-lang-String")))]
        pub fn getName<'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 == "junit/framework/TestSuite", java.flags == PUBLIC, .name == "getName", .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("junit/framework/TestSuite\0", "getName\0", "()Ljava/lang/String;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }
    }
}