// WARNING: This file was autogenerated by jni-bindgen. Any changes to this file may be lost!!!
#[cfg(any(feature = "all", feature = "android-test-InstrumentationTestCase"))]
__jni_bindgen! {
/// public class [InstrumentationTestCase](https://developer.android.com/reference/android/test/InstrumentationTestCase.html)
///
/// Required feature: "android-test-InstrumentationTestCase"
public class InstrumentationTestCase ("android/test/InstrumentationTestCase") extends crate::junit::framework::TestCase {
/// [InstrumentationTestCase](https://developer.android.com/reference/android/test/InstrumentationTestCase.html#InstrumentationTestCase())
pub fn new<'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::android::test::InstrumentationTestCase>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/test/InstrumentationTestCase", java.flags == PUBLIC, .name == "<init>", .descriptor == "()V"
unsafe {
let __jni_args = [];
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/test/InstrumentationTestCase\0", "<init>\0", "()V\0");
__jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [injectInstrumentation](https://developer.android.com/reference/android/test/InstrumentationTestCase.html#injectInstrumentation(android.app.Instrumentation))
///
/// Required features: "android-app-Instrumentation"
#[cfg(any(feature = "all", all(feature = "android-app-Instrumentation")))]
pub fn injectInstrumentation<'env>(&'env self, 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::java::lang::Throwable>> {
// class.path == "android/test/InstrumentationTestCase", java.flags == PUBLIC, .name == "injectInstrumentation", .descriptor == "(Landroid/app/Instrumentation;)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/InstrumentationTestCase\0", "injectInstrumentation\0", "(Landroid/app/Instrumentation;)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [injectInsrumentation](https://developer.android.com/reference/android/test/InstrumentationTestCase.html#injectInsrumentation(android.app.Instrumentation))
///
/// Required features: "android-app-Instrumentation"
#[cfg(any(feature = "all", all(feature = "android-app-Instrumentation")))]
pub fn injectInsrumentation<'env>(&'env self, 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::java::lang::Throwable>> {
// class.path == "android/test/InstrumentationTestCase", java.flags == PUBLIC, .name == "injectInsrumentation", .descriptor == "(Landroid/app/Instrumentation;)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/InstrumentationTestCase\0", "injectInsrumentation\0", "(Landroid/app/Instrumentation;)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getInstrumentation](https://developer.android.com/reference/android/test/InstrumentationTestCase.html#getInstrumentation())
///
/// Required features: "android-app-Instrumentation"
#[cfg(any(feature = "all", all(feature = "android-app-Instrumentation")))]
pub fn getInstrumentation<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::app::Instrumentation>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/test/InstrumentationTestCase", java.flags == PUBLIC, .name == "getInstrumentation", .descriptor == "()Landroid/app/Instrumentation;"
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/InstrumentationTestCase\0", "getInstrumentation\0", "()Landroid/app/Instrumentation;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [launchActivity](https://developer.android.com/reference/android/test/InstrumentationTestCase.html#launchActivity(java.lang.String,%20java.lang.Class,%20android.os.Bundle))
///
/// Required features: "android-app-Activity", "android-os-Bundle", "java-lang-Class", "java-lang-String"
#[cfg(any(feature = "all", all(feature = "android-app-Activity", feature = "android-os-Bundle", feature = "java-lang-Class", feature = "java-lang-String")))]
pub fn launchActivity<'env>(&'env self, 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::java::lang::Class>>, arg2: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::os::Bundle>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::app::Activity>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/test/InstrumentationTestCase", java.flags == PUBLIC | FINAL, .name == "launchActivity", .descriptor == "(Ljava/lang/String;Ljava/lang/Class;Landroid/os/Bundle;)Landroid/app/Activity;"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1.into()), __jni_bindgen::AsJValue::as_jvalue(&arg2.into())];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/test/InstrumentationTestCase\0", "launchActivity\0", "(Ljava/lang/String;Ljava/lang/Class;Landroid/os/Bundle;)Landroid/app/Activity;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [launchActivityWithIntent](https://developer.android.com/reference/android/test/InstrumentationTestCase.html#launchActivityWithIntent(java.lang.String,%20java.lang.Class,%20android.content.Intent))
///
/// Required features: "android-app-Activity", "android-content-Intent", "java-lang-Class", "java-lang-String"
#[cfg(any(feature = "all", all(feature = "android-app-Activity", feature = "android-content-Intent", feature = "java-lang-Class", feature = "java-lang-String")))]
pub fn launchActivityWithIntent<'env>(&'env self, 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::java::lang::Class>>, arg2: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::content::Intent>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::app::Activity>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/test/InstrumentationTestCase", java.flags == PUBLIC | FINAL, .name == "launchActivityWithIntent", .descriptor == "(Ljava/lang/String;Ljava/lang/Class;Landroid/content/Intent;)Landroid/app/Activity;"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1.into()), __jni_bindgen::AsJValue::as_jvalue(&arg2.into())];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/test/InstrumentationTestCase\0", "launchActivityWithIntent\0", "(Ljava/lang/String;Ljava/lang/Class;Landroid/content/Intent;)Landroid/app/Activity;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [runTestOnUiThread](https://developer.android.com/reference/android/test/InstrumentationTestCase.html#runTestOnUiThread(java.lang.Runnable))
///
/// Required features: "java-lang-Runnable"
#[cfg(any(feature = "all", all(feature = "java-lang-Runnable")))]
pub fn runTestOnUiThread<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::Runnable>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/test/InstrumentationTestCase", java.flags == PUBLIC, .name == "runTestOnUiThread", .descriptor == "(Ljava/lang/Runnable;)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/InstrumentationTestCase\0", "runTestOnUiThread\0", "(Ljava/lang/Runnable;)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [sendKeys](https://developer.android.com/reference/android/test/InstrumentationTestCase.html#sendKeys(java.lang.String))
///
/// Required features: "java-lang-String"
#[cfg(any(feature = "all", all(feature = "java-lang-String")))]
pub fn sendKeys_String<'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 == "android/test/InstrumentationTestCase", java.flags == PUBLIC, .name == "sendKeys", .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("android/test/InstrumentationTestCase\0", "sendKeys\0", "(Ljava/lang/String;)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [sendKeys](https://developer.android.com/reference/android/test/InstrumentationTestCase.html#sendKeys(int...))
pub fn sendKeys_int_array<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env __jni_bindgen::IntArray>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/test/InstrumentationTestCase", java.flags == PUBLIC | VARARGS, .name == "sendKeys", .descriptor == "([I)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/InstrumentationTestCase\0", "sendKeys\0", "([I)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [sendRepeatedKeys](https://developer.android.com/reference/android/test/InstrumentationTestCase.html#sendRepeatedKeys(int...))
pub fn sendRepeatedKeys<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env __jni_bindgen::IntArray>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/test/InstrumentationTestCase", java.flags == PUBLIC | VARARGS, .name == "sendRepeatedKeys", .descriptor == "([I)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/InstrumentationTestCase\0", "sendRepeatedKeys\0", "([I)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
}
}