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}, //none 18 {RIL_REQUEST_GET_SIM_STATUS, radio::getIccCardStatusResponse}, 19 {RIL_REQUEST_ENTER_SIM_PIN, radio::supplyIccPinForAppResponse}, 20 {RIL_REQUEST_ENTER_SIM_PUK, radio::supplyIccPukForAppResponse}, 21 {RIL_REQUEST_ENTER_SIM_PIN2, radio::supplyIccPin2ForAppResponse}, 22 {RIL_REQUEST_ENTER_SIM_PUK2, radio::supplyIccPuk2ForAppResponse}, 23 {RIL_REQUEST_CHANGE_SIM_PIN, radio::changeIccPinForAppResponse}, 24 {RIL_REQUEST_CHANGE_SIM_PIN2, radio::changeIccPin2ForAppResponse}, 25 {RIL_REQUEST_ENTER_NETWORK_DEPERSONALIZATION, radio::supplyNetworkDepersonalizationResponse}, 26 {RIL_REQUEST_GET_CURRENT_CALLS, radio::getCurrentCallsResponse}, 27 {RIL_REQUEST_DIAL, radio::dialResponse}, 28 {RIL_REQUEST_GET_IMSI, radio::getIMSIForAppResponse}, 29 {RIL_REQUEST_HANGUP, radio::hangupConnectionResponse}, 30 {RIL_REQUEST_HANGUP_WAITING_OR_BACKGROUND, radio::hangupWaitingOrBackgroundResponse}, 31 {RIL_REQUEST_HANGUP_FOREGROUND_RESUME_BACKGROUND, radio::hangupForegroundResumeBackgroundResponse}, 32 {RIL_REQUEST_SWITCH_WAITING_OR_HOLDING_AND_ACTIVE, radio::switchWaitingOrHoldingAndActiveResponse}, 33 {RIL_REQUEST_CONFERENCE, radio::conferenceResponse}, 34 {RIL_REQUEST_UDUB, radio::rejectCallResponse}, 35 {RIL_REQUEST_LAST_CALL_FAIL_CAUSE, radio::getLastCallFailCauseResponse}, 36 {RIL_REQUEST_SIGNAL_STRENGTH, radio::getSignalStrengthResponse}, 37 {RIL_REQUEST_VOICE_REGISTRATION_STATE, radio::getVoiceRegistrationStateResponse}, 38 {RIL_REQUEST_DATA_REGISTRATION_STATE, radio::getDataRegistrationStateResponse}, 39 {RIL_REQUEST_OPERATOR, radio::getOperatorResponse}, 40 {RIL_REQUEST_RADIO_POWER, radio::setRadioPowerResponse}, 41 {RIL_REQUEST_DTMF, radio::sendDtmfResponse}, 42 {RIL_REQUEST_SEND_SMS, radio::sendSmsResponse}, 43 {RIL_REQUEST_SEND_SMS_EXPECT_MORE, radio::sendSMSExpectMoreResponse}, 44 {RIL_REQUEST_SETUP_DATA_CALL, radio::setupDataCallResponse}, 45 {RIL_REQUEST_SIM_IO, radio::iccIOForAppResponse}, 46 {RIL_REQUEST_SEND_USSD, radio::sendUssdResponse}, 47 {RIL_REQUEST_CANCEL_USSD, radio::cancelPendingUssdResponse}, 48 {RIL_REQUEST_GET_CLIR, radio::getClirResponse}, 49 {RIL_REQUEST_SET_CLIR, radio::setClirResponse}, 50 {RIL_REQUEST_QUERY_CALL_FORWARD_STATUS, radio::getCallForwardStatusResponse}, 51 {RIL_REQUEST_SET_CALL_FORWARD, radio::setCallForwardResponse}, 52 {RIL_REQUEST_QUERY_CALL_WAITING, radio::getCallWaitingResponse}, 53 {RIL_REQUEST_SET_CALL_WAITING, radio::setCallWaitingResponse}, 54 {RIL_REQUEST_SMS_ACKNOWLEDGE, radio::acknowledgeLastIncomingGsmSmsResponse}, 55 {RIL_REQUEST_GET_IMEI, NULL}, 56 {RIL_REQUEST_GET_IMEISV, NULL}, 57 {RIL_REQUEST_ANSWER, radio::acceptCallResponse}, 58 {RIL_REQUEST_DEACTIVATE_DATA_CALL, radio::deactivateDataCallResponse}, 59 {RIL_REQUEST_QUERY_FACILITY_LOCK, radio::getFacilityLockForAppResponse}, 60 {RIL_REQUEST_SET_FACILITY_LOCK, radio::setFacilityLockForAppResponse}, 61 {RIL_REQUEST_CHANGE_BARRING_PASSWORD, radio::setBarringPasswordResponse}, 62 {RIL_REQUEST_QUERY_NETWORK_SELECTION_MODE, radio::getNetworkSelectionModeResponse}, 63 {RIL_REQUEST_SET_NETWORK_SELECTION_AUTOMATIC, radio::setNetworkSelectionModeAutomaticResponse}, 64 {RIL_REQUEST_SET_NETWORK_SELECTION_MANUAL, radio::setNetworkSelectionModeManualResponse}, 65 {RIL_REQUEST_QUERY_AVAILABLE_NETWORKS , radio::getAvailableNetworksResponse}, 66 {RIL_REQUEST_DTMF_START, radio::startDtmfResponse}, 67 {RIL_REQUEST_DTMF_STOP, radio::stopDtmfResponse}, 68 {RIL_REQUEST_BASEBAND_VERSION, radio::getBasebandVersionResponse}, 69 {RIL_REQUEST_SEPARATE_CONNECTION, radio::separateConnectionResponse}, 70 {RIL_REQUEST_SET_MUTE, radio::setMuteResponse}, 71 {RIL_REQUEST_GET_MUTE, radio::getMuteResponse}, 72 {RIL_REQUEST_QUERY_CLIP, radio::getClipResponse}, 73 {RIL_REQUEST_LAST_DATA_CALL_FAIL_CAUSE, NULL}, 74 {RIL_REQUEST_DATA_CALL_LIST, radio::getDataCallListResponse}, 75 {RIL_REQUEST_RESET_RADIO, NULL}, 76 {RIL_REQUEST_OEM_HOOK_RAW, radio::sendRequestRawResponse}, 77 {RIL_REQUEST_OEM_HOOK_STRINGS, radio::sendRequestStringsResponse}, 78 {RIL_REQUEST_SCREEN_STATE, radio::sendDeviceStateResponse}, // Note the response function is different. 79 {RIL_REQUEST_SET_SUPP_SVC_NOTIFICATION, radio::setSuppServiceNotificationsResponse}, 80 {RIL_REQUEST_WRITE_SMS_TO_SIM, radio::writeSmsToSimResponse}, 81 {RIL_REQUEST_DELETE_SMS_ON_SIM, radio::deleteSmsOnSimResponse}, 82 {RIL_REQUEST_SET_BAND_MODE, radio::setBandModeResponse}, 83 {RIL_REQUEST_QUERY_AVAILABLE_BAND_MODE, radio::getAvailableBandModesResponse}, 84 {RIL_REQUEST_STK_GET_PROFILE, NULL}, 85 {RIL_REQUEST_STK_SET_PROFILE, NULL}, 86 {RIL_REQUEST_STK_SEND_ENVELOPE_COMMAND, radio::sendEnvelopeResponse}, 87 {RIL_REQUEST_STK_SEND_TERMINAL_RESPONSE, radio::sendTerminalResponseToSimResponse}, 88 {RIL_REQUEST_STK_HANDLE_CALL_SETUP_REQUESTED_FROM_SIM, radio::handleStkCallSetupRequestFromSimResponse}, 89 {RIL_REQUEST_EXPLICIT_CALL_TRANSFER, radio::explicitCallTransferResponse}, 90 {RIL_REQUEST_SET_PREFERRED_NETWORK_TYPE, radio::setPreferredNetworkTypeResponse}, 91 {RIL_REQUEST_GET_PREFERRED_NETWORK_TYPE, radio::getPreferredNetworkTypeResponse}, 92 {RIL_REQUEST_GET_NEIGHBORING_CELL_IDS, radio::getNeighboringCidsResponse}, 93 {RIL_REQUEST_SET_LOCATION_UPDATES, radio::setLocationUpdatesResponse}, 94 {RIL_REQUEST_CDMA_SET_SUBSCRIPTION_SOURCE, radio::setCdmaSubscriptionSourceResponse}, 95 {RIL_REQUEST_CDMA_SET_ROAMING_PREFERENCE, radio::setCdmaRoamingPreferenceResponse}, 96 {RIL_REQUEST_CDMA_QUERY_ROAMING_PREFERENCE, radio::getCdmaRoamingPreferenceResponse}, 97 {RIL_REQUEST_SET_TTY_MODE, radio::setTTYModeResponse}, 98 {RIL_REQUEST_QUERY_TTY_MODE, radio::getTTYModeResponse}, 99 {RIL_REQUEST_CDMA_SET_PREFERRED_VOICE_PRIVACY_MODE, radio::setPreferredVoicePrivacyResponse}, 100 {RIL_REQUEST_CDMA_QUERY_PREFERRED_VOICE_PRIVACY_MODE, radio::getPreferredVoicePrivacyResponse}, 101 {RIL_REQUEST_CDMA_FLASH, radio::sendCDMAFeatureCodeResponse}, 102 {RIL_REQUEST_CDMA_BURST_DTMF, radio::sendBurstDtmfResponse}, 103 {RIL_REQUEST_CDMA_VALIDATE_AND_WRITE_AKEY, NULL}, 104 {RIL_REQUEST_CDMA_SEND_SMS, radio::sendCdmaSmsResponse}, 105 {RIL_REQUEST_CDMA_SMS_ACKNOWLEDGE, radio::acknowledgeLastIncomingCdmaSmsResponse}, 106 {RIL_REQUEST_GSM_GET_BROADCAST_SMS_CONFIG, radio::getGsmBroadcastConfigResponse}, 107 {RIL_REQUEST_GSM_SET_BROADCAST_SMS_CONFIG, radio::setGsmBroadcastConfigResponse}, 108 {RIL_REQUEST_GSM_SMS_BROADCAST_ACTIVATION, radio::setGsmBroadcastActivationResponse}, 109 {RIL_REQUEST_CDMA_GET_BROADCAST_SMS_CONFIG, radio::getCdmaBroadcastConfigResponse}, 110 {RIL_REQUEST_CDMA_SET_BROADCAST_SMS_CONFIG, radio::setCdmaBroadcastConfigResponse}, 111 {RIL_REQUEST_CDMA_SMS_BROADCAST_ACTIVATION, radio::setCdmaBroadcastActivationResponse}, 112 {RIL_REQUEST_CDMA_SUBSCRIPTION, radio::getCDMASubscriptionResponse}, 113 {RIL_REQUEST_CDMA_WRITE_SMS_TO_RUIM, radio::writeSmsToRuimResponse}, 114 {RIL_REQUEST_CDMA_DELETE_SMS_ON_RUIM, radio::deleteSmsOnRuimResponse}, 115 {RIL_REQUEST_DEVICE_IDENTITY, radio::getDeviceIdentityResponse}, 116 {RIL_REQUEST_EXIT_EMERGENCY_CALLBACK_MODE, radio::exitEmergencyCallbackModeResponse}, 117 {RIL_REQUEST_GET_SMSC_ADDRESS, radio::getSmscAddressResponse}, 118 {RIL_REQUEST_SET_SMSC_ADDRESS, radio::setSmscAddressResponse}, 119 {RIL_REQUEST_REPORT_SMS_MEMORY_STATUS, radio::reportSmsMemoryStatusResponse}, 120 {RIL_REQUEST_REPORT_STK_SERVICE_IS_RUNNING, radio::reportStkServiceIsRunningResponse}, 121 {RIL_REQUEST_CDMA_GET_SUBSCRIPTION_SOURCE, radio::getCdmaSubscriptionSourceResponse}, 122 {RIL_REQUEST_ISIM_AUTHENTICATION, radio::requestIsimAuthenticationResponse}, 123 {RIL_REQUEST_ACKNOWLEDGE_INCOMING_GSM_SMS_WITH_PDU, radio::acknowledgeIncomingGsmSmsWithPduResponse}, 124 {RIL_REQUEST_STK_SEND_ENVELOPE_WITH_STATUS, radio::sendEnvelopeWithStatusResponse}, 125 {RIL_REQUEST_VOICE_RADIO_TECH, radio::getVoiceRadioTechnologyResponse}, 126 {RIL_REQUEST_GET_CELL_INFO_LIST, radio::getCellInfoListResponse}, 127 {RIL_REQUEST_SET_UNSOL_CELL_INFO_LIST_RATE, radio::setCellInfoListRateResponse}, 128 {RIL_REQUEST_SET_INITIAL_ATTACH_APN, radio::setInitialAttachApnResponse}, 129 {RIL_REQUEST_IMS_REGISTRATION_STATE, radio::getImsRegistrationStateResponse}, 130 {RIL_REQUEST_IMS_SEND_SMS, radio::sendImsSmsResponse}, 131 {RIL_REQUEST_SIM_TRANSMIT_APDU_BASIC, radio::iccTransmitApduBasicChannelResponse}, 132 {RIL_REQUEST_SIM_OPEN_CHANNEL, radio::iccOpenLogicalChannelResponse}, 133 {RIL_REQUEST_SIM_CLOSE_CHANNEL, radio::iccCloseLogicalChannelResponse}, 134 {RIL_REQUEST_SIM_TRANSMIT_APDU_CHANNEL, radio::iccTransmitApduLogicalChannelResponse}, 135 {RIL_REQUEST_NV_READ_ITEM, radio::nvReadItemResponse}, 136 {RIL_REQUEST_NV_WRITE_ITEM, radio::nvWriteItemResponse}, 137 {RIL_REQUEST_NV_WRITE_CDMA_PRL, radio::nvWriteCdmaPrlResponse}, 138 {RIL_REQUEST_NV_RESET_CONFIG, radio::nvResetConfigResponse}, 139 {RIL_REQUEST_SET_UICC_SUBSCRIPTION, radio::setUiccSubscriptionResponse}, 140 {RIL_REQUEST_ALLOW_DATA, radio::setDataAllowedResponse}, 141 {RIL_REQUEST_GET_HARDWARE_CONFIG, radio::getHardwareConfigResponse}, 142 {RIL_REQUEST_SIM_AUTHENTICATION, radio::requestIccSimAuthenticationResponse}, 143 {RIL_REQUEST_GET_DC_RT_INFO, NULL}, 144 {RIL_REQUEST_SET_DC_RT_INFO_RATE, NULL}, 145 {RIL_REQUEST_SET_DATA_PROFILE, radio::setDataProfileResponse}, 146 {RIL_REQUEST_SHUTDOWN, radio::requestShutdownResponse}, 147 {RIL_REQUEST_GET_RADIO_CAPABILITY, radio::getRadioCapabilityResponse}, 148 {RIL_REQUEST_SET_RADIO_CAPABILITY, radio::setRadioCapabilityResponse}, 149 {RIL_REQUEST_START_LCE, radio::startLceServiceResponse}, 150 {RIL_REQUEST_STOP_LCE, radio::stopLceServiceResponse}, 151 {RIL_REQUEST_PULL_LCEDATA, radio::pullLceDataResponse}, 152 {RIL_REQUEST_GET_ACTIVITY_INFO, radio::getModemActivityInfoResponse}, 153 {RIL_REQUEST_SET_CARRIER_RESTRICTIONS, radio::setAllowedCarriersResponse}, 154 {RIL_REQUEST_GET_CARRIER_RESTRICTIONS, radio::getAllowedCarriersResponse}, 155 {RIL_REQUEST_SEND_DEVICE_STATE, radio::sendDeviceStateResponse}, 156 {RIL_REQUEST_SET_UNSOLICITED_RESPONSE_FILTER, radio::setIndicationFilterResponse}, 157 {RIL_REQUEST_SET_SIM_CARD_POWER, radio::setSimCardPowerResponse}, 158 {RIL_REQUEST_SET_CARRIER_INFO_IMSI_ENCRYPTION, radio::setCarrierInfoForImsiEncryptionResponse}, 159 {RIL_REQUEST_START_NETWORK_SCAN, radio::startNetworkScanResponse}, 160 {RIL_REQUEST_STOP_NETWORK_SCAN, radio::stopNetworkScanResponse}, 161 {RIL_REQUEST_START_KEEPALIVE, radio::startKeepaliveResponse}, 162 {RIL_REQUEST_STOP_KEEPALIVE, radio::stopKeepaliveResponse}, 163