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


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

        /// [getOrCreateThreadId](https://developer.android.com/reference/android/provider/Telephony.Threads.html#getOrCreateThreadId(android.content.Context,%20java.lang.String))
        ///
        /// Required features: "android-content-Context", "java-lang-String"
        #[cfg(any(feature = "all", all(feature = "android-content-Context", feature = "java-lang-String")))]
        pub fn getOrCreateThreadId_Context_String<'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::std::result::Result<i64, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/provider/Telephony$Threads", java.flags == PUBLIC | STATIC, .name == "getOrCreateThreadId", .descriptor == "(Landroid/content/Context;Ljava/lang/String;)J"
            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/Telephony$Threads\0", "getOrCreateThreadId\0", "(Landroid/content/Context;Ljava/lang/String;)J\0");
                __jni_env.call_static_long_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [getOrCreateThreadId](https://developer.android.com/reference/android/provider/Telephony.Threads.html#getOrCreateThreadId(android.content.Context,%20java.util.Set))
        ///
        /// Required features: "android-content-Context", "java-util-Set"
        #[cfg(any(feature = "all", all(feature = "android-content-Context", feature = "java-util-Set")))]
        pub fn getOrCreateThreadId_Context_Set<'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::util::Set>>) -> __jni_bindgen::std::result::Result<i64, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/provider/Telephony$Threads", java.flags == PUBLIC | STATIC, .name == "getOrCreateThreadId", .descriptor == "(Landroid/content/Context;Ljava/util/Set;)J"
            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/Telephony$Threads\0", "getOrCreateThreadId\0", "(Landroid/content/Context;Ljava/util/Set;)J\0");
                __jni_env.call_static_long_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }

        /// public static final [BROADCAST_THREAD](https://developer.android.com/reference/android/provider/Telephony.Threads.html#BROADCAST_THREAD)
        pub const BROADCAST_THREAD : i32 = 1;

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

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

        /// **get** public static final [OBSOLETE_THREADS_URI](https://developer.android.com/reference/android/provider/Telephony.Threads.html#OBSOLETE_THREADS_URI)
        ///
        /// Required feature: "android-net-Uri"
        #[cfg(any(feature = "all", feature = "android-net-Uri"))]
        pub fn OBSOLETE_THREADS_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/Telephony$Threads\0", "OBSOLETE_THREADS_URI\0", "Landroid/net/Uri;\0");
                env.get_static_object_field(__jni_class, __jni_field)
            }
        }
    }
}