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
// WARNING: This file was autogenerated by jni-bindgen. Any changes to this file may be lost!!! __jni_bindgen! { /// public class [BlockedNumberContract](https://developer.android.com/reference/android/provider/BlockedNumberContract.html) /// /// Required feature: android-provider-BlockedNumberContract #[cfg(any(feature = "all", feature = "android-provider-BlockedNumberContract"))] public class BlockedNumberContract extends crate::java::lang::Object { // // Not emitting: Non-public method // /// <init> // fn new<'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::Result<__jni_bindgen::Local<'env, crate::android::provider::BlockedNumberContract>> { // // class.path == "android/provider/BlockedNumberContract", java.flags == (empty), .name == "<init>", .descriptor == "()V" // unsafe { // let __jni_args = []; // let (__jni_class, __jni_method) = __jni_env.require_class_method("android/provider/BlockedNumberContract\0", "<init>\0", "()V\0"); // __jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr()) // } // } /// [isBlocked](https://developer.android.com/reference/android/provider/BlockedNumberContract.html#isBlocked(android,%2520content,%2520Context,%2520java,%2520lang,%2520String)) /// /// Required features: "android-content-Context", "java-lang-String" #[cfg(any(feature = "all", all(feature = "android-content-Context", feature = "java-lang-String")))] pub fn is_blocked<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::content::Context>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>) -> __jni_bindgen::Result<bool> { // class.path == "android/provider/BlockedNumberContract", java.flags == PUBLIC | STATIC, .name == "isBlocked", .descriptor == "(Landroid/content/Context;Ljava/lang/String;)Z" unsafe { let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1.into())]; let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/provider/BlockedNumberContract\0", "isBlocked\0", "(Landroid/content/Context;Ljava/lang/String;)Z\0"); __jni_env.call_static_boolean_method_a(__jni_class, __jni_method, __jni_args.as_ptr()) } } /// [unblock](https://developer.android.com/reference/android/provider/BlockedNumberContract.html#unblock(android,%2520content,%2520Context,%2520java,%2520lang,%2520String)) /// /// Required features: "android-content-Context", "java-lang-String" #[cfg(any(feature = "all", all(feature = "android-content-Context", feature = "java-lang-String")))] pub fn unblock<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::content::Context>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>) -> __jni_bindgen::Result<i32> { // class.path == "android/provider/BlockedNumberContract", java.flags == PUBLIC | STATIC, .name == "unblock", .descriptor == "(Landroid/content/Context;Ljava/lang/String;)I" unsafe { let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1.into())]; let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/provider/BlockedNumberContract\0", "unblock\0", "(Landroid/content/Context;Ljava/lang/String;)I\0"); __jni_env.call_static_int_method_a(__jni_class, __jni_method, __jni_args.as_ptr()) } } /// [canCurrentUserBlockNumbers](https://developer.android.com/reference/android/provider/BlockedNumberContract.html#canCurrentUserBlockNumbers(android,%2520content,%2520Context)) /// /// Required features: "android-content-Context" #[cfg(any(feature = "all", all(feature = "android-content-Context")))] pub fn can_current_user_block_numbers<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::content::Context>>) -> __jni_bindgen::Result<bool> { // class.path == "android/provider/BlockedNumberContract", java.flags == PUBLIC | STATIC, .name == "canCurrentUserBlockNumbers", .descriptor == "(Landroid/content/Context;)Z" unsafe { let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())]; let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/provider/BlockedNumberContract\0", "canCurrentUserBlockNumbers\0", "(Landroid/content/Context;)Z\0"); __jni_env.call_static_boolean_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/provider/BlockedNumberContract", java.flags == STATIC, .name == "<clinit>", .descriptor == "()V" // unsafe { // let __jni_args = []; // let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/provider/BlockedNumberContract\0", "<clinit>\0", "()V\0"); // __jni_env.call_static_void_method_a(__jni_class, __jni_method, __jni_args.as_ptr()) // } // } /// public static final [AUTHORITY](https://developer.android.com/reference/android/provider/BlockedNumberContract.html#AUTHORITY) pub const AUTHORITY : &'static str = "com.android.blockednumber"; // // Not emitting: Haven't yet implemented object field types // /// **get** public static final [AUTHORITY_URI](https://developer.android.com/reference/android/provider/BlockedNumberContract.html#AUTHORITY_URI) // /// // /// Required feature: android-net-Uri // #[cfg(any(feature = "all", feature = "android-net-Uri"))] // pub fn authority_uri<'env>(env: &'env __jni_bindgen::Env) -> android/net/Uri { // unsafe { // let (class, field) = env.require_class_static_field("android/provider/BlockedNumberContract\0", "AUTHORITY_URI\0", "Landroid/net/Uri;\0"); // env.get_static_object_field(class, field) // } // } } }