#[cfg(any(feature = "all", feature = "android-test-InstrumentationTestSuite"))]
__jni_bindgen! {
public class InstrumentationTestSuite ("android/test/InstrumentationTestSuite") extends crate::junit::framework::TestSuite {
#[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>> {
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())
}
}
#[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>> {
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())
}
}
#[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>> {
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())
}
}
#[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>> {
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())
}
}
#[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>> {
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())
}
}
}
}