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 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255
// WARNING: This file was autogenerated by jni-bindgen. Any changes to this file may be lost!!! __jni_bindgen! { /// public class [NotificationManager.Policy](https://developer.android.com/reference/android/app/NotificationManager.Policy.html) /// /// Required feature: android-app-NotificationManager_Policy #[cfg(any(feature = "all", feature = "android-app-NotificationManager_Policy"))] public class NotificationManager_Policy extends crate::java::lang::Object, implements crate::android::os::Parcelable { /// <init> pub fn new_int_int_int<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: i32, arg1: i32, arg2: i32) -> __jni_bindgen::Result<__jni_bindgen::Local<'env, crate::android::app::NotificationManager_Policy>> { // class.path == "android/app/NotificationManager$Policy", java.flags == PUBLIC, .name == "<init>", .descriptor == "(III)V" unsafe { let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0), __jni_bindgen::AsJValue::as_jvalue(&arg1), __jni_bindgen::AsJValue::as_jvalue(&arg2)]; let (__jni_class, __jni_method) = __jni_env.require_class_method("android/app/NotificationManager$Policy\0", "<init>\0", "(III)V\0"); __jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr()) } } /// <init> pub fn new_int_int_int_int<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: i32, arg1: i32, arg2: i32, arg3: i32) -> __jni_bindgen::Result<__jni_bindgen::Local<'env, crate::android::app::NotificationManager_Policy>> { // class.path == "android/app/NotificationManager$Policy", java.flags == PUBLIC, .name == "<init>", .descriptor == "(IIII)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)]; let (__jni_class, __jni_method) = __jni_env.require_class_method("android/app/NotificationManager$Policy\0", "<init>\0", "(IIII)V\0"); __jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr()) } } /// [writeToParcel](https://developer.android.com/reference/android/app/NotificationManager.Policy.html#writeToParcel(android,%2520os,%2520Parcel,%2520int)) /// /// Required features: "android-os-Parcel" #[cfg(any(feature = "all", all(feature = "android-os-Parcel")))] pub fn write_to_parcel<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::os::Parcel>>, arg1: i32) -> __jni_bindgen::Result<()> { // class.path == "android/app/NotificationManager$Policy", 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/app/NotificationManager$Policy\0", "writeToParcel\0", "(Landroid/os/Parcel;I)V\0"); __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr()) } } /// [describeContents](https://developer.android.com/reference/android/app/NotificationManager.Policy.html#describeContents()) pub fn describe_contents<'env>(&'env self) -> __jni_bindgen::Result<i32> { // class.path == "android/app/NotificationManager$Policy", 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/app/NotificationManager$Policy\0", "describeContents\0", "()I\0"); __jni_env.call_int_method_a(self.0.object, __jni_method, __jni_args.as_ptr()) } } /// [hashCode](https://developer.android.com/reference/android/app/NotificationManager.Policy.html#hashCode()) pub fn hash_code<'env>(&'env self) -> __jni_bindgen::Result<i32> { // class.path == "android/app/NotificationManager$Policy", java.flags == PUBLIC, .name == "hashCode", .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/app/NotificationManager$Policy\0", "hashCode\0", "()I\0"); __jni_env.call_int_method_a(self.0.object, __jni_method, __jni_args.as_ptr()) } } /// [equals](https://developer.android.com/reference/android/app/NotificationManager.Policy.html#equals(java,%2520lang,%2520Object)) /// /// Required features: "java-lang-Object" #[cfg(any(feature = "all", all(feature = "java-lang-Object")))] pub fn equals<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::Object>>) -> __jni_bindgen::Result<bool> { // class.path == "android/app/NotificationManager$Policy", java.flags == PUBLIC, .name == "equals", .descriptor == "(Ljava/lang/Object;)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/app/NotificationManager$Policy\0", "equals\0", "(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/app/NotificationManager.Policy.html#toString()) /// /// Required features: "java-lang-String" #[cfg(any(feature = "all", all(feature = "java-lang-String")))] pub fn to_string<'env>(&'env self) -> __jni_bindgen::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::lang::String>>> { // class.path == "android/app/NotificationManager$Policy", 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/app/NotificationManager$Policy\0", "toString\0", "()Ljava/lang/String;\0"); __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr()) } } /// [suppressedEffectsToString](https://developer.android.com/reference/android/app/NotificationManager.Policy.html#suppressedEffectsToString(int)) /// /// Required features: "java-lang-String" #[cfg(any(feature = "all", all(feature = "java-lang-String")))] pub fn suppressed_effects_to_string<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: i32) -> __jni_bindgen::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::lang::String>>> { // class.path == "android/app/NotificationManager$Policy", java.flags == PUBLIC | STATIC, .name == "suppressedEffectsToString", .descriptor == "(I)Ljava/lang/String;" unsafe { let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0)]; let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/app/NotificationManager$Policy\0", "suppressedEffectsToString\0", "(I)Ljava/lang/String;\0"); __jni_env.call_static_object_method_a(__jni_class, __jni_method, __jni_args.as_ptr()) } } /// [priorityCategoriesToString](https://developer.android.com/reference/android/app/NotificationManager.Policy.html#priorityCategoriesToString(int)) /// /// Required features: "java-lang-String" #[cfg(any(feature = "all", all(feature = "java-lang-String")))] pub fn priority_categories_to_string<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: i32) -> __jni_bindgen::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::lang::String>>> { // class.path == "android/app/NotificationManager$Policy", java.flags == PUBLIC | STATIC, .name == "priorityCategoriesToString", .descriptor == "(I)Ljava/lang/String;" unsafe { let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0)]; let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/app/NotificationManager$Policy\0", "priorityCategoriesToString\0", "(I)Ljava/lang/String;\0"); __jni_env.call_static_object_method_a(__jni_class, __jni_method, __jni_args.as_ptr()) } } /// [prioritySendersToString](https://developer.android.com/reference/android/app/NotificationManager.Policy.html#prioritySendersToString(int)) /// /// Required features: "java-lang-String" #[cfg(any(feature = "all", all(feature = "java-lang-String")))] pub fn priority_senders_to_string<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: i32) -> __jni_bindgen::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::lang::String>>> { // class.path == "android/app/NotificationManager$Policy", java.flags == PUBLIC | STATIC, .name == "prioritySendersToString", .descriptor == "(I)Ljava/lang/String;" unsafe { let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0)]; let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/app/NotificationManager$Policy\0", "prioritySendersToString\0", "(I)Ljava/lang/String;\0"); __jni_env.call_static_object_method_a(__jni_class, __jni_method, __jni_args.as_ptr()) } } // // Not emitting: Failed to mangle method name // // Not emitting: Non-public method // // Not emitting: Static class constructor - never needs to be called by Rust. // /// <clinit> // fn <clinit><'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::Result<()> { // // class.path == "android/app/NotificationManager$Policy", java.flags == STATIC, .name == "<clinit>", .descriptor == "()V" // unsafe { // let __jni_args = []; // let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/app/NotificationManager$Policy\0", "<clinit>\0", "()V\0"); // __jni_env.call_static_void_method_a(__jni_class, __jni_method, __jni_args.as_ptr()) // } // } // // Not emitting: Haven't yet implemented object field types // /// **get** public static final [CREATOR](https://developer.android.com/reference/android/app/NotificationManager.Policy.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) -> android/os/Parcelable$Creator { // unsafe { // let (class, field) = env.require_class_static_field("android/app/NotificationManager$Policy\0", "CREATOR\0", "Landroid/os/Parcelable$Creator;\0"); // env.get_static_object_field(class, field) // } // } /// public static final [PRIORITY_CATEGORY_ALARMS](https://developer.android.com/reference/android/app/NotificationManager.Policy.html#PRIORITY_CATEGORY_ALARMS) pub const PRIORITY_CATEGORY_ALARMS : i32 = 32; /// public static final [PRIORITY_CATEGORY_CALLS](https://developer.android.com/reference/android/app/NotificationManager.Policy.html#PRIORITY_CATEGORY_CALLS) pub const PRIORITY_CATEGORY_CALLS : i32 = 8; /// public static final [PRIORITY_CATEGORY_EVENTS](https://developer.android.com/reference/android/app/NotificationManager.Policy.html#PRIORITY_CATEGORY_EVENTS) pub const PRIORITY_CATEGORY_EVENTS : i32 = 2; /// public static final [PRIORITY_CATEGORY_MEDIA](https://developer.android.com/reference/android/app/NotificationManager.Policy.html#PRIORITY_CATEGORY_MEDIA) pub const PRIORITY_CATEGORY_MEDIA : i32 = 64; /// public static final [PRIORITY_CATEGORY_MESSAGES](https://developer.android.com/reference/android/app/NotificationManager.Policy.html#PRIORITY_CATEGORY_MESSAGES) pub const PRIORITY_CATEGORY_MESSAGES : i32 = 4; /// public static final [PRIORITY_CATEGORY_REMINDERS](https://developer.android.com/reference/android/app/NotificationManager.Policy.html#PRIORITY_CATEGORY_REMINDERS) pub const PRIORITY_CATEGORY_REMINDERS : i32 = 1; /// public static final [PRIORITY_CATEGORY_REPEAT_CALLERS](https://developer.android.com/reference/android/app/NotificationManager.Policy.html#PRIORITY_CATEGORY_REPEAT_CALLERS) pub const PRIORITY_CATEGORY_REPEAT_CALLERS : i32 = 16; /// public static final [PRIORITY_CATEGORY_SYSTEM](https://developer.android.com/reference/android/app/NotificationManager.Policy.html#PRIORITY_CATEGORY_SYSTEM) pub const PRIORITY_CATEGORY_SYSTEM : i32 = 128; /// public static final [PRIORITY_SENDERS_ANY](https://developer.android.com/reference/android/app/NotificationManager.Policy.html#PRIORITY_SENDERS_ANY) pub const PRIORITY_SENDERS_ANY : i32 = 0; /// public static final [PRIORITY_SENDERS_CONTACTS](https://developer.android.com/reference/android/app/NotificationManager.Policy.html#PRIORITY_SENDERS_CONTACTS) pub const PRIORITY_SENDERS_CONTACTS : i32 = 1; /// public static final [PRIORITY_SENDERS_STARRED](https://developer.android.com/reference/android/app/NotificationManager.Policy.html#PRIORITY_SENDERS_STARRED) pub const PRIORITY_SENDERS_STARRED : i32 = 2; /// public static final [SUPPRESSED_EFFECT_AMBIENT](https://developer.android.com/reference/android/app/NotificationManager.Policy.html#SUPPRESSED_EFFECT_AMBIENT) pub const SUPPRESSED_EFFECT_AMBIENT : i32 = 128; /// public static final [SUPPRESSED_EFFECT_BADGE](https://developer.android.com/reference/android/app/NotificationManager.Policy.html#SUPPRESSED_EFFECT_BADGE) pub const SUPPRESSED_EFFECT_BADGE : i32 = 64; /// public static final [SUPPRESSED_EFFECT_FULL_SCREEN_INTENT](https://developer.android.com/reference/android/app/NotificationManager.Policy.html#SUPPRESSED_EFFECT_FULL_SCREEN_INTENT) pub const SUPPRESSED_EFFECT_FULL_SCREEN_INTENT : i32 = 4; /// public static final [SUPPRESSED_EFFECT_LIGHTS](https://developer.android.com/reference/android/app/NotificationManager.Policy.html#SUPPRESSED_EFFECT_LIGHTS) pub const SUPPRESSED_EFFECT_LIGHTS : i32 = 8; /// public static final [SUPPRESSED_EFFECT_NOTIFICATION_LIST](https://developer.android.com/reference/android/app/NotificationManager.Policy.html#SUPPRESSED_EFFECT_NOTIFICATION_LIST) pub const SUPPRESSED_EFFECT_NOTIFICATION_LIST : i32 = 256; /// public static final [SUPPRESSED_EFFECT_PEEK](https://developer.android.com/reference/android/app/NotificationManager.Policy.html#SUPPRESSED_EFFECT_PEEK) pub const SUPPRESSED_EFFECT_PEEK : i32 = 16; /// public static final [SUPPRESSED_EFFECT_SCREEN_OFF](https://developer.android.com/reference/android/app/NotificationManager.Policy.html#SUPPRESSED_EFFECT_SCREEN_OFF) #[deprecated] pub const SUPPRESSED_EFFECT_SCREEN_OFF : i32 = 1; /// public static final [SUPPRESSED_EFFECT_SCREEN_ON](https://developer.android.com/reference/android/app/NotificationManager.Policy.html#SUPPRESSED_EFFECT_SCREEN_ON) #[deprecated] pub const SUPPRESSED_EFFECT_SCREEN_ON : i32 = 2; /// public static final [SUPPRESSED_EFFECT_STATUS_BAR](https://developer.android.com/reference/android/app/NotificationManager.Policy.html#SUPPRESSED_EFFECT_STATUS_BAR) pub const SUPPRESSED_EFFECT_STATUS_BAR : i32 = 32; /// **get** public final [priorityCallSenders](https://developer.android.com/reference/android/app/NotificationManager.Policy.html#priorityCallSenders) pub fn priority_call_senders<'env>(&'env self) -> i32 { unsafe { let env = __jni_bindgen::Env::from_ptr(self.0.env); let (class, field) = env.require_class_field("android/app/NotificationManager$Policy\0", "priorityCallSenders\0", "I\0"); env.get_int_field(class, field) } } /// **get** public final [priorityCategories](https://developer.android.com/reference/android/app/NotificationManager.Policy.html#priorityCategories) pub fn priority_categories<'env>(&'env self) -> i32 { unsafe { let env = __jni_bindgen::Env::from_ptr(self.0.env); let (class, field) = env.require_class_field("android/app/NotificationManager$Policy\0", "priorityCategories\0", "I\0"); env.get_int_field(class, field) } } /// **get** public final [priorityMessageSenders](https://developer.android.com/reference/android/app/NotificationManager.Policy.html#priorityMessageSenders) pub fn priority_message_senders<'env>(&'env self) -> i32 { unsafe { let env = __jni_bindgen::Env::from_ptr(self.0.env); let (class, field) = env.require_class_field("android/app/NotificationManager$Policy\0", "priorityMessageSenders\0", "I\0"); env.get_int_field(class, field) } } /// **get** public final [suppressedVisualEffects](https://developer.android.com/reference/android/app/NotificationManager.Policy.html#suppressedVisualEffects) pub fn suppressed_visual_effects<'env>(&'env self) -> i32 { unsafe { let env = __jni_bindgen::Env::from_ptr(self.0.env); let (class, field) = env.require_class_field("android/app/NotificationManager$Policy\0", "suppressedVisualEffects\0", "I\0"); env.get_int_field(class, field) } } } }