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
// WARNING: This file was autogenerated by jni-bindgen. Any changes to this file may be lost!!!
#[cfg(any(feature = "all", feature = "android-provider-ContactsContract_Directory"))]
__jni_bindgen! {
/// public final class [ContactsContract.Directory](https://developer.android.com/reference/android/provider/ContactsContract.Directory.html)
///
/// Required feature: "android-provider-ContactsContract_Directory"
public final class ContactsContract_Directory ("android/provider/ContactsContract$Directory") extends crate::java::lang::Object, implements crate::android::provider::BaseColumns {
/// [isRemoteDirectoryId](https://developer.android.com/reference/android/provider/ContactsContract.Directory.html#isRemoteDirectoryId(long))
pub fn isRemoteDirectoryId<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: i64) -> __jni_bindgen::std::result::Result<bool, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/provider/ContactsContract$Directory", java.flags == PUBLIC | STATIC, .name == "isRemoteDirectoryId", .descriptor == "(J)Z"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0)];
let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/provider/ContactsContract$Directory\0", "isRemoteDirectoryId\0", "(J)Z\0");
__jni_env.call_static_boolean_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [isEnterpriseDirectoryId](https://developer.android.com/reference/android/provider/ContactsContract.Directory.html#isEnterpriseDirectoryId(long))
pub fn isEnterpriseDirectoryId<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: i64) -> __jni_bindgen::std::result::Result<bool, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/provider/ContactsContract$Directory", java.flags == PUBLIC | STATIC, .name == "isEnterpriseDirectoryId", .descriptor == "(J)Z"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0)];
let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/provider/ContactsContract$Directory\0", "isEnterpriseDirectoryId\0", "(J)Z\0");
__jni_env.call_static_boolean_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [notifyDirectoryChange](https://developer.android.com/reference/android/provider/ContactsContract.Directory.html#notifyDirectoryChange(android.content.ContentResolver))
///
/// Required features: "android-content-ContentResolver"
#[cfg(any(feature = "all", all(feature = "android-content-ContentResolver")))]
pub fn notifyDirectoryChange<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::content::ContentResolver>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/provider/ContactsContract$Directory", java.flags == PUBLIC | STATIC, .name == "notifyDirectoryChange", .descriptor == "(Landroid/content/ContentResolver;)V"
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$Directory\0", "notifyDirectoryChange\0", "(Landroid/content/ContentResolver;)V\0");
__jni_env.call_static_void_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// public static final [ACCOUNT_NAME](https://developer.android.com/reference/android/provider/ContactsContract.Directory.html#ACCOUNT_NAME)
pub const ACCOUNT_NAME : &'static str = "accountName";
/// public static final [ACCOUNT_TYPE](https://developer.android.com/reference/android/provider/ContactsContract.Directory.html#ACCOUNT_TYPE)
pub const ACCOUNT_TYPE : &'static str = "accountType";
/// public static final [CONTENT_ITEM_TYPE](https://developer.android.com/reference/android/provider/ContactsContract.Directory.html#CONTENT_ITEM_TYPE)
pub const CONTENT_ITEM_TYPE : &'static str = "vnd.android.cursor.item/contact_directory";
/// public static final [CONTENT_TYPE](https://developer.android.com/reference/android/provider/ContactsContract.Directory.html#CONTENT_TYPE)
pub const CONTENT_TYPE : &'static str = "vnd.android.cursor.dir/contact_directories";
/// **get** public static final [CONTENT_URI](https://developer.android.com/reference/android/provider/ContactsContract.Directory.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$Directory\0", "CONTENT_URI\0", "Landroid/net/Uri;\0");
env.get_static_object_field(__jni_class, __jni_field)
}
}
/// public static final [DEFAULT](https://developer.android.com/reference/android/provider/ContactsContract.Directory.html#DEFAULT)
pub const DEFAULT : i64 = 0i64;
/// public static final [DIRECTORY_AUTHORITY](https://developer.android.com/reference/android/provider/ContactsContract.Directory.html#DIRECTORY_AUTHORITY)
pub const DIRECTORY_AUTHORITY : &'static str = "authority";
/// public static final [DISPLAY_NAME](https://developer.android.com/reference/android/provider/ContactsContract.Directory.html#DISPLAY_NAME)
pub const DISPLAY_NAME : &'static str = "displayName";
/// **get** public static final [ENTERPRISE_CONTENT_URI](https://developer.android.com/reference/android/provider/ContactsContract.Directory.html#ENTERPRISE_CONTENT_URI)
///
/// Required feature: "android-net-Uri"
#[cfg(any(feature = "all", feature = "android-net-Uri"))]
pub fn ENTERPRISE_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$Directory\0", "ENTERPRISE_CONTENT_URI\0", "Landroid/net/Uri;\0");
env.get_static_object_field(__jni_class, __jni_field)
}
}
/// public static final [ENTERPRISE_DEFAULT](https://developer.android.com/reference/android/provider/ContactsContract.Directory.html#ENTERPRISE_DEFAULT)
pub const ENTERPRISE_DEFAULT : i64 = 1000000000i64;
/// public static final [ENTERPRISE_LOCAL_INVISIBLE](https://developer.android.com/reference/android/provider/ContactsContract.Directory.html#ENTERPRISE_LOCAL_INVISIBLE)
pub const ENTERPRISE_LOCAL_INVISIBLE : i64 = 1000000001i64;
/// public static final [EXPORT_SUPPORT](https://developer.android.com/reference/android/provider/ContactsContract.Directory.html#EXPORT_SUPPORT)
pub const EXPORT_SUPPORT : &'static str = "exportSupport";
/// public static final [EXPORT_SUPPORT_ANY_ACCOUNT](https://developer.android.com/reference/android/provider/ContactsContract.Directory.html#EXPORT_SUPPORT_ANY_ACCOUNT)
pub const EXPORT_SUPPORT_ANY_ACCOUNT : i32 = 2;
/// public static final [EXPORT_SUPPORT_NONE](https://developer.android.com/reference/android/provider/ContactsContract.Directory.html#EXPORT_SUPPORT_NONE)
pub const EXPORT_SUPPORT_NONE : i32 = 0;
/// public static final [EXPORT_SUPPORT_SAME_ACCOUNT_ONLY](https://developer.android.com/reference/android/provider/ContactsContract.Directory.html#EXPORT_SUPPORT_SAME_ACCOUNT_ONLY)
pub const EXPORT_SUPPORT_SAME_ACCOUNT_ONLY : i32 = 1;
/// public static final [LOCAL_INVISIBLE](https://developer.android.com/reference/android/provider/ContactsContract.Directory.html#LOCAL_INVISIBLE)
pub const LOCAL_INVISIBLE : i64 = 1i64;
/// public static final [PACKAGE_NAME](https://developer.android.com/reference/android/provider/ContactsContract.Directory.html#PACKAGE_NAME)
pub const PACKAGE_NAME : &'static str = "packageName";
/// public static final [PHOTO_SUPPORT](https://developer.android.com/reference/android/provider/ContactsContract.Directory.html#PHOTO_SUPPORT)
pub const PHOTO_SUPPORT : &'static str = "photoSupport";
/// public static final [PHOTO_SUPPORT_FULL](https://developer.android.com/reference/android/provider/ContactsContract.Directory.html#PHOTO_SUPPORT_FULL)
pub const PHOTO_SUPPORT_FULL : i32 = 3;
/// public static final [PHOTO_SUPPORT_FULL_SIZE_ONLY](https://developer.android.com/reference/android/provider/ContactsContract.Directory.html#PHOTO_SUPPORT_FULL_SIZE_ONLY)
pub const PHOTO_SUPPORT_FULL_SIZE_ONLY : i32 = 2;
/// public static final [PHOTO_SUPPORT_NONE](https://developer.android.com/reference/android/provider/ContactsContract.Directory.html#PHOTO_SUPPORT_NONE)
pub const PHOTO_SUPPORT_NONE : i32 = 0;
/// public static final [PHOTO_SUPPORT_THUMBNAIL_ONLY](https://developer.android.com/reference/android/provider/ContactsContract.Directory.html#PHOTO_SUPPORT_THUMBNAIL_ONLY)
pub const PHOTO_SUPPORT_THUMBNAIL_ONLY : i32 = 1;
/// public static final [SHORTCUT_SUPPORT](https://developer.android.com/reference/android/provider/ContactsContract.Directory.html#SHORTCUT_SUPPORT)
pub const SHORTCUT_SUPPORT : &'static str = "shortcutSupport";
/// public static final [SHORTCUT_SUPPORT_DATA_ITEMS_ONLY](https://developer.android.com/reference/android/provider/ContactsContract.Directory.html#SHORTCUT_SUPPORT_DATA_ITEMS_ONLY)
pub const SHORTCUT_SUPPORT_DATA_ITEMS_ONLY : i32 = 1;
/// public static final [SHORTCUT_SUPPORT_FULL](https://developer.android.com/reference/android/provider/ContactsContract.Directory.html#SHORTCUT_SUPPORT_FULL)
pub const SHORTCUT_SUPPORT_FULL : i32 = 2;
/// public static final [SHORTCUT_SUPPORT_NONE](https://developer.android.com/reference/android/provider/ContactsContract.Directory.html#SHORTCUT_SUPPORT_NONE)
pub const SHORTCUT_SUPPORT_NONE : i32 = 0;
/// public static final [TYPE_RESOURCE_ID](https://developer.android.com/reference/android/provider/ContactsContract.Directory.html#TYPE_RESOURCE_ID)
pub const TYPE_RESOURCE_ID : &'static str = "typeResourceId";
}
}