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-test-InstrumentationTestSuite"))]
__jni_bindgen! {
    /// public class [InstrumentationTestSuite](https://developer.android.com/reference/android/test/InstrumentationTestSuite.html)
    ///
    /// Required feature: "android-test-InstrumentationTestSuite"
    #[deprecated] public class InstrumentationTestSuite ("android/test/InstrumentationTestSuite") extends crate::junit::framework::TestSuite {

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

        /// [InstrumentationTestSuite](https://developer.android.com/reference/android/test/InstrumentationTestSuite.html#InstrumentationTestSuite(java.lang.String,%20android.app.Instrumentation))
        ///
        /// Required features: "android-app-Instrumentation", "java-lang-String"
        #[cfg(any(feature = "all", all(feature = "android-app-Instrumentation", feature = "java-lang-String")))]
        pub fn new_String_Instrumentation<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::app::Instrumentation>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::android::test::InstrumentationTestSuite>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/test/InstrumentationTestSuite", java.flags == PUBLIC, .name == "<init>", .descriptor == "(Ljava/lang/String;Landroid/app/Instrumentation;)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("android/test/InstrumentationTestSuite\0", "<init>\0", "(Ljava/lang/String;Landroid/app/Instrumentation;)V\0");
                __jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [InstrumentationTestSuite](https://developer.android.com/reference/android/test/InstrumentationTestSuite.html#InstrumentationTestSuite(java.lang.Class,%20android.app.Instrumentation))
        ///
        /// Required features: "android-app-Instrumentation", "java-lang-Class"
        #[cfg(any(feature = "all", all(feature = "android-app-Instrumentation", feature = "java-lang-Class")))]
        pub fn new_Class_Instrumentation<'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::android::app::Instrumentation>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::android::test::InstrumentationTestSuite>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/test/InstrumentationTestSuite", java.flags == PUBLIC, .name == "<init>", .descriptor == "(Ljava/lang/Class;Landroid/app/Instrumentation;)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("android/test/InstrumentationTestSuite\0", "<init>\0", "(Ljava/lang/Class;Landroid/app/Instrumentation;)V\0");
                __jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [addTestSuite](https://developer.android.com/reference/android/test/InstrumentationTestSuite.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 == "android/test/InstrumentationTestSuite", 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("android/test/InstrumentationTestSuite\0", "addTestSuite\0", "(Ljava/lang/Class;)V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [runTest](https://developer.android.com/reference/android/test/InstrumentationTestSuite.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 == "android/test/InstrumentationTestSuite", 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("android/test/InstrumentationTestSuite\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())
            }
        }
    }
}