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
// WARNING: This file was autogenerated by jni-bindgen. Any changes to this file may be lost!!! __jni_bindgen! { /// public interface [IBinder](https://developer.android.com/reference/android/os/IBinder.html) /// /// Required feature: android-os-IBinder #[cfg(any(feature = "all", feature = "android-os-IBinder"))] public interface IBinder extends crate::java::lang::Object { /// [getInterfaceDescriptor](https://developer.android.com/reference/android/os/IBinder.html#getInterfaceDescriptor()) /// /// Required features: "java-lang-String" #[cfg(any(feature = "all", all(feature = "java-lang-String")))] pub fn get_interface_descriptor<'env>(&'env self) -> __jni_bindgen::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::lang::String>>> { // class.path == "android/os/IBinder", java.flags == PUBLIC | ABSTRACT, .name == "getInterfaceDescriptor", .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/os/IBinder\0", "getInterfaceDescriptor\0", "()Ljava/lang/String;\0"); __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr()) } } /// [pingBinder](https://developer.android.com/reference/android/os/IBinder.html#pingBinder()) pub fn ping_binder<'env>(&'env self) -> __jni_bindgen::Result<bool> { // class.path == "android/os/IBinder", java.flags == PUBLIC | ABSTRACT, .name == "pingBinder", .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/os/IBinder\0", "pingBinder\0", "()Z\0"); __jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr()) } } /// [isBinderAlive](https://developer.android.com/reference/android/os/IBinder.html#isBinderAlive()) pub fn is_binder_alive<'env>(&'env self) -> __jni_bindgen::Result<bool> { // class.path == "android/os/IBinder", java.flags == PUBLIC | ABSTRACT, .name == "isBinderAlive", .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/os/IBinder\0", "isBinderAlive\0", "()Z\0"); __jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr()) } } /// [queryLocalInterface](https://developer.android.com/reference/android/os/IBinder.html#queryLocalInterface(java,%2520lang,%2520String)) /// /// Required features: "android-os-IInterface", "java-lang-String" #[cfg(any(feature = "all", all(feature = "android-os-IInterface", feature = "java-lang-String")))] pub fn query_local_interface<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>) -> __jni_bindgen::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::os::IInterface>>> { // class.path == "android/os/IBinder", java.flags == PUBLIC | ABSTRACT, .name == "queryLocalInterface", .descriptor == "(Ljava/lang/String;)Landroid/os/IInterface;" 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/os/IBinder\0", "queryLocalInterface\0", "(Ljava/lang/String;)Landroid/os/IInterface;\0"); __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr()) } } // // Not emitting: Passing in arrays of objects is not yet supported // /// dump // /// // /// Required features: "java-io-FileDescriptor", "java-lang-String" // #[cfg(any(feature = "all", all(feature = "java-io-FileDescriptor", feature = "java-lang-String")))] // pub fn dump<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::io::FileDescriptor>>, arg1: Array { levels: 1, inner: Class(Id("java/lang/String")) }) -> __jni_bindgen::Result<()> { // // class.path == "android/os/IBinder", java.flags == PUBLIC | ABSTRACT, .name == "dump", .descriptor == "(Ljava/io/FileDescriptor;[Ljava/lang/String;)V" // unsafe { // let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1.into())]; // let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env); // let (__jni_class, __jni_method) = __jni_env.require_class_method("android/os/IBinder\0", "dump\0", "(Ljava/io/FileDescriptor;[Ljava/lang/String;)V\0"); // __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr()) // } // } // // Not emitting: Passing in arrays of objects is not yet supported // /// dumpAsync // /// // /// Required features: "java-io-FileDescriptor", "java-lang-String" // #[cfg(any(feature = "all", all(feature = "java-io-FileDescriptor", feature = "java-lang-String")))] // pub fn dump_async<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::io::FileDescriptor>>, arg1: Array { levels: 1, inner: Class(Id("java/lang/String")) }) -> __jni_bindgen::Result<()> { // // class.path == "android/os/IBinder", java.flags == PUBLIC | ABSTRACT, .name == "dumpAsync", .descriptor == "(Ljava/io/FileDescriptor;[Ljava/lang/String;)V" // unsafe { // let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1.into())]; // let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env); // let (__jni_class, __jni_method) = __jni_env.require_class_method("android/os/IBinder\0", "dumpAsync\0", "(Ljava/io/FileDescriptor;[Ljava/lang/String;)V\0"); // __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr()) // } // } /// [transact](https://developer.android.com/reference/android/os/IBinder.html#transact(int,%2520android,%2520os,%2520Parcel,%2520android,%2520os,%2520Parcel,%2520int)) /// /// Required features: "android-os-Parcel" #[cfg(any(feature = "all", all(feature = "android-os-Parcel")))] pub fn transact<'env>(&'env self, arg0: i32, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::os::Parcel>>, arg2: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::os::Parcel>>, arg3: i32) -> __jni_bindgen::Result<bool> { // class.path == "android/os/IBinder", java.flags == PUBLIC | ABSTRACT, .name == "transact", .descriptor == "(ILandroid/os/Parcel;Landroid/os/Parcel;I)Z" unsafe { let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0), __jni_bindgen::AsJValue::as_jvalue(&arg1.into()), __jni_bindgen::AsJValue::as_jvalue(&arg2.into()), __jni_bindgen::AsJValue::as_jvalue(&arg3)]; let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env); let (__jni_class, __jni_method) = __jni_env.require_class_method("android/os/IBinder\0", "transact\0", "(ILandroid/os/Parcel;Landroid/os/Parcel;I)Z\0"); __jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr()) } } /// [linkToDeath](https://developer.android.com/reference/android/os/IBinder.html#linkToDeath(android,%2520os,%2520IBinder.DeathRecipient,%2520int)) /// /// Required features: "android-os-IBinder_DeathRecipient" #[cfg(any(feature = "all", all(feature = "android-os-IBinder_DeathRecipient")))] pub fn link_to_death<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::os::IBinder_DeathRecipient>>, arg1: i32) -> __jni_bindgen::Result<()> { // class.path == "android/os/IBinder", java.flags == PUBLIC | ABSTRACT, .name == "linkToDeath", .descriptor == "(Landroid/os/IBinder$DeathRecipient;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/IBinder\0", "linkToDeath\0", "(Landroid/os/IBinder$DeathRecipient;I)V\0"); __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr()) } } /// [unlinkToDeath](https://developer.android.com/reference/android/os/IBinder.html#unlinkToDeath(android,%2520os,%2520IBinder.DeathRecipient,%2520int)) /// /// Required features: "android-os-IBinder_DeathRecipient" #[cfg(any(feature = "all", all(feature = "android-os-IBinder_DeathRecipient")))] pub fn unlink_to_death<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::os::IBinder_DeathRecipient>>, arg1: i32) -> __jni_bindgen::Result<bool> { // class.path == "android/os/IBinder", java.flags == PUBLIC | ABSTRACT, .name == "unlinkToDeath", .descriptor == "(Landroid/os/IBinder$DeathRecipient;I)Z" 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/IBinder\0", "unlinkToDeath\0", "(Landroid/os/IBinder$DeathRecipient;I)Z\0"); __jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr()) } } /// public static final [DUMP_TRANSACTION](https://developer.android.com/reference/android/os/IBinder.html#DUMP_TRANSACTION) pub const DUMP_TRANSACTION : i32 = 1598311760; /// public static final [FIRST_CALL_TRANSACTION](https://developer.android.com/reference/android/os/IBinder.html#FIRST_CALL_TRANSACTION) pub const FIRST_CALL_TRANSACTION : i32 = 1; /// public static final [FLAG_ONEWAY](https://developer.android.com/reference/android/os/IBinder.html#FLAG_ONEWAY) pub const FLAG_ONEWAY : i32 = 1; /// public static final [INTERFACE_TRANSACTION](https://developer.android.com/reference/android/os/IBinder.html#INTERFACE_TRANSACTION) pub const INTERFACE_TRANSACTION : i32 = 1598968902; /// public static final [LAST_CALL_TRANSACTION](https://developer.android.com/reference/android/os/IBinder.html#LAST_CALL_TRANSACTION) pub const LAST_CALL_TRANSACTION : i32 = 16777215; /// public static final [LIKE_TRANSACTION](https://developer.android.com/reference/android/os/IBinder.html#LIKE_TRANSACTION) pub const LIKE_TRANSACTION : i32 = 1598835019; /// public static final [PING_TRANSACTION](https://developer.android.com/reference/android/os/IBinder.html#PING_TRANSACTION) pub const PING_TRANSACTION : i32 = 1599098439; /// public static final [TWEET_TRANSACTION](https://developer.android.com/reference/android/os/IBinder.html#TWEET_TRANSACTION) pub const TWEET_TRANSACTION : i32 = 1599362900; } }