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
// WARNING: This file was autogenerated by jni-bindgen. Any changes to this file may be lost!!!
#[cfg(any(feature = "all", feature = "android-telecom-TelecomManager"))]
__jni_bindgen! {
/// public class [TelecomManager](https://developer.android.com/reference/android/telecom/TelecomManager.html)
///
/// Required feature: "android-telecom-TelecomManager"
public class TelecomManager ("android/telecom/TelecomManager") extends crate::java::lang::Object {
/// [isInCall](https://developer.android.com/reference/android/telecom/TelecomManager.html#isInCall())
pub fn isInCall<'env>(&'env self) -> __jni_bindgen::std::result::Result<bool, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/telecom/TelecomManager", java.flags == PUBLIC, .name == "isInCall", .descriptor == "()Z"
unsafe {
let __jni_args = [];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/telecom/TelecomManager\0", "isInCall\0", "()Z\0");
__jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [handleMmi](https://developer.android.com/reference/android/telecom/TelecomManager.html#handleMmi(java.lang.String))
///
/// Required features: "java-lang-String"
#[cfg(any(feature = "all", all(feature = "java-lang-String")))]
pub fn handleMmi<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>) -> __jni_bindgen::std::result::Result<bool, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/telecom/TelecomManager", java.flags == PUBLIC, .name == "handleMmi", .descriptor == "(Ljava/lang/String;)Z"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/telecom/TelecomManager\0", "handleMmi\0", "(Ljava/lang/String;)Z\0");
__jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [cancelMissedCallsNotification](https://developer.android.com/reference/android/telecom/TelecomManager.html#cancelMissedCallsNotification())
pub fn cancelMissedCallsNotification<'env>(&'env self) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/telecom/TelecomManager", java.flags == PUBLIC, .name == "cancelMissedCallsNotification", .descriptor == "()V"
unsafe {
let __jni_args = [];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/telecom/TelecomManager\0", "cancelMissedCallsNotification\0", "()V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [showInCallScreen](https://developer.android.com/reference/android/telecom/TelecomManager.html#showInCallScreen(boolean))
pub fn showInCallScreen<'env>(&'env self, arg0: bool) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/telecom/TelecomManager", java.flags == PUBLIC, .name == "showInCallScreen", .descriptor == "(Z)V"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0)];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/telecom/TelecomManager\0", "showInCallScreen\0", "(Z)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// public static final [ACTION_SHOW_CALL_SETTINGS](https://developer.android.com/reference/android/telecom/TelecomManager.html#ACTION_SHOW_CALL_SETTINGS)
pub const ACTION_SHOW_CALL_SETTINGS : &'static str = "android.telecom.action.SHOW_CALL_SETTINGS";
/// public static final [DTMF_CHARACTER_PAUSE](https://developer.android.com/reference/android/telecom/TelecomManager.html#DTMF_CHARACTER_PAUSE)
pub const DTMF_CHARACTER_PAUSE : __jni_bindgen::jchar = __jni_bindgen::jchar(44);
/// public static final [DTMF_CHARACTER_WAIT](https://developer.android.com/reference/android/telecom/TelecomManager.html#DTMF_CHARACTER_WAIT)
pub const DTMF_CHARACTER_WAIT : __jni_bindgen::jchar = __jni_bindgen::jchar(59);
/// public static final [EXTRA_CALL_DISCONNECT_CAUSE](https://developer.android.com/reference/android/telecom/TelecomManager.html#EXTRA_CALL_DISCONNECT_CAUSE)
pub const EXTRA_CALL_DISCONNECT_CAUSE : &'static str = "android.telecom.extra.CALL_DISCONNECT_CAUSE";
/// public static final [EXTRA_CALL_DISCONNECT_MESSAGE](https://developer.android.com/reference/android/telecom/TelecomManager.html#EXTRA_CALL_DISCONNECT_MESSAGE)
pub const EXTRA_CALL_DISCONNECT_MESSAGE : &'static str = "android.telecom.extra.CALL_DISCONNECT_MESSAGE";
/// public static final [EXTRA_START_CALL_WITH_SPEAKERPHONE](https://developer.android.com/reference/android/telecom/TelecomManager.html#EXTRA_START_CALL_WITH_SPEAKERPHONE)
pub const EXTRA_START_CALL_WITH_SPEAKERPHONE : &'static str = "android.telecom.extra.START_CALL_WITH_SPEAKERPHONE";
/// public static final [GATEWAY_ORIGINAL_ADDRESS](https://developer.android.com/reference/android/telecom/TelecomManager.html#GATEWAY_ORIGINAL_ADDRESS)
pub const GATEWAY_ORIGINAL_ADDRESS : &'static str = "android.telecom.extra.GATEWAY_ORIGINAL_ADDRESS";
/// public static final [GATEWAY_PROVIDER_PACKAGE](https://developer.android.com/reference/android/telecom/TelecomManager.html#GATEWAY_PROVIDER_PACKAGE)
pub const GATEWAY_PROVIDER_PACKAGE : &'static str = "android.telecom.extra.GATEWAY_PROVIDER_PACKAGE";
/// public static final [PRESENTATION_ALLOWED](https://developer.android.com/reference/android/telecom/TelecomManager.html#PRESENTATION_ALLOWED)
pub const PRESENTATION_ALLOWED : i32 = 1;
/// public static final [PRESENTATION_PAYPHONE](https://developer.android.com/reference/android/telecom/TelecomManager.html#PRESENTATION_PAYPHONE)
pub const PRESENTATION_PAYPHONE : i32 = 4;
/// public static final [PRESENTATION_RESTRICTED](https://developer.android.com/reference/android/telecom/TelecomManager.html#PRESENTATION_RESTRICTED)
pub const PRESENTATION_RESTRICTED : i32 = 2;
/// public static final [PRESENTATION_UNKNOWN](https://developer.android.com/reference/android/telecom/TelecomManager.html#PRESENTATION_UNKNOWN)
pub const PRESENTATION_UNKNOWN : i32 = 3;
}
}