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
// WARNING: This file was autogenerated by jni-bindgen. Any changes to this file may be lost!!!
#[cfg(any(feature = "all", feature = "android-mtp-MtpEvent"))]
__jni_bindgen! {
/// public class [MtpEvent](https://developer.android.com/reference/android/mtp/MtpEvent.html)
///
/// Required feature: "android-mtp-MtpEvent"
public class MtpEvent ("android/mtp/MtpEvent") extends crate::java::lang::Object {
/// [getEventCode](https://developer.android.com/reference/android/mtp/MtpEvent.html#getEventCode())
pub fn getEventCode<'env>(&'env self) -> __jni_bindgen::std::result::Result<i32, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/mtp/MtpEvent", java.flags == PUBLIC, .name == "getEventCode", .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/mtp/MtpEvent\0", "getEventCode\0", "()I\0");
__jni_env.call_int_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getParameter1](https://developer.android.com/reference/android/mtp/MtpEvent.html#getParameter1())
pub fn getParameter1<'env>(&'env self) -> __jni_bindgen::std::result::Result<i32, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/mtp/MtpEvent", java.flags == PUBLIC, .name == "getParameter1", .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/mtp/MtpEvent\0", "getParameter1\0", "()I\0");
__jni_env.call_int_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getParameter2](https://developer.android.com/reference/android/mtp/MtpEvent.html#getParameter2())
pub fn getParameter2<'env>(&'env self) -> __jni_bindgen::std::result::Result<i32, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/mtp/MtpEvent", java.flags == PUBLIC, .name == "getParameter2", .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/mtp/MtpEvent\0", "getParameter2\0", "()I\0");
__jni_env.call_int_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getParameter3](https://developer.android.com/reference/android/mtp/MtpEvent.html#getParameter3())
pub fn getParameter3<'env>(&'env self) -> __jni_bindgen::std::result::Result<i32, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/mtp/MtpEvent", java.flags == PUBLIC, .name == "getParameter3", .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/mtp/MtpEvent\0", "getParameter3\0", "()I\0");
__jni_env.call_int_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getObjectHandle](https://developer.android.com/reference/android/mtp/MtpEvent.html#getObjectHandle())
pub fn getObjectHandle<'env>(&'env self) -> __jni_bindgen::std::result::Result<i32, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/mtp/MtpEvent", java.flags == PUBLIC, .name == "getObjectHandle", .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/mtp/MtpEvent\0", "getObjectHandle\0", "()I\0");
__jni_env.call_int_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getStorageId](https://developer.android.com/reference/android/mtp/MtpEvent.html#getStorageId())
pub fn getStorageId<'env>(&'env self) -> __jni_bindgen::std::result::Result<i32, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/mtp/MtpEvent", java.flags == PUBLIC, .name == "getStorageId", .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/mtp/MtpEvent\0", "getStorageId\0", "()I\0");
__jni_env.call_int_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getDevicePropCode](https://developer.android.com/reference/android/mtp/MtpEvent.html#getDevicePropCode())
pub fn getDevicePropCode<'env>(&'env self) -> __jni_bindgen::std::result::Result<i32, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/mtp/MtpEvent", java.flags == PUBLIC, .name == "getDevicePropCode", .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/mtp/MtpEvent\0", "getDevicePropCode\0", "()I\0");
__jni_env.call_int_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getTransactionId](https://developer.android.com/reference/android/mtp/MtpEvent.html#getTransactionId())
pub fn getTransactionId<'env>(&'env self) -> __jni_bindgen::std::result::Result<i32, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/mtp/MtpEvent", java.flags == PUBLIC, .name == "getTransactionId", .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/mtp/MtpEvent\0", "getTransactionId\0", "()I\0");
__jni_env.call_int_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getObjectPropCode](https://developer.android.com/reference/android/mtp/MtpEvent.html#getObjectPropCode())
pub fn getObjectPropCode<'env>(&'env self) -> __jni_bindgen::std::result::Result<i32, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/mtp/MtpEvent", java.flags == PUBLIC, .name == "getObjectPropCode", .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/mtp/MtpEvent\0", "getObjectPropCode\0", "()I\0");
__jni_env.call_int_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getObjectFormatCode](https://developer.android.com/reference/android/mtp/MtpEvent.html#getObjectFormatCode())
pub fn getObjectFormatCode<'env>(&'env self) -> __jni_bindgen::std::result::Result<i32, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/mtp/MtpEvent", java.flags == PUBLIC, .name == "getObjectFormatCode", .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/mtp/MtpEvent\0", "getObjectFormatCode\0", "()I\0");
__jni_env.call_int_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// public static final [EVENT_CANCEL_TRANSACTION](https://developer.android.com/reference/android/mtp/MtpEvent.html#EVENT_CANCEL_TRANSACTION)
pub const EVENT_CANCEL_TRANSACTION : i32 = 16385;
/// public static final [EVENT_CAPTURE_COMPLETE](https://developer.android.com/reference/android/mtp/MtpEvent.html#EVENT_CAPTURE_COMPLETE)
pub const EVENT_CAPTURE_COMPLETE : i32 = 16397;
/// public static final [EVENT_DEVICE_INFO_CHANGED](https://developer.android.com/reference/android/mtp/MtpEvent.html#EVENT_DEVICE_INFO_CHANGED)
pub const EVENT_DEVICE_INFO_CHANGED : i32 = 16392;
/// public static final [EVENT_DEVICE_PROP_CHANGED](https://developer.android.com/reference/android/mtp/MtpEvent.html#EVENT_DEVICE_PROP_CHANGED)
pub const EVENT_DEVICE_PROP_CHANGED : i32 = 16390;
/// public static final [EVENT_DEVICE_RESET](https://developer.android.com/reference/android/mtp/MtpEvent.html#EVENT_DEVICE_RESET)
pub const EVENT_DEVICE_RESET : i32 = 16395;
/// public static final [EVENT_OBJECT_ADDED](https://developer.android.com/reference/android/mtp/MtpEvent.html#EVENT_OBJECT_ADDED)
pub const EVENT_OBJECT_ADDED : i32 = 16386;
/// public static final [EVENT_OBJECT_INFO_CHANGED](https://developer.android.com/reference/android/mtp/MtpEvent.html#EVENT_OBJECT_INFO_CHANGED)
pub const EVENT_OBJECT_INFO_CHANGED : i32 = 16391;
/// public static final [EVENT_OBJECT_PROP_CHANGED](https://developer.android.com/reference/android/mtp/MtpEvent.html#EVENT_OBJECT_PROP_CHANGED)
pub const EVENT_OBJECT_PROP_CHANGED : i32 = 51201;
/// public static final [EVENT_OBJECT_PROP_DESC_CHANGED](https://developer.android.com/reference/android/mtp/MtpEvent.html#EVENT_OBJECT_PROP_DESC_CHANGED)
pub const EVENT_OBJECT_PROP_DESC_CHANGED : i32 = 51202;
/// public static final [EVENT_OBJECT_REFERENCES_CHANGED](https://developer.android.com/reference/android/mtp/MtpEvent.html#EVENT_OBJECT_REFERENCES_CHANGED)
pub const EVENT_OBJECT_REFERENCES_CHANGED : i32 = 51203;
/// public static final [EVENT_OBJECT_REMOVED](https://developer.android.com/reference/android/mtp/MtpEvent.html#EVENT_OBJECT_REMOVED)
pub const EVENT_OBJECT_REMOVED : i32 = 16387;
/// public static final [EVENT_REQUEST_OBJECT_TRANSFER](https://developer.android.com/reference/android/mtp/MtpEvent.html#EVENT_REQUEST_OBJECT_TRANSFER)
pub const EVENT_REQUEST_OBJECT_TRANSFER : i32 = 16393;
/// public static final [EVENT_STORAGE_INFO_CHANGED](https://developer.android.com/reference/android/mtp/MtpEvent.html#EVENT_STORAGE_INFO_CHANGED)
pub const EVENT_STORAGE_INFO_CHANGED : i32 = 16396;
/// public static final [EVENT_STORE_ADDED](https://developer.android.com/reference/android/mtp/MtpEvent.html#EVENT_STORE_ADDED)
pub const EVENT_STORE_ADDED : i32 = 16388;
/// public static final [EVENT_STORE_FULL](https://developer.android.com/reference/android/mtp/MtpEvent.html#EVENT_STORE_FULL)
pub const EVENT_STORE_FULL : i32 = 16394;
/// public static final [EVENT_STORE_REMOVED](https://developer.android.com/reference/android/mtp/MtpEvent.html#EVENT_STORE_REMOVED)
pub const EVENT_STORE_REMOVED : i32 = 16389;
/// public static final [EVENT_UNDEFINED](https://developer.android.com/reference/android/mtp/MtpEvent.html#EVENT_UNDEFINED)
pub const EVENT_UNDEFINED : i32 = 16384;
/// public static final [EVENT_UNREPORTED_STATUS](https://developer.android.com/reference/android/mtp/MtpEvent.html#EVENT_UNREPORTED_STATUS)
pub const EVENT_UNREPORTED_STATUS : i32 = 16398;
}
}