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
// WARNING:  This file was autogenerated by jni-bindgen.  Any changes to this file may be lost!!!


#[cfg(any(feature = "all", feature = "android-provider-UserDictionary_Words"))]
__jni_bindgen! {
    /// public class [UserDictionary.Words](https://developer.android.com/reference/android/provider/UserDictionary.Words.html)
    ///
    /// Required feature: "android-provider-UserDictionary_Words"
    public class UserDictionary_Words ("android/provider/UserDictionary$Words") extends crate::java::lang::Object, implements crate::android::provider::BaseColumns {

        /// [Words](https://developer.android.com/reference/android/provider/UserDictionary.Words.html#Words())
        pub fn new<'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::android::provider::UserDictionary_Words>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/provider/UserDictionary$Words", java.flags == PUBLIC, .name == "<init>", .descriptor == "()V"
            unsafe {
                let __jni_args = [];
                let (__jni_class, __jni_method) = __jni_env.require_class_method("android/provider/UserDictionary$Words\0", "<init>\0", "()V\0");
                __jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [addWord](https://developer.android.com/reference/android/provider/UserDictionary.Words.html#addWord(android.content.Context,%20java.lang.String,%20int,%20int))
        ///
        /// Required features: "android-content-Context", "java-lang-String"
        #[cfg(any(feature = "all", all(feature = "android-content-Context", feature = "java-lang-String")))]
        #[deprecated] pub fn addWord_Context_String_int_int<'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>>, arg2: i32, arg3: i32) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/provider/UserDictionary$Words", java.flags == PUBLIC | STATIC, .name == "addWord", .descriptor == "(Landroid/content/Context;Ljava/lang/String;II)V"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1.into()), __jni_bindgen::AsJValue::as_jvalue(&arg2), __jni_bindgen::AsJValue::as_jvalue(&arg3)];
                let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/provider/UserDictionary$Words\0", "addWord\0", "(Landroid/content/Context;Ljava/lang/String;II)V\0");
                __jni_env.call_static_void_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [addWord](https://developer.android.com/reference/android/provider/UserDictionary.Words.html#addWord(android.content.Context,%20java.lang.String,%20int,%20java.lang.String,%20java.util.Locale))
        ///
        /// Required features: "android-content-Context", "java-lang-String", "java-util-Locale"
        #[cfg(any(feature = "all", all(feature = "android-content-Context", feature = "java-lang-String", feature = "java-util-Locale")))]
        pub fn addWord_Context_String_int_String_Locale<'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>>, arg2: i32, arg3: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>, arg4: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::util::Locale>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/provider/UserDictionary$Words", java.flags == PUBLIC | STATIC, .name == "addWord", .descriptor == "(Landroid/content/Context;Ljava/lang/String;ILjava/lang/String;Ljava/util/Locale;)V"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1.into()), __jni_bindgen::AsJValue::as_jvalue(&arg2), __jni_bindgen::AsJValue::as_jvalue(&arg3.into()), __jni_bindgen::AsJValue::as_jvalue(&arg4.into())];
                let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/provider/UserDictionary$Words\0", "addWord\0", "(Landroid/content/Context;Ljava/lang/String;ILjava/lang/String;Ljava/util/Locale;)V\0");
                __jni_env.call_static_void_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }

        /// public static final [APP_ID](https://developer.android.com/reference/android/provider/UserDictionary.Words.html#APP_ID)
        pub const APP_ID : &'static str = "appid";

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

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

        /// **get** public static final [CONTENT_URI](https://developer.android.com/reference/android/provider/UserDictionary.Words.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/UserDictionary$Words\0", "CONTENT_URI\0", "Landroid/net/Uri;\0");
                env.get_static_object_field(__jni_class, __jni_field)
            }
        }

        /// public static final [DEFAULT_SORT_ORDER](https://developer.android.com/reference/android/provider/UserDictionary.Words.html#DEFAULT_SORT_ORDER)
        pub const DEFAULT_SORT_ORDER : &'static str = "frequency DESC";

        /// public static final [FREQUENCY](https://developer.android.com/reference/android/provider/UserDictionary.Words.html#FREQUENCY)
        pub const FREQUENCY : &'static str = "frequency";

        /// public static final [LOCALE](https://developer.android.com/reference/android/provider/UserDictionary.Words.html#LOCALE)
        pub const LOCALE : &'static str = "locale";

        /// public static final [LOCALE_TYPE_ALL](https://developer.android.com/reference/android/provider/UserDictionary.Words.html#LOCALE_TYPE_ALL)
        #[deprecated] pub const LOCALE_TYPE_ALL : i32 = 0;

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

        /// public static final [SHORTCUT](https://developer.android.com/reference/android/provider/UserDictionary.Words.html#SHORTCUT)
        pub const SHORTCUT : &'static str = "shortcut";

        /// public static final [WORD](https://developer.android.com/reference/android/provider/UserDictionary.Words.html#WORD)
        pub const WORD : &'static str = "word";

        /// public static final [_ID](https://developer.android.com/reference/android/provider/UserDictionary.Words.html#_ID)
        pub const _ID : &'static str = "_id";
    }
}