jni-android-sys 0.0.10

Autogenerated glue code for access Android JVM APIs from Rust
// WARNING:  This file was autogenerated by jni-bindgen.  Any changes to this file may be lost!!!


#[cfg(any(feature = "all", feature = "android-provider-ContactsContract_RawContacts"))]
__jni_bindgen! {
    /// public final class [ContactsContract.RawContacts](https://developer.android.com/reference/android/provider/ContactsContract.RawContacts.html)
    ///
    /// Required feature: "android-provider-ContactsContract_RawContacts"
    public final class ContactsContract_RawContacts ("android/provider/ContactsContract$RawContacts") extends crate::java::lang::Object, implements crate::android::provider::BaseColumns, crate::android::provider::ContactsContract_RawContactsColumns, crate::android::provider::ContactsContract_ContactOptionsColumns, crate::android::provider::ContactsContract_ContactNameColumns, crate::android::provider::ContactsContract_SyncColumns {

        /// [getContactLookupUri](https://developer.android.com/reference/android/provider/ContactsContract.RawContacts.html#getContactLookupUri(android.content.ContentResolver,%20android.net.Uri))
        ///
        /// Required features: "android-content-ContentResolver", "android-net-Uri"
        #[cfg(any(feature = "all", all(feature = "android-content-ContentResolver", feature = "android-net-Uri")))]
        pub fn getContactLookupUri<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::content::ContentResolver>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::net::Uri>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::net::Uri>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/provider/ContactsContract$RawContacts", java.flags == PUBLIC | STATIC, .name == "getContactLookupUri", .descriptor == "(Landroid/content/ContentResolver;Landroid/net/Uri;)Landroid/net/Uri;"
            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/ContactsContract$RawContacts\0", "getContactLookupUri\0", "(Landroid/content/ContentResolver;Landroid/net/Uri;)Landroid/net/Uri;\0");
                __jni_env.call_static_object_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [newEntityIterator](https://developer.android.com/reference/android/provider/ContactsContract.RawContacts.html#newEntityIterator(android.database.Cursor))
        ///
        /// Required features: "android-content-EntityIterator", "android-database-Cursor"
        #[cfg(any(feature = "all", all(feature = "android-content-EntityIterator", feature = "android-database-Cursor")))]
        pub fn newEntityIterator<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::database::Cursor>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::content::EntityIterator>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/provider/ContactsContract$RawContacts", java.flags == PUBLIC | STATIC, .name == "newEntityIterator", .descriptor == "(Landroid/database/Cursor;)Landroid/content/EntityIterator;"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
                let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/provider/ContactsContract$RawContacts\0", "newEntityIterator\0", "(Landroid/database/Cursor;)Landroid/content/EntityIterator;\0");
                __jni_env.call_static_object_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }

        /// public static final [AGGREGATION_MODE_DEFAULT](https://developer.android.com/reference/android/provider/ContactsContract.RawContacts.html#AGGREGATION_MODE_DEFAULT)
        pub const AGGREGATION_MODE_DEFAULT : i32 = 0;

        /// public static final [AGGREGATION_MODE_DISABLED](https://developer.android.com/reference/android/provider/ContactsContract.RawContacts.html#AGGREGATION_MODE_DISABLED)
        pub const AGGREGATION_MODE_DISABLED : i32 = 3;

        /// public static final [AGGREGATION_MODE_IMMEDIATE](https://developer.android.com/reference/android/provider/ContactsContract.RawContacts.html#AGGREGATION_MODE_IMMEDIATE)
        #[deprecated] pub const AGGREGATION_MODE_IMMEDIATE : i32 = 1;

        /// public static final [AGGREGATION_MODE_SUSPENDED](https://developer.android.com/reference/android/provider/ContactsContract.RawContacts.html#AGGREGATION_MODE_SUSPENDED)
        pub const AGGREGATION_MODE_SUSPENDED : i32 = 2;

        /// public static final [CONTENT_ITEM_TYPE](https://developer.android.com/reference/android/provider/ContactsContract.RawContacts.html#CONTENT_ITEM_TYPE)
        pub const CONTENT_ITEM_TYPE : &'static str = "vnd.android.cursor.item/raw_contact";

        /// public static final [CONTENT_TYPE](https://developer.android.com/reference/android/provider/ContactsContract.RawContacts.html#CONTENT_TYPE)
        pub const CONTENT_TYPE : &'static str = "vnd.android.cursor.dir/raw_contact";

        /// **get** public static final [CONTENT_URI](https://developer.android.com/reference/android/provider/ContactsContract.RawContacts.html#CONTENT_URI)
        ///
        /// Required feature: "android-net-Uri"
        #[cfg(any(feature = "all", feature = "android-net-Uri"))]
        pub fn CONTENT_URI<'env>(env: &'env __jni_bindgen::Env) -> __jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::net::Uri>> {
            unsafe {
                let (__jni_class, __jni_field) = env.require_class_static_field("android/provider/ContactsContract$RawContacts\0", "CONTENT_URI\0", "Landroid/net/Uri;\0");
                env.get_static_object_field(__jni_class, __jni_field)
            }
        }
    }
}