// WARNING: This file was autogenerated by jni-bindgen. Any changes to this file may be lost!!!
#[cfg(any(feature = "all", feature = "android-view-KeyEvent"))]
__jni_bindgen! {
/// public class [KeyEvent](https://developer.android.com/reference/android/view/KeyEvent.html)
///
/// Required feature: "android-view-KeyEvent"
public class KeyEvent ("android/view/KeyEvent") extends crate::java::lang::Object, implements crate::android::os::Parcelable {
/// [KeyEvent](https://developer.android.com/reference/android/view/KeyEvent.html#KeyEvent(int,%20int))
pub fn new_int_int<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: i32, arg1: i32) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::android::view::KeyEvent>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/view/KeyEvent", java.flags == PUBLIC, .name == "<init>", .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_method("android/view/KeyEvent\0", "<init>\0", "(II)V\0");
__jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [KeyEvent](https://developer.android.com/reference/android/view/KeyEvent.html#KeyEvent(long,%20long,%20int,%20int,%20int))
pub fn new_long_long_int_int_int<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: i64, arg1: i64, arg2: i32, arg3: i32, arg4: i32) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::android::view::KeyEvent>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/view/KeyEvent", java.flags == PUBLIC, .name == "<init>", .descriptor == "(JJIII)V"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0), __jni_bindgen::AsJValue::as_jvalue(&arg1), __jni_bindgen::AsJValue::as_jvalue(&arg2), __jni_bindgen::AsJValue::as_jvalue(&arg3), __jni_bindgen::AsJValue::as_jvalue(&arg4)];
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/view/KeyEvent\0", "<init>\0", "(JJIII)V\0");
__jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [KeyEvent](https://developer.android.com/reference/android/view/KeyEvent.html#KeyEvent(long,%20long,%20int,%20int,%20int,%20int))
pub fn new_long_long_int_int_int_int<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: i64, arg1: i64, arg2: i32, arg3: i32, arg4: i32, arg5: i32) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::android::view::KeyEvent>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/view/KeyEvent", java.flags == PUBLIC, .name == "<init>", .descriptor == "(JJIIII)V"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0), __jni_bindgen::AsJValue::as_jvalue(&arg1), __jni_bindgen::AsJValue::as_jvalue(&arg2), __jni_bindgen::AsJValue::as_jvalue(&arg3), __jni_bindgen::AsJValue::as_jvalue(&arg4), __jni_bindgen::AsJValue::as_jvalue(&arg5)];
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/view/KeyEvent\0", "<init>\0", "(JJIIII)V\0");
__jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [KeyEvent](https://developer.android.com/reference/android/view/KeyEvent.html#KeyEvent(long,%20long,%20int,%20int,%20int,%20int,%20int,%20int))
pub fn new_long_long_int_int_int_int_int_int<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: i64, arg1: i64, arg2: i32, arg3: i32, arg4: i32, arg5: i32, arg6: i32, arg7: i32) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::android::view::KeyEvent>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/view/KeyEvent", java.flags == PUBLIC, .name == "<init>", .descriptor == "(JJIIIIII)V"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0), __jni_bindgen::AsJValue::as_jvalue(&arg1), __jni_bindgen::AsJValue::as_jvalue(&arg2), __jni_bindgen::AsJValue::as_jvalue(&arg3), __jni_bindgen::AsJValue::as_jvalue(&arg4), __jni_bindgen::AsJValue::as_jvalue(&arg5), __jni_bindgen::AsJValue::as_jvalue(&arg6), __jni_bindgen::AsJValue::as_jvalue(&arg7)];
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/view/KeyEvent\0", "<init>\0", "(JJIIIIII)V\0");
__jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [KeyEvent](https://developer.android.com/reference/android/view/KeyEvent.html#KeyEvent(long,%20long,%20int,%20int,%20int,%20int,%20int,%20int,%20int))
pub fn new_long_long_int_int_int_int_int_int_int<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: i64, arg1: i64, arg2: i32, arg3: i32, arg4: i32, arg5: i32, arg6: i32, arg7: i32, arg8: i32) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::android::view::KeyEvent>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/view/KeyEvent", java.flags == PUBLIC, .name == "<init>", .descriptor == "(JJIIIIIII)V"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0), __jni_bindgen::AsJValue::as_jvalue(&arg1), __jni_bindgen::AsJValue::as_jvalue(&arg2), __jni_bindgen::AsJValue::as_jvalue(&arg3), __jni_bindgen::AsJValue::as_jvalue(&arg4), __jni_bindgen::AsJValue::as_jvalue(&arg5), __jni_bindgen::AsJValue::as_jvalue(&arg6), __jni_bindgen::AsJValue::as_jvalue(&arg7), __jni_bindgen::AsJValue::as_jvalue(&arg8)];
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/view/KeyEvent\0", "<init>\0", "(JJIIIIIII)V\0");
__jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [KeyEvent](https://developer.android.com/reference/android/view/KeyEvent.html#KeyEvent(long,%20java.lang.String,%20int,%20int))
///
/// Required features: "java-lang-String"
#[cfg(any(feature = "all", all(feature = "java-lang-String")))]
pub fn new_long_String_int_int<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: i64, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>, arg2: i32, arg3: i32) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::android::view::KeyEvent>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/view/KeyEvent", java.flags == PUBLIC, .name == "<init>", .descriptor == "(JLjava/lang/String;II)V"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0), __jni_bindgen::AsJValue::as_jvalue(&arg1.into()), __jni_bindgen::AsJValue::as_jvalue(&arg2), __jni_bindgen::AsJValue::as_jvalue(&arg3)];
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/view/KeyEvent\0", "<init>\0", "(JLjava/lang/String;II)V\0");
__jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [KeyEvent](https://developer.android.com/reference/android/view/KeyEvent.html#KeyEvent(android.view.KeyEvent))
///
/// Required features: "android-view-KeyEvent"
#[cfg(any(feature = "all", all(feature = "android-view-KeyEvent")))]
pub fn new_KeyEvent<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::view::KeyEvent>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::android::view::KeyEvent>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/view/KeyEvent", java.flags == PUBLIC, .name == "<init>", .descriptor == "(Landroid/view/KeyEvent;)V"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/view/KeyEvent\0", "<init>\0", "(Landroid/view/KeyEvent;)V\0");
__jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [KeyEvent](https://developer.android.com/reference/android/view/KeyEvent.html#KeyEvent(android.view.KeyEvent,%20long,%20int))
///
/// Required features: "android-view-KeyEvent"
#[cfg(any(feature = "all", all(feature = "android-view-KeyEvent")))]
pub fn new_KeyEvent_long_int<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::view::KeyEvent>>, arg1: i64, arg2: i32) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::android::view::KeyEvent>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/view/KeyEvent", java.flags == PUBLIC, .name == "<init>", .descriptor == "(Landroid/view/KeyEvent;JI)V"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1), __jni_bindgen::AsJValue::as_jvalue(&arg2)];
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/view/KeyEvent\0", "<init>\0", "(Landroid/view/KeyEvent;JI)V\0");
__jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [getMaxKeyCode](https://developer.android.com/reference/android/view/KeyEvent.html#getMaxKeyCode())
pub fn getMaxKeyCode<'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::std::result::Result<i32, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/view/KeyEvent", java.flags == PUBLIC | STATIC, .name == "getMaxKeyCode", .descriptor == "()I"
unsafe {
let __jni_args = [];
let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/view/KeyEvent\0", "getMaxKeyCode\0", "()I\0");
__jni_env.call_static_int_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [getDeadChar](https://developer.android.com/reference/android/view/KeyEvent.html#getDeadChar(int,%20int))
pub fn getDeadChar<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: i32, arg1: i32) -> __jni_bindgen::std::result::Result<i32, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/view/KeyEvent", java.flags == PUBLIC | STATIC, .name == "getDeadChar", .descriptor == "(II)I"
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/view/KeyEvent\0", "getDeadChar\0", "(II)I\0");
__jni_env.call_static_int_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [changeTimeRepeat](https://developer.android.com/reference/android/view/KeyEvent.html#changeTimeRepeat(android.view.KeyEvent,%20long,%20int))
///
/// Required features: "android-view-KeyEvent"
#[cfg(any(feature = "all", all(feature = "android-view-KeyEvent")))]
pub fn changeTimeRepeat_KeyEvent_long_int<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::view::KeyEvent>>, arg1: i64, arg2: i32) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::view::KeyEvent>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/view/KeyEvent", java.flags == PUBLIC | STATIC, .name == "changeTimeRepeat", .descriptor == "(Landroid/view/KeyEvent;JI)Landroid/view/KeyEvent;"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1), __jni_bindgen::AsJValue::as_jvalue(&arg2)];
let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/view/KeyEvent\0", "changeTimeRepeat\0", "(Landroid/view/KeyEvent;JI)Landroid/view/KeyEvent;\0");
__jni_env.call_static_object_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [changeTimeRepeat](https://developer.android.com/reference/android/view/KeyEvent.html#changeTimeRepeat(android.view.KeyEvent,%20long,%20int,%20int))
///
/// Required features: "android-view-KeyEvent"
#[cfg(any(feature = "all", all(feature = "android-view-KeyEvent")))]
pub fn changeTimeRepeat_KeyEvent_long_int_int<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::view::KeyEvent>>, arg1: i64, arg2: i32, arg3: i32) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::view::KeyEvent>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/view/KeyEvent", java.flags == PUBLIC | STATIC, .name == "changeTimeRepeat", .descriptor == "(Landroid/view/KeyEvent;JII)Landroid/view/KeyEvent;"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1), __jni_bindgen::AsJValue::as_jvalue(&arg2), __jni_bindgen::AsJValue::as_jvalue(&arg3)];
let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/view/KeyEvent\0", "changeTimeRepeat\0", "(Landroid/view/KeyEvent;JII)Landroid/view/KeyEvent;\0");
__jni_env.call_static_object_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [changeAction](https://developer.android.com/reference/android/view/KeyEvent.html#changeAction(android.view.KeyEvent,%20int))
///
/// Required features: "android-view-KeyEvent"
#[cfg(any(feature = "all", all(feature = "android-view-KeyEvent")))]
pub fn changeAction<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::view::KeyEvent>>, arg1: i32) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::view::KeyEvent>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/view/KeyEvent", java.flags == PUBLIC | STATIC, .name == "changeAction", .descriptor == "(Landroid/view/KeyEvent;I)Landroid/view/KeyEvent;"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1)];
let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/view/KeyEvent\0", "changeAction\0", "(Landroid/view/KeyEvent;I)Landroid/view/KeyEvent;\0");
__jni_env.call_static_object_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [changeFlags](https://developer.android.com/reference/android/view/KeyEvent.html#changeFlags(android.view.KeyEvent,%20int))
///
/// Required features: "android-view-KeyEvent"
#[cfg(any(feature = "all", all(feature = "android-view-KeyEvent")))]
pub fn changeFlags<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::view::KeyEvent>>, arg1: i32) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::view::KeyEvent>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/view/KeyEvent", java.flags == PUBLIC | STATIC, .name == "changeFlags", .descriptor == "(Landroid/view/KeyEvent;I)Landroid/view/KeyEvent;"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1)];
let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/view/KeyEvent\0", "changeFlags\0", "(Landroid/view/KeyEvent;I)Landroid/view/KeyEvent;\0");
__jni_env.call_static_object_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [isSystem](https://developer.android.com/reference/android/view/KeyEvent.html#isSystem())
pub fn isSystem<'env>(&'env self) -> __jni_bindgen::std::result::Result<bool, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/view/KeyEvent", java.flags == PUBLIC | FINAL, .name == "isSystem", .descriptor == "()Z"
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/view/KeyEvent\0", "isSystem\0", "()Z\0");
__jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getMetaState](https://developer.android.com/reference/android/view/KeyEvent.html#getMetaState())
pub fn getMetaState<'env>(&'env self) -> __jni_bindgen::std::result::Result<i32, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/view/KeyEvent", java.flags == PUBLIC | FINAL, .name == "getMetaState", .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/view/KeyEvent\0", "getMetaState\0", "()I\0");
__jni_env.call_int_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getFlags](https://developer.android.com/reference/android/view/KeyEvent.html#getFlags())
pub fn getFlags<'env>(&'env self) -> __jni_bindgen::std::result::Result<i32, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/view/KeyEvent", java.flags == PUBLIC | FINAL, .name == "getFlags", .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/view/KeyEvent\0", "getFlags\0", "()I\0");
__jni_env.call_int_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [isModifierKey](https://developer.android.com/reference/android/view/KeyEvent.html#isModifierKey(int))
pub fn isModifierKey<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: i32) -> __jni_bindgen::std::result::Result<bool, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/view/KeyEvent", java.flags == PUBLIC | STATIC, .name == "isModifierKey", .descriptor == "(I)Z"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0)];
let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/view/KeyEvent\0", "isModifierKey\0", "(I)Z\0");
__jni_env.call_static_boolean_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [isAltPressed](https://developer.android.com/reference/android/view/KeyEvent.html#isAltPressed())
pub fn isAltPressed<'env>(&'env self) -> __jni_bindgen::std::result::Result<bool, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/view/KeyEvent", java.flags == PUBLIC | FINAL, .name == "isAltPressed", .descriptor == "()Z"
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/view/KeyEvent\0", "isAltPressed\0", "()Z\0");
__jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [isShiftPressed](https://developer.android.com/reference/android/view/KeyEvent.html#isShiftPressed())
pub fn isShiftPressed<'env>(&'env self) -> __jni_bindgen::std::result::Result<bool, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/view/KeyEvent", java.flags == PUBLIC | FINAL, .name == "isShiftPressed", .descriptor == "()Z"
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/view/KeyEvent\0", "isShiftPressed\0", "()Z\0");
__jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [isSymPressed](https://developer.android.com/reference/android/view/KeyEvent.html#isSymPressed())
pub fn isSymPressed<'env>(&'env self) -> __jni_bindgen::std::result::Result<bool, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/view/KeyEvent", java.flags == PUBLIC | FINAL, .name == "isSymPressed", .descriptor == "()Z"
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/view/KeyEvent\0", "isSymPressed\0", "()Z\0");
__jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getAction](https://developer.android.com/reference/android/view/KeyEvent.html#getAction())
pub fn getAction<'env>(&'env self) -> __jni_bindgen::std::result::Result<i32, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/view/KeyEvent", java.flags == PUBLIC | FINAL, .name == "getAction", .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/view/KeyEvent\0", "getAction\0", "()I\0");
__jni_env.call_int_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [isCanceled](https://developer.android.com/reference/android/view/KeyEvent.html#isCanceled())
pub fn isCanceled<'env>(&'env self) -> __jni_bindgen::std::result::Result<bool, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/view/KeyEvent", java.flags == PUBLIC | FINAL, .name == "isCanceled", .descriptor == "()Z"
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/view/KeyEvent\0", "isCanceled\0", "()Z\0");
__jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [startTracking](https://developer.android.com/reference/android/view/KeyEvent.html#startTracking())
pub fn startTracking<'env>(&'env self) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/view/KeyEvent", java.flags == PUBLIC | FINAL, .name == "startTracking", .descriptor == "()V"
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/view/KeyEvent\0", "startTracking\0", "()V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [isTracking](https://developer.android.com/reference/android/view/KeyEvent.html#isTracking())
pub fn isTracking<'env>(&'env self) -> __jni_bindgen::std::result::Result<bool, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/view/KeyEvent", java.flags == PUBLIC | FINAL, .name == "isTracking", .descriptor == "()Z"
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/view/KeyEvent\0", "isTracking\0", "()Z\0");
__jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [isLongPress](https://developer.android.com/reference/android/view/KeyEvent.html#isLongPress())
pub fn isLongPress<'env>(&'env self) -> __jni_bindgen::std::result::Result<bool, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/view/KeyEvent", java.flags == PUBLIC | FINAL, .name == "isLongPress", .descriptor == "()Z"
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/view/KeyEvent\0", "isLongPress\0", "()Z\0");
__jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getKeyCode](https://developer.android.com/reference/android/view/KeyEvent.html#getKeyCode())
pub fn getKeyCode<'env>(&'env self) -> __jni_bindgen::std::result::Result<i32, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/view/KeyEvent", java.flags == PUBLIC | FINAL, .name == "getKeyCode", .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/view/KeyEvent\0", "getKeyCode\0", "()I\0");
__jni_env.call_int_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getCharacters](https://developer.android.com/reference/android/view/KeyEvent.html#getCharacters())
///
/// Required features: "java-lang-String"
#[cfg(any(feature = "all", all(feature = "java-lang-String")))]
pub fn getCharacters<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::lang::String>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/view/KeyEvent", java.flags == PUBLIC | FINAL, .name == "getCharacters", .descriptor == "()Ljava/lang/String;"
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/view/KeyEvent\0", "getCharacters\0", "()Ljava/lang/String;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getScanCode](https://developer.android.com/reference/android/view/KeyEvent.html#getScanCode())
pub fn getScanCode<'env>(&'env self) -> __jni_bindgen::std::result::Result<i32, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/view/KeyEvent", java.flags == PUBLIC | FINAL, .name == "getScanCode", .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/view/KeyEvent\0", "getScanCode\0", "()I\0");
__jni_env.call_int_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getRepeatCount](https://developer.android.com/reference/android/view/KeyEvent.html#getRepeatCount())
pub fn getRepeatCount<'env>(&'env self) -> __jni_bindgen::std::result::Result<i32, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/view/KeyEvent", java.flags == PUBLIC | FINAL, .name == "getRepeatCount", .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/view/KeyEvent\0", "getRepeatCount\0", "()I\0");
__jni_env.call_int_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getDownTime](https://developer.android.com/reference/android/view/KeyEvent.html#getDownTime())
pub fn getDownTime<'env>(&'env self) -> __jni_bindgen::std::result::Result<i64, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/view/KeyEvent", java.flags == PUBLIC | FINAL, .name == "getDownTime", .descriptor == "()J"
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/view/KeyEvent\0", "getDownTime\0", "()J\0");
__jni_env.call_long_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getEventTime](https://developer.android.com/reference/android/view/KeyEvent.html#getEventTime())
pub fn getEventTime<'env>(&'env self) -> __jni_bindgen::std::result::Result<i64, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/view/KeyEvent", java.flags == PUBLIC | FINAL, .name == "getEventTime", .descriptor == "()J"
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/view/KeyEvent\0", "getEventTime\0", "()J\0");
__jni_env.call_long_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getDeviceId](https://developer.android.com/reference/android/view/KeyEvent.html#getDeviceId())
pub fn getDeviceId<'env>(&'env self) -> __jni_bindgen::std::result::Result<i32, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/view/KeyEvent", java.flags == PUBLIC | FINAL, .name == "getDeviceId", .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/view/KeyEvent\0", "getDeviceId\0", "()I\0");
__jni_env.call_int_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getDisplayLabel](https://developer.android.com/reference/android/view/KeyEvent.html#getDisplayLabel())
pub fn getDisplayLabel<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::jchar, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/view/KeyEvent", java.flags == PUBLIC, .name == "getDisplayLabel", .descriptor == "()C"
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/view/KeyEvent\0", "getDisplayLabel\0", "()C\0");
__jni_env.call_char_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getUnicodeChar](https://developer.android.com/reference/android/view/KeyEvent.html#getUnicodeChar())
pub fn getUnicodeChar<'env>(&'env self) -> __jni_bindgen::std::result::Result<i32, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/view/KeyEvent", java.flags == PUBLIC, .name == "getUnicodeChar", .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/view/KeyEvent\0", "getUnicodeChar\0", "()I\0");
__jni_env.call_int_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getUnicodeChar](https://developer.android.com/reference/android/view/KeyEvent.html#getUnicodeChar(int))
pub fn getUnicodeChar_int<'env>(&'env self, arg0: i32) -> __jni_bindgen::std::result::Result<i32, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/view/KeyEvent", java.flags == PUBLIC, .name == "getUnicodeChar", .descriptor == "(I)I"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0)];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/view/KeyEvent\0", "getUnicodeChar\0", "(I)I\0");
__jni_env.call_int_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getKeyData](https://developer.android.com/reference/android/view/KeyEvent.html#getKeyData(android.view.KeyCharacterMap.KeyData))
///
/// Required features: "android-view-KeyCharacterMap_KeyData"
#[cfg(any(feature = "all", all(feature = "android-view-KeyCharacterMap_KeyData")))]
pub fn getKeyData<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::view::KeyCharacterMap_KeyData>>) -> __jni_bindgen::std::result::Result<bool, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/view/KeyEvent", java.flags == PUBLIC, .name == "getKeyData", .descriptor == "(Landroid/view/KeyCharacterMap$KeyData;)Z"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/view/KeyEvent\0", "getKeyData\0", "(Landroid/view/KeyCharacterMap$KeyData;)Z\0");
__jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getMatch](https://developer.android.com/reference/android/view/KeyEvent.html#getMatch(char%5B%5D))
pub fn getMatch_char_array<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env __jni_bindgen::CharArray>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::jchar, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/view/KeyEvent", java.flags == PUBLIC, .name == "getMatch", .descriptor == "([C)C"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/view/KeyEvent\0", "getMatch\0", "([C)C\0");
__jni_env.call_char_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getMatch](https://developer.android.com/reference/android/view/KeyEvent.html#getMatch(char%5B%5D,%20int))
pub fn getMatch_char_array_int<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env __jni_bindgen::CharArray>>, arg1: i32) -> __jni_bindgen::std::result::Result<__jni_bindgen::jchar, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/view/KeyEvent", java.flags == PUBLIC, .name == "getMatch", .descriptor == "([CI)C"
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/view/KeyEvent\0", "getMatch\0", "([CI)C\0");
__jni_env.call_char_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getNumber](https://developer.android.com/reference/android/view/KeyEvent.html#getNumber())
pub fn getNumber<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::jchar, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/view/KeyEvent", java.flags == PUBLIC, .name == "getNumber", .descriptor == "()C"
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/view/KeyEvent\0", "getNumber\0", "()C\0");
__jni_env.call_char_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [isPrintingKey](https://developer.android.com/reference/android/view/KeyEvent.html#isPrintingKey())
pub fn isPrintingKey<'env>(&'env self) -> __jni_bindgen::std::result::Result<bool, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/view/KeyEvent", java.flags == PUBLIC, .name == "isPrintingKey", .descriptor == "()Z"
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/view/KeyEvent\0", "isPrintingKey\0", "()Z\0");
__jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [dispatch](https://developer.android.com/reference/android/view/KeyEvent.html#dispatch(android.view.KeyEvent.Callback))
///
/// Required features: "android-view-KeyEvent_Callback"
#[cfg(any(feature = "all", all(feature = "android-view-KeyEvent_Callback")))]
pub fn dispatch_Callback<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::view::KeyEvent_Callback>>) -> __jni_bindgen::std::result::Result<bool, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/view/KeyEvent", java.flags == PUBLIC | FINAL, .name == "dispatch", .descriptor == "(Landroid/view/KeyEvent$Callback;)Z"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/view/KeyEvent\0", "dispatch\0", "(Landroid/view/KeyEvent$Callback;)Z\0");
__jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [dispatch](https://developer.android.com/reference/android/view/KeyEvent.html#dispatch(android.view.KeyEvent.Callback,%20android.view.KeyEvent.DispatcherState,%20java.lang.Object))
///
/// Required features: "android-view-KeyEvent_Callback", "android-view-KeyEvent_DispatcherState", "java-lang-Object"
#[cfg(any(feature = "all", all(feature = "android-view-KeyEvent_Callback", feature = "android-view-KeyEvent_DispatcherState", feature = "java-lang-Object")))]
pub fn dispatch_Callback_DispatcherState_Object<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::view::KeyEvent_Callback>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::view::KeyEvent_DispatcherState>>, arg2: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::Object>>) -> __jni_bindgen::std::result::Result<bool, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/view/KeyEvent", java.flags == PUBLIC | FINAL, .name == "dispatch", .descriptor == "(Landroid/view/KeyEvent$Callback;Landroid/view/KeyEvent$DispatcherState;Ljava/lang/Object;)Z"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1.into()), __jni_bindgen::AsJValue::as_jvalue(&arg2.into())];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/view/KeyEvent\0", "dispatch\0", "(Landroid/view/KeyEvent$Callback;Landroid/view/KeyEvent$DispatcherState;Ljava/lang/Object;)Z\0");
__jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [toString](https://developer.android.com/reference/android/view/KeyEvent.html#toString())
///
/// Required features: "java-lang-String"
#[cfg(any(feature = "all", all(feature = "java-lang-String")))]
pub fn toString<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::lang::String>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/view/KeyEvent", java.flags == PUBLIC, .name == "toString", .descriptor == "()Ljava/lang/String;"
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/view/KeyEvent\0", "toString\0", "()Ljava/lang/String;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [describeContents](https://developer.android.com/reference/android/view/KeyEvent.html#describeContents())
pub fn describeContents<'env>(&'env self) -> __jni_bindgen::std::result::Result<i32, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/view/KeyEvent", java.flags == PUBLIC, .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/view/KeyEvent\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/view/KeyEvent.html#writeToParcel(android.os.Parcel,%20int))
///
/// Required features: "android-os-Parcel"
#[cfg(any(feature = "all", all(feature = "android-os-Parcel")))]
pub fn writeToParcel<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::os::Parcel>>, arg1: i32) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/view/KeyEvent", java.flags == PUBLIC, .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/view/KeyEvent\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 [KEYCODE_UNKNOWN](https://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_UNKNOWN)
pub const KEYCODE_UNKNOWN : i32 = 0;
/// public static final [KEYCODE_SOFT_LEFT](https://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_SOFT_LEFT)
pub const KEYCODE_SOFT_LEFT : i32 = 1;
/// public static final [KEYCODE_SOFT_RIGHT](https://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_SOFT_RIGHT)
pub const KEYCODE_SOFT_RIGHT : i32 = 2;
/// public static final [KEYCODE_HOME](https://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_HOME)
pub const KEYCODE_HOME : i32 = 3;
/// public static final [KEYCODE_BACK](https://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_BACK)
pub const KEYCODE_BACK : i32 = 4;
/// public static final [KEYCODE_CALL](https://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_CALL)
pub const KEYCODE_CALL : i32 = 5;
/// public static final [KEYCODE_ENDCALL](https://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_ENDCALL)
pub const KEYCODE_ENDCALL : i32 = 6;
/// public static final [KEYCODE_0](https://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_0)
pub const KEYCODE_0 : i32 = 7;
/// public static final [KEYCODE_1](https://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_1)
pub const KEYCODE_1 : i32 = 8;
/// public static final [KEYCODE_2](https://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_2)
pub const KEYCODE_2 : i32 = 9;
/// public static final [KEYCODE_3](https://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_3)
pub const KEYCODE_3 : i32 = 10;
/// public static final [KEYCODE_4](https://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_4)
pub const KEYCODE_4 : i32 = 11;
/// public static final [KEYCODE_5](https://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_5)
pub const KEYCODE_5 : i32 = 12;
/// public static final [KEYCODE_6](https://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_6)
pub const KEYCODE_6 : i32 = 13;
/// public static final [KEYCODE_7](https://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_7)
pub const KEYCODE_7 : i32 = 14;
/// public static final [KEYCODE_8](https://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_8)
pub const KEYCODE_8 : i32 = 15;
/// public static final [KEYCODE_9](https://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_9)
pub const KEYCODE_9 : i32 = 16;
/// public static final [KEYCODE_STAR](https://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_STAR)
pub const KEYCODE_STAR : i32 = 17;
/// public static final [KEYCODE_POUND](https://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_POUND)
pub const KEYCODE_POUND : i32 = 18;
/// public static final [KEYCODE_DPAD_UP](https://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_DPAD_UP)
pub const KEYCODE_DPAD_UP : i32 = 19;
/// public static final [KEYCODE_DPAD_DOWN](https://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_DPAD_DOWN)
pub const KEYCODE_DPAD_DOWN : i32 = 20;
/// public static final [KEYCODE_DPAD_LEFT](https://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_DPAD_LEFT)
pub const KEYCODE_DPAD_LEFT : i32 = 21;
/// public static final [KEYCODE_DPAD_RIGHT](https://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_DPAD_RIGHT)
pub const KEYCODE_DPAD_RIGHT : i32 = 22;
/// public static final [KEYCODE_DPAD_CENTER](https://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_DPAD_CENTER)
pub const KEYCODE_DPAD_CENTER : i32 = 23;
/// public static final [KEYCODE_VOLUME_UP](https://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_VOLUME_UP)
pub const KEYCODE_VOLUME_UP : i32 = 24;
/// public static final [KEYCODE_VOLUME_DOWN](https://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_VOLUME_DOWN)
pub const KEYCODE_VOLUME_DOWN : i32 = 25;
/// public static final [KEYCODE_POWER](https://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_POWER)
pub const KEYCODE_POWER : i32 = 26;
/// public static final [KEYCODE_CAMERA](https://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_CAMERA)
pub const KEYCODE_CAMERA : i32 = 27;
/// public static final [KEYCODE_CLEAR](https://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_CLEAR)
pub const KEYCODE_CLEAR : i32 = 28;
/// public static final [KEYCODE_A](https://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_A)
pub const KEYCODE_A : i32 = 29;
/// public static final [KEYCODE_B](https://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_B)
pub const KEYCODE_B : i32 = 30;
/// public static final [KEYCODE_C](https://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_C)
pub const KEYCODE_C : i32 = 31;
/// public static final [KEYCODE_D](https://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_D)
pub const KEYCODE_D : i32 = 32;
/// public static final [KEYCODE_E](https://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_E)
pub const KEYCODE_E : i32 = 33;
/// public static final [KEYCODE_F](https://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_F)
pub const KEYCODE_F : i32 = 34;
/// public static final [KEYCODE_G](https://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_G)
pub const KEYCODE_G : i32 = 35;
/// public static final [KEYCODE_H](https://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_H)
pub const KEYCODE_H : i32 = 36;
/// public static final [KEYCODE_I](https://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_I)
pub const KEYCODE_I : i32 = 37;
/// public static final [KEYCODE_J](https://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_J)
pub const KEYCODE_J : i32 = 38;
/// public static final [KEYCODE_K](https://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_K)
pub const KEYCODE_K : i32 = 39;
/// public static final [KEYCODE_L](https://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_L)
pub const KEYCODE_L : i32 = 40;
/// public static final [KEYCODE_M](https://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_M)
pub const KEYCODE_M : i32 = 41;
/// public static final [KEYCODE_N](https://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_N)
pub const KEYCODE_N : i32 = 42;
/// public static final [KEYCODE_O](https://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_O)
pub const KEYCODE_O : i32 = 43;
/// public static final [KEYCODE_P](https://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_P)
pub const KEYCODE_P : i32 = 44;
/// public static final [KEYCODE_Q](https://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_Q)
pub const KEYCODE_Q : i32 = 45;
/// public static final [KEYCODE_R](https://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_R)
pub const KEYCODE_R : i32 = 46;
/// public static final [KEYCODE_S](https://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_S)
pub const KEYCODE_S : i32 = 47;
/// public static final [KEYCODE_T](https://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_T)
pub const KEYCODE_T : i32 = 48;
/// public static final [KEYCODE_U](https://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_U)
pub const KEYCODE_U : i32 = 49;
/// public static final [KEYCODE_V](https://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_V)
pub const KEYCODE_V : i32 = 50;
/// public static final [KEYCODE_W](https://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_W)
pub const KEYCODE_W : i32 = 51;
/// public static final [KEYCODE_X](https://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_X)
pub const KEYCODE_X : i32 = 52;
/// public static final [KEYCODE_Y](https://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_Y)
pub const KEYCODE_Y : i32 = 53;
/// public static final [KEYCODE_Z](https://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_Z)
pub const KEYCODE_Z : i32 = 54;
/// public static final [KEYCODE_COMMA](https://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_COMMA)
pub const KEYCODE_COMMA : i32 = 55;
/// public static final [KEYCODE_PERIOD](https://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_PERIOD)
pub const KEYCODE_PERIOD : i32 = 56;
/// public static final [KEYCODE_ALT_LEFT](https://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_ALT_LEFT)
pub const KEYCODE_ALT_LEFT : i32 = 57;
/// public static final [KEYCODE_ALT_RIGHT](https://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_ALT_RIGHT)
pub const KEYCODE_ALT_RIGHT : i32 = 58;
/// public static final [KEYCODE_SHIFT_LEFT](https://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_SHIFT_LEFT)
pub const KEYCODE_SHIFT_LEFT : i32 = 59;
/// public static final [KEYCODE_SHIFT_RIGHT](https://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_SHIFT_RIGHT)
pub const KEYCODE_SHIFT_RIGHT : i32 = 60;
/// public static final [KEYCODE_TAB](https://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_TAB)
pub const KEYCODE_TAB : i32 = 61;
/// public static final [KEYCODE_SPACE](https://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_SPACE)
pub const KEYCODE_SPACE : i32 = 62;
/// public static final [KEYCODE_SYM](https://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_SYM)
pub const KEYCODE_SYM : i32 = 63;
/// public static final [KEYCODE_EXPLORER](https://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_EXPLORER)
pub const KEYCODE_EXPLORER : i32 = 64;
/// public static final [KEYCODE_ENVELOPE](https://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_ENVELOPE)
pub const KEYCODE_ENVELOPE : i32 = 65;
/// public static final [KEYCODE_ENTER](https://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_ENTER)
pub const KEYCODE_ENTER : i32 = 66;
/// public static final [KEYCODE_DEL](https://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_DEL)
pub const KEYCODE_DEL : i32 = 67;
/// public static final [KEYCODE_GRAVE](https://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_GRAVE)
pub const KEYCODE_GRAVE : i32 = 68;
/// public static final [KEYCODE_MINUS](https://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_MINUS)
pub const KEYCODE_MINUS : i32 = 69;
/// public static final [KEYCODE_EQUALS](https://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_EQUALS)
pub const KEYCODE_EQUALS : i32 = 70;
/// public static final [KEYCODE_LEFT_BRACKET](https://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_LEFT_BRACKET)
pub const KEYCODE_LEFT_BRACKET : i32 = 71;
/// public static final [KEYCODE_RIGHT_BRACKET](https://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_RIGHT_BRACKET)
pub const KEYCODE_RIGHT_BRACKET : i32 = 72;
/// public static final [KEYCODE_BACKSLASH](https://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_BACKSLASH)
pub const KEYCODE_BACKSLASH : i32 = 73;
/// public static final [KEYCODE_SEMICOLON](https://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_SEMICOLON)
pub const KEYCODE_SEMICOLON : i32 = 74;
/// public static final [KEYCODE_APOSTROPHE](https://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_APOSTROPHE)
pub const KEYCODE_APOSTROPHE : i32 = 75;
/// public static final [KEYCODE_SLASH](https://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_SLASH)
pub const KEYCODE_SLASH : i32 = 76;
/// public static final [KEYCODE_AT](https://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_AT)
pub const KEYCODE_AT : i32 = 77;
/// public static final [KEYCODE_NUM](https://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_NUM)
pub const KEYCODE_NUM : i32 = 78;
/// public static final [KEYCODE_HEADSETHOOK](https://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_HEADSETHOOK)
pub const KEYCODE_HEADSETHOOK : i32 = 79;
/// public static final [KEYCODE_FOCUS](https://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_FOCUS)
pub const KEYCODE_FOCUS : i32 = 80;
/// public static final [KEYCODE_PLUS](https://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_PLUS)
pub const KEYCODE_PLUS : i32 = 81;
/// public static final [KEYCODE_MENU](https://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_MENU)
pub const KEYCODE_MENU : i32 = 82;
/// public static final [KEYCODE_NOTIFICATION](https://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_NOTIFICATION)
pub const KEYCODE_NOTIFICATION : i32 = 83;
/// public static final [KEYCODE_SEARCH](https://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_SEARCH)
pub const KEYCODE_SEARCH : i32 = 84;
/// public static final [KEYCODE_MEDIA_PLAY_PAUSE](https://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_MEDIA_PLAY_PAUSE)
pub const KEYCODE_MEDIA_PLAY_PAUSE : i32 = 85;
/// public static final [KEYCODE_MEDIA_STOP](https://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_MEDIA_STOP)
pub const KEYCODE_MEDIA_STOP : i32 = 86;
/// public static final [KEYCODE_MEDIA_NEXT](https://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_MEDIA_NEXT)
pub const KEYCODE_MEDIA_NEXT : i32 = 87;
/// public static final [KEYCODE_MEDIA_PREVIOUS](https://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_MEDIA_PREVIOUS)
pub const KEYCODE_MEDIA_PREVIOUS : i32 = 88;
/// public static final [KEYCODE_MEDIA_REWIND](https://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_MEDIA_REWIND)
pub const KEYCODE_MEDIA_REWIND : i32 = 89;
/// public static final [KEYCODE_MEDIA_FAST_FORWARD](https://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_MEDIA_FAST_FORWARD)
pub const KEYCODE_MEDIA_FAST_FORWARD : i32 = 90;
/// public static final [KEYCODE_MUTE](https://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_MUTE)
pub const KEYCODE_MUTE : i32 = 91;
/// public static final [MAX_KEYCODE](https://developer.android.com/reference/android/view/KeyEvent.html#MAX_KEYCODE)
pub const MAX_KEYCODE : i32 = 84;
/// public static final [ACTION_DOWN](https://developer.android.com/reference/android/view/KeyEvent.html#ACTION_DOWN)
pub const ACTION_DOWN : i32 = 0;
/// public static final [ACTION_UP](https://developer.android.com/reference/android/view/KeyEvent.html#ACTION_UP)
pub const ACTION_UP : i32 = 1;
/// public static final [ACTION_MULTIPLE](https://developer.android.com/reference/android/view/KeyEvent.html#ACTION_MULTIPLE)
pub const ACTION_MULTIPLE : i32 = 2;
/// public static final [META_ALT_ON](https://developer.android.com/reference/android/view/KeyEvent.html#META_ALT_ON)
pub const META_ALT_ON : i32 = 2;
/// public static final [META_ALT_LEFT_ON](https://developer.android.com/reference/android/view/KeyEvent.html#META_ALT_LEFT_ON)
pub const META_ALT_LEFT_ON : i32 = 16;
/// public static final [META_ALT_RIGHT_ON](https://developer.android.com/reference/android/view/KeyEvent.html#META_ALT_RIGHT_ON)
pub const META_ALT_RIGHT_ON : i32 = 32;
/// public static final [META_SHIFT_ON](https://developer.android.com/reference/android/view/KeyEvent.html#META_SHIFT_ON)
pub const META_SHIFT_ON : i32 = 1;
/// public static final [META_SHIFT_LEFT_ON](https://developer.android.com/reference/android/view/KeyEvent.html#META_SHIFT_LEFT_ON)
pub const META_SHIFT_LEFT_ON : i32 = 64;
/// public static final [META_SHIFT_RIGHT_ON](https://developer.android.com/reference/android/view/KeyEvent.html#META_SHIFT_RIGHT_ON)
pub const META_SHIFT_RIGHT_ON : i32 = 128;
/// public static final [META_SYM_ON](https://developer.android.com/reference/android/view/KeyEvent.html#META_SYM_ON)
pub const META_SYM_ON : i32 = 4;
/// public static final [FLAG_WOKE_HERE](https://developer.android.com/reference/android/view/KeyEvent.html#FLAG_WOKE_HERE)
pub const FLAG_WOKE_HERE : i32 = 1;
/// public static final [FLAG_SOFT_KEYBOARD](https://developer.android.com/reference/android/view/KeyEvent.html#FLAG_SOFT_KEYBOARD)
pub const FLAG_SOFT_KEYBOARD : i32 = 2;
/// public static final [FLAG_KEEP_TOUCH_MODE](https://developer.android.com/reference/android/view/KeyEvent.html#FLAG_KEEP_TOUCH_MODE)
pub const FLAG_KEEP_TOUCH_MODE : i32 = 4;
/// public static final [FLAG_FROM_SYSTEM](https://developer.android.com/reference/android/view/KeyEvent.html#FLAG_FROM_SYSTEM)
pub const FLAG_FROM_SYSTEM : i32 = 8;
/// public static final [FLAG_EDITOR_ACTION](https://developer.android.com/reference/android/view/KeyEvent.html#FLAG_EDITOR_ACTION)
pub const FLAG_EDITOR_ACTION : i32 = 16;
/// public static final [FLAG_CANCELED](https://developer.android.com/reference/android/view/KeyEvent.html#FLAG_CANCELED)
pub const FLAG_CANCELED : i32 = 32;
/// public static final [FLAG_VIRTUAL_HARD_KEY](https://developer.android.com/reference/android/view/KeyEvent.html#FLAG_VIRTUAL_HARD_KEY)
pub const FLAG_VIRTUAL_HARD_KEY : i32 = 64;
/// public static final [FLAG_LONG_PRESS](https://developer.android.com/reference/android/view/KeyEvent.html#FLAG_LONG_PRESS)
pub const FLAG_LONG_PRESS : i32 = 128;
/// public static final [FLAG_CANCELED_LONG_PRESS](https://developer.android.com/reference/android/view/KeyEvent.html#FLAG_CANCELED_LONG_PRESS)
pub const FLAG_CANCELED_LONG_PRESS : i32 = 256;
/// public static final [FLAG_TRACKING](https://developer.android.com/reference/android/view/KeyEvent.html#FLAG_TRACKING)
pub const FLAG_TRACKING : i32 = 512;
/// **get** public static final [CREATOR](https://developer.android.com/reference/android/view/KeyEvent.html#CREATOR)
///
/// Required feature: "android-os-Parcelable_Creator"
#[cfg(any(feature = "all", feature = "android-os-Parcelable_Creator"))]
pub fn CREATOR<'env>(env: &'env __jni_bindgen::Env) -> __jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::os::Parcelable_Creator>> {
unsafe {
let (__jni_class, __jni_field) = env.require_class_static_field("android/view/KeyEvent\0", "CREATOR\0", "Landroid/os/Parcelable$Creator;\0");
env.get_static_object_field(__jni_class, __jni_field)
}
}
}
}