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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
// WARNING:  This file was autogenerated by jni-bindgen.  Any changes to this file may be lost!!!


#[cfg(any(feature = "all", feature = "android-app-UiAutomation"))]
__jni_bindgen! {
    /// public final class [UiAutomation](https://developer.android.com/reference/android/app/UiAutomation.html)
    ///
    /// Required feature: "android-app-UiAutomation"
    public final class UiAutomation ("android/app/UiAutomation") extends crate::java::lang::Object {

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

        /// [performGlobalAction](https://developer.android.com/reference/android/app/UiAutomation.html#performGlobalAction(int))
        pub fn performGlobalAction<'env>(&'env self, arg0: i32) -> __jni_bindgen::std::result::Result<bool, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/app/UiAutomation", java.flags == PUBLIC, .name == "performGlobalAction", .descriptor == "(I)Z"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0)];
                let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_method) = __jni_env.require_class_method("android/app/UiAutomation\0", "performGlobalAction\0", "(I)Z\0");
                __jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [findFocus](https://developer.android.com/reference/android/app/UiAutomation.html#findFocus(int))
        ///
        /// Required features: "android-view-accessibility-AccessibilityNodeInfo"
        #[cfg(any(feature = "all", all(feature = "android-view-accessibility-AccessibilityNodeInfo")))]
        pub fn findFocus<'env>(&'env self, arg0: i32) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::view::accessibility::AccessibilityNodeInfo>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/app/UiAutomation", java.flags == PUBLIC, .name == "findFocus", .descriptor == "(I)Landroid/view/accessibility/AccessibilityNodeInfo;"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0)];
                let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_method) = __jni_env.require_class_method("android/app/UiAutomation\0", "findFocus\0", "(I)Landroid/view/accessibility/AccessibilityNodeInfo;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

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

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

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

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

        /// [injectInputEvent](https://developer.android.com/reference/android/app/UiAutomation.html#injectInputEvent(android.view.InputEvent,%20boolean))
        ///
        /// Required features: "android-view-InputEvent"
        #[cfg(any(feature = "all", all(feature = "android-view-InputEvent")))]
        pub fn injectInputEvent<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::view::InputEvent>>, arg1: bool) -> __jni_bindgen::std::result::Result<bool, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/app/UiAutomation", java.flags == PUBLIC, .name == "injectInputEvent", .descriptor == "(Landroid/view/InputEvent;Z)Z"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1)];
                let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_method) = __jni_env.require_class_method("android/app/UiAutomation\0", "injectInputEvent\0", "(Landroid/view/InputEvent;Z)Z\0");
                __jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [setRotation](https://developer.android.com/reference/android/app/UiAutomation.html#setRotation(int))
        pub fn setRotation<'env>(&'env self, arg0: i32) -> __jni_bindgen::std::result::Result<bool, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/app/UiAutomation", java.flags == PUBLIC, .name == "setRotation", .descriptor == "(I)Z"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0)];
                let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_method) = __jni_env.require_class_method("android/app/UiAutomation\0", "setRotation\0", "(I)Z\0");
                __jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [executeAndWaitForEvent](https://developer.android.com/reference/android/app/UiAutomation.html#executeAndWaitForEvent(java.lang.Runnable,%20android.app.UiAutomation.AccessibilityEventFilter,%20long))
        ///
        /// Required features: "android-app-UiAutomation_AccessibilityEventFilter", "android-view-accessibility-AccessibilityEvent", "java-lang-Runnable"
        #[cfg(any(feature = "all", all(feature = "android-app-UiAutomation_AccessibilityEventFilter", feature = "android-view-accessibility-AccessibilityEvent", feature = "java-lang-Runnable")))]
        pub fn executeAndWaitForEvent<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::Runnable>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::app::UiAutomation_AccessibilityEventFilter>>, arg2: i64) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::view::accessibility::AccessibilityEvent>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/app/UiAutomation", java.flags == PUBLIC, .name == "executeAndWaitForEvent", .descriptor == "(Ljava/lang/Runnable;Landroid/app/UiAutomation$AccessibilityEventFilter;J)Landroid/view/accessibility/AccessibilityEvent;"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1.into()), __jni_bindgen::AsJValue::as_jvalue(&arg2)];
                let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_method) = __jni_env.require_class_method("android/app/UiAutomation\0", "executeAndWaitForEvent\0", "(Ljava/lang/Runnable;Landroid/app/UiAutomation$AccessibilityEventFilter;J)Landroid/view/accessibility/AccessibilityEvent;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [waitForIdle](https://developer.android.com/reference/android/app/UiAutomation.html#waitForIdle(long,%20long))
        pub fn waitForIdle<'env>(&'env self, arg0: i64, arg1: i64) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/app/UiAutomation", java.flags == PUBLIC, .name == "waitForIdle", .descriptor == "(JJ)V"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0), __jni_bindgen::AsJValue::as_jvalue(&arg1)];
                let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_method) = __jni_env.require_class_method("android/app/UiAutomation\0", "waitForIdle\0", "(JJ)V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

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

        /// [setRunAsMonkey](https://developer.android.com/reference/android/app/UiAutomation.html#setRunAsMonkey(boolean))
        pub fn setRunAsMonkey<'env>(&'env self, arg0: bool) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/app/UiAutomation", java.flags == PUBLIC, .name == "setRunAsMonkey", .descriptor == "(Z)V"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0)];
                let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_method) = __jni_env.require_class_method("android/app/UiAutomation\0", "setRunAsMonkey\0", "(Z)V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [clearWindowContentFrameStats](https://developer.android.com/reference/android/app/UiAutomation.html#clearWindowContentFrameStats(int))
        pub fn clearWindowContentFrameStats<'env>(&'env self, arg0: i32) -> __jni_bindgen::std::result::Result<bool, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/app/UiAutomation", java.flags == PUBLIC, .name == "clearWindowContentFrameStats", .descriptor == "(I)Z"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0)];
                let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_method) = __jni_env.require_class_method("android/app/UiAutomation\0", "clearWindowContentFrameStats\0", "(I)Z\0");
                __jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [getWindowContentFrameStats](https://developer.android.com/reference/android/app/UiAutomation.html#getWindowContentFrameStats(int))
        ///
        /// Required features: "android-view-WindowContentFrameStats"
        #[cfg(any(feature = "all", all(feature = "android-view-WindowContentFrameStats")))]
        pub fn getWindowContentFrameStats<'env>(&'env self, arg0: i32) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::view::WindowContentFrameStats>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/app/UiAutomation", java.flags == PUBLIC, .name == "getWindowContentFrameStats", .descriptor == "(I)Landroid/view/WindowContentFrameStats;"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0)];
                let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_method) = __jni_env.require_class_method("android/app/UiAutomation\0", "getWindowContentFrameStats\0", "(I)Landroid/view/WindowContentFrameStats;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

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

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

        /// [grantRuntimePermission](https://developer.android.com/reference/android/app/UiAutomation.html#grantRuntimePermission(java.lang.String,%20java.lang.String))
        ///
        /// Required features: "java-lang-String"
        #[cfg(any(feature = "all", all(feature = "java-lang-String")))]
        pub fn grantRuntimePermission<'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::String>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/app/UiAutomation", java.flags == PUBLIC, .name == "grantRuntimePermission", .descriptor == "(Ljava/lang/String;Ljava/lang/String;)V"
            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/app/UiAutomation\0", "grantRuntimePermission\0", "(Ljava/lang/String;Ljava/lang/String;)V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

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

        /// [revokeRuntimePermission](https://developer.android.com/reference/android/app/UiAutomation.html#revokeRuntimePermission(java.lang.String,%20java.lang.String))
        ///
        /// Required features: "java-lang-String"
        #[cfg(any(feature = "all", all(feature = "java-lang-String")))]
        pub fn revokeRuntimePermission<'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::String>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/app/UiAutomation", java.flags == PUBLIC, .name == "revokeRuntimePermission", .descriptor == "(Ljava/lang/String;Ljava/lang/String;)V"
            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/app/UiAutomation\0", "revokeRuntimePermission\0", "(Ljava/lang/String;Ljava/lang/String;)V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

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

        /// [executeShellCommand](https://developer.android.com/reference/android/app/UiAutomation.html#executeShellCommand(java.lang.String))
        ///
        /// Required features: "android-os-ParcelFileDescriptor", "java-lang-String"
        #[cfg(any(feature = "all", all(feature = "android-os-ParcelFileDescriptor", feature = "java-lang-String")))]
        pub fn executeShellCommand<'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::android::os::ParcelFileDescriptor>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/app/UiAutomation", java.flags == PUBLIC, .name == "executeShellCommand", .descriptor == "(Ljava/lang/String;)Landroid/os/ParcelFileDescriptor;"
            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/app/UiAutomation\0", "executeShellCommand\0", "(Ljava/lang/String;)Landroid/os/ParcelFileDescriptor;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// public static final [FLAG_DONT_SUPPRESS_ACCESSIBILITY_SERVICES](https://developer.android.com/reference/android/app/UiAutomation.html#FLAG_DONT_SUPPRESS_ACCESSIBILITY_SERVICES)
        pub const FLAG_DONT_SUPPRESS_ACCESSIBILITY_SERVICES : i32 = 1;

        /// public static final [ROTATION_FREEZE_0](https://developer.android.com/reference/android/app/UiAutomation.html#ROTATION_FREEZE_0)
        pub const ROTATION_FREEZE_0 : i32 = 0;

        /// public static final [ROTATION_FREEZE_180](https://developer.android.com/reference/android/app/UiAutomation.html#ROTATION_FREEZE_180)
        pub const ROTATION_FREEZE_180 : i32 = 2;

        /// public static final [ROTATION_FREEZE_270](https://developer.android.com/reference/android/app/UiAutomation.html#ROTATION_FREEZE_270)
        pub const ROTATION_FREEZE_270 : i32 = 3;

        /// public static final [ROTATION_FREEZE_90](https://developer.android.com/reference/android/app/UiAutomation.html#ROTATION_FREEZE_90)
        pub const ROTATION_FREEZE_90 : i32 = 1;

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

        /// public static final [ROTATION_UNFREEZE](https://developer.android.com/reference/android/app/UiAutomation.html#ROTATION_UNFREEZE)
        pub const ROTATION_UNFREEZE : i32 = -2;
    }
}