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


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

        /// [Long2](https://developer.android.com/reference/android/renderscript/Long2.html#Long2())
        pub fn new<'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::android::renderscript::Long2>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/renderscript/Long2", java.flags == PUBLIC, .name == "<init>", .descriptor == "()V"
            unsafe {
                let __jni_args = [];
                let (__jni_class, __jni_method) = __jni_env.require_class_method("android/renderscript/Long2\0", "<init>\0", "()V\0");
                __jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }

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

        /// **get** public [x](https://developer.android.com/reference/android/renderscript/Long2.html#x)
        pub fn x<'env>(&'env self) -> i64 {
            unsafe {
                let env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_field) = env.require_class_field("android/renderscript/Long2\0", "x\0", "J\0");
                env.get_long_field(self.0.object, __jni_field)
            }
        }

        /// **set** public [x](https://developer.android.com/reference/android/renderscript/Long2.html#x)
        pub fn set_x<'env>(&'env self, value: i64) {
            unsafe {
                let env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_field) = env.require_class_field("android/renderscript/Long2\0", "x\0", "J\0");
                env.set_long_field(self.0.object, __jni_field, value)
            }
        }

        /// **get** public [y](https://developer.android.com/reference/android/renderscript/Long2.html#y)
        pub fn y<'env>(&'env self) -> i64 {
            unsafe {
                let env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_field) = env.require_class_field("android/renderscript/Long2\0", "y\0", "J\0");
                env.get_long_field(self.0.object, __jni_field)
            }
        }

        /// **set** public [y](https://developer.android.com/reference/android/renderscript/Long2.html#y)
        pub fn set_y<'env>(&'env self, value: i64) {
            unsafe {
                let env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_field) = env.require_class_field("android/renderscript/Long2\0", "y\0", "J\0");
                env.set_long_field(self.0.object, __jni_field, value)
            }
        }
    }
}