am 23c0b2eb: Merge "Add ILLEGAL_SIM_OR_ME error code." into froyo
Merge commit '23c0b2eb5a610030ad5afe406987cb09c858ccfb' into froyo-plus-aosp * commit '23c0b2eb5a610030ad5afe406987cb09c858ccfb': Add ILLEGAL_SIM_OR_ME error code.
This commit is contained in:
@@ -37,6 +37,7 @@ public class CommandException extends RuntimeException {
|
|||||||
OP_NOT_ALLOWED_DURING_VOICE_CALL,
|
OP_NOT_ALLOWED_DURING_VOICE_CALL,
|
||||||
OP_NOT_ALLOWED_BEFORE_REG_NW,
|
OP_NOT_ALLOWED_BEFORE_REG_NW,
|
||||||
SMS_FAIL_RETRY,
|
SMS_FAIL_RETRY,
|
||||||
|
ILLEGAL_SIM_OR_ME,
|
||||||
}
|
}
|
||||||
|
|
||||||
public CommandException(Error e) {
|
public CommandException(Error e) {
|
||||||
@@ -68,6 +69,8 @@ public class CommandException extends RuntimeException {
|
|||||||
return new CommandException(Error.OP_NOT_ALLOWED_BEFORE_REG_NW);
|
return new CommandException(Error.OP_NOT_ALLOWED_BEFORE_REG_NW);
|
||||||
case RILConstants.SMS_SEND_FAIL_RETRY:
|
case RILConstants.SMS_SEND_FAIL_RETRY:
|
||||||
return new CommandException(Error.SMS_FAIL_RETRY);
|
return new CommandException(Error.SMS_FAIL_RETRY);
|
||||||
|
case RILConstants.ILLEGAL_SIM_OR_ME:
|
||||||
|
return new CommandException(Error.ILLEGAL_SIM_OR_ME);
|
||||||
default:
|
default:
|
||||||
Log.e("GSM", "Unrecognized RIL errno " + ril_errno);
|
Log.e("GSM", "Unrecognized RIL errno " + ril_errno);
|
||||||
return new CommandException(Error.INVALID_RESPONSE);
|
return new CommandException(Error.INVALID_RESPONSE);
|
||||||
|
|||||||
@@ -45,6 +45,9 @@ public interface RILConstants {
|
|||||||
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 registers to
|
||||||
network */
|
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 ILLEGAL_SIM_OR_ME = 15; /* network selection failure due
|
||||||
|
to wrong SIM/ME and no
|
||||||
|
retries needed */
|
||||||
|
|
||||||
/* NETWORK_MODE_* See ril.h RIL_REQUEST_SET_PREFERRED_NETWORK_TYPE */
|
/* NETWORK_MODE_* See ril.h RIL_REQUEST_SET_PREFERRED_NETWORK_TYPE */
|
||||||
int NETWORK_MODE_WCDMA_PREF = 0; /* GSM/WCDMA (WCDMA preferred) */
|
int NETWORK_MODE_WCDMA_PREF = 0; /* GSM/WCDMA (WCDMA preferred) */
|
||||||
|
|||||||
Reference in New Issue
Block a user