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
// WARNING: This file was autogenerated by jni-bindgen. Any changes to this file may be lost!!! #[cfg(any(feature = "all", feature = "android-provider-ContactsContract_CommonDataKinds_Im"))] __jni_bindgen! { /// public final class [ContactsContract.CommonDataKinds.Im](https://developer.android.com/reference/android/provider/ContactsContract.CommonDataKinds.Im.html) /// /// Required feature: "android-provider-ContactsContract_CommonDataKinds_Im" public final class ContactsContract_CommonDataKinds_Im ("android/provider/ContactsContract$CommonDataKinds$Im") extends crate::java::lang::Object, implements crate::android::provider::ContactsContract_DataColumnsWithJoins, crate::android::provider::ContactsContract_CommonDataKinds_CommonColumns { /// [getTypeLabelResource](https://developer.android.com/reference/android/provider/ContactsContract.CommonDataKinds.Im.html#getTypeLabelResource(int)) pub fn getTypeLabelResource<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: i32) -> __jni_bindgen::std::result::Result<i32, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> { // class.path == "android/provider/ContactsContract$CommonDataKinds$Im", java.flags == PUBLIC | STATIC, .name == "getTypeLabelResource", .descriptor == "(I)I" unsafe { let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0)]; let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/provider/ContactsContract$CommonDataKinds$Im\0", "getTypeLabelResource\0", "(I)I\0"); __jni_env.call_static_int_method_a(__jni_class, __jni_method, __jni_args.as_ptr()) } } /// [getTypeLabel](https://developer.android.com/reference/android/provider/ContactsContract.CommonDataKinds.Im.html#getTypeLabel(android.content.res.Resources,%20int,%20java.lang.CharSequence)) /// /// Required features: "android-content-res-Resources", "java-lang-CharSequence" #[cfg(any(feature = "all", all(feature = "android-content-res-Resources", feature = "java-lang-CharSequence")))] pub fn getTypeLabel<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::content::res::Resources>>, arg1: i32, arg2: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::CharSequence>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::lang::CharSequence>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> { // class.path == "android/provider/ContactsContract$CommonDataKinds$Im", java.flags == PUBLIC | STATIC, .name == "getTypeLabel", .descriptor == "(Landroid/content/res/Resources;ILjava/lang/CharSequence;)Ljava/lang/CharSequence;" unsafe { let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1), __jni_bindgen::AsJValue::as_jvalue(&arg2.into())]; let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/provider/ContactsContract$CommonDataKinds$Im\0", "getTypeLabel\0", "(Landroid/content/res/Resources;ILjava/lang/CharSequence;)Ljava/lang/CharSequence;\0"); __jni_env.call_static_object_method_a(__jni_class, __jni_method, __jni_args.as_ptr()) } } /// [getProtocolLabelResource](https://developer.android.com/reference/android/provider/ContactsContract.CommonDataKinds.Im.html#getProtocolLabelResource(int)) pub fn getProtocolLabelResource<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: i32) -> __jni_bindgen::std::result::Result<i32, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> { // class.path == "android/provider/ContactsContract$CommonDataKinds$Im", java.flags == PUBLIC | STATIC, .name == "getProtocolLabelResource", .descriptor == "(I)I" unsafe { let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0)]; let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/provider/ContactsContract$CommonDataKinds$Im\0", "getProtocolLabelResource\0", "(I)I\0"); __jni_env.call_static_int_method_a(__jni_class, __jni_method, __jni_args.as_ptr()) } } /// [getProtocolLabel](https://developer.android.com/reference/android/provider/ContactsContract.CommonDataKinds.Im.html#getProtocolLabel(android.content.res.Resources,%20int,%20java.lang.CharSequence)) /// /// Required features: "android-content-res-Resources", "java-lang-CharSequence" #[cfg(any(feature = "all", all(feature = "android-content-res-Resources", feature = "java-lang-CharSequence")))] pub fn getProtocolLabel<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::content::res::Resources>>, arg1: i32, arg2: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::CharSequence>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::lang::CharSequence>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> { // class.path == "android/provider/ContactsContract$CommonDataKinds$Im", java.flags == PUBLIC | STATIC, .name == "getProtocolLabel", .descriptor == "(Landroid/content/res/Resources;ILjava/lang/CharSequence;)Ljava/lang/CharSequence;" unsafe { let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1), __jni_bindgen::AsJValue::as_jvalue(&arg2.into())]; let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/provider/ContactsContract$CommonDataKinds$Im\0", "getProtocolLabel\0", "(Landroid/content/res/Resources;ILjava/lang/CharSequence;)Ljava/lang/CharSequence;\0"); __jni_env.call_static_object_method_a(__jni_class, __jni_method, __jni_args.as_ptr()) } } /// public static final [CONTENT_ITEM_TYPE](https://developer.android.com/reference/android/provider/ContactsContract.CommonDataKinds.Im.html#CONTENT_ITEM_TYPE) pub const CONTENT_ITEM_TYPE : &'static str = "vnd.android.cursor.item/im"; /// public static final [CUSTOM_PROTOCOL](https://developer.android.com/reference/android/provider/ContactsContract.CommonDataKinds.Im.html#CUSTOM_PROTOCOL) pub const CUSTOM_PROTOCOL : &'static str = "data6"; /// public static final [EXTRA_ADDRESS_BOOK_INDEX](https://developer.android.com/reference/android/provider/ContactsContract.CommonDataKinds.Im.html#EXTRA_ADDRESS_BOOK_INDEX) pub const EXTRA_ADDRESS_BOOK_INDEX : &'static str = "android.provider.extra.ADDRESS_BOOK_INDEX"; /// public static final [EXTRA_ADDRESS_BOOK_INDEX_COUNTS](https://developer.android.com/reference/android/provider/ContactsContract.CommonDataKinds.Im.html#EXTRA_ADDRESS_BOOK_INDEX_COUNTS) pub const EXTRA_ADDRESS_BOOK_INDEX_COUNTS : &'static str = "android.provider.extra.ADDRESS_BOOK_INDEX_COUNTS"; /// public static final [EXTRA_ADDRESS_BOOK_INDEX_TITLES](https://developer.android.com/reference/android/provider/ContactsContract.CommonDataKinds.Im.html#EXTRA_ADDRESS_BOOK_INDEX_TITLES) pub const EXTRA_ADDRESS_BOOK_INDEX_TITLES : &'static str = "android.provider.extra.ADDRESS_BOOK_INDEX_TITLES"; /// public static final [PROTOCOL](https://developer.android.com/reference/android/provider/ContactsContract.CommonDataKinds.Im.html#PROTOCOL) pub const PROTOCOL : &'static str = "data5"; /// public static final [PROTOCOL_AIM](https://developer.android.com/reference/android/provider/ContactsContract.CommonDataKinds.Im.html#PROTOCOL_AIM) pub const PROTOCOL_AIM : i32 = 0; /// public static final [PROTOCOL_CUSTOM](https://developer.android.com/reference/android/provider/ContactsContract.CommonDataKinds.Im.html#PROTOCOL_CUSTOM) pub const PROTOCOL_CUSTOM : i32 = -1; /// public static final [PROTOCOL_GOOGLE_TALK](https://developer.android.com/reference/android/provider/ContactsContract.CommonDataKinds.Im.html#PROTOCOL_GOOGLE_TALK) pub const PROTOCOL_GOOGLE_TALK : i32 = 5; /// public static final [PROTOCOL_ICQ](https://developer.android.com/reference/android/provider/ContactsContract.CommonDataKinds.Im.html#PROTOCOL_ICQ) pub const PROTOCOL_ICQ : i32 = 6; /// public static final [PROTOCOL_JABBER](https://developer.android.com/reference/android/provider/ContactsContract.CommonDataKinds.Im.html#PROTOCOL_JABBER) pub const PROTOCOL_JABBER : i32 = 7; /// public static final [PROTOCOL_MSN](https://developer.android.com/reference/android/provider/ContactsContract.CommonDataKinds.Im.html#PROTOCOL_MSN) pub const PROTOCOL_MSN : i32 = 1; /// public static final [PROTOCOL_NETMEETING](https://developer.android.com/reference/android/provider/ContactsContract.CommonDataKinds.Im.html#PROTOCOL_NETMEETING) pub const PROTOCOL_NETMEETING : i32 = 8; /// public static final [PROTOCOL_QQ](https://developer.android.com/reference/android/provider/ContactsContract.CommonDataKinds.Im.html#PROTOCOL_QQ) pub const PROTOCOL_QQ : i32 = 4; /// public static final [PROTOCOL_SKYPE](https://developer.android.com/reference/android/provider/ContactsContract.CommonDataKinds.Im.html#PROTOCOL_SKYPE) pub const PROTOCOL_SKYPE : i32 = 3; /// public static final [PROTOCOL_YAHOO](https://developer.android.com/reference/android/provider/ContactsContract.CommonDataKinds.Im.html#PROTOCOL_YAHOO) pub const PROTOCOL_YAHOO : i32 = 2; /// public static final [TYPE_HOME](https://developer.android.com/reference/android/provider/ContactsContract.CommonDataKinds.Im.html#TYPE_HOME) pub const TYPE_HOME : i32 = 1; /// public static final [TYPE_OTHER](https://developer.android.com/reference/android/provider/ContactsContract.CommonDataKinds.Im.html#TYPE_OTHER) pub const TYPE_OTHER : i32 = 3; /// public static final [TYPE_WORK](https://developer.android.com/reference/android/provider/ContactsContract.CommonDataKinds.Im.html#TYPE_WORK) pub const TYPE_WORK : i32 = 2; } }