ril_commands.h
上传用户:rftzhifu
上传日期:2017-02-21
资源大小:229k
文件大小:6k
源码类别:

android开发

开发平台:

Unix_Linux

  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, responseInts},
  19.     {RIL_REQUEST_ENTER_SIM_PIN, dispatchStrings, responseVoid},
  20.     {RIL_REQUEST_ENTER_SIM_PUK, dispatchStrings, responseVoid},
  21.     {RIL_REQUEST_ENTER_SIM_PIN2, dispatchStrings, responseVoid},
  22.     {RIL_REQUEST_ENTER_SIM_PUK2, dispatchStrings, responseVoid},
  23.     {RIL_REQUEST_CHANGE_SIM_PIN, dispatchStrings, responseVoid},
  24.     {RIL_REQUEST_CHANGE_SIM_PIN2, dispatchStrings, responseVoid},
  25.     {RIL_REQUEST_ENTER_NETWORK_DEPERSONALIZATION, dispatchStrings, responseVoid},
  26.     {RIL_REQUEST_GET_CURRENT_CALLS, dispatchVoid, responseCallList},
  27.     {RIL_REQUEST_DIAL, dispatchDial, responseVoid},   
  28.     {RIL_REQUEST_GET_IMSI, dispatchVoid, 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, responseInts},
  37.     {RIL_REQUEST_REGISTRATION_STATE, dispatchVoid, responseStrings},
  38.     {RIL_REQUEST_GPRS_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_DEFAULT_PDP, dispatchStrings, responseStrings},
  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_DEFAULT_PDP, dispatchStrings, responseVoid},
  59.     {RIL_REQUEST_QUERY_FACILITY_LOCK, dispatchStrings, responseInts},    
  60.     {RIL_REQUEST_SET_FACILITY_LOCK, dispatchStrings, responseVoid},
  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_PDP_FAIL_CAUSE, dispatchVoid, responseInts},
  74.     {RIL_REQUEST_PDP_CONTEXT_LIST, dispatchVoid, responseContexts},
  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}