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


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

        // // Not emitting: Non-public method
        // /// <init>
        // fn new<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: i32, arg1: i32, arg2: f32, arg3: f32, arg4: f32, arg5: f32, arg6: f32) -> __jni_bindgen::Result<__jni_bindgen::Local<'env, crate::android::view::InputDevice_MotionRange>> {
        //     // class.path == "android/view/InputDevice$MotionRange", java.flags == (empty), .name == "<init>", .descriptor == "(IIFFFFF)V"
        //     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), __jni_bindgen::AsJValue::as_jvalue(&arg4), __jni_bindgen::AsJValue::as_jvalue(&arg5), __jni_bindgen::AsJValue::as_jvalue(&arg6)];
        //         let (__jni_class, __jni_method) = __jni_env.require_class_method("android/view/InputDevice$MotionRange\0", "<init>\0", "(IIFFFFF)V\0");
        //         __jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
        //     }
        // }

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

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

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

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

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

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

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

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

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