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
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
// WARNING: This file was autogenerated by jni-bindgen. Any changes to this file may be lost!!!
#[cfg(any(feature = "all", feature = "android-os-Process"))]
__jni_bindgen! {
/// public class [Process](https://developer.android.com/reference/android/os/Process.html)
///
/// Required feature: "android-os-Process"
public class Process ("android/os/Process") extends crate::java::lang::Object {
/// [Process](https://developer.android.com/reference/android/os/Process.html#Process())
pub fn new<'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::android::os::Process>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/os/Process", java.flags == PUBLIC, .name == "<init>", .descriptor == "()V"
unsafe {
let __jni_args = [];
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/os/Process\0", "<init>\0", "()V\0");
__jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [getElapsedCpuTime](https://developer.android.com/reference/android/os/Process.html#getElapsedCpuTime())
pub fn getElapsedCpuTime<'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::std::result::Result<i64, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/os/Process", java.flags == PUBLIC | STATIC | FINAL | NATIVE, .name == "getElapsedCpuTime", .descriptor == "()J"
unsafe {
let __jni_args = [];
let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/os/Process\0", "getElapsedCpuTime\0", "()J\0");
__jni_env.call_static_long_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [myPid](https://developer.android.com/reference/android/os/Process.html#myPid())
pub fn myPid<'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::std::result::Result<i32, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/os/Process", java.flags == PUBLIC | STATIC | FINAL, .name == "myPid", .descriptor == "()I"
unsafe {
let __jni_args = [];
let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/os/Process\0", "myPid\0", "()I\0");
__jni_env.call_static_int_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [myTid](https://developer.android.com/reference/android/os/Process.html#myTid())
pub fn myTid<'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::std::result::Result<i32, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/os/Process", java.flags == PUBLIC | STATIC | FINAL, .name == "myTid", .descriptor == "()I"
unsafe {
let __jni_args = [];
let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/os/Process\0", "myTid\0", "()I\0");
__jni_env.call_static_int_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [myUid](https://developer.android.com/reference/android/os/Process.html#myUid())
pub fn myUid<'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::std::result::Result<i32, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/os/Process", java.flags == PUBLIC | STATIC | FINAL, .name == "myUid", .descriptor == "()I"
unsafe {
let __jni_args = [];
let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/os/Process\0", "myUid\0", "()I\0");
__jni_env.call_static_int_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [myUserHandle](https://developer.android.com/reference/android/os/Process.html#myUserHandle())
///
/// Required features: "android-os-UserHandle"
#[cfg(any(feature = "all", all(feature = "android-os-UserHandle")))]
pub fn myUserHandle<'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::os::UserHandle>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/os/Process", java.flags == PUBLIC | STATIC | FINAL, .name == "myUserHandle", .descriptor == "()Landroid/os/UserHandle;"
unsafe {
let __jni_args = [];
let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/os/Process\0", "myUserHandle\0", "()Landroid/os/UserHandle;\0");
__jni_env.call_static_object_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [getUidForName](https://developer.android.com/reference/android/os/Process.html#getUidForName(java.lang.String))
///
/// Required features: "java-lang-String"
#[cfg(any(feature = "all", all(feature = "java-lang-String")))]
pub fn getUidForName<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>) -> __jni_bindgen::std::result::Result<i32, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/os/Process", java.flags == PUBLIC | STATIC | FINAL | NATIVE, .name == "getUidForName", .descriptor == "(Ljava/lang/String;)I"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/os/Process\0", "getUidForName\0", "(Ljava/lang/String;)I\0");
__jni_env.call_static_int_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [getGidForName](https://developer.android.com/reference/android/os/Process.html#getGidForName(java.lang.String))
///
/// Required features: "java-lang-String"
#[cfg(any(feature = "all", all(feature = "java-lang-String")))]
pub fn getGidForName<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>) -> __jni_bindgen::std::result::Result<i32, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/os/Process", java.flags == PUBLIC | STATIC | FINAL | NATIVE, .name == "getGidForName", .descriptor == "(Ljava/lang/String;)I"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/os/Process\0", "getGidForName\0", "(Ljava/lang/String;)I\0");
__jni_env.call_static_int_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [setThreadPriority](https://developer.android.com/reference/android/os/Process.html#setThreadPriority(int,%20int))
pub fn setThreadPriority_int_int<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: i32, arg1: i32) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/os/Process", java.flags == PUBLIC | STATIC | FINAL | NATIVE, .name == "setThreadPriority", .descriptor == "(II)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_static_method("android/os/Process\0", "setThreadPriority\0", "(II)V\0");
__jni_env.call_static_void_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [setThreadPriority](https://developer.android.com/reference/android/os/Process.html#setThreadPriority(int))
pub fn setThreadPriority_int<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: i32) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/os/Process", java.flags == PUBLIC | STATIC | FINAL | NATIVE, .name == "setThreadPriority", .descriptor == "(I)V"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0)];
let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/os/Process\0", "setThreadPriority\0", "(I)V\0");
__jni_env.call_static_void_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [getThreadPriority](https://developer.android.com/reference/android/os/Process.html#getThreadPriority(int))
pub fn getThreadPriority<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: i32) -> __jni_bindgen::std::result::Result<i32, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/os/Process", java.flags == PUBLIC | STATIC | FINAL | NATIVE, .name == "getThreadPriority", .descriptor == "(I)I"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0)];
let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/os/Process\0", "getThreadPriority\0", "(I)I\0");
__jni_env.call_static_int_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [supportsProcesses](https://developer.android.com/reference/android/os/Process.html#supportsProcesses())
#[deprecated] pub fn supportsProcesses<'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::std::result::Result<bool, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/os/Process", java.flags == PUBLIC | STATIC | FINAL, .name == "supportsProcesses", .descriptor == "()Z"
unsafe {
let __jni_args = [];
let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/os/Process\0", "supportsProcesses\0", "()Z\0");
__jni_env.call_static_boolean_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [killProcess](https://developer.android.com/reference/android/os/Process.html#killProcess(int))
pub fn killProcess<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: i32) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/os/Process", java.flags == PUBLIC | STATIC | FINAL, .name == "killProcess", .descriptor == "(I)V"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0)];
let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/os/Process\0", "killProcess\0", "(I)V\0");
__jni_env.call_static_void_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [sendSignal](https://developer.android.com/reference/android/os/Process.html#sendSignal(int,%20int))
pub fn sendSignal<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: i32, arg1: i32) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/os/Process", java.flags == PUBLIC | STATIC | FINAL | NATIVE, .name == "sendSignal", .descriptor == "(II)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_static_method("android/os/Process\0", "sendSignal\0", "(II)V\0");
__jni_env.call_static_void_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// public static final [FIRST_APPLICATION_UID](https://developer.android.com/reference/android/os/Process.html#FIRST_APPLICATION_UID)
pub const FIRST_APPLICATION_UID : i32 = 10000;
/// public static final [LAST_APPLICATION_UID](https://developer.android.com/reference/android/os/Process.html#LAST_APPLICATION_UID)
pub const LAST_APPLICATION_UID : i32 = 19999;
/// public static final [PHONE_UID](https://developer.android.com/reference/android/os/Process.html#PHONE_UID)
pub const PHONE_UID : i32 = 1001;
/// public static final [SIGNAL_KILL](https://developer.android.com/reference/android/os/Process.html#SIGNAL_KILL)
pub const SIGNAL_KILL : i32 = 9;
/// public static final [SIGNAL_QUIT](https://developer.android.com/reference/android/os/Process.html#SIGNAL_QUIT)
pub const SIGNAL_QUIT : i32 = 3;
/// public static final [SIGNAL_USR1](https://developer.android.com/reference/android/os/Process.html#SIGNAL_USR1)
pub const SIGNAL_USR1 : i32 = 10;
/// public static final [SYSTEM_UID](https://developer.android.com/reference/android/os/Process.html#SYSTEM_UID)
pub const SYSTEM_UID : i32 = 1000;
/// public static final [THREAD_PRIORITY_AUDIO](https://developer.android.com/reference/android/os/Process.html#THREAD_PRIORITY_AUDIO)
pub const THREAD_PRIORITY_AUDIO : i32 = -16;
/// public static final [THREAD_PRIORITY_BACKGROUND](https://developer.android.com/reference/android/os/Process.html#THREAD_PRIORITY_BACKGROUND)
pub const THREAD_PRIORITY_BACKGROUND : i32 = 10;
/// public static final [THREAD_PRIORITY_DEFAULT](https://developer.android.com/reference/android/os/Process.html#THREAD_PRIORITY_DEFAULT)
pub const THREAD_PRIORITY_DEFAULT : i32 = 0;
/// public static final [THREAD_PRIORITY_DISPLAY](https://developer.android.com/reference/android/os/Process.html#THREAD_PRIORITY_DISPLAY)
pub const THREAD_PRIORITY_DISPLAY : i32 = -4;
/// public static final [THREAD_PRIORITY_FOREGROUND](https://developer.android.com/reference/android/os/Process.html#THREAD_PRIORITY_FOREGROUND)
pub const THREAD_PRIORITY_FOREGROUND : i32 = -2;
/// public static final [THREAD_PRIORITY_LESS_FAVORABLE](https://developer.android.com/reference/android/os/Process.html#THREAD_PRIORITY_LESS_FAVORABLE)
pub const THREAD_PRIORITY_LESS_FAVORABLE : i32 = 1;
/// public static final [THREAD_PRIORITY_LOWEST](https://developer.android.com/reference/android/os/Process.html#THREAD_PRIORITY_LOWEST)
pub const THREAD_PRIORITY_LOWEST : i32 = 19;
/// public static final [THREAD_PRIORITY_MORE_FAVORABLE](https://developer.android.com/reference/android/os/Process.html#THREAD_PRIORITY_MORE_FAVORABLE)
pub const THREAD_PRIORITY_MORE_FAVORABLE : i32 = -1;
/// public static final [THREAD_PRIORITY_URGENT_AUDIO](https://developer.android.com/reference/android/os/Process.html#THREAD_PRIORITY_URGENT_AUDIO)
pub const THREAD_PRIORITY_URGENT_AUDIO : i32 = -19;
/// public static final [THREAD_PRIORITY_URGENT_DISPLAY](https://developer.android.com/reference/android/os/Process.html#THREAD_PRIORITY_URGENT_DISPLAY)
pub const THREAD_PRIORITY_URGENT_DISPLAY : i32 = -8;
}
}