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
// WARNING:  This file was autogenerated by jni-bindgen.  Any changes to this file may be lost!!!


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

        // // Not emitting: Non-public method
        // /// <init>
        // fn new<'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::Result<__jni_bindgen::Local<'env, crate::android::view::Display>> {
        //     // class.path == "android/view/Display", java.flags == (empty), .name == "<init>", .descriptor == "()V"
        //     unsafe {
        //         let __jni_args = [];
        //         let (__jni_class, __jni_method) = __jni_env.require_class_method("android/view/Display\0", "<init>\0", "()V\0");
        //         __jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
        //     }
        // }

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

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

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

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

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

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

        /// [getCurrentSizeRange](https://developer.android.com/reference/android/view/Display.html#getCurrentSizeRange(android,%2520graphics,%2520Point,%2520android,%2520graphics,%2520Point))
        ///
        /// Required features: "android-graphics-Point"
        #[cfg(any(feature = "all", all(feature = "android-graphics-Point")))]
        pub fn get_current_size_range<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::graphics::Point>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::graphics::Point>>) -> __jni_bindgen::Result<()> {
            // class.path == "android/view/Display", java.flags == PUBLIC, .name == "getCurrentSizeRange", .descriptor == "(Landroid/graphics/Point;Landroid/graphics/Point;)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/view/Display\0", "getCurrentSizeRange\0", "(Landroid/graphics/Point;Landroid/graphics/Point;)V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

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

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

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

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

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

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

        /// [getSupportedRefreshRates](https://developer.android.com/reference/android/view/Display.html#getSupportedRefreshRates())
        #[deprecated] pub fn get_supported_refresh_rates<'env>(&'env self) -> __jni_bindgen::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, __jni_bindgen::FloatArray  >>> {
            // class.path == "android/view/Display", java.flags == PUBLIC, .name == "getSupportedRefreshRates", .descriptor == "()[F"
            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/Display\0", "getSupportedRefreshRates\0", "()[F\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

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

        // // Not emitting: Returning arrays of objects not yet supported
        // /// [getSupportedModes](https://developer.android.com/reference/android/view/Display.html#getSupportedModes())
        // ///
        // /// Required features: "android-view-Display_Mode"
        // #[cfg(any(feature = "all", all(feature = "android-view-Display_Mode")))]
        // pub fn get_supported_modes<'env>(&'env self) -> __jni_bindgen::Result<Array { levels: 1, inner: Class(Id("android/view/Display$Mode")) }> {
        //     // class.path == "android/view/Display", java.flags == PUBLIC, .name == "getSupportedModes", .descriptor == "()[Landroid/view/Display$Mode;"
        //     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/Display\0", "getSupportedModes\0", "()[Landroid/view/Display$Mode;\0");
        //         __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
        //     }
        // }

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

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

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

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

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

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

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

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

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

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

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

        /// public static final [FLAG_PRESENTATION](https://developer.android.com/reference/android/view/Display.html#FLAG_PRESENTATION)
        pub const FLAG_PRESENTATION : i32 = 8;

        /// public static final [FLAG_PRIVATE](https://developer.android.com/reference/android/view/Display.html#FLAG_PRIVATE)
        pub const FLAG_PRIVATE : i32 = 4;

        /// public static final [FLAG_ROUND](https://developer.android.com/reference/android/view/Display.html#FLAG_ROUND)
        pub const FLAG_ROUND : i32 = 16;

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

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

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

        /// public static final [STATE_DOZE](https://developer.android.com/reference/android/view/Display.html#STATE_DOZE)
        pub const STATE_DOZE : i32 = 3;

        /// public static final [STATE_DOZE_SUSPEND](https://developer.android.com/reference/android/view/Display.html#STATE_DOZE_SUSPEND)
        pub const STATE_DOZE_SUSPEND : i32 = 4;

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

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

        /// public static final [STATE_ON_SUSPEND](https://developer.android.com/reference/android/view/Display.html#STATE_ON_SUSPEND)
        pub const STATE_ON_SUSPEND : i32 = 6;

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

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