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-runner-TestSuiteLoader"))]
__jni_bindgen! {
    /// public interface [TestSuiteLoader](https://developer.android.com/reference/junit/runner/TestSuiteLoader.html)
    ///
    /// Required feature: "junit-runner-TestSuiteLoader"
    public interface TestSuiteLoader ("junit/runner/TestSuiteLoader") extends crate::java::lang::Object {

        /// [load](https://developer.android.com/reference/junit/runner/TestSuiteLoader.html#load(java.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 load<'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::std::option::Option<__jni_bindgen::Local<'env, crate::java::lang::Class>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "junit/runner/TestSuiteLoader", java.flags == PUBLIC | ABSTRACT, .name == "load", .descriptor == "(Ljava/lang/String;)Ljava/lang/Class;"
            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/runner/TestSuiteLoader\0", "load\0", "(Ljava/lang/String;)Ljava/lang/Class;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

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