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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
#![allow(
unused_parens, unused_mut, nonstandard_style, )]
#![recursion_limit = "512"]
#[cfg(target_os = "fuchsia")]
#[allow(unused_imports)]
use fuchsia_zircon as zx;
#[allow(unused_imports)]
use {
bitflags::bitflags,
fidl::{
client::QueryResponseFut,
encoding::zerocopy,
endpoints::{ControlHandle as _, Responder as _},
fidl_bits, fidl_enum, fidl_struct, fidl_table, fidl_union,
},
fuchsia_zircon_status as zx_status,
futures::future::{self, MaybeDone, TryFutureExt},
};
#[derive(Debug, Copy, Clone, Eq, PartialEq, Ord, PartialOrd, Hash)]
pub struct Config {
pub attach_phone_number_to_voice_tag: bool,
pub echo_canceling_and_noise_reduction: bool,
pub enhanced_call_controls: bool,
pub enhanced_voice_recognition: bool,
pub enhanced_voice_recognition_with_text: bool,
pub in_band_ringtone: bool,
pub in_band_sco: bool,
pub reject_incoming_voice_call: bool,
pub respond_and_hold: bool,
pub three_way_calling: bool,
pub voice_recognition: bool,
pub wide_band_speech: bool,
}
impl fidl::encoding::TopLevel for Config {}
fidl_struct! {
name: Config,
members: [
attach_phone_number_to_voice_tag {
ty: bool,
index: 0,
typevar: T0,
offset_v1: 0,
offset_v2: 0,
},
echo_canceling_and_noise_reduction {
ty: bool,
index: 1,
typevar: T1,
offset_v1: 1,
offset_v2: 1,
},
enhanced_call_controls {
ty: bool,
index: 2,
typevar: T2,
offset_v1: 2,
offset_v2: 2,
},
enhanced_voice_recognition {
ty: bool,
index: 3,
typevar: T3,
offset_v1: 3,
offset_v2: 3,
},
enhanced_voice_recognition_with_text {
ty: bool,
index: 4,
typevar: T4,
offset_v1: 4,
offset_v2: 4,
},
in_band_ringtone {
ty: bool,
index: 5,
typevar: T5,
offset_v1: 5,
offset_v2: 5,
},
in_band_sco {
ty: bool,
index: 6,
typevar: T6,
offset_v1: 6,
offset_v2: 6,
},
reject_incoming_voice_call {
ty: bool,
index: 7,
typevar: T7,
offset_v1: 7,
offset_v2: 7,
},
respond_and_hold {
ty: bool,
index: 8,
typevar: T8,
offset_v1: 8,
offset_v2: 8,
},
three_way_calling {
ty: bool,
index: 9,
typevar: T9,
offset_v1: 9,
offset_v2: 9,
},
voice_recognition {
ty: bool,
index: 10,
typevar: T10,
offset_v1: 10,
offset_v2: 10,
},
wide_band_speech {
ty: bool,
index: 11,
typevar: T11,
offset_v1: 11,
offset_v2: 11,
},
],
padding_v1: [
],
padding_v2: [
],
size_v1: 12,
size_v2: 12,
align_v1: 1,
align_v2: 1,
}