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
// WARNING: This file was autogenerated by jni-bindgen. Any changes to this file may be lost!!!
#[cfg(any(feature = "all", feature = "android-provider-CallLog_Calls"))]
__jni_bindgen! {
/// public class [CallLog.Calls](https://developer.android.com/reference/android/provider/CallLog.Calls.html)
///
/// Required feature: "android-provider-CallLog_Calls"
public class CallLog_Calls ("android/provider/CallLog$Calls") extends crate::java::lang::Object, implements crate::android::provider::BaseColumns {
/// [Calls](https://developer.android.com/reference/android/provider/CallLog.Calls.html#Calls())
pub fn new<'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::android::provider::CallLog_Calls>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/provider/CallLog$Calls", java.flags == PUBLIC, .name == "<init>", .descriptor == "()V"
unsafe {
let __jni_args = [];
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/provider/CallLog$Calls\0", "<init>\0", "()V\0");
__jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [getLastOutgoingCall](https://developer.android.com/reference/android/provider/CallLog.Calls.html#getLastOutgoingCall(android.content.Context))
///
/// Required features: "android-content-Context", "java-lang-String"
#[cfg(any(feature = "all", all(feature = "android-content-Context", feature = "java-lang-String")))]
pub fn getLastOutgoingCall<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::content::Context>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::lang::String>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/provider/CallLog$Calls", java.flags == PUBLIC | STATIC, .name == "getLastOutgoingCall", .descriptor == "(Landroid/content/Context;)Ljava/lang/String;"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/provider/CallLog$Calls\0", "getLastOutgoingCall\0", "(Landroid/content/Context;)Ljava/lang/String;\0");
__jni_env.call_static_object_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// **get** public static final [CONTENT_URI](https://developer.android.com/reference/android/provider/CallLog.Calls.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/CallLog$Calls\0", "CONTENT_URI\0", "Landroid/net/Uri;\0");
env.get_static_object_field(__jni_class, __jni_field)
}
}
/// **get** public static final [CONTENT_FILTER_URI](https://developer.android.com/reference/android/provider/CallLog.Calls.html#CONTENT_FILTER_URI)
///
/// Required feature: "android-net-Uri"
#[cfg(any(feature = "all", feature = "android-net-Uri"))]
pub fn CONTENT_FILTER_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/CallLog$Calls\0", "CONTENT_FILTER_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/CallLog.Calls.html#DEFAULT_SORT_ORDER)
pub const DEFAULT_SORT_ORDER : &'static str = "date DESC";
/// public static final [CONTENT_TYPE](https://developer.android.com/reference/android/provider/CallLog.Calls.html#CONTENT_TYPE)
pub const CONTENT_TYPE : &'static str = "vnd.android.cursor.dir/calls";
/// public static final [CONTENT_ITEM_TYPE](https://developer.android.com/reference/android/provider/CallLog.Calls.html#CONTENT_ITEM_TYPE)
pub const CONTENT_ITEM_TYPE : &'static str = "vnd.android.cursor.item/calls";
/// public static final [TYPE](https://developer.android.com/reference/android/provider/CallLog.Calls.html#TYPE)
pub const TYPE : &'static str = "type";
/// public static final [INCOMING_TYPE](https://developer.android.com/reference/android/provider/CallLog.Calls.html#INCOMING_TYPE)
pub const INCOMING_TYPE : i32 = 1;
/// public static final [OUTGOING_TYPE](https://developer.android.com/reference/android/provider/CallLog.Calls.html#OUTGOING_TYPE)
pub const OUTGOING_TYPE : i32 = 2;
/// public static final [MISSED_TYPE](https://developer.android.com/reference/android/provider/CallLog.Calls.html#MISSED_TYPE)
pub const MISSED_TYPE : i32 = 3;
/// public static final [NUMBER](https://developer.android.com/reference/android/provider/CallLog.Calls.html#NUMBER)
pub const NUMBER : &'static str = "number";
/// public static final [DATE](https://developer.android.com/reference/android/provider/CallLog.Calls.html#DATE)
pub const DATE : &'static str = "date";
/// public static final [DURATION](https://developer.android.com/reference/android/provider/CallLog.Calls.html#DURATION)
pub const DURATION : &'static str = "duration";
/// public static final [NEW](https://developer.android.com/reference/android/provider/CallLog.Calls.html#NEW)
pub const NEW : &'static str = "new";
/// public static final [CACHED_NAME](https://developer.android.com/reference/android/provider/CallLog.Calls.html#CACHED_NAME)
pub const CACHED_NAME : &'static str = "name";
/// public static final [CACHED_NUMBER_TYPE](https://developer.android.com/reference/android/provider/CallLog.Calls.html#CACHED_NUMBER_TYPE)
pub const CACHED_NUMBER_TYPE : &'static str = "numbertype";
/// public static final [CACHED_NUMBER_LABEL](https://developer.android.com/reference/android/provider/CallLog.Calls.html#CACHED_NUMBER_LABEL)
pub const CACHED_NUMBER_LABEL : &'static str = "numberlabel";
}
}