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-InstrumentationTestRunner"))]
__jni_bindgen! {
    /// public class [InstrumentationTestRunner](https://developer.android.com/reference/android/test/InstrumentationTestRunner.html)
    ///
    /// Required feature: "android-test-InstrumentationTestRunner"
    public class InstrumentationTestRunner ("android/test/InstrumentationTestRunner") extends crate::android::app::Instrumentation, implements crate::android::test::TestSuiteProvider {

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

        /// [onCreate](https://developer.android.com/reference/android/test/InstrumentationTestRunner.html#onCreate(android.os.Bundle))
        ///
        /// Required features: "android-os-Bundle"
        #[cfg(any(feature = "all", all(feature = "android-os-Bundle")))]
        pub fn onCreate<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::os::Bundle>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/test/InstrumentationTestRunner", java.flags == PUBLIC, .name == "onCreate", .descriptor == "(Landroid/os/Bundle;)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/InstrumentationTestRunner\0", "onCreate\0", "(Landroid/os/Bundle;)V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

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

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

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

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

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

        /// public static final [REPORT_KEY_NAME_CLASS](https://developer.android.com/reference/android/test/InstrumentationTestRunner.html#REPORT_KEY_NAME_CLASS)
        pub const REPORT_KEY_NAME_CLASS : &'static str = "class";

        /// public static final [REPORT_KEY_NAME_TEST](https://developer.android.com/reference/android/test/InstrumentationTestRunner.html#REPORT_KEY_NAME_TEST)
        pub const REPORT_KEY_NAME_TEST : &'static str = "test";

        /// public static final [REPORT_KEY_NUM_CURRENT](https://developer.android.com/reference/android/test/InstrumentationTestRunner.html#REPORT_KEY_NUM_CURRENT)
        pub const REPORT_KEY_NUM_CURRENT : &'static str = "current";

        /// public static final [REPORT_KEY_NUM_TOTAL](https://developer.android.com/reference/android/test/InstrumentationTestRunner.html#REPORT_KEY_NUM_TOTAL)
        pub const REPORT_KEY_NUM_TOTAL : &'static str = "numtests";

        /// public static final [REPORT_KEY_STACK](https://developer.android.com/reference/android/test/InstrumentationTestRunner.html#REPORT_KEY_STACK)
        pub const REPORT_KEY_STACK : &'static str = "stack";

        /// public static final [REPORT_VALUE_ID](https://developer.android.com/reference/android/test/InstrumentationTestRunner.html#REPORT_VALUE_ID)
        pub const REPORT_VALUE_ID : &'static str = "InstrumentationTestRunner";

        /// public static final [REPORT_VALUE_RESULT_ERROR](https://developer.android.com/reference/android/test/InstrumentationTestRunner.html#REPORT_VALUE_RESULT_ERROR)
        pub const REPORT_VALUE_RESULT_ERROR : i32 = -1;

        /// public static final [REPORT_VALUE_RESULT_FAILURE](https://developer.android.com/reference/android/test/InstrumentationTestRunner.html#REPORT_VALUE_RESULT_FAILURE)
        pub const REPORT_VALUE_RESULT_FAILURE : i32 = -2;

        /// public static final [REPORT_VALUE_RESULT_OK](https://developer.android.com/reference/android/test/InstrumentationTestRunner.html#REPORT_VALUE_RESULT_OK)
        pub const REPORT_VALUE_RESULT_OK : i32 = 0;

        /// public static final [REPORT_VALUE_RESULT_START](https://developer.android.com/reference/android/test/InstrumentationTestRunner.html#REPORT_VALUE_RESULT_START)
        pub const REPORT_VALUE_RESULT_START : i32 = 1;
    }
}