Home
last modified time | relevance | path

Searched refs:CommandException (Results 1 – 14 of 14) sorted by relevance

/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DCommandException.java26 public class CommandException extends RuntimeException { class
59 public CommandException(Error e) { in CommandException() method in CommandException
64 public static CommandException
69 return new CommandException(Error.INVALID_RESPONSE); in fromRilErrno()
71 return new CommandException(Error.RADIO_NOT_AVAILABLE); in fromRilErrno()
73 return new CommandException(Error.GENERIC_FAILURE); in fromRilErrno()
75 return new CommandException(Error.PASSWORD_INCORRECT); in fromRilErrno()
77 return new CommandException(Error.SIM_PIN2); in fromRilErrno()
79 return new CommandException(Error.SIM_PUK2); in fromRilErrno()
81 return new CommandException(Error.REQUEST_NOT_SUPPORTED); in fromRilErrno()
[all …]
DCallTracker.java24 import com.android.internal.telephony.CommandException;
90 return e != null && e instanceof CommandException in isCommandExceptionRadioNotAvailable()
91 && ((CommandException)e).getCommandError() in isCommandExceptionRadioNotAvailable()
92 == CommandException.Error.RADIO_NOT_AVAILABLE; in isCommandExceptionRadioNotAvailable()
DSMSDispatcher.java488 new CommandException(CommandException.Error.GENERIC_FAILURE)))); in processSendSmsResponse()
654 } else if ((((CommandException)(ar.exception)).getCommandError() in handleSendComplete()
655 == CommandException.Error.SMS_FAIL_RETRY) && in handleSendComplete()
674 if (((CommandException)(ar.exception)).getCommandError() in handleSendComplete()
675 == CommandException.Error.FDN_CHECK_FAILURE) { in handleSendComplete()
DRIL.java200 CommandException ex; in onError()
202 ex = CommandException.fromRilErrno(error); in onError()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/
DSimulatedCommands.java26 import com.android.internal.telephony.CommandException;
118 CommandException ex = new CommandException( in supplyIccPin()
119 CommandException.Error.PASSWORD_INCORRECT); in supplyIccPin()
149 CommandException ex = new CommandException( in supplyIccPin()
150 CommandException.Error.PASSWORD_INCORRECT); in supplyIccPin()
161 CommandException ex = new CommandException( in supplyIccPuk()
162 CommandException.Error.PASSWORD_INCORRECT); in supplyIccPuk()
192 CommandException ex = new CommandException( in supplyIccPuk()
193 CommandException.Error.PASSWORD_INCORRECT); in supplyIccPuk()
204 CommandException ex = new CommandException( in supplyIccPin2()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/
DCdmaMmiCode.java21 import com.android.internal.telephony.CommandException;
309 if (ar.exception instanceof CommandException) { in onSetComplete()
310 CommandException.Error err = ((CommandException)(ar.exception)).getCommandError(); in onSetComplete()
311 if (err == CommandException.Error.PASSWORD_INCORRECT) { in onSetComplete()
338 } else if (err == CommandException.Error.SIM_PUK2) { in onSetComplete()
344 } else if (err == CommandException.Error.REQUEST_NOT_SUPPORTED) { in onSetComplete()
DCdmaServiceStateTracker.java48 import com.android.internal.telephony.CommandException;
806 CommandException.Error err=null; in handlePollStateResult()
808 if (ar.exception instanceof CommandException) { in handlePollStateResult()
809 err = ((CommandException)(ar.exception)).getCommandError(); in handlePollStateResult()
812 if (err == CommandException.Error.RADIO_NOT_AVAILABLE) { in handlePollStateResult()
824 if (err != CommandException.Error.OP_NOT_ALLOWED_BEFORE_REG_NW) { in handlePollStateResult()
DCDMAPhone.java53 import com.android.internal.telephony.CommandException;
765 CommandException ce = new CommandException( in getNeighboringCids()
766 CommandException.Error.REQUEST_NOT_SUPPORTED); in getNeighboringCids()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/gsm/
DGsmMmiCode.java285 CommandException ex; in parseSsData()
287 ex = CommandException.fromRilErrno(ssData.result); in parseSsData()
1141 if (ar.exception instanceof CommandException) { in getErrorMessage()
1142 CommandException.Error err = ((CommandException)(ar.exception)).getCommandError(); in getErrorMessage()
1143 if (err == CommandException.Error.FDN_CHECK_FAILURE) { in getErrorMessage()
1146 } else if (err == CommandException.Error.USSD_MODIFIED_TO_DIAL) { in getErrorMessage()
1149 } else if (err == CommandException.Error.USSD_MODIFIED_TO_SS) { in getErrorMessage()
1152 } else if (err == CommandException.Error.USSD_MODIFIED_TO_USSD) { in getErrorMessage()
1155 } else if (err == CommandException.Error.SS_MODIFIED_TO_DIAL) { in getErrorMessage()
1158 } else if (err == CommandException.Error.SS_MODIFIED_TO_USSD) { in getErrorMessage()
[all …]
DGsmServiceStateTracker.java58 import com.android.internal.telephony.CommandException;
687 CommandException.Error err=null; in handlePollStateResult()
689 if (ar.exception instanceof CommandException) { in handlePollStateResult()
690 err = ((CommandException)(ar.exception)).getCommandError(); in handlePollStateResult()
693 if (err == CommandException.Error.RADIO_NOT_AVAILABLE) { in handlePollStateResult()
705 if (err != CommandException.Error.OP_NOT_ALLOWED_BEFORE_REG_NW) { in handlePollStateResult()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/imsphone/
DImsPhone.java73 import com.android.internal.telephony.CommandException;
801 new CommandException(CommandException.Error.GENERIC_FAILURE)); in sendErrorResponse()
825 CommandException getCommandException(int code) { in getCommandException()
827 CommandException.Error error = CommandException.Error.GENERIC_FAILURE; in getCommandException()
831 error = CommandException.Error.REQUEST_NOT_SUPPORTED; in getCommandException()
834 error = CommandException.Error.PASSWORD_INCORRECT; in getCommandException()
840 return new CommandException(error); in getCommandException()
844 CommandException getCommandException(Throwable e) { in getCommandException()
845 CommandException ex = null; in getCommandException()
851 ex = new CommandException(CommandException.Error.GENERIC_FAILURE); in getCommandException()
[all …]
DImsPhoneMmiCode.java35 import com.android.internal.telephony.CommandException;
1106 if (ar.exception instanceof CommandException) { in onSetComplete()
1107 CommandException.Error err = ((CommandException)(ar.exception)).getCommandError(); in onSetComplete()
1108 if (err == CommandException.Error.PASSWORD_INCORRECT) { in onSetComplete()
DImsPhoneCallTracker.java61 import com.android.internal.telephony.CommandException;
1240 CommandException ex =
1241 new CommandException(CommandException.Error.GENERIC_FAILURE);
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
DDataConnection.java20 import com.android.internal.telephony.CommandException;
766 if (ar.exception instanceof CommandException in onSetupConnectionCompleted()
767 && ((CommandException) (ar.exception)).getCommandError() in onSetupConnectionCompleted()
768 == CommandException.Error.RADIO_NOT_AVAILABLE) { in onSetupConnectionCompleted()