summaryrefslogtreecommitdiffstats
path: root/interfaces/radio/1.2/types.hal
blob: 188857fe0e40f304fdb70dde4a6d3e01b49cb302 (plain)
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
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
package vendor.samsung.hardware.radio@1.2;

import android.hardware.radio@1.0::AppStatus;
import android.hardware.radio@1.0::Dial;
import android.hardware.radio@1.0::OperatorInfo;
import android.hardware.radio@1.2::AudioQuality;
import android.hardware.radio@1.2::Call;
import android.hardware.radio@1.2::SignalStrength;
import android.hardware.radio@1.2::VoiceRegStateResult;
import android.hardware.radio@1.2::DataRegStateResult;

struct SecSignalStrength {
    SignalStrength base;
    int32_t signalBar;
};

struct OemSSReleaseComplete {
    int32_t size;
    int32_t dataLen;
    int32_t params;
    int32_t status;
    string data;
};

struct OemSimPBResponse {
    vec<int32_t> lengthAlphas;
    vec<int32_t> dataTypeAlphas;
    vec<string> alphaTags;
    vec<int32_t> lengthNumbers;
    vec<int32_t> dataTypeNumbers;
    vec<string> numbers;
    int32_t recordIndex;
    int32_t nextIndex;
};

struct OemCbConfigArgs {
    int32_t bCBEnabled;
    int32_t selectedId;
    int32_t msgIdMaxCount;
    int32_t msgIdCount;
    string msgIDs;
};

struct SecSendSmsResult {
    int32_t messageReg;
    string ackPDU;
    int32_t errorCode;
    int32_t errorClass;
};

struct OemCsgInfo {
    int32_t csgId;
    string name;
    string plmn;
    int32_t rat;
    int32_t category;
    int32_t signalStrength;
};

struct SecAllowDataParam {
    int32_t defaultDataPhoneId;
    int32_t isDataPreferredDuringCall;
};

enum OemCallType : int32_t {
    VOICE = 0,
    VS_TX = 1,
    TS_RX = 2,
    VT = 3,
};

enum OemCallDomain : int32_t {
    UNKNOWN = 0,
    CS = 1,
    PS = 2,
    AUTOMATIC = 3,
};

struct OemCallDetails {
    OemCallType callType;
    OemCallDomain callDomain;
    vec<string> extras;
};

struct OemCallModify {
    int32_t callIndex;
    vec<OemCallDetails> callDetails;
};

struct SecDial {
    Dial base;
    vec<OemCallDetails> callDetails;
};

struct OemPreferredNetworkInfo {
    int32_t index;
    string oper;
    string plmn;
    int32_t gsmAct;
    int32_t gsmCompactAct;
    int32_t utranAct;
    int32_t mode;
};

struct OemEncodedUSSD {
    vec<int8_t> encodedUSSD;
    int32_t ussdLength;
    int32_t dcsCode;
};

struct OemAdnRecord {
    vec<int8_t> name;
    int32_t nameDCS;
    int32_t namelength;
    string number;
    vec<int8_t> gsm8bitEmail;
    int32_t gsm8bitEmaillength;
    string anr;
    string anrA;
    string anrB;
    string anrC;
    vec<int8_t> sne;
    int32_t sneLength;
    int32_t sneDCS;

};

struct OemImsCall {
    int32_t state;
    int32_t type;
    int32_t isMt;
    int32_t isMpty;
    string number;
};

struct DcParam {
    int32_t endc_available;
    int32_t restrict_dcnr;
};

struct NrSignalStrength {
    int32_t rsrp;
    int32_t snr;
};

struct ApnProfile {
    string apn;
    string proto;
    string roamingProto;
    string user;
    string pw;
    string auth;
};

struct SecAppStatus {
    AppStatus base;
    int32_t pin1NumRetries;
    int32_t puk1NumRetries;
    int32_t pin2NumRetries;
    int32_t puk2NumRetries;
    int32_t persoUnblockRetries;
};

struct SecCardStatus {
    int32_t cardState;
    int32_t universalPinState;
    int32_t gsmUmtsSubscriptionAppIndex;
    int32_t cdmaSubscriptionAppIndex;
    int32_t imsSubscriptionAppIndex;
    vec<SecAppStatus> applications;
    int32_t physicalSlotId;
    int32_t atr;
    int32_t iccid;
};

struct SecVoiceRegStateResult {
    VoiceRegStateResult base;
    int32_t lac;
    int32_t cid;
    int32_t psVoiceSupport;
    int32_t imsEmergencyCallSupport;
    int32_t imsEmergencyCallBarring;
    int32_t mobileState;
    int32_t mobileRat;
    bool isPsOnlyReg;
};

struct SecDataRegStateResult {
    DataRegStateResult base;
    int32_t lac;
    int32_t cid;
    int32_t tac;
    int32_t snapshotStatus;
    int32_t mobileState;
    int32_t mobileRat;
    int32_t mobileOptionalRat;
};

struct SecCall {
    Call base;
    AudioQuality audioQuality;
    vec<OemCallDetails> callDetails;
};

struct SecOperatorInfo {
    OperatorInfo base;
    string rat;
    string lac;
};