Home
last modified time | relevance | path

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

12

/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DCommandException.java25 public class CommandException extends RuntimeException { class
129 public CommandException(Error e) { in CommandException() method in CommandException
134 public CommandException(Error e, String errString) { in CommandException() method in CommandException
140 public static CommandException
145 return new CommandException(Error.INVALID_RESPONSE); in fromRilErrno()
147 return new CommandException(Error.RADIO_NOT_AVAILABLE); in fromRilErrno()
149 return new CommandException(Error.GENERIC_FAILURE); in fromRilErrno()
151 return new CommandException(Error.PASSWORD_INCORRECT); in fromRilErrno()
153 return new CommandException(Error.SIM_PIN2); in fromRilErrno()
155 return new CommandException(Error.SIM_PUK2); in fromRilErrno()
[all …]
DCallTracker.java97 return e != null && e instanceof CommandException in isCommandExceptionRadioNotAvailable()
98 && ((CommandException)e).getCommandError() in isCommandExceptionRadioNotAvailable()
99 == CommandException.Error.RADIO_NOT_AVAILABLE; in isCommandExceptionRadioNotAvailable()
DRILRequest.java213 CommandException ex; in onError()
215 ex = CommandException.fromRilErrno(error); in onError()
DRadioConfig.java172 CommandException.fromRilErrno(RADIO_NOT_AVAILABLE)); in getRadioConfigProxy()
187 CommandException.fromRilErrno(RADIO_NOT_AVAILABLE)); in getRadioConfigProxy()
302 CommandException.fromRilErrno(REQUEST_NOT_SUPPORTED)); in setPreferredDataModem()
331 CommandException.fromRilErrno(REQUEST_NOT_SUPPORTED)); in getPhoneCapability()
DNetworkScanRequestTracker.java333 private int commandExceptionErrorToScanError(CommandException.Error error) { in commandExceptionErrorToScanError()
407 CommandException.Error error = in startScanDone()
408 ((CommandException) (ar.exception)).getCommandError(); in startScanDone()
494 CommandException.Error error = in stopScanDone()
495 ((CommandException) (ar.exception)).getCommandError(); in stopScanDone()
DSMSDispatcher.java523 new CommandException(CommandException.Error.GENERIC_FAILURE)))); in processSendSmsResponse()
705 } else if ((((CommandException)(ar.exception)).getCommandError() in handleSendComplete()
706 == CommandException.Error.SMS_FAIL_RETRY) && in handleSendComplete()
725 if (((CommandException)(ar.exception)).getCommandError() in handleSendComplete()
726 == CommandException.Error.FDN_CHECK_FAILURE) { in handleSendComplete()
DRIL.java413 CommandException.fromRilErrno(RADIO_NOT_AVAILABLE)); in getRadioProxy()
491 CommandException.fromRilErrno(RADIO_NOT_AVAILABLE)); in getRadioProxy()
506 CommandException.fromRilErrno(RADIO_NOT_AVAILABLE)); in getOemHookProxy()
543 CommandException.fromRilErrno(RADIO_NOT_AVAILABLE)); in getOemHookProxy()
677 CommandException.fromRilErrno(REQUEST_NOT_SUPPORTED)); in getIccSlotsStatus()
686 CommandException.fromRilErrno(REQUEST_NOT_SUPPORTED)); in setLogicalToPhysicalSlotMapping()
911 CommandException.fromRilErrno(REQUEST_NOT_SUPPORTED)); in enableModem()
943 CommandException.fromRilErrno(REQUEST_NOT_SUPPORTED)); in getModemStatus()
2140 CommandException.fromRilErrno(REQUEST_NOT_SUPPORTED)); in startNetworkScan()
2168 CommandException.fromRilErrno(REQUEST_NOT_SUPPORTED)); in stopNetworkScan()
[all …]
DGsmCdmaCallTracker.java1493 if (ar.exception instanceof CommandException) { in handleMessage()
1497 CommandException commandException = (CommandException) ar.exception; in handleMessage()
DPhone.java2094 CommandException ex; in setPreferredNetworkType()
2096 ex = new CommandException(CommandException.Error.GENERIC_FAILURE); in setPreferredNetworkType()
DServiceStateTracker.java1758 CommandException.Error err=null; in handlePollStateResult()
1764 if (ar.exception instanceof CommandException) { in handlePollStateResult()
1765 err = ((CommandException)(ar.exception)).getCommandError(); in handlePollStateResult()
1768 if (err == CommandException.Error.RADIO_NOT_AVAILABLE) { in handlePollStateResult()
1774 if (err != CommandException.Error.OP_NOT_ALLOWED_BEFORE_REG_NW) { in handlePollStateResult()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/euicc/apdu/
DOpenLogicalChannelInvocation.java24 import com.android.internal.telephony.CommandException;
77 if (ar.exception instanceof CommandException) { in parseResult()
78 CommandException.Error error = in parseResult()
79 ((CommandException) (ar.exception)).getCommandError(); in parseResult()
80 if (error == CommandException.Error.MISSING_RESOURCE) { in parseResult()
82 } else if (error == CommandException.Error.NO_SUCH_ELEMENT) { in parseResult()
DCloseLogicalChannelInvocation.java23 import com.android.internal.telephony.CommandException;
54 if (ar.exception instanceof CommandException) { in parseResult()
DTransmitApduLogicalChannelInvocation.java23 import com.android.internal.telephony.CommandException;
62 } else if (ar.exception instanceof CommandException) { in parseResult()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/
DSimulatedCommands.java56 import com.android.internal.telephony.CommandException;
212 new CommandException(CommandException.Error.REQUEST_NOT_SUPPORTED)); in getIccSlotsStatus()
226 CommandException ex = new CommandException( in supplyIccPin()
227 CommandException.Error.PASSWORD_INCORRECT); in supplyIccPin()
253 CommandException ex = new CommandException( in supplyIccPin()
254 CommandException.Error.PASSWORD_INCORRECT); in supplyIccPin()
264 CommandException ex = new CommandException( in supplyIccPuk()
265 CommandException.Error.PASSWORD_INCORRECT); in supplyIccPuk()
290 CommandException ex = new CommandException( in supplyIccPuk()
291 CommandException.Error.PASSWORD_INCORRECT); in supplyIccPuk()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/
DCdmaMmiCode.java21 import com.android.internal.telephony.CommandException;
319 if (ar.exception instanceof CommandException) { in onSetComplete()
320 CommandException.Error err = ((CommandException)(ar.exception)).getCommandError(); in onSetComplete()
321 if (err == CommandException.Error.PASSWORD_INCORRECT) { in onSetComplete()
348 } else if (err == CommandException.Error.SIM_PUK2) { in onSetComplete()
354 } else if (err == CommandException.Error.REQUEST_NOT_SUPPORTED) { in onSetComplete()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/
DUiccCarrierPrivilegeRules.java36 import com.android.internal.telephony.CommandException;
447 if (ar.exception instanceof CommandException && mRetryCount < MAX_RETRY in handleMessage()
448 && ((CommandException) (ar.exception)).getCommandError() in handleMessage()
449 == CommandException.Error.MISSING_RESOURCE) { in handleMessage()
466 if (ar.exception instanceof CommandException in handleMessage()
467 && ((CommandException) (ar.exception)).getCommandError() in handleMessage()
468 != CommandException.Error.NO_SUCH_ELEMENT) { in handleMessage()
471 ((CommandException) (ar.exception)).getCommandError()); in handleMessage()
520 if (ar.exception instanceof CommandException) { in handleMessage()
521 CommandException.Error errorCode = in handleMessage()
[all …]
DUiccController.java43 import com.android.internal.telephony.CommandException;
788 if (!(e instanceof CommandException) || ((CommandException) e).getCommandError() in onGetSlotStatusDone()
789 != CommandException.Error.REQUEST_NOT_SUPPORTED) { in onGetSlotStatusDone()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/gsm/
DGsmMmiCode.java47 import com.android.internal.telephony.CommandException;
346 CommandException ex; in parseSsData()
348 ex = CommandException.fromRilErrno(ssData.result); in parseSsData()
1235 if (ar.exception instanceof CommandException) { in getErrorMessage()
1236 CommandException.Error err = ((CommandException)(ar.exception)).getCommandError(); in getErrorMessage()
1237 if (err == CommandException.Error.FDN_CHECK_FAILURE) { in getErrorMessage()
1240 } else if (err == CommandException.Error.USSD_MODIFIED_TO_DIAL) { in getErrorMessage()
1243 } else if (err == CommandException.Error.USSD_MODIFIED_TO_SS) { in getErrorMessage()
1246 } else if (err == CommandException.Error.USSD_MODIFIED_TO_USSD) { in getErrorMessage()
1249 } else if (err == CommandException.Error.SS_MODIFIED_TO_DIAL) { in getErrorMessage()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/uicc/
DUiccCardApplicationTest.java33 import com.android.internal.telephony.CommandException;
51 private CommandException mException = null;
82 mException = (CommandException) ((AsyncResult) msg.obj).exception; in onLooperPrepared()
217 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;
1164 new CommandException(CommandException.Error.GENERIC_FAILURE)); in sendErrorResponse()
1179 private CommandException getCommandException(int code, String errorString) { in getCommandException()
1181 CommandException.Error error = CommandException.Error.GENERIC_FAILURE; in getCommandException()
1185 error = CommandException.Error.REQUEST_NOT_SUPPORTED; in getCommandException()
1188 error = CommandException.Error.PASSWORD_INCORRECT; in getCommandException()
1191 error = CommandException.Error.RADIO_NOT_AVAILABLE; in getCommandException()
1194 error = CommandException.Error.FDN_CHECK_FAILURE; in getCommandException()
1197 error = CommandException.Error.SS_MODIFIED_TO_DIAL; in getCommandException()
1200 error = CommandException.Error.SS_MODIFIED_TO_USSD; in getCommandException()
[all …]
DImsPhoneMmiCode.java53 import com.android.internal.telephony.CommandException;
1221 } else if (ar.exception instanceof CommandException) { in getMmiErrorMessage()
1222 CommandException err = (CommandException) ar.exception; in getMmiErrorMessage()
1223 if (err.getCommandError() == CommandException.Error.FDN_CHECK_FAILURE) { in getMmiErrorMessage()
1225 } else if (err.getCommandError() == CommandException.Error.SS_MODIFIED_TO_DIAL) { in getMmiErrorMessage()
1227 } else if (err.getCommandError() == CommandException.Error.SS_MODIFIED_TO_USSD) { in getMmiErrorMessage()
1229 } else if (err.getCommandError() == CommandException.Error.SS_MODIFIED_TO_SS) { in getMmiErrorMessage()
1231 } else if (err.getCommandError() == CommandException.Error.SS_MODIFIED_TO_DIAL_VIDEO) { in getMmiErrorMessage()
1275 if (ar.exception instanceof CommandException) { in onSetComplete()
1276 CommandException err = (CommandException) ar.exception; in onSetComplete()
[all …]
DImsPhoneCallTracker.java92 import com.android.internal.telephony.CommandException;
3036 CommandException ex =
3037 new CommandException(CommandException.Error.GENERIC_FAILURE);
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/uicc/euicc/apdu/
DApduSenderTest.java33 import com.android.internal.telephony.CommandException;
142 new CommandException(CommandException.Error.NO_SUCH_ELEMENT)); in testOpenChannelErrorStatus()
/frameworks/base/services/core/java/com/android/server/pm/
DShortcutService.java4046 static class CommandException extends Exception { class in ShortcutService
4047 public CommandException(String message) { in CommandException() method in ShortcutService.CommandException
4060 throws CommandException { in parseOptionsLocked()
4068 throw new CommandException( in parseOptionsLocked()
4075 throw new CommandException("Unknown option: " + opt); in parseOptionsLocked()
4118 } catch (CommandException e) { in onCommand()
4158 private void handleResetThrottling() throws CommandException { in handleResetThrottling()
4174 private void handleOverrideConfig() throws CommandException { in handleOverrideConfig()
4181 throw new CommandException("override-config failed. See logcat for details."); in handleOverrideConfig()
4210 private void handleClearDefaultLauncher() throws CommandException { in handleClearDefaultLauncher()
[all …]
/frameworks/base/config/
Ddirty-image-objects266 com.android.internal.telephony.CommandException

12