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
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
// WARNING:  This file was autogenerated by jni-bindgen.  Any changes to this file may be lost!!!


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

        /// [add](https://developer.android.com/reference/android/view/Menu.html#add(java,%2520lang,%2520CharSequence))
        ///
        /// Required features: "android-view-MenuItem", "java-lang-CharSequence"
        #[cfg(any(feature = "all", all(feature = "android-view-MenuItem", feature = "java-lang-CharSequence")))]
        pub fn add_char_sequence<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::CharSequence>>) -> __jni_bindgen::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::view::MenuItem>>> {
            // class.path == "android/view/Menu", java.flags == PUBLIC | ABSTRACT, .name == "add", .descriptor == "(Ljava/lang/CharSequence;)Landroid/view/MenuItem;"
            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/view/Menu\0", "add\0", "(Ljava/lang/CharSequence;)Landroid/view/MenuItem;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

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

        /// [add](https://developer.android.com/reference/android/view/Menu.html#add(int,%2520int,%2520int,%2520java,%2520lang,%2520CharSequence))
        ///
        /// Required features: "android-view-MenuItem", "java-lang-CharSequence"
        #[cfg(any(feature = "all", all(feature = "android-view-MenuItem", feature = "java-lang-CharSequence")))]
        pub fn add_int_int_int_char_sequence<'env>(&'env self, arg0: i32, arg1: i32, arg2: i32, arg3: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::CharSequence>>) -> __jni_bindgen::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::view::MenuItem>>> {
            // class.path == "android/view/Menu", java.flags == PUBLIC | ABSTRACT, .name == "add", .descriptor == "(IIILjava/lang/CharSequence;)Landroid/view/MenuItem;"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0), __jni_bindgen::AsJValue::as_jvalue(&arg1), __jni_bindgen::AsJValue::as_jvalue(&arg2), __jni_bindgen::AsJValue::as_jvalue(&arg3.into())];
                let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_method) = __jni_env.require_class_method("android/view/Menu\0", "add\0", "(IIILjava/lang/CharSequence;)Landroid/view/MenuItem;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [add](https://developer.android.com/reference/android/view/Menu.html#add(int,%2520int,%2520int,%2520int))
        ///
        /// Required features: "android-view-MenuItem"
        #[cfg(any(feature = "all", all(feature = "android-view-MenuItem")))]
        pub fn add_int_int_int_int<'env>(&'env self, arg0: i32, arg1: i32, arg2: i32, arg3: i32) -> __jni_bindgen::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::view::MenuItem>>> {
            // class.path == "android/view/Menu", java.flags == PUBLIC | ABSTRACT, .name == "add", .descriptor == "(IIII)Landroid/view/MenuItem;"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0), __jni_bindgen::AsJValue::as_jvalue(&arg1), __jni_bindgen::AsJValue::as_jvalue(&arg2), __jni_bindgen::AsJValue::as_jvalue(&arg3)];
                let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_method) = __jni_env.require_class_method("android/view/Menu\0", "add\0", "(IIII)Landroid/view/MenuItem;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [addSubMenu](https://developer.android.com/reference/android/view/Menu.html#addSubMenu(java,%2520lang,%2520CharSequence))
        ///
        /// Required features: "android-view-SubMenu", "java-lang-CharSequence"
        #[cfg(any(feature = "all", all(feature = "android-view-SubMenu", feature = "java-lang-CharSequence")))]
        pub fn add_sub_menu_char_sequence<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::CharSequence>>) -> __jni_bindgen::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::view::SubMenu>>> {
            // class.path == "android/view/Menu", java.flags == PUBLIC | ABSTRACT, .name == "addSubMenu", .descriptor == "(Ljava/lang/CharSequence;)Landroid/view/SubMenu;"
            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/view/Menu\0", "addSubMenu\0", "(Ljava/lang/CharSequence;)Landroid/view/SubMenu;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

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

        /// [addSubMenu](https://developer.android.com/reference/android/view/Menu.html#addSubMenu(int,%2520int,%2520int,%2520java,%2520lang,%2520CharSequence))
        ///
        /// Required features: "android-view-SubMenu", "java-lang-CharSequence"
        #[cfg(any(feature = "all", all(feature = "android-view-SubMenu", feature = "java-lang-CharSequence")))]
        pub fn add_sub_menu_int_int_int_char_sequence<'env>(&'env self, arg0: i32, arg1: i32, arg2: i32, arg3: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::CharSequence>>) -> __jni_bindgen::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::view::SubMenu>>> {
            // class.path == "android/view/Menu", java.flags == PUBLIC | ABSTRACT, .name == "addSubMenu", .descriptor == "(IIILjava/lang/CharSequence;)Landroid/view/SubMenu;"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0), __jni_bindgen::AsJValue::as_jvalue(&arg1), __jni_bindgen::AsJValue::as_jvalue(&arg2), __jni_bindgen::AsJValue::as_jvalue(&arg3.into())];
                let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_method) = __jni_env.require_class_method("android/view/Menu\0", "addSubMenu\0", "(IIILjava/lang/CharSequence;)Landroid/view/SubMenu;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [addSubMenu](https://developer.android.com/reference/android/view/Menu.html#addSubMenu(int,%2520int,%2520int,%2520int))
        ///
        /// Required features: "android-view-SubMenu"
        #[cfg(any(feature = "all", all(feature = "android-view-SubMenu")))]
        pub fn add_sub_menu_int_int_int_int<'env>(&'env self, arg0: i32, arg1: i32, arg2: i32, arg3: i32) -> __jni_bindgen::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::view::SubMenu>>> {
            // class.path == "android/view/Menu", java.flags == PUBLIC | ABSTRACT, .name == "addSubMenu", .descriptor == "(IIII)Landroid/view/SubMenu;"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0), __jni_bindgen::AsJValue::as_jvalue(&arg1), __jni_bindgen::AsJValue::as_jvalue(&arg2), __jni_bindgen::AsJValue::as_jvalue(&arg3)];
                let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_method) = __jni_env.require_class_method("android/view/Menu\0", "addSubMenu\0", "(IIII)Landroid/view/SubMenu;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        // // Not emitting: Passing in arrays of objects is not yet supported
        // // Not emitting: Passing in arrays of objects is not yet supported
        // /// addIntentOptions
        // ///
        // /// Required features: "android-content-ComponentName", "android-content-Intent", "android-view-MenuItem"
        // #[cfg(any(feature = "all", all(feature = "android-content-ComponentName", feature = "android-content-Intent", feature = "android-view-MenuItem")))]
        // pub fn add_intent_options<'env>(&'env self, arg0: i32, arg1: i32, arg2: i32, arg3: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::content::ComponentName>>, arg4: Array { levels: 1, inner: Class(Id("android/content/Intent")) }, arg5: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::content::Intent>>, arg6: i32, arg7: Array { levels: 1, inner: Class(Id("android/view/MenuItem")) }) -> __jni_bindgen::Result<i32> {
        //     // class.path == "android/view/Menu", java.flags == PUBLIC | ABSTRACT, .name == "addIntentOptions", .descriptor == "(IIILandroid/content/ComponentName;[Landroid/content/Intent;Landroid/content/Intent;I[Landroid/view/MenuItem;)I"
        //     unsafe {
        //         let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0), __jni_bindgen::AsJValue::as_jvalue(&arg1), __jni_bindgen::AsJValue::as_jvalue(&arg2), __jni_bindgen::AsJValue::as_jvalue(&arg3.into()), __jni_bindgen::AsJValue::as_jvalue(&arg4.into()), __jni_bindgen::AsJValue::as_jvalue(&arg5.into()), __jni_bindgen::AsJValue::as_jvalue(&arg6), __jni_bindgen::AsJValue::as_jvalue(&arg7.into())];
        //         let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
        //         let (__jni_class, __jni_method) = __jni_env.require_class_method("android/view/Menu\0", "addIntentOptions\0", "(IIILandroid/content/ComponentName;[Landroid/content/Intent;Landroid/content/Intent;I[Landroid/view/MenuItem;)I\0");
        //         __jni_env.call_int_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
        //     }
        // }

        /// [removeItem](https://developer.android.com/reference/android/view/Menu.html#removeItem(int))
        pub fn remove_item<'env>(&'env self, arg0: i32) -> __jni_bindgen::Result<()> {
            // class.path == "android/view/Menu", java.flags == PUBLIC | ABSTRACT, .name == "removeItem", .descriptor == "(I)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/view/Menu\0", "removeItem\0", "(I)V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [removeGroup](https://developer.android.com/reference/android/view/Menu.html#removeGroup(int))
        pub fn remove_group<'env>(&'env self, arg0: i32) -> __jni_bindgen::Result<()> {
            // class.path == "android/view/Menu", java.flags == PUBLIC | ABSTRACT, .name == "removeGroup", .descriptor == "(I)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/view/Menu\0", "removeGroup\0", "(I)V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [clear](https://developer.android.com/reference/android/view/Menu.html#clear())
        pub fn clear<'env>(&'env self) -> __jni_bindgen::Result<()> {
            // class.path == "android/view/Menu", java.flags == PUBLIC | ABSTRACT, .name == "clear", .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/view/Menu\0", "clear\0", "()V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [setGroupCheckable](https://developer.android.com/reference/android/view/Menu.html#setGroupCheckable(int,%2520boolean,%2520boolean))
        pub fn set_group_checkable<'env>(&'env self, arg0: i32, arg1: bool, arg2: bool) -> __jni_bindgen::Result<()> {
            // class.path == "android/view/Menu", java.flags == PUBLIC | ABSTRACT, .name == "setGroupCheckable", .descriptor == "(IZZ)V"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0), __jni_bindgen::AsJValue::as_jvalue(&arg1), __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/view/Menu\0", "setGroupCheckable\0", "(IZZ)V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [setGroupVisible](https://developer.android.com/reference/android/view/Menu.html#setGroupVisible(int,%2520boolean))
        pub fn set_group_visible<'env>(&'env self, arg0: i32, arg1: bool) -> __jni_bindgen::Result<()> {
            // class.path == "android/view/Menu", java.flags == PUBLIC | ABSTRACT, .name == "setGroupVisible", .descriptor == "(IZ)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/view/Menu\0", "setGroupVisible\0", "(IZ)V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [setGroupEnabled](https://developer.android.com/reference/android/view/Menu.html#setGroupEnabled(int,%2520boolean))
        pub fn set_group_enabled<'env>(&'env self, arg0: i32, arg1: bool) -> __jni_bindgen::Result<()> {
            // class.path == "android/view/Menu", java.flags == PUBLIC | ABSTRACT, .name == "setGroupEnabled", .descriptor == "(IZ)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/view/Menu\0", "setGroupEnabled\0", "(IZ)V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [hasVisibleItems](https://developer.android.com/reference/android/view/Menu.html#hasVisibleItems())
        pub fn has_visible_items<'env>(&'env self) -> __jni_bindgen::Result<bool> {
            // class.path == "android/view/Menu", java.flags == PUBLIC | ABSTRACT, .name == "hasVisibleItems", .descriptor == "()Z"
            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/view/Menu\0", "hasVisibleItems\0", "()Z\0");
                __jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

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

        /// [size](https://developer.android.com/reference/android/view/Menu.html#size())
        pub fn size<'env>(&'env self) -> __jni_bindgen::Result<i32> {
            // class.path == "android/view/Menu", java.flags == PUBLIC | ABSTRACT, .name == "size", .descriptor == "()I"
            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/view/Menu\0", "size\0", "()I\0");
                __jni_env.call_int_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

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

        /// [close](https://developer.android.com/reference/android/view/Menu.html#close())
        pub fn close<'env>(&'env self) -> __jni_bindgen::Result<()> {
            // class.path == "android/view/Menu", java.flags == PUBLIC | ABSTRACT, .name == "close", .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/view/Menu\0", "close\0", "()V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [performShortcut](https://developer.android.com/reference/android/view/Menu.html#performShortcut(int,%2520android,%2520view,%2520KeyEvent,%2520int))
        ///
        /// Required features: "android-view-KeyEvent"
        #[cfg(any(feature = "all", all(feature = "android-view-KeyEvent")))]
        pub fn perform_shortcut<'env>(&'env self, arg0: i32, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::view::KeyEvent>>, arg2: i32) -> __jni_bindgen::Result<bool> {
            // class.path == "android/view/Menu", java.flags == PUBLIC | ABSTRACT, .name == "performShortcut", .descriptor == "(ILandroid/view/KeyEvent;I)Z"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0), __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/view/Menu\0", "performShortcut\0", "(ILandroid/view/KeyEvent;I)Z\0");
                __jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [isShortcutKey](https://developer.android.com/reference/android/view/Menu.html#isShortcutKey(int,%2520android,%2520view,%2520KeyEvent))
        ///
        /// Required features: "android-view-KeyEvent"
        #[cfg(any(feature = "all", all(feature = "android-view-KeyEvent")))]
        pub fn is_shortcut_key<'env>(&'env self, arg0: i32, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::view::KeyEvent>>) -> __jni_bindgen::Result<bool> {
            // class.path == "android/view/Menu", java.flags == PUBLIC | ABSTRACT, .name == "isShortcutKey", .descriptor == "(ILandroid/view/KeyEvent;)Z"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0), __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/view/Menu\0", "isShortcutKey\0", "(ILandroid/view/KeyEvent;)Z\0");
                __jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [performIdentifierAction](https://developer.android.com/reference/android/view/Menu.html#performIdentifierAction(int,%2520int))
        pub fn perform_identifier_action<'env>(&'env self, arg0: i32, arg1: i32) -> __jni_bindgen::Result<bool> {
            // class.path == "android/view/Menu", java.flags == PUBLIC | ABSTRACT, .name == "performIdentifierAction", .descriptor == "(II)Z"
            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/view/Menu\0", "performIdentifierAction\0", "(II)Z\0");
                __jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [setQwertyMode](https://developer.android.com/reference/android/view/Menu.html#setQwertyMode(boolean))
        pub fn set_qwerty_mode<'env>(&'env self, arg0: bool) -> __jni_bindgen::Result<()> {
            // class.path == "android/view/Menu", java.flags == PUBLIC | ABSTRACT, .name == "setQwertyMode", .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/view/Menu\0", "setQwertyMode\0", "(Z)V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [setGroupDividerEnabled](https://developer.android.com/reference/android/view/Menu.html#setGroupDividerEnabled(boolean))
        pub fn set_group_divider_enabled<'env>(&'env self, arg0: bool) -> __jni_bindgen::Result<()> {
            // class.path == "android/view/Menu", java.flags == PUBLIC, .name == "setGroupDividerEnabled", .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/view/Menu\0", "setGroupDividerEnabled\0", "(Z)V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// public static final [CATEGORY_ALTERNATIVE](https://developer.android.com/reference/android/view/Menu.html#CATEGORY_ALTERNATIVE)
        pub const CATEGORY_ALTERNATIVE : i32 = 262144;

        /// public static final [CATEGORY_CONTAINER](https://developer.android.com/reference/android/view/Menu.html#CATEGORY_CONTAINER)
        pub const CATEGORY_CONTAINER : i32 = 65536;

        /// public static final [CATEGORY_SECONDARY](https://developer.android.com/reference/android/view/Menu.html#CATEGORY_SECONDARY)
        pub const CATEGORY_SECONDARY : i32 = 196608;

        /// public static final [CATEGORY_SYSTEM](https://developer.android.com/reference/android/view/Menu.html#CATEGORY_SYSTEM)
        pub const CATEGORY_SYSTEM : i32 = 131072;

        /// public static final [FIRST](https://developer.android.com/reference/android/view/Menu.html#FIRST)
        pub const FIRST : i32 = 1;

        /// public static final [FLAG_ALWAYS_PERFORM_CLOSE](https://developer.android.com/reference/android/view/Menu.html#FLAG_ALWAYS_PERFORM_CLOSE)
        pub const FLAG_ALWAYS_PERFORM_CLOSE : i32 = 2;

        /// public static final [FLAG_APPEND_TO_GROUP](https://developer.android.com/reference/android/view/Menu.html#FLAG_APPEND_TO_GROUP)
        pub const FLAG_APPEND_TO_GROUP : i32 = 1;

        /// public static final [FLAG_PERFORM_NO_CLOSE](https://developer.android.com/reference/android/view/Menu.html#FLAG_PERFORM_NO_CLOSE)
        pub const FLAG_PERFORM_NO_CLOSE : i32 = 1;

        /// public static final [NONE](https://developer.android.com/reference/android/view/Menu.html#NONE)
        pub const NONE : i32 = 0;

        /// public static final [SUPPORTED_MODIFIERS_MASK](https://developer.android.com/reference/android/view/Menu.html#SUPPORTED_MODIFIERS_MASK)
        pub const SUPPORTED_MODIFIERS_MASK : i32 = 69647;
    }
}