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


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

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

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

        /// public static final [CONTENTS_FILE_DESCRIPTOR](https://developer.android.com/reference/android/os/Parcelable.html#CONTENTS_FILE_DESCRIPTOR)
        pub const CONTENTS_FILE_DESCRIPTOR : i32 = 1;

        /// public static final [PARCELABLE_WRITE_RETURN_VALUE](https://developer.android.com/reference/android/os/Parcelable.html#PARCELABLE_WRITE_RETURN_VALUE)
        pub const PARCELABLE_WRITE_RETURN_VALUE : i32 = 1;
    }
}