📄 ril.h
字号:
* ((const char **)data)[1] = "0" for "unlock" and "1" for "lock" * ((const char **)data)[2] = password * ((const char **)data)[3] = string representation of decimal TS 27.007 * service class bit vector. Eg, the string * "1" means "set this facility for voice services" * * "response" is NULL * * Valid errors: * SUCCESS * RADIO_NOT_AVAILABLE * GENERIC_FAILURE * */#define RIL_REQUEST_SET_FACILITY_LOCK 43/** * RIL_REQUEST_CHANGE_BARRING_PASSWORD * * Change call barring facility password * * "data" is const char ** * * ((const char **)data)[0] = facility string code from TS 27.007 7.4 * (eg "AO" for BAOC) * ((const char **)data)[1] = old password * ((const char **)data)[2] = new password * * "response" is NULL * * Valid errors: * SUCCESS * RADIO_NOT_AVAILABLE * GENERIC_FAILURE * */#define RIL_REQUEST_CHANGE_BARRING_PASSWORD 44/** * RIL_REQUEST_QUERY_NETWORK_SELECTION_MODE * * Query current network selectin mode * * "data" is NULL * * "response" is int * * ((const int *)response)[0] is * 0 for automatic selection * 1 for manual selection * * Valid errors: * SUCCESS * RADIO_NOT_AVAILABLE * GENERIC_FAILURE * */#define RIL_REQUEST_QUERY_NETWORK_SELECTION_MODE 45/** * RIL_REQUEST_SET_NETWORK_SELECTION_AUTOMATIC * * Specify that the network should be selected automatically * * "data" is NULL * "response" is NULL * * This request must not respond until the new operator is selected * and registered * * Valid errors: * SUCCESS * RADIO_NOT_AVAILABLE * GENERIC_FAILURE * */#define RIL_REQUEST_SET_NETWORK_SELECTION_AUTOMATIC 46/** * RIL_REQUEST_SET_NETWORK_SELECTION_MANUAL * * Manually select a specified network. * * The radio baseband/RIL implementation is expected to fall back to * automatic selection mode if the manually selected network should go * out of range in the future. * * "data" is const char * specifying MCCMNC of network to select (eg "310170") * "response" is NULL * * This request must not respond until the new operator is selected * and registered * * Valid errors: * SUCCESS * RADIO_NOT_AVAILABLE * GENERIC_FAILURE * */#define RIL_REQUEST_SET_NETWORK_SELECTION_MANUAL 47/** * RIL_REQUEST_QUERY_AVAILABLE_NETWORKS * * Scans for available networks * * "data" is NULL * "response" is const char ** that should be an array of n*4 strings, where * n is the number of available networks * For each available network: * * ((const char **)response)[n+0] is long alpha ONS or EONS * ((const char **)response)[n+1] is short alpha ONS or EONS * ((const char **)response)[n+2] is 5 or 6 digit numeric code (MCC + MNC) * ((const char **)response)[n+3] is a string value of the status: * "unknown" * "available" * "current" * "forbidden" * * This request must not respond until the new operator is selected * and registered * * Valid errors: * SUCCESS * RADIO_NOT_AVAILABLE * GENERIC_FAILURE * */#define RIL_REQUEST_QUERY_AVAILABLE_NETWORKS 48/** * RIL_REQUEST_DTMF_START * * Start playing a DTMF tone. Continue playing DTMF tone until * RIL_REQUEST_DTMF_STOP is received * * If a RIL_REQUEST_DTMF_START is received while a tone is currently playing, * it should cancel the previous tone and play the new one. * * "data" is a char * * ((char *)data)[0] is a single character with one of 12 values: 0-9,*,# * "response" is NULL * * Valid errors: * SUCCESS * RADIO_NOT_AVAILABLE * GENERIC_FAILURE * * See also: RIL_REQUEST_DTMF, RIL_REQUEST_DTMF_STOP */#define RIL_REQUEST_DTMF_START 49/** * RIL_REQUEST_DTMF_STOP * * Stop playing a currently playing DTMF tone. * * "data" is NULL * "response" is NULL * * Valid errors: * SUCCESS * RADIO_NOT_AVAILABLE * GENERIC_FAILURE * * See also: RIL_REQUEST_DTMF, RIL_REQUEST_DTMF_START */#define RIL_REQUEST_DTMF_STOP 50/** * RIL_REQUEST_BASEBAND_VERSION * * Return string value indicating baseband version, eg * response from AT+CGMR * * "data" is NULL * "response" is const char * containing version string for log reporting * * Valid errors: * SUCCESS * RADIO_NOT_AVAILABLE * GENERIC_FAILURE * */#define RIL_REQUEST_BASEBAND_VERSION 51/** * RIL_REQUEST_SEPARATE_CONNECTION * * Separate a party from a multiparty call placing the multiparty call * (less the specified party) on hold and leaving the specified party * as the only other member of the current (active) call * * Like AT+CHLD=2x * * See TS 22.084 1.3.8.2 (iii) * TS 22.030 6.5.5 "Entering "2X followed by send" * TS 27.007 "AT+CHLD=2x" * * "data" is an int * * (int *)data)[0] contains GSM call index (value of 'x' in CHLD above) * "response" is NULL * * Valid errors: * SUCCESS * RADIO_NOT_AVAILABLE (radio resetting) * GENERIC_FAILURE */#define RIL_REQUEST_SEPARATE_CONNECTION 52/** * RIL_REQUEST_SET_MUTE * * Turn on or off uplink (microphone) mute. * * Will only be sent while voice call is active. * Will always be reset to "disable mute" when a new voice call is initiated * * "data" is an int * * (int *)data)[0] is 1 for "enable mute" and 0 for "disable mute" * * "response" is NULL * * Valid errors: * SUCCESS * RADIO_NOT_AVAILABLE (radio resetting) * GENERIC_FAILURE */#define RIL_REQUEST_SET_MUTE 53/** * RIL_REQUEST_GET_MUTE * * Queries the current state of the uplink mute setting * * "data" is NULL * "response" is an int * * (int *)response)[0] is 1 for "mute enabled" and 0 for "mute disabled" * * Valid errors: * SUCCESS * RADIO_NOT_AVAILABLE (radio resetting) * GENERIC_FAILURE */#define RIL_REQUEST_GET_MUTE 54/** * RIL_REQUEST_QUERY_CLIP * * Queries the status of the CLIP supplementary service * * (for MMI code "*#30#") * * "data" is NULL * "response" is an int * * (int *)response)[0] is 1 for "CLIP provisioned" * and 0 for "CLIP not provisioned" * and 2 for "unknown, e.g. no network etc" * * Valid errors: * SUCCESS * RADIO_NOT_AVAILABLE (radio resetting) * GENERIC_FAILURE */#define RIL_REQUEST_QUERY_CLIP 55/** * RIL_REQUEST_LAST_PDP_FAIL_CAUSE * * Requests the failure cause code for the most recently failed PDP * context activate * * "data" is NULL * * "response" is a "int *" * ((int *)response)[0] is an integer cause code defined in TS 24.008 * section 6.1.3.1.3 or close approximation * * If the implementation does not have access to the exact cause codes, * then it should return one of the values listed in * RIL_LastPDPActivateFailCause, as the UI layer needs to distinguish these * cases for error notification * and potential retries. * * Valid errors: * SUCCESS * RADIO_NOT_AVAILABLE * GENERIC_FAILURE * * See also: RIL_REQUEST_LAST_CALL_FAIL_CAUSE * */ #define RIL_REQUEST_LAST_PDP_FAIL_CAUSE 56/** * RIL_REQUEST_PDP_CONTEXT_LIST * * Queries the status of PDP contexts, returning for each * its CID, whether or not it is active, and its PDP type, * APN, and PDP adddress. * * "data" is NULL * "response" is an array of RIL_PDP_Context_Response * * Valid errors: * SUCCESS * RADIO_NOT_AVAILABLE (radio resetting) * GENERIC_FAILURE */#define RIL_REQUEST_PDP_CONTEXT_LIST 57/** * RIL_REQUEST_RESET_RADIO * * Request a radio reset. The RIL implementation may postpone * the reset until after this request is responded to if the baseband * is presently busy. * * "data" is NULL * "response" is NULL * * The reset action could be delayed for a while * in case baseband modem is just busy. * * Valid errors: * SUCCESS * RADIO_NOT_AVAILABLE (radio resetting) * GENERIC_FAILURE */#define RIL_REQUEST_RESET_RADIO 58/** * RIL_REQUEST_OEM_HOOK_RAW * * This request reserved for OEM-specific uses. It passes raw byte arrays * back and forth. * * It can be invoked on the Java side from * com.android.internal.telephony.Phone.invokeOemRilRequestRaw() * * "data" is a char * of bytes copied from the byte[] data argument in java * "response" is a char * of bytes that will returned via the * caller's "response" Message here: * (byte[])(((AsyncResult)response.obj).result) * * An error response here will result in * (((AsyncResult)response.obj).result) == null and * (((AsyncResult)response.obj).exception) being an instance of * com.android.internal.telephony.gsm.CommandException * * Valid errors: * All */#define RIL_REQUEST_OEM_HOOK_RAW 59/** * RIL_REQUEST_OEM_HOOK_STRINGS * * This request reserved for OEM-specific uses. It passes strings * back and forth. * * It can be invoked on the Java side from * com.android.internal.telephony.Phone.invokeOemRilRequestStrings() * * "data" is a const char **, representing an array of null-terminated UTF-8 * strings copied from the "String[] strings" argument to * invokeOemRilRequestStrings() * * "response" is a const char **, representing an array of null-terminated UTF-8 * stings that will be returned via the caller's response message here: * * (String[])(((AsyncResult)response.obj).result) * * An error response here will result in * (((AsyncResult)response.obj).result) == null and * (((AsyncResult)response.obj).exception) being an instance of * com.android.internal.telephony.gsm.CommandException * * Valid errors: * All */#define RIL_REQUEST_OEM_HOOK_STRINGS 60/** * RIL_REQUEST_SCREEN_STATE * * Indicates the current state of the screen. When the screen is off, the * RIL should notify the baseband to suppress certain notifications (eg, * signal strength and changes in LAC or CID) in an effort to conserve power. * These notifications should resume when the screen is on. * * "data" is int * * ((int *)data)[0] is == 1 for "Screen On" * ((int *)data)[0] is == 0 for "Screen Off" * * "response" is NULL * * Valid errors: * SUCCESS * GENERIC_FAILURE */#define RIL_REQUEST_SCREEN_STATE 61/** * RIL_REQUEST_SET_SUPP_SVC_NOTIFICATION * * Enables/disables supplementary service related notifications * from the network. * * Notifications are reported via RIL_UNSOL_SUPP_SVC_NOTIFICATION. * * "data" is int * * ((int *)data)[0] is == 1 for notifications enabled * ((int *)data)[0] is == 0 for notifications disabled * * "response" is NULL * * Valid errors: * SUCCESS * RADIO_NOT_AVAILABLE * GENERIC_FAILURE * * See also: RIL_UNSOL_SUPP_SVC_NOTIFICATION. */#define RIL_REQUEST_SET_SUPP_SVC_NOTIFICATION 62/** * RIL_REQUEST_WRITE_SMS_TO_SIM * * Stores a SMS message to SIM memory. * * "data" is RIL_SMS_WriteArgs * * * "response" is int * * ((const int *)response)[0] is the record index where the message is stored. * * Valid errors: * SUCCESS * GENERIC_FAILURE * */#define RIL_REQUEST_WRITE_SMS_TO_SIM 63/** * RIL_REQUEST_DELETE_SMS_ON_SIM * * Deletes a SMS message from SIM memory. * * "data" is int * * ((int *)data)[0] is the record index of the message to delete. * * "response" is NULL * * Valid errors: * SUCCESS * GENERIC_FAILURE * */#define RIL_REQUEST_DELETE_SMS_ON_SIM 64/** * RIL_REQUEST_SET_BAND_MODE * * Assign a specified band for RF configuration. * * "data" is int * * ((int *)data)[0] is == 0 for "unspecified" (selected by baseband automatically) * ((int *)data)[0] is == 1 for "EURO band" (GSM-900 / DCS-1800 / WCDMA-IMT-2000) * ((int *)data)[0] is == 2 for "US band" (GSM-850 / PCS-1900 / WCDMA-850 / WCDMA-PCS-1900) * ((int *)data)[0] is == 3 for "JPN band" (WCDMA-800 / WCDMA-IMT-2000) * ((int *)data)[0] is == 4 for "AUS band" (GSM-900 / DCS-1800 / WCDMA-850 / WCDMA-IMT-2000) * ((int *)data)[0] is == 5 for "AUS band 2" (GSM-900 / DCS-1800 / WCDMA-850) * * "response" is NULL * * Valid errors: * SUCCESS * RADIO_NOT_AVAILABLE * GENERIC_FAILURE */#define RIL_REQUEST_SET_BAND_MODE 65/** * RIL_REQUEST_QUERY_AVAILABLE_BAND_MODE * * Query the list of band mode supported by RF. * * "data" is NULL * * "response" is int * * "response" points to an array of int's, the int[0] is the size of array, reset is one for * each available band mode. * * 0 for "unspecified" (selected by baseband automatically) * 1 for "EURO band" (GSM-900 / DCS-1800 / WCDMA-IMT-2000) * 2 for "US band" (GSM-850 / PCS-1900 / WCDMA-850 / WCDMA-PCS-1900) * 3 for "JPN band" (WCDMA-800 / WCDMA-IMT-2000) * 4 for "AUS band" (GSM-900 / DCS-1800 / WCDMA-850 / WCDMA-IMT-2000) * 5 for "AUS band 2" (GSM-900 / DCS-1800 / WCDMA-850) * * Valid errors: * SUCCESS * RADIO_NOT_AVAILABLE * GENERIC_FAILURE * * See also: RIL_REQUEST_SET_BAND_MODE */#define RIL_REQUEST_QUERY_AVAILABLE_BAND_MODE 66/** * RIL_REQUEST_STK_GET_PROFILE * * Requests the profile of SIM tool kit. * The profile indicates the SAT/USAT features supported by ME. * The SAT/USAT features refer to 3GPP TS 11.14 and 3GPP TS 31.111 * * "data" is NULL * * "response" is a const char * containing SAT/USAT profile * in hexadecimal format string starting with first byte of terminal profile * * Valid errors: * RIL_E_SUCCESS * RIL_E_RADIO_NOT_AVAILABLE (radio resetting) * RIL_E_GENERIC_FAILURE */#define RIL_REQUEST_STK_GET_PROFILE 67/** * RIL_REQUEST_STK_SET_PROFILE * * Download the STK terminal profile as part of SIM initialization * procedure * * "data" is a const char * containing SAT/USAT profile * in hexadecimal format string starting with first byte of terminal profile * * "response" is NULL * * Valid errors: * RIL_E_SUCCESS * RIL_E_RADIO_NOT_AVAILABLE (radio resetting) * RIL_E_GENERIC_FAILURE */#define RIL_REQUEST_STK_SET_PROFILE 68/** * RIL_REQUEST_STK_SEND_ENVELOPE_COMMAND * * Requests to send a SAT/USAT envelope command to SIM. * The SAT/USAT envelope command refers to 3GPP TS 11.14 and 3GPP TS 31.111 * * "data" is a const char * containing SAT/USAT command * in hexadecimal format string starting with command tag * * "response" is a const char * containing SAT/USAT response * in hexadecimal format string starting with first byte of response * (May be NULL) * * Valid errors: * RIL_E_SUCCESS * RIL_E_RADIO_NOT_AVAILABLE (radio resetting) * RIL_E_GENERIC_FAILURE */#define RIL_REQUEST_STK_SEND_ENVELOPE_COMMAND 69/** * RIL_REQUEST_STK_SEND_TERMINAL_RESPONSE * * Requests to send a terminal response to SIM for a received * proactive command *
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -