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


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

        // // Not emitting: Failed to mangle method name
        // // Not emitting: Non-public method
        // // Not emitting: Static class constructor - never needs to be called by Rust.
        // /// <clinit>
        // fn <clinit><'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::Result<()> {
        //     // class.path == "java/io/ObjectStreamConstants", java.flags == STATIC, .name == "<clinit>", .descriptor == "()V"
        //     unsafe {
        //         let __jni_args = [];
        //         let (__jni_class, __jni_method) = __jni_env.require_class_static_method("java/io/ObjectStreamConstants\0", "<clinit>\0", "()V\0");
        //         __jni_env.call_static_void_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
        //     }
        // }

        /// public static final [PROTOCOL_VERSION_1](https://developer.android.com/reference/java/io/ObjectStreamConstants.html#PROTOCOL_VERSION_1)
        pub const PROTOCOL_VERSION_1 : i32 = 1;

        /// public static final [PROTOCOL_VERSION_2](https://developer.android.com/reference/java/io/ObjectStreamConstants.html#PROTOCOL_VERSION_2)
        pub const PROTOCOL_VERSION_2 : i32 = 2;

        /// public static final [SC_BLOCK_DATA](https://developer.android.com/reference/java/io/ObjectStreamConstants.html#SC_BLOCK_DATA)
        pub const SC_BLOCK_DATA : i8 = 8;

        /// public static final [SC_ENUM](https://developer.android.com/reference/java/io/ObjectStreamConstants.html#SC_ENUM)
        pub const SC_ENUM : i8 = 16;

        /// public static final [SC_EXTERNALIZABLE](https://developer.android.com/reference/java/io/ObjectStreamConstants.html#SC_EXTERNALIZABLE)
        pub const SC_EXTERNALIZABLE : i8 = 4;

        /// public static final [SC_SERIALIZABLE](https://developer.android.com/reference/java/io/ObjectStreamConstants.html#SC_SERIALIZABLE)
        pub const SC_SERIALIZABLE : i8 = 2;

        /// public static final [SC_WRITE_METHOD](https://developer.android.com/reference/java/io/ObjectStreamConstants.html#SC_WRITE_METHOD)
        pub const SC_WRITE_METHOD : i8 = 1;

        /// public static final [STREAM_MAGIC](https://developer.android.com/reference/java/io/ObjectStreamConstants.html#STREAM_MAGIC)
        pub const STREAM_MAGIC : i16 = -21267;

        /// public static final [STREAM_VERSION](https://developer.android.com/reference/java/io/ObjectStreamConstants.html#STREAM_VERSION)
        pub const STREAM_VERSION : i16 = 5;

        // // Not emitting: Haven't yet implemented object field types
        // /// **get** public static final [SUBCLASS_IMPLEMENTATION_PERMISSION](https://developer.android.com/reference/java/io/ObjectStreamConstants.html#SUBCLASS_IMPLEMENTATION_PERMISSION)
        // ///
        // /// Required feature: java-io-SerializablePermission
        // #[cfg(any(feature = "all", feature = "java-io-SerializablePermission"))]
        // pub fn subclass_implementation_permission<'env>(env: &'env __jni_bindgen::Env) -> java/io/SerializablePermission {
        //     unsafe {
        //         let (class, field) = env.require_class_static_field("java/io/ObjectStreamConstants\0", "SUBCLASS_IMPLEMENTATION_PERMISSION\0", "Ljava/io/SerializablePermission;\0");
        //         env.get_static_object_field(class, field)
        //     }
        // }

        // // Not emitting: Haven't yet implemented object field types
        // /// **get** public static final [SUBSTITUTION_PERMISSION](https://developer.android.com/reference/java/io/ObjectStreamConstants.html#SUBSTITUTION_PERMISSION)
        // ///
        // /// Required feature: java-io-SerializablePermission
        // #[cfg(any(feature = "all", feature = "java-io-SerializablePermission"))]
        // pub fn substitution_permission<'env>(env: &'env __jni_bindgen::Env) -> java/io/SerializablePermission {
        //     unsafe {
        //         let (class, field) = env.require_class_static_field("java/io/ObjectStreamConstants\0", "SUBSTITUTION_PERMISSION\0", "Ljava/io/SerializablePermission;\0");
        //         env.get_static_object_field(class, field)
        //     }
        // }

        /// public static final [TC_ARRAY](https://developer.android.com/reference/java/io/ObjectStreamConstants.html#TC_ARRAY)
        pub const TC_ARRAY : i8 = 117;

        /// public static final [TC_BASE](https://developer.android.com/reference/java/io/ObjectStreamConstants.html#TC_BASE)
        pub const TC_BASE : i8 = 112;

        /// public static final [TC_BLOCKDATA](https://developer.android.com/reference/java/io/ObjectStreamConstants.html#TC_BLOCKDATA)
        pub const TC_BLOCKDATA : i8 = 119;

        /// public static final [TC_BLOCKDATALONG](https://developer.android.com/reference/java/io/ObjectStreamConstants.html#TC_BLOCKDATALONG)
        pub const TC_BLOCKDATALONG : i8 = 122;

        /// public static final [TC_CLASS](https://developer.android.com/reference/java/io/ObjectStreamConstants.html#TC_CLASS)
        pub const TC_CLASS : i8 = 118;

        /// public static final [TC_CLASSDESC](https://developer.android.com/reference/java/io/ObjectStreamConstants.html#TC_CLASSDESC)
        pub const TC_CLASSDESC : i8 = 114;

        /// public static final [TC_ENDBLOCKDATA](https://developer.android.com/reference/java/io/ObjectStreamConstants.html#TC_ENDBLOCKDATA)
        pub const TC_ENDBLOCKDATA : i8 = 120;

        /// public static final [TC_ENUM](https://developer.android.com/reference/java/io/ObjectStreamConstants.html#TC_ENUM)
        pub const TC_ENUM : i8 = 126;

        /// public static final [TC_EXCEPTION](https://developer.android.com/reference/java/io/ObjectStreamConstants.html#TC_EXCEPTION)
        pub const TC_EXCEPTION : i8 = 123;

        /// public static final [TC_LONGSTRING](https://developer.android.com/reference/java/io/ObjectStreamConstants.html#TC_LONGSTRING)
        pub const TC_LONGSTRING : i8 = 124;

        /// public static final [TC_MAX](https://developer.android.com/reference/java/io/ObjectStreamConstants.html#TC_MAX)
        pub const TC_MAX : i8 = 126;

        /// public static final [TC_NULL](https://developer.android.com/reference/java/io/ObjectStreamConstants.html#TC_NULL)
        pub const TC_NULL : i8 = 112;

        /// public static final [TC_OBJECT](https://developer.android.com/reference/java/io/ObjectStreamConstants.html#TC_OBJECT)
        pub const TC_OBJECT : i8 = 115;

        /// public static final [TC_PROXYCLASSDESC](https://developer.android.com/reference/java/io/ObjectStreamConstants.html#TC_PROXYCLASSDESC)
        pub const TC_PROXYCLASSDESC : i8 = 125;

        /// public static final [TC_REFERENCE](https://developer.android.com/reference/java/io/ObjectStreamConstants.html#TC_REFERENCE)
        pub const TC_REFERENCE : i8 = 113;

        /// public static final [TC_RESET](https://developer.android.com/reference/java/io/ObjectStreamConstants.html#TC_RESET)
        pub const TC_RESET : i8 = 121;

        /// public static final [TC_STRING](https://developer.android.com/reference/java/io/ObjectStreamConstants.html#TC_STRING)
        pub const TC_STRING : i8 = 116;

        /// public static final [baseWireHandle](https://developer.android.com/reference/java/io/ObjectStreamConstants.html#baseWireHandle)
        pub const BASE_WIRE_HANDLE : i32 = 8257536;
    }
}