1 /* //guest/hals/ril/reference-libril/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_1_6::getIccCardStatusResponse}, 19 {RIL_REQUEST_ENTER_SIM_PIN, radio_1_6::supplyIccPinForAppResponse}, 20 {RIL_REQUEST_ENTER_SIM_PUK, radio_1_6::supplyIccPukForAppResponse}, 21 {RIL_REQUEST_ENTER_SIM_PIN2, radio_1_6::supplyIccPin2ForAppResponse}, 22 {RIL_REQUEST_ENTER_SIM_PUK2, radio_1_6::supplyIccPuk2ForAppResponse}, 23 {RIL_REQUEST_CHANGE_SIM_PIN, radio_1_6::changeIccPinForAppResponse}, 24 {RIL_REQUEST_CHANGE_SIM_PIN2, radio_1_6::changeIccPin2ForAppResponse}, 25 {RIL_REQUEST_ENTER_NETWORK_DEPERSONALIZATION, 26 radio_1_6::supplyNetworkDepersonalizationResponse}, 27 {RIL_REQUEST_GET_CURRENT_CALLS, radio_1_6::getCurrentCallsResponse}, 28 {RIL_REQUEST_DIAL, radio_1_6::dialResponse}, 29 {RIL_REQUEST_GET_IMSI, radio_1_6::getIMSIForAppResponse}, 30 {RIL_REQUEST_HANGUP, radio_1_6::hangupConnectionResponse}, 31 {RIL_REQUEST_HANGUP_WAITING_OR_BACKGROUND, radio_1_6::hangupWaitingOrBackgroundResponse}, 32 {RIL_REQUEST_HANGUP_FOREGROUND_RESUME_BACKGROUND, 33 radio_1_6::hangupForegroundResumeBackgroundResponse}, 34 {RIL_REQUEST_SWITCH_WAITING_OR_HOLDING_AND_ACTIVE, 35 radio_1_6::switchWaitingOrHoldingAndActiveResponse}, 36 {RIL_REQUEST_CONFERENCE, radio_1_6::conferenceResponse}, 37 {RIL_REQUEST_UDUB, radio_1_6::rejectCallResponse}, 38 {RIL_REQUEST_LAST_CALL_FAIL_CAUSE, radio_1_6::getLastCallFailCauseResponse}, 39 {RIL_REQUEST_SIGNAL_STRENGTH, radio_1_6::getSignalStrengthResponse}, 40 {RIL_REQUEST_VOICE_REGISTRATION_STATE, radio_1_6::getVoiceRegistrationStateResponse}, 41 {RIL_REQUEST_DATA_REGISTRATION_STATE, radio_1_6::getDataRegistrationStateResponse}, 42 {RIL_REQUEST_OPERATOR, radio_1_6::getOperatorResponse}, 43 {RIL_REQUEST_RADIO_POWER, radio_1_6::setRadioPowerResponse}, 44 {RIL_REQUEST_DTMF, radio_1_6::sendDtmfResponse}, 45 {RIL_REQUEST_SEND_SMS, radio_1_6::sendSmsResponse}, 46 {RIL_REQUEST_SEND_SMS_EXPECT_MORE, radio_1_6::sendSmsExpectMoreResponse}, 47 {RIL_REQUEST_SETUP_DATA_CALL, radio_1_6::setupDataCallResponse}, 48 {RIL_REQUEST_SIM_IO, radio_1_6::iccIOForAppResponse}, 49 {RIL_REQUEST_SEND_USSD, radio_1_6::sendUssdResponse}, 50 {RIL_REQUEST_CANCEL_USSD, radio_1_6::cancelPendingUssdResponse}, 51 {RIL_REQUEST_GET_CLIR, radio_1_6::getClirResponse}, 52 {RIL_REQUEST_SET_CLIR, radio_1_6::setClirResponse}, 53 {RIL_REQUEST_QUERY_CALL_FORWARD_STATUS, radio_1_6::getCallForwardStatusResponse}, 54 {RIL_REQUEST_SET_CALL_FORWARD, radio_1_6::setCallForwardResponse}, 55 {RIL_REQUEST_QUERY_CALL_WAITING, radio_1_6::getCallWaitingResponse}, 56 {RIL_REQUEST_SET_CALL_WAITING, radio_1_6::setCallWaitingResponse}, 57 {RIL_REQUEST_SMS_ACKNOWLEDGE, radio_1_6::acknowledgeLastIncomingGsmSmsResponse}, 58 {RIL_REQUEST_GET_IMEI, NULL}, {RIL_REQUEST_GET_IMEISV, NULL}, 59 {RIL_REQUEST_ANSWER, radio_1_6::acceptCallResponse}, 60 {RIL_REQUEST_DEACTIVATE_DATA_CALL, radio_1_6::deactivateDataCallResponse}, 61 {RIL_REQUEST_QUERY_FACILITY_LOCK, radio_1_6::getFacilityLockForAppResponse}, 62 {RIL_REQUEST_SET_FACILITY_LOCK, radio_1_6::setFacilityLockForAppResponse}, 63 {RIL_REQUEST_CHANGE_BARRING_PASSWORD, radio_1_6::setBarringPasswordResponse}, 64 {RIL_REQUEST_QUERY_NETWORK_SELECTION_MODE, radio_1_6::getNetworkSelectionModeResponse}, 65 {RIL_REQUEST_SET_NETWORK_SELECTION_AUTOMATIC, 66 radio_1_6::setNetworkSelectionModeAutomaticResponse}, 67 {RIL_REQUEST_SET_NETWORK_SELECTION_MANUAL, 68 radio_1_6::setNetworkSelectionModeManualResponse}, 69 {RIL_REQUEST_QUERY_AVAILABLE_NETWORKS, radio_1_6::getAvailableNetworksResponse}, 70 {RIL_REQUEST_DTMF_START, radio_1_6::startDtmfResponse}, 71 {RIL_REQUEST_DTMF_STOP, radio_1_6::stopDtmfResponse}, 72 {RIL_REQUEST_BASEBAND_VERSION, radio_1_6::getBasebandVersionResponse}, 73 {RIL_REQUEST_SEPARATE_CONNECTION, radio_1_6::separateConnectionResponse}, 74 {RIL_REQUEST_SET_MUTE, radio_1_6::setMuteResponse}, 75 {RIL_REQUEST_GET_MUTE, radio_1_6::getMuteResponse}, 76 {RIL_REQUEST_QUERY_CLIP, radio_1_6::getClipResponse}, 77 {RIL_REQUEST_LAST_DATA_CALL_FAIL_CAUSE, NULL}, 78 {RIL_REQUEST_DATA_CALL_LIST, radio_1_6::getDataCallListResponse}, 79 {RIL_REQUEST_RESET_RADIO, NULL}, 80 {RIL_REQUEST_OEM_HOOK_RAW, radio_1_6::sendRequestRawResponse}, 81 {RIL_REQUEST_OEM_HOOK_STRINGS, radio_1_6::sendRequestStringsResponse}, 82 {RIL_REQUEST_SCREEN_STATE, 83 radio_1_6::sendDeviceStateResponse}, // Note the response function is different. 84 {RIL_REQUEST_SET_SUPP_SVC_NOTIFICATION, radio_1_6::setSuppServiceNotificationsResponse}, 85 {RIL_REQUEST_WRITE_SMS_TO_SIM, radio_1_6::writeSmsToSimResponse}, 86 {RIL_REQUEST_DELETE_SMS_ON_SIM, radio_1_6::deleteSmsOnSimResponse}, 87 {RIL_REQUEST_SET_BAND_MODE, radio_1_6::setBandModeResponse}, 88 {RIL_REQUEST_QUERY_AVAILABLE_BAND_MODE, radio_1_6::getAvailableBandModesResponse}, 89 {RIL_REQUEST_STK_GET_PROFILE, NULL}, {RIL_REQUEST_STK_SET_PROFILE, NULL}, 90 {RIL_REQUEST_STK_SEND_ENVELOPE_COMMAND, radio_1_6::sendEnvelopeResponse}, 91 {RIL_REQUEST_STK_SEND_TERMINAL_RESPONSE, radio_1_6::sendTerminalResponseToSimResponse}, 92 {RIL_REQUEST_STK_HANDLE_CALL_SETUP_REQUESTED_FROM_SIM, 93 radio_1_6::handleStkCallSetupRequestFromSimResponse}, 94 {RIL_REQUEST_EXPLICIT_CALL_TRANSFER, radio_1_6::explicitCallTransferResponse}, 95 {RIL_REQUEST_SET_PREFERRED_NETWORK_TYPE, radio_1_6::setPreferredNetworkTypeResponse}, 96 {RIL_REQUEST_GET_PREFERRED_NETWORK_TYPE, radio_1_6::getPreferredNetworkTypeResponse}, 97 {RIL_REQUEST_GET_NEIGHBORING_CELL_IDS, radio_1_6::getNeighboringCidsResponse}, 98 {RIL_REQUEST_SET_LOCATION_UPDATES, radio_1_6::setLocationUpdatesResponse}, 99 {RIL_REQUEST_CDMA_SET_SUBSCRIPTION_SOURCE, radio_1_6::setCdmaSubscriptionSourceResponse}, 100 {RIL_REQUEST_CDMA_SET_ROAMING_PREFERENCE, radio_1_6::setCdmaRoamingPreferenceResponse}, 101 {RIL_REQUEST_CDMA_QUERY_ROAMING_PREFERENCE, radio_1_6::getCdmaRoamingPreferenceResponse}, 102 {RIL_REQUEST_SET_TTY_MODE, radio_1_6::setTTYModeResponse}, 103 {RIL_REQUEST_QUERY_TTY_MODE, radio_1_6::getTTYModeResponse}, 104 {RIL_REQUEST_CDMA_SET_PREFERRED_VOICE_PRIVACY_MODE, 105 radio_1_6::setPreferredVoicePrivacyResponse}, 106 {RIL_REQUEST_CDMA_QUERY_PREFERRED_VOICE_PRIVACY_MODE, 107 radio_1_6::getPreferredVoicePrivacyResponse}, 108 {RIL_REQUEST_CDMA_FLASH, radio_1_6::sendCDMAFeatureCodeResponse}, 109 {RIL_REQUEST_CDMA_BURST_DTMF, radio_1_6::sendBurstDtmfResponse}, 110 {RIL_REQUEST_CDMA_VALIDATE_AND_WRITE_AKEY, NULL}, 111 {RIL_REQUEST_CDMA_SEND_SMS, radio_1_6::sendCdmaSmsResponse}, 112 {RIL_REQUEST_CDMA_SMS_ACKNOWLEDGE, radio_1_6::acknowledgeLastIncomingCdmaSmsResponse}, 113 {RIL_REQUEST_GSM_GET_BROADCAST_SMS_CONFIG, radio_1_6::getGsmBroadcastConfigResponse}, 114 {RIL_REQUEST_GSM_SET_BROADCAST_SMS_CONFIG, radio_1_6::setGsmBroadcastConfigResponse}, 115 {RIL_REQUEST_GSM_SMS_BROADCAST_ACTIVATION, radio_1_6::setGsmBroadcastActivationResponse}, 116 {RIL_REQUEST_CDMA_GET_BROADCAST_SMS_CONFIG, radio_1_6::getCdmaBroadcastConfigResponse}, 117 {RIL_REQUEST_CDMA_SET_BROADCAST_SMS_CONFIG, radio_1_6::setCdmaBroadcastConfigResponse}, 118 {RIL_REQUEST_CDMA_SMS_BROADCAST_ACTIVATION, radio_1_6::setCdmaBroadcastActivationResponse}, 119 {RIL_REQUEST_CDMA_SUBSCRIPTION, radio_1_6::getCDMASubscriptionResponse}, 120 {RIL_REQUEST_CDMA_WRITE_SMS_TO_RUIM, radio_1_6::writeSmsToRuimResponse}, 121 {RIL_REQUEST_CDMA_DELETE_SMS_ON_RUIM, radio_1_6::deleteSmsOnRuimResponse}, 122 {RIL_REQUEST_DEVICE_IDENTITY, radio_1_6::getDeviceIdentityResponse}, 123 {RIL_REQUEST_EXIT_EMERGENCY_CALLBACK_MODE, radio_1_6::exitEmergencyCallbackModeResponse}, 124 {RIL_REQUEST_GET_SMSC_ADDRESS, radio_1_6::getSmscAddressResponse}, 125 {RIL_REQUEST_SET_SMSC_ADDRESS, radio_1_6::setSmscAddressResponse}, 126 {RIL_REQUEST_REPORT_SMS_MEMORY_STATUS, radio_1_6::reportSmsMemoryStatusResponse}, 127 {RIL_REQUEST_REPORT_STK_SERVICE_IS_RUNNING, radio_1_6::reportStkServiceIsRunningResponse}, 128 {RIL_REQUEST_CDMA_GET_SUBSCRIPTION_SOURCE, radio_1_6::getCdmaSubscriptionSourceResponse}, 129 {RIL_REQUEST_ISIM_AUTHENTICATION, radio_1_6::requestIsimAuthenticationResponse}, 130 {RIL_REQUEST_ACKNOWLEDGE_INCOMING_GSM_SMS_WITH_PDU, 131 radio_1_6::acknowledgeIncomingGsmSmsWithPduResponse}, 132 {RIL_REQUEST_STK_SEND_ENVELOPE_WITH_STATUS, radio_1_6::sendEnvelopeWithStatusResponse}, 133 {RIL_REQUEST_VOICE_RADIO_TECH, radio_1_6::getVoiceRadioTechnologyResponse}, 134 {RIL_REQUEST_GET_CELL_INFO_LIST, radio_1_6::getCellInfoListResponse}, 135 {RIL_REQUEST_SET_UNSOL_CELL_INFO_LIST_RATE, radio_1_6::setCellInfoListRateResponse}, 136 {RIL_REQUEST_SET_INITIAL_ATTACH_APN, radio_1_6::setInitialAttachApnResponse}, 137 {RIL_REQUEST_IMS_REGISTRATION_STATE, radio_1_6::getImsRegistrationStateResponse}, 138 {RIL_REQUEST_IMS_SEND_SMS, radio_1_6::sendImsSmsResponse}, 139 {RIL_REQUEST_SIM_TRANSMIT_APDU_BASIC, radio_1_6::iccTransmitApduBasicChannelResponse}, 140 {RIL_REQUEST_SIM_OPEN_CHANNEL, radio_1_6::iccOpenLogicalChannelResponse}, 141 {RIL_REQUEST_SIM_CLOSE_CHANNEL, radio_1_6::iccCloseLogicalChannelResponse}, 142 {RIL_REQUEST_SIM_TRANSMIT_APDU_CHANNEL, radio_1_6::iccTransmitApduLogicalChannelResponse}, 143 {RIL_REQUEST_NV_READ_ITEM, radio_1_6::nvReadItemResponse}, 144 {RIL_REQUEST_NV_WRITE_ITEM, radio_1_6::nvWriteItemResponse}, 145 {RIL_REQUEST_NV_WRITE_CDMA_PRL, radio_1_6::nvWriteCdmaPrlResponse}, 146 {RIL_REQUEST_NV_RESET_CONFIG, radio_1_6::nvResetConfigResponse}, 147 {RIL_REQUEST_SET_UICC_SUBSCRIPTION, radio_1_6::setUiccSubscriptionResponse}, 148 {RIL_REQUEST_ALLOW_DATA, radio_1_6::setDataAllowedResponse}, 149 {RIL_REQUEST_GET_HARDWARE_CONFIG, radio_1_6::getHardwareConfigResponse}, 150 {RIL_REQUEST_SIM_AUTHENTICATION, radio_1_6::requestIccSimAuthenticationResponse}, 151 {RIL_REQUEST_GET_DC_RT_INFO, NULL}, {RIL_REQUEST_SET_DC_RT_INFO_RATE, NULL}, 152 {RIL_REQUEST_SET_DATA_PROFILE, radio_1_6::setDataProfileResponse}, 153 {RIL_REQUEST_SHUTDOWN, radio_1_6::requestShutdownResponse}, 154 {RIL_REQUEST_GET_RADIO_CAPABILITY, radio_1_6::getRadioCapabilityResponse}, 155 {RIL_REQUEST_SET_RADIO_CAPABILITY, radio_1_6::setRadioCapabilityResponse}, 156 {RIL_REQUEST_START_LCE, radio_1_6::startLceServiceResponse}, 157 {RIL_REQUEST_STOP_LCE, radio_1_6::stopLceServiceResponse}, 158 {RIL_REQUEST_PULL_LCEDATA, radio_1_6::pullLceDataResponse}, 159 {RIL_REQUEST_GET_ACTIVITY_INFO, radio_1_6::getModemActivityInfoResponse}, 160 {RIL_REQUEST_SET_CARRIER_RESTRICTIONS, radio_1_6::setAllowedCarriersResponse}, 161 {RIL_REQUEST_GET_CARRIER_RESTRICTIONS, radio_1_6::getAllowedCarriersResponse}, 162 {RIL_REQUEST_SEND_DEVICE_STATE, radio_1_6::sendDeviceStateResponse}, 163 {RIL_REQUEST_SET_UNSOLICITED_RESPONSE_FILTER, radio_1_6::setIndicationFilterResponse}, 164 {RIL_REQUEST_SET_SIM_CARD_POWER, radio_1_6::setSimCardPowerResponse}, 165 {RIL_REQUEST_SET_CARRIER_INFO_IMSI_ENCRYPTION, 166 radio_1_6::setCarrierInfoForImsiEncryptionResponse}, 167 {RIL_REQUEST_START_NETWORK_SCAN, radio_1_6::startNetworkScanResponse}, 168 {RIL_REQUEST_STOP_NETWORK_SCAN, radio_1_6::stopNetworkScanResponse}, 169 {RIL_REQUEST_START_KEEPALIVE, radio_1_6::startKeepaliveResponse}, 170 {RIL_REQUEST_STOP_KEEPALIVE, radio_1_6::stopKeepaliveResponse}, 171 {RIL_REQUEST_GET_MODEM_STACK_STATUS, radio_1_6::getModemStackStatusResponse}, 172 {RIL_REQUEST_GET_PREFERRED_NETWORK_TYPE_BITMAP, 173 radio_1_6::getPreferredNetworkTypeBitmapResponse}, 174 {RIL_REQUEST_SET_PREFERRED_NETWORK_TYPE_BITMAP, 175 radio_1_6::setPreferredNetworkTypeBitmapResponse}, 176 {RIL_REQUEST_EMERGENCY_DIAL, radio_1_6::emergencyDialResponse}, 177 {RIL_REQUEST_SET_SYSTEM_SELECTION_CHANNELS, radio_1_6::setSystemSelectionChannelsResponse}, 178 {RIL_REQUEST_ENABLE_MODEM, radio_1_6::enableModemResponse}, 179 {RIL_REQUEST_SET_SIGNAL_STRENGTH_REPORTING_CRITERIA, 180 radio_1_6::setSignalStrengthReportingCriteriaResponse}, 181 {RIL_REQUEST_SET_LINK_CAPACITY_REPORTING_CRITERIA, 182 radio_1_6::setLinkCapacityReportingCriteriaResponse}, 183 {RIL_REQUEST_ENABLE_UICC_APPLICATIONS, radio_1_6::enableUiccApplicationsResponse}, 184 {RIL_REQUEST_ARE_UICC_APPLICATIONS_ENABLED, radio_1_6::areUiccApplicationsEnabledResponse}, 185 {RIL_REQUEST_ENTER_SIM_DEPERSONALIZATION, radio_1_6::supplySimDepersonalizationResponse}, 186 {RIL_REQUEST_CDMA_SEND_SMS_EXPECT_MORE, radio_1_6::sendCdmaSmsExpectMoreResponse}, 187 {RIL_REQUEST_GET_BARRING_INFO, radio_1_6::getBarringInfoResponse}, 188 {RIL_REQUEST_ENABLE_NR_DUAL_CONNECTIVITY, radio_1_6::setNrDualConnectivityStateResponse}, 189 {RIL_REQUEST_IS_NR_DUAL_CONNECTIVITY_ENABLED, 190 radio_1_6::isNrDualConnectivityEnabledResponse}, 191 {RIL_REQUEST_ALLOCATE_PDU_SESSION_ID, radio_1_6::allocatePduSessionIdResponse}, 192 {RIL_REQUEST_RELEASE_PDU_SESSION_ID, radio_1_6::releasePduSessionIdResponse}, 193 {RIL_REQUEST_START_HANDOVER, radio_1_6::startHandoverResponse}, 194 {RIL_REQUEST_CANCEL_HANDOVER, radio_1_6::cancelHandoverResponse}, 195 {RIL_REQUEST_SET_ALLOWED_NETWORK_TYPES_BITMAP, 196 radio_1_6::setAllowedNetworkTypesBitmapResponse}, 197 {RIL_REQUEST_SET_DATA_THROTTLING, radio_1_6::setDataThrottlingResponse}, 198 {RIL_REQUEST_GET_SYSTEM_SELECTION_CHANNELS, radio_1_6::getSystemSelectionChannelsResponse}, 199 {RIL_REQUEST_GET_ALLOWED_NETWORK_TYPES_BITMAP, 200 radio_1_6::getAllowedNetworkTypesBitmapResponse}, 201 {RIL_REQUEST_GET_SLICING_CONFIG, radio_1_6::getSlicingConfigResponse}, 202 {RIL_REQUEST_GET_SIM_PHONEBOOK_RECORDS, radio_1_6::getSimPhonebookRecordsResponse}, 203 {RIL_REQUEST_GET_SIM_PHONEBOOK_CAPACITY, radio_1_6::getSimPhonebookCapacityResponse}, 204 {RIL_REQUEST_UPDATE_SIM_PHONEBOOK_RECORDS, radio_1_6::updateSimPhonebookRecordsResponse}, 205 {RIL_REQUEST_GET_CELL_INFO_LIST_1_6, radio_1_6::getCellInfoListResponse 206 } 207