jni-android-sys 0.0.10

Autogenerated glue code for access Android JVM APIs from Rust
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
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
// WARNING:  This file was autogenerated by jni-bindgen.  Any changes to this file may be lost!!!


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

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

        /// [notify](https://developer.android.com/reference/android/app/NotificationManager.html#notify(java.lang.String,%20int,%20android.app.Notification))
        ///
        /// Required features: "android-app-Notification", "java-lang-String"
        #[cfg(any(feature = "all", all(feature = "android-app-Notification", feature = "java-lang-String")))]
        pub fn notify_String_int_Notification<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>, arg1: i32, arg2: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::app::Notification>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/app/NotificationManager", java.flags == PUBLIC, .name == "notify", .descriptor == "(Ljava/lang/String;ILandroid/app/Notification;)V"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1), __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/NotificationManager\0", "notify\0", "(Ljava/lang/String;ILandroid/app/Notification;)V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

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

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

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

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

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

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

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

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

        /// [getNotificationChannels](https://developer.android.com/reference/android/app/NotificationManager.html#getNotificationChannels())
        ///
        /// Required features: "java-util-List"
        #[cfg(any(feature = "all", all(feature = "java-util-List")))]
        pub fn getNotificationChannels<'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/NotificationManager", java.flags == PUBLIC, .name == "getNotificationChannels", .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/NotificationManager\0", "getNotificationChannels\0", "()Ljava/util/List;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [deleteNotificationChannel](https://developer.android.com/reference/android/app/NotificationManager.html#deleteNotificationChannel(java.lang.String))
        ///
        /// Required features: "java-lang-String"
        #[cfg(any(feature = "all", all(feature = "java-lang-String")))]
        pub fn deleteNotificationChannel<'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/app/NotificationManager", java.flags == PUBLIC, .name == "deleteNotificationChannel", .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/app/NotificationManager\0", "deleteNotificationChannel\0", "(Ljava/lang/String;)V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [getNotificationChannelGroups](https://developer.android.com/reference/android/app/NotificationManager.html#getNotificationChannelGroups())
        ///
        /// Required features: "java-util-List"
        #[cfg(any(feature = "all", all(feature = "java-util-List")))]
        pub fn getNotificationChannelGroups<'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/NotificationManager", java.flags == PUBLIC, .name == "getNotificationChannelGroups", .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/NotificationManager\0", "getNotificationChannelGroups\0", "()Ljava/util/List;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [deleteNotificationChannelGroup](https://developer.android.com/reference/android/app/NotificationManager.html#deleteNotificationChannelGroup(java.lang.String))
        ///
        /// Required features: "java-lang-String"
        #[cfg(any(feature = "all", all(feature = "java-lang-String")))]
        pub fn deleteNotificationChannelGroup<'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/app/NotificationManager", java.flags == PUBLIC, .name == "deleteNotificationChannelGroup", .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/app/NotificationManager\0", "deleteNotificationChannelGroup\0", "(Ljava/lang/String;)V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

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

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

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

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

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

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

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

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

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

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

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

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

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

        /// public static final [ACTION_INTERRUPTION_FILTER_CHANGED](https://developer.android.com/reference/android/app/NotificationManager.html#ACTION_INTERRUPTION_FILTER_CHANGED)
        pub const ACTION_INTERRUPTION_FILTER_CHANGED : &'static str = "android.app.action.INTERRUPTION_FILTER_CHANGED";

        /// public static final [ACTION_NOTIFICATION_POLICY_ACCESS_GRANTED_CHANGED](https://developer.android.com/reference/android/app/NotificationManager.html#ACTION_NOTIFICATION_POLICY_ACCESS_GRANTED_CHANGED)
        pub const ACTION_NOTIFICATION_POLICY_ACCESS_GRANTED_CHANGED : &'static str = "android.app.action.NOTIFICATION_POLICY_ACCESS_GRANTED_CHANGED";

        /// public static final [ACTION_NOTIFICATION_POLICY_CHANGED](https://developer.android.com/reference/android/app/NotificationManager.html#ACTION_NOTIFICATION_POLICY_CHANGED)
        pub const ACTION_NOTIFICATION_POLICY_CHANGED : &'static str = "android.app.action.NOTIFICATION_POLICY_CHANGED";

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

        /// public static final [IMPORTANCE_HIGH](https://developer.android.com/reference/android/app/NotificationManager.html#IMPORTANCE_HIGH)
        pub const IMPORTANCE_HIGH : i32 = 4;

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

        /// public static final [IMPORTANCE_MAX](https://developer.android.com/reference/android/app/NotificationManager.html#IMPORTANCE_MAX)
        pub const IMPORTANCE_MAX : i32 = 5;

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

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

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

        /// public static final [INTERRUPTION_FILTER_ALARMS](https://developer.android.com/reference/android/app/NotificationManager.html#INTERRUPTION_FILTER_ALARMS)
        pub const INTERRUPTION_FILTER_ALARMS : i32 = 4;

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

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

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

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