Home
last modified time | relevance | path

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

/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DCommandException.java26 public class CommandException extends RuntimeException { class
121 public CommandException(Error e) { in CommandException() method in CommandException
126 public CommandException(Error e, String errString) { in CommandException() method in CommandException
131 public static CommandException
136 return new CommandException(Error.INVALID_RESPONSE); in fromRilErrno()
138 return new CommandException(Error.RADIO_NOT_AVAILABLE); in fromRilErrno()
140 return new CommandException(Error.GENERIC_FAILURE); in fromRilErrno()
142 return new CommandException(Error.PASSWORD_INCORRECT); in fromRilErrno()
144 return new CommandException(Error.SIM_PIN2); in fromRilErrno()
146 return new CommandException(Error.SIM_PUK2); in fromRilErrno()
[all …]
DCallTracker.java92 return e != null && e instanceof CommandException in isCommandExceptionRadioNotAvailable()
93 && ((CommandException)e).getCommandError() in isCommandExceptionRadioNotAvailable()
94 == CommandException.Error.RADIO_NOT_AVAILABLE; in isCommandExceptionRadioNotAvailable()
DSMSDispatcher.java496 new CommandException(CommandException.Error.GENERIC_FAILURE)))); in processSendSmsResponse()
663 } else if ((((CommandException)(ar.exception)).getCommandError() in handleSendComplete()
664 == CommandException.Error.SMS_FAIL_RETRY) && in handleSendComplete()
683 if (((CommandException)(ar.exception)).getCommandError() in handleSendComplete()
684 == CommandException.Error.FDN_CHECK_FAILURE) { in handleSendComplete()
DPhone.java1879 CommandException ex; in setPreferredNetworkType()
1881 ex = new CommandException(CommandException.Error.GENERIC_FAILURE); in setPreferredNetworkType()
DRIL.java247 CommandException ex; in onError()
249 ex = CommandException.fromRilErrno(error); in onError()
500 CommandException.fromRilErrno(RADIO_NOT_AVAILABLE)); in getRadioProxy()
527 CommandException.fromRilErrno(RADIO_NOT_AVAILABLE)); in getRadioProxy()
546 CommandException.fromRilErrno(RADIO_NOT_AVAILABLE)); in getOemHookProxy()
574 CommandException.fromRilErrno(RADIO_NOT_AVAILABLE)); in getOemHookProxy()
DServiceStateTracker.java1602 CommandException.Error err=null; in handlePollStateResult()
1604 if (ar.exception instanceof CommandException) { in handlePollStateResult()
1605 err = ((CommandException)(ar.exception)).getCommandError(); in handlePollStateResult()
1608 if (err == CommandException.Error.RADIO_NOT_AVAILABLE) { in handlePollStateResult()
1614 if (err != CommandException.Error.OP_NOT_ALLOWED_BEFORE_REG_NW) { in handlePollStateResult()
DGsmCdmaPhone.java1815 CommandException ce = new CommandException( in getNeighboringCids()
1816 CommandException.Error.REQUEST_NOT_SUPPORTED); in getNeighboringCids()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/
DSimulatedCommands.java40 import com.android.internal.telephony.CommandException;
179 CommandException ex = new CommandException( in supplyIccPin()
180 CommandException.Error.PASSWORD_INCORRECT); in supplyIccPin()
206 CommandException ex = new CommandException( in supplyIccPin()
207 CommandException.Error.PASSWORD_INCORRECT); in supplyIccPin()
217 CommandException ex = new CommandException( in supplyIccPuk()
218 CommandException.Error.PASSWORD_INCORRECT); in supplyIccPuk()
243 CommandException ex = new CommandException( in supplyIccPuk()
244 CommandException.Error.PASSWORD_INCORRECT); in supplyIccPuk()
254 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;
316 if (ar.exception instanceof CommandException) { in onSetComplete()
317 CommandException.Error err = ((CommandException)(ar.exception)).getCommandError(); in onSetComplete()
318 if (err == CommandException.Error.PASSWORD_INCORRECT) { in onSetComplete()
345 } else if (err == CommandException.Error.SIM_PUK2) { in onSetComplete()
351 } else if (err == CommandException.Error.REQUEST_NOT_SUPPORTED) { in onSetComplete()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/gsm/
DGsmMmiCode.java290 CommandException ex; in parseSsData()
292 ex = CommandException.fromRilErrno(ssData.result); in parseSsData()
1154 if (ar.exception instanceof CommandException) { in getErrorMessage()
1155 CommandException.Error err = ((CommandException)(ar.exception)).getCommandError(); in getErrorMessage()
1156 if (err == CommandException.Error.FDN_CHECK_FAILURE) { in getErrorMessage()
1159 } else if (err == CommandException.Error.USSD_MODIFIED_TO_DIAL) { in getErrorMessage()
1162 } else if (err == CommandException.Error.USSD_MODIFIED_TO_SS) { in getErrorMessage()
1165 } else if (err == CommandException.Error.USSD_MODIFIED_TO_USSD) { in getErrorMessage()
1168 } else if (err == CommandException.Error.SS_MODIFIED_TO_DIAL) { in getErrorMessage()
1171 } else if (err == CommandException.Error.SS_MODIFIED_TO_USSD) { in getErrorMessage()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/uicc/
DUiccCardApplicationTest.java20 import com.android.internal.telephony.CommandException;
49 private CommandException mException = null;
80 mException = (CommandException) ((AsyncResult) msg.obj).exception; in onLooperPrepared()
215 assertEquals(CommandException.Error.PASSWORD_INCORRECT, mException.getCommandError()); in testSupplyPin()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/imsphone/
DImsPhone.java88 import com.android.internal.telephony.CommandException;
994 new CommandException(CommandException.Error.GENERIC_FAILURE)); in sendErrorResponse()
1008 private CommandException getCommandException(int code, String errorString) { in getCommandException()
1011 CommandException.Error error = CommandException.Error.GENERIC_FAILURE; in getCommandException()
1015 error = CommandException.Error.REQUEST_NOT_SUPPORTED; in getCommandException()
1018 error = CommandException.Error.PASSWORD_INCORRECT; in getCommandException()
1021 error = CommandException.Error.RADIO_NOT_AVAILABLE; in getCommandException()
1026 return new CommandException(error, errorString); in getCommandException()
1029 private CommandException getCommandException(Throwable e) { in getCommandException()
1030 CommandException ex = null; in getCommandException()
[all …]
DImsPhoneMmiCode.java36 import com.android.internal.telephony.CommandException;
1190 if (ar.exception instanceof CommandException) { in onSetComplete()
1191 CommandException err = (CommandException) ar.exception; in onSetComplete()
1192 if (err.getCommandError() == CommandException.Error.PASSWORD_INCORRECT) { in onSetComplete()
DImsPhoneCallTracker.java78 import com.android.internal.telephony.CommandException;
2445 CommandException ex =
2446 new CommandException(CommandException.Error.GENERIC_FAILURE);
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/
DUiccCarrierPrivilegeRules.java33 import com.android.internal.telephony.CommandException;
427 if (ar.exception instanceof CommandException && mRetryCount < MAX_RETRY in handleMessage()
428 && ((CommandException) (ar.exception)).getCommandError() in handleMessage()
429 == CommandException.Error.MISSING_RESOURCE) { in handleMessage()
DUiccPkcs15.java26 import com.android.internal.telephony.CommandException;
/frameworks/base/services/core/java/com/android/server/pm/
DShortcutService.java3595 static class CommandException extends Exception { class in ShortcutService
3596 public CommandException(String message) { in CommandException() method in ShortcutService.CommandException
3609 throws CommandException { in parseOptionsLocked()
3617 throw new CommandException( in parseOptionsLocked()
3624 throw new CommandException("Unknown option: " + opt); in parseOptionsLocked()
3667 } catch (CommandException e) { in onCommand()
3707 private void handleResetThrottling() throws CommandException { in handleResetThrottling()
3723 private void handleOverrideConfig() throws CommandException { in handleOverrideConfig()
3730 throw new CommandException("override-config failed. See logcat for details."); in handleOverrideConfig()
3759 private void handleClearDefaultLauncher() throws CommandException { in handleClearDefaultLauncher()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
DDataConnection.java44 import com.android.internal.telephony.CommandException;
684 if (ar.exception instanceof CommandException in onSetupConnectionCompleted()
685 && ((CommandException) (ar.exception)).getCommandError() in onSetupConnectionCompleted()
686 == CommandException.Error.RADIO_NOT_AVAILABLE) { in onSetupConnectionCompleted()
/frameworks/base/
Dcompiled-classes-phone5508 com.android.internal.telephony.CommandException
5509 com.android.internal.telephony.CommandException$Error