• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2021-2022 Huawei Device Co., Ltd.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 #ifndef RADIO_EVENT_H
17 #define RADIO_EVENT_H
18 enum RadioEvent {
19     // modem
20     RADIO_STATE_CHANGED = 0,
21     RADIO_GET_STATUS,
22     RADIO_SET_STATUS,
23     RADIO_GET_VOICE_TECH,
24     RADIO_VOICE_TECH_CHANGED,
25 
26     RADIO_POWER,
27     RADIO_ON,
28     RADIO_AVAIL,
29     RADIO_OFF,
30     RADIO_NOT_AVAIL,
31     RADIO_DATA_CALL_LIST_CHANGED,
32     RADIO_IMS_NETWORK_STATE_CHANGED,
33     RADIO_ICC_STATUS_CHANGED,
34     RADIO_CONNECTED,
35     RADIO_ICC_REFRESH,
36     RADIO_PCODATA,
37     RADIO_GSM_SMS,
38     RADIO_CDMA_SMS,
39     RADIO_CALL_STATUS_INFO,
40     RADIO_CALL_USSD_NOTICE,
41     RADIO_CALL_SS_NOTICE,
42     RADIO_CALL_RINGBACK_VOICE,
43     RADIO_CALL_SRVCC_STATUS,
44     RADIO_CALL_EMERGENCY_NUMBER_REPORT,
45     RADIO_CALL_RSRVCC_STATUS,
46 
47     RADIO_SMS_ON_SIM,
48     RADIO_SMS_STATUS,
49     RADIO_RESTRICTED_STATE,
50     RADIO_CELL_BROADCAST,
51     RADIO_CDMA_CELL_BROADCAST,
52     RADIO_RIL_SETUP_DATA_CALL,
53     RADIO_RIL_DEACTIVATE_DATA_CALL,
54     RADIO_LINK_CAPABILITY_CHANGED,
55     RADIO_DSDS_MODE_CHANGED,
56     RADIO_RIL_ADAPTER_HOST_DIED,
57     RADIO_CLEAN_ALL_DATA_CONNECTIONS,
58 
59     // cellular call
60     RADIO_DIAL = 101,
61     RADIO_REJECT_CALL,
62     RADIO_HANGUP_CONNECT,
63     RADIO_ACCEPT_CALL,
64     RADIO_CURRENT_CALLS,
65     RADIO_HOLD_CALL,
66     RADIO_ACTIVE_CALL,
67     RADIO_SWAP_CALL,
68     RADIO_COMBINE_CALL,
69     RADIO_JOIN_CALL,
70     RADIO_SPLIT_CALL,
71     RADIO_CALL_SUPPLEMENT,
72     RADIO_GET_CALL_WAIT,
73     RADIO_SET_CALL_WAIT,
74     RADIO_GET_CALL_FORWARD,
75     RADIO_SET_CALL_FORWARD,
76     RADIO_GET_CALL_CLIP,
77     RADIO_SET_CALL_CLIP,
78     RADIO_GET_CALL_CLIR,
79     RADIO_SET_CALL_CLIR,
80     RADIO_GET_CALL_RESTRICTION,
81     RADIO_SET_CALL_RESTRICTION,
82     RADIO_SET_CALL_RESTRICTION_PWD,
83     RADIO_SEND_DTMF,
84     RADIO_START_DTMF,
85     RADIO_STOP_DTMF,
86     RADIO_SET_CALL_PREFERENCE_MODE,
87     RADIO_GET_CALL_PREFERENCE_MODE,
88     RADIO_SET_IMS_SWITCH_STATUS,
89     RADIO_GET_IMS_SWITCH_STATUS,
90     RADIO_SET_USSD,
91     RADIO_GET_USSD,
92     RADIO_SET_CMUT,
93     RADIO_GET_CMUT,
94     RADIO_GET_EMERGENCY_CALL_LIST,
95     RADIO_SET_EMERGENCY_CALL_LIST,
96     RADIO_GET_CALL_FAIL_REASON,
97     RADIO_CLOSE_UNFINISHED_USSD,
98     RADIO_SET_VONR_SWITCH_STATUS,
99     RADIO_RECV_CALL_MEDIA_MODE_REQUEST,
100     RADIO_RECV_CALL_MEDIA_MODE_RESPONSE,
101     RADIO_CALL_SESSION_EVENT_CHANGED,
102     RADIO_CALL_PEER_DIMENSIONS_CHANGED,
103     RADIO_CALL_DATA_USAGE_CHANGED,
104     RADIO_CAMERA_CAPABILITIES_CHANGED,
105 
106     // Ims sms
107     RADIO_SEND_IMS_GSM_SMS = 201,
108     RADIO_SEND_SMS,
109     RADIO_SEND_CDMA_SMS,
110     RADIO_STORAGE_SMS,
111     RADIO_DELETE_SMS,
112     RADIO_SEND_SMS_EXPECT_MORE,
113     RADIO_ADD_CDMA_SMS,
114     RADIO_DEL_CDMA_SMS,
115     RADIO_UPDATE_CDMA_SMS,
116     RADIO_SET_IMS_SMS,
117     RADIO_GET_IMS_SMS,
118 
119     // Network Search
120     RADIO_NETWORK_STATE = 301,
121     RADIO_VOICE_REG_STATE,
122     RADIO_DATA_REG_STATE,
123     RADIO_OPERATOR,
124     RADIO_GET_SIGNAL_STRENGTH,
125     RADIO_SIGNAL_STRENGTH_UPDATE,
126     RADIO_NETWORK_SEARCH_RESULT,
127     RADIO_GET_NETWORK_SELECTION_MODE,
128     RADIO_SET_NETWORK_SELECTION_MODE,
129     RADIO_GET_NEIGHBORING_CELL_INFO,
130     RADIO_GET_CURRENT_CELL_INFO,
131     RADIO_NETWORK_TIME_UPDATE,
132     RADIO_NETWORK_TIME_ZONE_UPDATE,
133     RADIO_SET_PREFERRED_NETWORK_MODE,
134     RADIO_GET_PREFERRED_NETWORK_MODE,
135     RADIO_NITZ_UPDATE,
136     RADIO_GET_IMS_REG_STATUS,
137     RADIO_GET_IMEI,
138     RADIO_SET_PS_ATTACH_STATUS,
139     RADIO_GET_MEID,
140     RADIO_CHANNEL_CONFIG_UPDATE,
141     RADIO_SET_LOCATION_UPDATE,
142     RADIO_CURRENT_CELL_UPDATE,
143     RADIO_SET_DATA_CONNECT_ACTIVE,
144     RADIO_SET_DEVICE_STATE,
145     RADIO_SET_NOTIFICATION_FILTER,
146     RADIO_GET_BASEBAND_VERSION,
147     RADIO_SET_NR_OPTION_MODE,
148     RADIO_GET_NR_OPTION_MODE,
149     RADIO_GET_RRC_CONNECTION_STATE,
150     RADIO_RRC_CONNECTION_STATE_UPDATE,
151     NOTIFY_STATE_CHANGE,
152     DELAY_NOTIFY_STATE_CHANGE,
153     RADIO_RESIDENT_NETWORK_CHANGE,
154     RADIO_GET_NR_SSBID_INFO,
155 
156     // module internal events
157     RADIO_PS_CONNECTION_ATTACHED = 401,
158     RADIO_PS_CONNECTION_DETACHED,
159     RADIO_IMS_REG_STATUS_UPDATE,
160     RADIO_NR_STATE_CHANGED,
161     RADIO_NR_FREQUENCY_CHANGED,
162     RADIO_PS_RAT_CHANGED,
163     RADIO_PS_ROAMING_OPEN,
164     RADIO_PS_ROAMING_CLOSE,
165     RADIO_EMERGENCY_STATE_OPEN,
166     RADIO_EMERGENCY_STATE_CLOSE,
167     RADIO_FACTORY_RESET,
168 
169     // SIM
170     RADIO_SIM_GET_STATUS = 501,
171     RADIO_SIM_IO,
172     RADIO_SIM_GET_IMSI,
173     RADIO_SIM_GET_ICCID,
174     RADIO_SIM_GET_LOCK_STATUS,
175     RADIO_SIM_SET_LOCK,
176     RADIO_SIM_CHANGE_PASSWD,
177     RADIO_SIM_ENTER_PIN,
178     RADIO_SIM_UNLOCK_PIN,
179     RADIO_SIM_PIN_INPUT_TIMES,
180     RADIO_SIM_ENTER_PIN2,
181     RADIO_SIM_UNLOCK_PIN2,
182     RADIO_SIM_PIN2_INPUT_TIMES,
183     RADIO_SIM_CARD_ENABLED,
184     RADIO_SIM_STATE_CHANGE,
185     RADIO_SIM_STATE_READY,
186     RADIO_SIM_STATE_LOCKED,
187     RADIO_SIM_STATE_SIMLOCK,
188     RADIO_IMSI_LOADED_READY,
189     RADIO_SIM_RECORDS_LOADED,
190     RADIO_SIM_ACCOUNT_LOADED,
191     RADIO_SIM_GET_RADIO_PROTOCOL,
192     RADIO_SIM_CHECK_RADIO_PROTOCOL,
193     RADIO_SIM_UPDATE_RADIO_PROTOCOL,
194     RADIO_SIM_RADIO_PROTOCOL_NOTIFY,
195     RADIO_SIM_SET_RADIO_PROTOCOL_COMPLETE,
196     RADIO_SIM_SET_RADIO_PROTOCOL_TIMEOUT,
197 
198     // STK
199     RADIO_STK_SESSION_END,
200     RADIO_STK_PROACTIVE_COMMAND,
201     RADIO_STK_ALPHA_NOTIFY,
202     RADIO_STK_EVENT_NOTIFY,
203     RADIO_STK_CALL_SETUP,
204     RADIO_STK_SEND_TERMINAL_RESPONSE,
205     RADIO_STK_SEND_ENVELOPE,
206     RADIO_STK_SEND_CALL_SETUP_REQUEST_RESULT,
207     RADIO_STK_IS_READY,
208 
209     RADIO_UPDATE_SMS,
210     RADIO_SET_SMS_CENTER_ADDRESS,
211     RADIO_GET_SMS_CENTER_ADDRESS,
212     RADIO_SET_CELL_BROADCAST,
213     RADIO_SET_CDMA_CELL_BROADCAST,
214     RADIO_GET_CELL_BROADCAST,
215     RADIO_GET_CDMA_CELL_BROADCAST,
216     RADIO_ACTIVE_CDMA_CELL_BROADCAST,
217 
218     // Card
219     RADIO_CARD_TYPE_CHANGE,
220 
221     // IMS core service
222     RADIO_IMS_SERVICE_STATUS_UPDATE = 1000,
223     RADIO_IMS_REGISTER_STATE_UPDATE,
224 
225     // IMS call
226     RADIO_IMS_CALL_STATUS_INFO,
227     RADIO_IMS_GET_CALL_DATA,
228 
229     // IMS supplement
230     RADIO_IMS_SET_CLIP,
231     RADIO_IMS_SET_COLR,
232     RADIO_IMS_GET_COLR,
233     RADIO_IMS_SET_COLP,
234     RADIO_IMS_GET_COLP,
235 
236     // Satellite status
237     SATELLITE_STATUS_CHANGED,
238     GET_SATELLITE_CAPABILITY
239 };
240 #endif // RADIO_EVENT_H
241