Home
last modified time | relevance | path

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

123

/aosp12/frameworks/opt/telephony/src/java/com/android/internal/telephony/
H A DCommandException.java27 public class CommandException extends RuntimeException { class
137 public CommandException(Error e) { in CommandException() method in CommandException
142 public CommandException(Error e, String errString) { in CommandException() method in CommandException
148 public static CommandException
161 return new CommandException(Error.SIM_PIN2); in fromRilErrno()
163 return new CommandException(Error.SIM_PUK2); in fromRilErrno()
223 return new CommandException(Error.NO_MEMORY); in fromRilErrno()
235 return new CommandException(Error.SIM_ERR); in fromRilErrno()
251 return new CommandException(Error.SIM_BUSY); in fromRilErrno()
253 return new CommandException(Error.SIM_FULL); in fromRilErrno()
[all …]
H A DPhoneSwitcher.java310 private List<Set<CommandException.Error>> mCurrentDdsSwitchFailure;
472 mCurrentDdsSwitchFailure = new ArrayList<Set<CommandException.Error>>(); in PhoneSwitcher()
494 Set<CommandException.Error> ddsFailure = new HashSet<CommandException.Error>(); in PhoneSwitcher()
679 CommandException.Error.OP_NOT_ALLOWED_DURING_VOICE_CALL) in handleMessage()
803 CommandException.Error.INVALID_SIM_STATE) in handleMessage()
843 Set<CommandException.Error> ddsFailure = new HashSet<CommandException.Error>(); in onMultiSimConfigChanged()
1636 if (ar.exception instanceof CommandException) { in onDdsSwitchResponse()
1637 CommandException.Error error = ((CommandException) in onDdsSwitchResponse()
1640 if (error == CommandException.Error.OP_NOT_ALLOWED_DURING_VOICE_CALL) { in onDdsSwitchResponse()
1643 } else if (error == CommandException.Error.INVALID_SIM_STATE) { in onDdsSwitchResponse()
H A DCallTracker.java101 return e != null && e instanceof CommandException in isCommandExceptionRadioNotAvailable()
102 && ((CommandException)e).getCommandError() in isCommandExceptionRadioNotAvailable()
103 == CommandException.Error.RADIO_NOT_AVAILABLE; in isCommandExceptionRadioNotAvailable()
/aosp12/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/euicc/apdu/
H A DOpenLogicalChannelInvocation.java23 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()
H A DCloseLogicalChannelInvocation.java22 import com.android.internal.telephony.CommandException;
54 if (ar.exception instanceof CommandException) { in parseResult()
H A DTransmitApduLogicalChannelInvocation.java22 import com.android.internal.telephony.CommandException;
62 } else if (ar.exception instanceof CommandException) { in parseResult()
/aosp12/build/make/tools/product_config/src/com/android/build/config/
H A DCommandException.java27 public class CommandException extends RuntimeException { class
28 public CommandException() { in CommandException() method in CommandException
32 public CommandException(String message) { in CommandException() method in CommandException
36 public CommandException(String message, Throwable chain) { in CommandException() method in CommandException
H A DMain.java90 throw new CommandException(); in main()
101 } catch (CommandException | Errors.FatalException ex) { in main()
/aosp12/packages/services/Telephony/src/com/android/phone/
H A DTimeConsumingPreferenceActivity.java12 import com.android.internal.telephony.CommandException;
20 public void onException(Preference preference, CommandException exception); in onException()
199 public void onException(Preference preference, CommandException exception) { in onException()
200 if (exception.getCommandError() == CommandException.Error.FDN_CHECK_FAILURE) { in onException()
202 } else if (exception.getCommandError() == CommandException.Error.RADIO_NOT_AVAILABLE) { in onException()
204 } else if (exception.getCommandError() == CommandException.Error.SS_MODIFIED_TO_DIAL) { in onException()
206 } else if (exception.getCommandError() == CommandException.Error in onException()
209 } else if (exception.getCommandError() == CommandException.Error.SS_MODIFIED_TO_USSD) { in onException()
211 } else if (exception.getCommandError() == CommandException.Error.SS_MODIFIED_TO_SS) { in onException()
H A DChangeIccPinScreen.java37 import com.android.internal.telephony.CommandException;
251 } else if (ar.exception instanceof CommandException in handleResult()
258 CommandException ce = (CommandException) ar.exception; in handleResult()
259 if (ce.getCommandError() == CommandException.Error.SIM_PUK2) { in handleResult()
H A DCallForwardEditPreference.java26 import com.android.internal.telephony.CommandException;
320 throwableException = new CommandException(
321 CommandException.Error.GENERIC_FAILURE);
336 Throwable throwableException = new CommandException(
337 CommandException.Error.GENERIC_FAILURE);
371 if (ar.exception instanceof CommandException) { in handleGetCFResponse()
373 (CommandException) ar.exception); in handleGetCFResponse()
H A DCdmaCallWaitingPreference.java29 import com.android.internal.telephony.CommandException;
140 if (ar.exception instanceof CommandException) { in handleGetCallWaitingResponse()
147 (CommandException)ar.exception); in handleGetCallWaitingResponse()
H A DPhoneInterfaceManager.java148 import com.android.internal.telephony.CommandException;
730 CommandException.Error error = in handleMessage()
927 CommandException.Error error = in handleMessage()
972 CommandException.Error error = in handleMessage()
1124 CommandException.Error error = in handleMessage()
1167 CommandException.Error error = in handleMessage()
1217 CommandException.Error error = in handleMessage()
1246 CommandException.Error error = in handleMessage()
1279 CommandException.Error error = in handleMessage()
1897 CommandException.Error error = in handleMessage()
[all …]
/aosp12/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
H A DSimulatedCommands.java256 CommandException ex = new CommandException( in supplyIccPin()
283 CommandException ex = new CommandException( in supplyIccPin()
294 CommandException ex = new CommandException( in supplyIccPuk()
320 CommandException ex = new CommandException( in supplyIccPuk()
331 CommandException ex = new CommandException( in supplyIccPin2()
356 CommandException ex = new CommandException( in supplyIccPin2()
367 CommandException ex = new CommandException( in supplyIccPuk2()
392 CommandException ex = new CommandException( in supplyIccPuk2()
409 CommandException ex = new CommandException( in changeIccPin()
425 CommandException ex = new CommandException( in changeIccPin2()
[all …]
H A DProxyControllerTest.java104 new CommandException(CommandException.Error.REQUEST_NOT_SUPPORTED))) in testRequestNotSupported()
/aosp12/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/
H A DUiccCarrierPrivilegeRules.java37 import com.android.internal.telephony.CommandException;
449 if (ar.exception instanceof CommandException && retryCount < MAX_RETRY) { in shouldRetry()
450 CommandException.Error error = ((CommandException) (ar.exception)).getCommandError(); in shouldRetry()
458 return (error == CommandException.Error.MISSING_RESOURCE) in shouldRetry()
459 || (error == CommandException.Error.NO_SUCH_ELEMENT in shouldRetry()
461 || (error == CommandException.Error.INTERNAL_ERR in shouldRetry()
501 if (ar.exception instanceof CommandException in handleMessage()
503 != CommandException.Error.NO_SUCH_ELEMENT) { in handleMessage()
557 if (ar.exception instanceof CommandException) { in handleMessage()
558 CommandException.Error errorCode = in handleMessage()
[all …]
/aosp12/packages/services/Telephony/src/com/android/phone/settings/fdn/
H A DFdnSetting.java32 import com.android.internal.telephony.CommandException;
276 if (ar.exception instanceof CommandException) {
279 CommandException.Error e =
280 ((CommandException) ar.exception).getCommandError();
310 if (ar.exception instanceof CommandException) {
314 CommandException ce = (CommandException) ar.exception;
315 if (ce.getCommandError() == CommandException.Error.SIM_PUK2) {
H A DBaseFdnContactScreen.java37 import com.android.internal.telephony.CommandException;
134 CommandException ce = (CommandException) ar.exception;
135 if (ce.getCommandError() == CommandException.Error.SIM_PUK2) {
/aosp12/frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/
H A DCdmaMmiCode.java34 import com.android.internal.telephony.CommandException;
326 if (ar.exception instanceof CommandException) { in onSetComplete()
327 CommandException.Error err = ((CommandException)(ar.exception)).getCommandError(); in onSetComplete()
328 if (err == CommandException.Error.PASSWORD_INCORRECT) { in onSetComplete()
355 } else if (err == CommandException.Error.SIM_PUK2) { in onSetComplete()
361 } else if (err == CommandException.Error.REQUEST_NOT_SUPPORTED) { in onSetComplete()
/aosp12/frameworks/opt/telephony/src/java/com/android/internal/telephony/gsm/
H A DGsmMmiCode.java52 import com.android.internal.telephony.CommandException;
372 CommandException ex; in parseSsData()
374 ex = CommandException.fromRilErrno(ssData.result); in parseSsData()
1339 if (ar.exception instanceof CommandException) { in getErrorMessage()
1340 CommandException.Error err = ((CommandException)(ar.exception)).getCommandError(); in getErrorMessage()
1341 if (err == CommandException.Error.FDN_CHECK_FAILURE) { in getErrorMessage()
1362 } else if (err == CommandException.Error.OEM_ERROR_1) { in getErrorMessage()
1401 if (ar.exception instanceof CommandException) { in onSetComplete()
1402 CommandException.Error err = ((CommandException)(ar.exception)).getCommandError(); in onSetComplete()
1430 } else if (err == CommandException.Error.SIM_PUK2) { in onSetComplete()
[all …]
/aosp12/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
H A DCellularDataService.java35 import com.android.internal.telephony.CommandException;
145 if (t instanceof CommandException) { in toResultCode()
146 CommandException ce = (CommandException) t; in toResultCode()
147 if (ce.getCommandError() == CommandException.Error.REQUEST_NOT_SUPPORTED) { in toResultCode()
/aosp12/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/uicc/
H A DUiccCardApplicationTest.java34 import com.android.internal.telephony.CommandException;
54 private CommandException mException = null;
84 mException = (CommandException) ((AsyncResult) msg.obj).exception; in setUp()
195 assertEquals(CommandException.Error.PASSWORD_INCORRECT, mException.getCommandError()); in testSupplyPin()
H A DSIMRecordsTest.java37 import com.android.internal.telephony.CommandException;
210 AsyncResult.forMessage(response, null, new CommandException( in testGetForbiddenPlmnsException()
211 CommandException.Error.OPERATION_NOT_ALLOWED)); in testGetForbiddenPlmnsException()
223 assertTrue(ar.exception instanceof CommandException); in testGetForbiddenPlmnsException()
224 assertTrue(((CommandException) ar.exception).getCommandError() == in testGetForbiddenPlmnsException()
225 CommandException.Error.OPERATION_NOT_ALLOWED); in testGetForbiddenPlmnsException()
H A DUiccCarrierPrivilegeRulesTest.java34 import com.android.internal.telephony.CommandException;
276 new CommandException(CommandException.Error.NO_SUCH_ELEMENT)); in testRetryARAM_shouldRetry()
282 new CommandException(CommandException.Error.MISSING_RESOURCE)); in testRetryARAM_shouldRetry()
288 new CommandException(CommandException.Error.INTERNAL_ERR)); in testRetryARAM_shouldRetry()
298 new CommandException(CommandException.Error.NO_SUCH_ELEMENT)); in testRetryARAM_shouldNotRetry()
/aosp12/frameworks/opt/telephony/src/java/com/android/internal/telephony/imsphone/
H A DImsPhone.java98 import com.android.internal.telephony.CommandException;
1401 new CommandException(CommandException.Error.GENERIC_FAILURE)); in sendErrorResponse()
1418 CommandException.Error error = CommandException.Error.GENERIC_FAILURE; in getCommandException()
1425 error = CommandException.Error.PASSWORD_INCORRECT; in getCommandException()
1431 error = CommandException.Error.FDN_CHECK_FAILURE; in getCommandException()
1440 error = CommandException.Error.SS_MODIFIED_TO_SS; in getCommandException()
1449 return new CommandException(error, errorString); in getCommandException()
1452 private CommandException getCommandException(Throwable e) { in getCommandException()
1453 CommandException ex = null; in getCommandException()
1459 ex = new CommandException(CommandException.Error.GENERIC_FAILURE); in getCommandException()
[all …]

123