1 /* //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, responseFailCause},
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, dispatchDataCall, responseSetupDataCall},
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, responseStrings},
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, responseInts},
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, dispatchCdmaSubscriptionSource, 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, dispatchVoiceRadioTech, responseInts},
126     {RIL_REQUEST_GET_CELL_INFO_LIST, dispatchVoid, responseCellInfoList},
127     {RIL_REQUEST_SET_UNSOL_CELL_INFO_LIST_RATE, dispatchInts, responseVoid},
128     {RIL_REQUEST_SET_INITIAL_ATTACH_APN, dispatchSetInitialAttachApn, responseVoid},
129     {RIL_REQUEST_IMS_REGISTRATION_STATE, dispatchVoid, responseInts},
130     {RIL_REQUEST_IMS_SEND_SMS, dispatchImsSms, responseSMS},
131     {RIL_REQUEST_SIM_TRANSMIT_APDU_BASIC, dispatchSIM_APDU, responseSIM_IO},
132     {RIL_REQUEST_SIM_OPEN_CHANNEL, dispatchString, responseInts},
133     {RIL_REQUEST_SIM_CLOSE_CHANNEL, dispatchInts, responseVoid},
134     {RIL_REQUEST_SIM_TRANSMIT_APDU_CHANNEL, dispatchSIM_APDU, responseSIM_IO},
135     {RIL_REQUEST_NV_READ_ITEM, dispatchNVReadItem, responseString},
136     {RIL_REQUEST_NV_WRITE_ITEM, dispatchNVWriteItem, responseVoid},
137     {RIL_REQUEST_NV_WRITE_CDMA_PRL, dispatchRaw, responseVoid},
138     {RIL_REQUEST_NV_RESET_CONFIG, dispatchInts, responseVoid},
139     {RIL_REQUEST_SET_UICC_SUBSCRIPTION, dispatchUiccSubscripton, responseVoid},
140     {RIL_REQUEST_ALLOW_DATA, dispatchInts, responseVoid},
141     {RIL_REQUEST_GET_HARDWARE_CONFIG, dispatchVoid, responseHardwareConfig},
142     {RIL_REQUEST_SIM_AUTHENTICATION, dispatchSimAuthentication, responseSIM_IO},
143     {RIL_REQUEST_GET_DC_RT_INFO, dispatchVoid, responseDcRtInfo},
144     {RIL_REQUEST_SET_DC_RT_INFO_RATE, dispatchInts, responseVoid},
145     {RIL_REQUEST_SET_DATA_PROFILE, dispatchDataProfile, responseVoid},
146     {RIL_REQUEST_SHUTDOWN, dispatchVoid, responseVoid},
147     {RIL_REQUEST_GET_RADIO_CAPABILITY, dispatchVoid, responseRadioCapability},
148     {RIL_REQUEST_SET_RADIO_CAPABILITY, dispatchRadioCapability, responseRadioCapability},
149     {RIL_REQUEST_START_LCE, dispatchInts, responseLceStatus},
150     {RIL_REQUEST_STOP_LCE, dispatchVoid, responseLceStatus},
151     {RIL_REQUEST_PULL_LCEDATA, dispatchVoid, responseLceData},
152     {RIL_REQUEST_GET_ACTIVITY_INFO, dispatchVoid, responseActivityData},
153