Merge "sync RadioError from IRadio 1.6" am: 9c06156252 am: f56624d96f

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1475822

Change-Id: I1cc8b66fdaeeb451482be61f3f38a484d7d9c6b3
This commit is contained in:
Treehugger Robot
2020-11-03 10:29:29 +00:00
committed by Automerger Merge Worker

View File

@@ -30,77 +30,96 @@ public interface RILConstants {
// from RIL_Errno // from RIL_Errno
int SUCCESS = 0; int SUCCESS = 0;
int RADIO_NOT_AVAILABLE = 1; /* If radio did not start or is resetting */ int RADIO_NOT_AVAILABLE = 1; /* If radio did not start or is resetting */
int GENERIC_FAILURE = 2; int GENERIC_FAILURE = 2;
int PASSWORD_INCORRECT = 3; /* for PIN/PIN2 methods only! */ int PASSWORD_INCORRECT = 3; /* for PIN/PIN2 methods only! */
int SIM_PIN2 = 4; /* Operation requires SIM PIN2 to be entered */ int SIM_PIN2 = 4; /* Operation requires SIM PIN2 to be entered */
int SIM_PUK2 = 5; /* Operation requires SIM PIN2 to be entered */ int SIM_PUK2 = 5; /* Operation requires SIM PIN2 to be entered */
int REQUEST_NOT_SUPPORTED = 6; int REQUEST_NOT_SUPPORTED = 6;
int REQUEST_CANCELLED = 7; int REQUEST_CANCELLED = 7;
int OP_NOT_ALLOWED_DURING_VOICE_CALL = 8; /* data operation is not allowed during voice call in int OP_NOT_ALLOWED_DURING_VOICE_CALL = 8; /* data operation is not allowed during voice
class C */ call in class C */
int OP_NOT_ALLOWED_BEFORE_REG_NW = 9; /* request is not allowed before device registers to int OP_NOT_ALLOWED_BEFORE_REG_NW = 9; /* request is not allowed before device
network */ registers to network */
int SMS_SEND_FAIL_RETRY = 10; /* send sms fail and need retry */ int SMS_SEND_FAIL_RETRY = 10; /* send sms fail and need retry */
int SIM_ABSENT = 11; /* ICC card is absent */ int SIM_ABSENT = 11; /* ICC card is absent */
int SUBSCRIPTION_NOT_AVAILABLE = 12; /* fail to find CDMA subscription from specified int SUBSCRIPTION_NOT_AVAILABLE = 12; /* fail to find CDMA subscription from specified
location */ location */
int MODE_NOT_SUPPORTED = 13; /* HW does not support preferred network type */ int MODE_NOT_SUPPORTED = 13; /* HW does not support preferred network type */
int FDN_CHECK_FAILURE = 14; /* send operation barred error when FDN is enabled */ int FDN_CHECK_FAILURE = 14; /* send operation barred error when FDN is
int ILLEGAL_SIM_OR_ME = 15; /* network selection failure due enabled */
to wrong SIM/ME and no int ILLEGAL_SIM_OR_ME = 15; /* network selection failure due to wrong
retries needed */ SIM/ME and no retries needed */
int MISSING_RESOURCE = 16; /* no logical channel available */ int MISSING_RESOURCE = 16; /* no logical channel available */
int NO_SUCH_ELEMENT = 17; /* application not found on SIM */ int NO_SUCH_ELEMENT = 17; /* application not found on SIM */
int DIAL_MODIFIED_TO_USSD = 18; /* DIAL request modified to USSD */ int DIAL_MODIFIED_TO_USSD = 18; /* DIAL request modified to USSD */
int DIAL_MODIFIED_TO_SS = 19; /* DIAL request modified to SS */ int DIAL_MODIFIED_TO_SS = 19; /* DIAL request modified to SS */
int DIAL_MODIFIED_TO_DIAL = 20; /* DIAL request modified to DIAL with different data*/ int DIAL_MODIFIED_TO_DIAL = 20; /* DIAL request modified to DIAL with
int USSD_MODIFIED_TO_DIAL = 21; /* USSD request modified to DIAL */ different data*/
int USSD_MODIFIED_TO_SS = 22; /* USSD request modified to SS */ int USSD_MODIFIED_TO_DIAL = 21; /* USSD request modified to DIAL */
int USSD_MODIFIED_TO_USSD = 23; /* USSD request modified to different USSD request */ int USSD_MODIFIED_TO_SS = 22; /* USSD request modified to SS */
int SS_MODIFIED_TO_DIAL = 24; /* SS request modified to DIAL */ int USSD_MODIFIED_TO_USSD = 23; /* USSD request modified to different USSD
int SS_MODIFIED_TO_USSD = 25; /* SS request modified to USSD */ request */
int SUBSCRIPTION_NOT_SUPPORTED = 26; /* Subscription not supported */ int SS_MODIFIED_TO_DIAL = 24; /* SS request modified to DIAL */
int SS_MODIFIED_TO_SS = 27; /* SS request modified to different SS request */ int SS_MODIFIED_TO_USSD = 25; /* SS request modified to USSD */
int SIM_ALREADY_POWERED_OFF = 29; /* SAP: 0x03, Error card aleready powered off */ int SUBSCRIPTION_NOT_SUPPORTED = 26; /* Subscription not supported */
int SIM_ALREADY_POWERED_ON = 30; /* SAP: 0x05, Error card already powered on */ int SS_MODIFIED_TO_SS = 27; /* SS request modified to different SS
int SIM_DATA_NOT_AVAILABLE = 31; /* SAP: 0x06, Error data not available */ request */
int SIM_ALREADY_POWERED_OFF = 29; /* SAP: 0x03, Error card aleready powered off */
int SIM_ALREADY_POWERED_ON = 30; /* SAP: 0x05, Error card already powered on */
int SIM_DATA_NOT_AVAILABLE = 31; /* SAP: 0x06, Error data not available */
int SIM_SAP_CONNECT_FAILURE = 32; int SIM_SAP_CONNECT_FAILURE = 32;
int SIM_SAP_MSG_SIZE_TOO_LARGE = 33; int SIM_SAP_MSG_SIZE_TOO_LARGE = 33;
int SIM_SAP_MSG_SIZE_TOO_SMALL = 34; int SIM_SAP_MSG_SIZE_TOO_SMALL = 34;
int SIM_SAP_CONNECT_OK_CALL_ONGOING = 35; int SIM_SAP_CONNECT_OK_CALL_ONGOING = 35;
int LCE_NOT_SUPPORTED = 36; /* Link Capacity Estimation (LCE) not supported */ int LCE_NOT_SUPPORTED = 36; /* Link Capacity Estimation (LCE) not
int NO_MEMORY = 37; /* Not sufficient memory to process the request */ supported */
int INTERNAL_ERR = 38; /* Hit unexpected vendor internal error scenario */ int NO_MEMORY = 37; /* Not sufficient memory to process the
int SYSTEM_ERR = 39; /* Hit platform or system error */ request */
int MODEM_ERR = 40; /* Hit unexpected modem error */ int INTERNAL_ERR = 38; /* Hit unexpected vendor internal error
int INVALID_STATE = 41; /* Unexpected request for the current state */ scenario */
int NO_RESOURCES = 42; /* Not sufficient resource to process the request */ int SYSTEM_ERR = 39; /* Hit platform or system error */
int SIM_ERR = 43; /* Received error from SIM card */ int MODEM_ERR = 40; /* Hit unexpected modem error */
int INVALID_ARGUMENTS = 44; /* Received invalid arguments in request */ int INVALID_STATE = 41; /* Unexpected request for the current state */
int INVALID_SIM_STATE = 45; /* Can not process the request in current SIM state */ int NO_RESOURCES = 42; /* Not sufficient resource to process the
int INVALID_MODEM_STATE = 46; /* Can not process the request in current Modem state */ request */
int INVALID_CALL_ID = 47; /* Received invalid call id in request */ int SIM_ERR = 43; /* Received error from SIM card */
int NO_SMS_TO_ACK = 48; /* ACK received when there is no SMS to ack */ int INVALID_ARGUMENTS = 44; /* Received invalid arguments in request */
int NETWORK_ERR = 49; /* Received error from network */ int INVALID_SIM_STATE = 45; /* Can not process the request in current SIM
int REQUEST_RATE_LIMITED = 50; /* Operation denied due to overly-frequent requests */ state */
int SIM_BUSY = 51; /* SIM is busy */ int INVALID_MODEM_STATE = 46; /* Can not process the request in current Modem
int SIM_FULL = 52; /* The target EF is full */ state */
int NETWORK_REJECT = 53; /* Request is rejected by network */ int INVALID_CALL_ID = 47; /* Received invalid call id in request */
int OPERATION_NOT_ALLOWED = 54; /* Not allowed the request now */ int NO_SMS_TO_ACK = 48; /* ACK received when there is no SMS to ack */
int EMPTY_RECORD = 55; /* The request record is empty */ int NETWORK_ERR = 49; /* Received error from network */
int INVALID_SMS_FORMAT = 56; /* Invalid sms format */ int REQUEST_RATE_LIMITED = 50; /* Operation denied due to overly-frequent
int ENCODING_ERR = 57; /* Message not encoded properly */ requests */
int INVALID_SMSC_ADDRESS = 58; /* SMSC address specified is invalid */ int SIM_BUSY = 51; /* SIM is busy */
int NO_SUCH_ENTRY = 59; /* No such entry present to perform the request */ int SIM_FULL = 52; /* The target EF is full */
int NETWORK_NOT_READY = 60; /* Network is not ready to perform the request */ int NETWORK_REJECT = 53; /* Request is rejected by network */
int NOT_PROVISIONED = 61; /* Device doesnot have this value provisioned */ int OPERATION_NOT_ALLOWED = 54; /* Not allowed the request now */
int NO_SUBSCRIPTION = 62; /* Device doesnot have subscription */ int EMPTY_RECORD = 55; /* The request record is empty */
int NO_NETWORK_FOUND = 63; /* Network cannot be found */ int INVALID_SMS_FORMAT = 56; /* Invalid sms format */
int DEVICE_IN_USE = 64; /* Operation cannot be performed because the device int ENCODING_ERR = 57; /* Message not encoded properly */
is currently in use */ int INVALID_SMSC_ADDRESS = 58; /* SMSC address specified is invalid */
int ABORTED = 65; /* Operation aborted */ int NO_SUCH_ENTRY = 59; /* No such entry present to perform the
int INVALID_RESPONSE = 66; /* Invalid response sent by vendor code */ request */
int NETWORK_NOT_READY = 60; /* Network is not ready to perform the
request */
int NOT_PROVISIONED = 61; /* Device doesnot have this value
provisioned */
int NO_SUBSCRIPTION = 62; /* Device doesnot have subscription */
int NO_NETWORK_FOUND = 63; /* Network cannot be found */
int DEVICE_IN_USE = 64; /* Operation cannot be performed because the
device is currently in use */
int ABORTED = 65; /* Operation aborted */
int INVALID_RESPONSE = 66; /* Invalid response sent by vendor code */
int SIMULTANEOUS_SMS_AND_CALL_NOT_ALLOWED = 67; /* 1X voice and SMS are not allowed
simulteneously */
int ACCESS_BARRED = 68; /* SMS access is barred */
int BLOCKED_DUE_TO_CALL = 69; /* SMS is blocked due to call control */
int RF_HARDWARE_ISSUE = 70; /* RF HW issue is detected */
int NO_RF_CALIBRATION_INFO = 71; /* No RF calibration in device */
// Below is list of OEM specific error codes which can by used by OEMs in case they don't want to // Below is list of OEM specific error codes which can by used by OEMs in case they don't want to
// reveal particular replacement for Generic failure // reveal particular replacement for Generic failure