1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
// 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())
}
}
/// [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_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_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_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_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_VALUE_RESULT_START](https://developer.android.com/reference/android/test/InstrumentationTestRunner.html#REPORT_VALUE_RESULT_START)
pub const REPORT_VALUE_RESULT_START : i32 = 1;
/// 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_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_KEY_STACK](https://developer.android.com/reference/android/test/InstrumentationTestRunner.html#REPORT_KEY_STACK)
pub const REPORT_KEY_STACK : &'static str = "stack";
}
}