blob: 73aa2dfad3ccac7f8cca7bbe71a758ff5483495c [file] [log] [blame]
Daniel Hillenbrand601dc852013-07-07 10:06:59 +02001/* //device/libs/telephony/ril_commands.h
2**
3** Copyright 2006, The Android Open Source Project
4**
5** Licensed under the Apache License, Version 2.0 (the "License");
6** you may not use this file except in compliance with the License.
7** You may obtain a copy of the License at
8**
9** http://www.apache.org/licenses/LICENSE-2.0
10**
11** Unless required by applicable law or agreed to in writing, software
12** distributed under the License is distributed on an "AS IS" BASIS,
13** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14** See the License for the specific language governing permissions and
15** limitations under the License.
16*/
17 {0, NULL, NULL}, //none
18 {RIL_REQUEST_GET_SIM_STATUS, dispatchVoid, responseSimStatus},
19 {RIL_REQUEST_ENTER_SIM_PIN, dispatchStrings, responseInts},
20 {RIL_REQUEST_ENTER_SIM_PUK, dispatchStrings, responseInts},
21 {RIL_REQUEST_ENTER_SIM_PIN2, dispatchStrings, responseInts},
22 {RIL_REQUEST_ENTER_SIM_PUK2, dispatchStrings, responseInts},
23 {RIL_REQUEST_CHANGE_SIM_PIN, dispatchStrings, responseInts},
24 {RIL_REQUEST_CHANGE_SIM_PIN2, dispatchStrings, responseInts},
25 {RIL_REQUEST_ENTER_NETWORK_DEPERSONALIZATION, dispatchStrings, responseInts},
26 {RIL_REQUEST_GET_CURRENT_CALLS, dispatchVoid, responseCallList},
27 {RIL_REQUEST_DIAL, dispatchDial, responseVoid},
28 {RIL_REQUEST_GET_IMSI, dispatchStrings, responseString},
29 {RIL_REQUEST_HANGUP, dispatchInts, responseVoid},
30 {RIL_REQUEST_HANGUP_WAITING_OR_BACKGROUND, dispatchVoid, responseVoid},
31 {RIL_REQUEST_HANGUP_FOREGROUND_RESUME_BACKGROUND, dispatchVoid, responseVoid},
32 {RIL_REQUEST_SWITCH_WAITING_OR_HOLDING_AND_ACTIVE, dispatchVoid, responseVoid},
33 {RIL_REQUEST_CONFERENCE, dispatchVoid, responseVoid},
34 {RIL_REQUEST_UDUB, dispatchVoid, responseVoid},
35 {RIL_REQUEST_LAST_CALL_FAIL_CAUSE, dispatchVoid, responseInts},
36 {RIL_REQUEST_SIGNAL_STRENGTH, dispatchVoid, responseRilSignalStrength},
37 {RIL_REQUEST_VOICE_REGISTRATION_STATE, dispatchVoid, responseStrings},
38 {RIL_REQUEST_DATA_REGISTRATION_STATE, dispatchVoid, responseStrings},
39 {RIL_REQUEST_OPERATOR, dispatchVoid, responseStrings},
40 {RIL_REQUEST_RADIO_POWER, dispatchInts, responseVoid},
41 {RIL_REQUEST_DTMF, dispatchString, responseVoid},
42 {RIL_REQUEST_SEND_SMS, dispatchStrings, responseSMS},
43 {RIL_REQUEST_SEND_SMS_EXPECT_MORE, dispatchStrings, responseSMS},
44 {RIL_REQUEST_SETUP_DATA_CALL, dispatchStrings, responseDataCallList},
45 {RIL_REQUEST_SIM_IO, dispatchSIM_IO, responseSIM_IO},
46 {RIL_REQUEST_SEND_USSD, dispatchString, responseVoid},
47 {RIL_REQUEST_CANCEL_USSD, dispatchVoid, responseVoid},
48 {RIL_REQUEST_GET_CLIR, dispatchVoid, responseInts},
49 {RIL_REQUEST_SET_CLIR, dispatchInts, responseVoid},
50 {RIL_REQUEST_QUERY_CALL_FORWARD_STATUS, dispatchCallForward, responseCallForwards},
51 {RIL_REQUEST_SET_CALL_FORWARD, dispatchCallForward, responseVoid},
52 {RIL_REQUEST_QUERY_CALL_WAITING, dispatchInts, responseInts},
53 {RIL_REQUEST_SET_CALL_WAITING, dispatchInts, responseVoid},
54 {RIL_REQUEST_SMS_ACKNOWLEDGE, dispatchInts, responseVoid},
55 {RIL_REQUEST_GET_IMEI, dispatchVoid, responseString},
56 {RIL_REQUEST_GET_IMEISV, dispatchVoid, responseString},
57 {RIL_REQUEST_ANSWER,dispatchVoid, responseVoid},
58 {RIL_REQUEST_DEACTIVATE_DATA_CALL, dispatchStrings, responseVoid},
59 {RIL_REQUEST_QUERY_FACILITY_LOCK, dispatchStrings, responseInts},
60 {RIL_REQUEST_SET_FACILITY_LOCK, dispatchStrings, responseInts},
61 {RIL_REQUEST_CHANGE_BARRING_PASSWORD, dispatchStrings, responseVoid},
62 {RIL_REQUEST_QUERY_NETWORK_SELECTION_MODE, dispatchVoid, responseInts},
63 {RIL_REQUEST_SET_NETWORK_SELECTION_AUTOMATIC, dispatchVoid, responseVoid},
64 {RIL_REQUEST_SET_NETWORK_SELECTION_MANUAL, dispatchString, responseVoid},
65 {RIL_REQUEST_QUERY_AVAILABLE_NETWORKS , dispatchVoid, responseStringsNetworks},
66 {RIL_REQUEST_DTMF_START, dispatchString, responseVoid},
67 {RIL_REQUEST_DTMF_STOP, dispatchVoid, responseVoid},
68 {RIL_REQUEST_BASEBAND_VERSION, dispatchVoid, responseString},
69 {RIL_REQUEST_SEPARATE_CONNECTION, dispatchInts, responseVoid},
70 {RIL_REQUEST_SET_MUTE, dispatchInts, responseVoid},
71 {RIL_REQUEST_GET_MUTE, dispatchVoid, responseInts},
72 {RIL_REQUEST_QUERY_CLIP, dispatchVoid, responseInts},
73 {RIL_REQUEST_LAST_DATA_CALL_FAIL_CAUSE, dispatchVoid, responseInts},
74 {RIL_REQUEST_DATA_CALL_LIST, dispatchVoid, responseDataCallList},
75 {RIL_REQUEST_RESET_RADIO, dispatchVoid, responseVoid},
76 {RIL_REQUEST_OEM_HOOK_RAW, dispatchRaw, responseRaw},
77 {RIL_REQUEST_OEM_HOOK_STRINGS, dispatchStrings, responseStrings},
78 {RIL_REQUEST_SCREEN_STATE, dispatchInts, responseVoid},
79 {RIL_REQUEST_SET_SUPP_SVC_NOTIFICATION, dispatchInts, responseVoid},
80 {RIL_REQUEST_WRITE_SMS_TO_SIM, dispatchSmsWrite, responseInts},
81 {RIL_REQUEST_DELETE_SMS_ON_SIM, dispatchInts, responseVoid},
82 {RIL_REQUEST_SET_BAND_MODE, dispatchInts, responseVoid},
83 {RIL_REQUEST_QUERY_AVAILABLE_BAND_MODE, dispatchVoid, responseInts},
84 {RIL_REQUEST_STK_GET_PROFILE, dispatchVoid, responseString},
85 {RIL_REQUEST_STK_SET_PROFILE, dispatchString, responseVoid},
86 {RIL_REQUEST_STK_SEND_ENVELOPE_COMMAND, dispatchString, responseString},
87 {RIL_REQUEST_STK_SEND_TERMINAL_RESPONSE, dispatchString, responseVoid},
88 {RIL_REQUEST_STK_HANDLE_CALL_SETUP_REQUESTED_FROM_SIM, dispatchInts, responseVoid},
89 {RIL_REQUEST_EXPLICIT_CALL_TRANSFER, dispatchVoid, responseVoid},
90 {RIL_REQUEST_SET_PREFERRED_NETWORK_TYPE, dispatchInts, responseVoid},
91 {RIL_REQUEST_GET_PREFERRED_NETWORK_TYPE, dispatchVoid, responseIntsGetPreferredNetworkType},
92 {RIL_REQUEST_GET_NEIGHBORING_CELL_IDS, dispatchVoid, responseCellList},
93 {RIL_REQUEST_SET_LOCATION_UPDATES, dispatchInts, responseVoid},
94 {RIL_REQUEST_CDMA_SET_SUBSCRIPTION_SOURCE, dispatchInts, responseVoid},
95 {RIL_REQUEST_CDMA_SET_ROAMING_PREFERENCE, dispatchInts, responseVoid},
96 {RIL_REQUEST_CDMA_QUERY_ROAMING_PREFERENCE, dispatchVoid, responseInts},
97 {RIL_REQUEST_SET_TTY_MODE, dispatchInts, responseVoid},
98 {RIL_REQUEST_QUERY_TTY_MODE, dispatchVoid, responseInts},
99 {RIL_REQUEST_CDMA_SET_PREFERRED_VOICE_PRIVACY_MODE, dispatchInts, responseVoid},
100 {RIL_REQUEST_CDMA_QUERY_PREFERRED_VOICE_PRIVACY_MODE, dispatchVoid, responseInts},
101 {RIL_REQUEST_CDMA_FLASH, dispatchString, responseVoid},
102 {RIL_REQUEST_CDMA_BURST_DTMF, dispatchStrings, responseVoid},
103 {RIL_REQUEST_CDMA_VALIDATE_AND_WRITE_AKEY, dispatchString, responseVoid},
104 {RIL_REQUEST_CDMA_SEND_SMS, dispatchCdmaSms, responseSMS},
105 {RIL_REQUEST_CDMA_SMS_ACKNOWLEDGE, dispatchCdmaSmsAck, responseVoid},
106 {RIL_REQUEST_GSM_GET_BROADCAST_SMS_CONFIG, dispatchVoid, responseGsmBrSmsCnf},
107 {RIL_REQUEST_GSM_SET_BROADCAST_SMS_CONFIG, dispatchGsmBrSmsCnf, responseVoid},
108 {RIL_REQUEST_GSM_SMS_BROADCAST_ACTIVATION, dispatchInts, responseVoid},
109 {RIL_REQUEST_CDMA_GET_BROADCAST_SMS_CONFIG, dispatchVoid, responseCdmaBrSmsCnf},
110 {RIL_REQUEST_CDMA_SET_BROADCAST_SMS_CONFIG, dispatchCdmaBrSmsCnf, responseVoid},
111 {RIL_REQUEST_CDMA_SMS_BROADCAST_ACTIVATION, dispatchInts, responseVoid},
112 {RIL_REQUEST_CDMA_SUBSCRIPTION, dispatchVoid, responseStrings},
113 {RIL_REQUEST_CDMA_WRITE_SMS_TO_RUIM, dispatchRilCdmaSmsWriteArgs, responseInts},
114 {RIL_REQUEST_CDMA_DELETE_SMS_ON_RUIM, dispatchInts, responseVoid},
115 {RIL_REQUEST_DEVICE_IDENTITY, dispatchVoid, responseStrings},
116 {RIL_REQUEST_EXIT_EMERGENCY_CALLBACK_MODE, dispatchVoid, responseVoid},
117 {RIL_REQUEST_GET_SMSC_ADDRESS, dispatchVoid, responseString},
118 {RIL_REQUEST_SET_SMSC_ADDRESS, dispatchString, responseVoid},
119 {RIL_REQUEST_REPORT_SMS_MEMORY_STATUS, dispatchInts, responseVoid},
120 {RIL_REQUEST_REPORT_STK_SERVICE_IS_RUNNING, dispatchVoid, responseVoid},
121 {RIL_REQUEST_CDMA_GET_SUBSCRIPTION_SOURCE, dispatchVoid, responseInts},
122 {RIL_REQUEST_ISIM_AUTHENTICATION, dispatchString, responseString},
123 {RIL_REQUEST_ACKNOWLEDGE_INCOMING_GSM_SMS_WITH_PDU, dispatchStrings, responseVoid},
124 {RIL_REQUEST_STK_SEND_ENVELOPE_WITH_STATUS, dispatchString, responseSIM_IO},
125 {RIL_REQUEST_VOICE_RADIO_TECH, dispatchVoid, responseInts}, // 108
126 {0, NULL, NULL}, // 10001
127 {RIL_REQUEST_GET_CELL_BROADCAST_CONFIG, dispatchVoid, responseVoid},
128 {0, NULL, NULL}, // 10003
129 {0, NULL, NULL}, // 10004
130 {RIL_REQUEST_SEND_ENCODED_USSD, dispatchVoid, responseVoid},
131 {RIL_REQUEST_SET_PDA_MEMORY_STATUS, dispatchVoid, responseVoid},
132 {RIL_REQUEST_GET_PHONEBOOK_STORAGE_INFO, dispatchVoid, responseVoid},
133 {RIL_REQUEST_GET_PHONEBOOK_ENTRY, dispatchVoid, responseVoid},
134 {RIL_REQUEST_ACCESS_PHONEBOOK_ENTRY, dispatchVoid, responseVoid},
135 {RIL_REQUEST_DIAL_VIDEO_CALL, dispatchVoid, responseVoid},
136 {RIL_REQUEST_CALL_DEFLECTION, dispatchVoid, responseVoid},
137 {RIL_REQUEST_READ_SMS_FROM_SIM, dispatchVoid, responseVoid},
138 {RIL_REQUEST_USIM_PB_CAPA, dispatchVoid, responseVoid},
139 {RIL_REQUEST_LOCK_INFO, dispatchVoid, responseVoid},
140 {0, NULL, NULL}, // 10015
141 {RIL_REQUEST_DIAL_EMERGENCY, dispatchDial, responseVoid},
142 {RIL_REQUEST_GET_STOREAD_MSG_COUNT, dispatchVoid, responseVoid},
143 {RIL_REQUEST_STK_SIM_INIT_EVENT, dispatchVoid, responseVoid},
144 {RIL_REQUEST_GET_LINE_ID, dispatchVoid, responseVoid},
145 {RIL_REQUEST_SET_LINE_ID, dispatchVoid, responseVoid},
146 {RIL_REQUEST_GET_SERIAL_NUMBER, dispatchVoid, responseVoid},
147 {RIL_REQUEST_GET_MANUFACTURE_DATE_NUMBER, dispatchVoid, responseVoid},
148 {RIL_REQUEST_GET_BARCODE_NUMBER, dispatchVoid, responseVoid},
149 {RIL_REQUEST_UICC_GBA_AUTHENTICATE_BOOTSTRAP, dispatchVoid, responseVoid},
150 {RIL_REQUEST_UICC_GBA_AUTHENTICATE_NAF, dispatchVoid, responseVoid},
151 {RIL_REQUEST_SIM_TRANSMIT_BASIC, dispatchVoid, responseVoid},
152 {RIL_REQUEST_SIM_OPEN_CHANNEL, dispatchVoid, responseVoid},
153 {RIL_REQUEST_SIM_CLOSE_CHANNEL, dispatchVoid, responseVoid},
154 {RIL_REQUEST_SIM_TRANSMIT_CHANNEL, dispatchVoid, responseVoid},
155 {RIL_REQUEST_SIM_AUTH, dispatchVoid, responseVoid},
156 {RIL_REQUEST_PS_ATTACH, dispatchVoid, responseVoid},
157 {RIL_REQUEST_PS_DETACH, dispatchVoid, responseVoid},
158 {RIL_REQUEST_ACTIVATE_DATA_CALL, dispatchVoid, responseVoid},
159 {RIL_REQUEST_CHANGE_SIM_PERSO, dispatchVoid, responseVoid},
160 {RIL_REQUEST_ENTER_SIM_PERSO, dispatchVoid, responseVoid},
161 {RIL_REQUEST_GET_TIME_INFO, dispatchVoid, responseVoid},
162 {RIL_REQUEST_OMADM_SETUP_SESSION, dispatchVoid, responseVoid},
163 {RIL_REQUEST_OMADM_SERVER_START_SESSION, dispatchVoid, responseVoid},
164 {RIL_REQUEST_OMADM_CLIENT_START_SESSION, dispatchVoid, responseVoid},
165 {RIL_REQUEST_OMADM_SEND_DATA, dispatchVoid, responseVoid},
166 {RIL_REQUEST_CDMA_GET_DATAPROFILE, dispatchVoid, responseVoid},
167 {RIL_REQUEST_CDMA_SET_DATAPROFILE, dispatchVoid, responseVoid},
168 {RIL_REQUEST_CDMA_GET_SYSTEMPROPERTIES, dispatchVoid, responseVoid},
169 {RIL_REQUEST_CDMA_SET_SYSTEMPROPERTIES, dispatchVoid, responseVoid},
170 {RIL_REQUEST_SEND_SMS_COUNT, dispatchVoid, responseVoid},
171 {RIL_REQUEST_SEND_SMS_MSG, dispatchVoid, responseVoid},
172 {RIL_REQUEST_SEND_SMS_MSG_READ_STATUS, dispatchVoid, responseVoid},
173 {RIL_REQUEST_MODEM_HANGUP, dispatchVoid, responseVoid},
174 {RIL_REQUEST_SET_SIM_POWER, dispatchVoid, responseVoid},
175 {RIL_REQUEST_SET_PREFERRED_NETWORK_LIST, dispatchVoid, responseVoid},
176 {RIL_REQUEST_GET_PREFERRED_NETWORK_LIST, dispatchVoid, responseVoid},
177 {RIL_REQUEST_HANGUP_VT, dispatchVoid, responseVoid},