diff options
author | Thomas Nguyen <tnd@google.com> | 2023-02-01 11:12:16 -0800 |
---|---|---|
committer | Aishwarya Mallampati <amallampati@google.com> | 2023-02-08 21:35:32 +0000 |
commit | d7c5a44790cf35c6443b2b9874bffa99a75a042d (patch) | |
tree | f837d97a8be7f7e18f5a7f4f30bd2d6ef9f566e1 /src/java/com/android/internal/telephony/CommandException.java | |
parent | 31f764682d2c648cf9be18ebf907dd72fb7240ff (diff) | |
download | telephony-d7c5a44790cf35c6443b2b9874bffa99a75a042d.tar.gz |
Support satellite provision APIs
Bug: 266013384
Test: atest android.telephony.cts.SatelliteManagerTest
Change-Id: I2bb0f153efdc3b0a9308422696615d1d419ac9f2
Diffstat (limited to 'src/java/com/android/internal/telephony/CommandException.java')
-rw-r--r-- | src/java/com/android/internal/telephony/CommandException.java | 34 |
1 files changed, 33 insertions, 1 deletions
diff --git a/src/java/com/android/internal/telephony/CommandException.java b/src/java/com/android/internal/telephony/CommandException.java index 72bb6a36f5..6b6d84f0e8 100644 --- a/src/java/com/android/internal/telephony/CommandException.java +++ b/src/java/com/android/internal/telephony/CommandException.java @@ -131,6 +131,17 @@ public class CommandException extends RuntimeException { BLOCKED_DUE_TO_CALL, RF_HARDWARE_ISSUE, NO_RF_CALIBRATION_INFO, + ENCODING_NOT_SUPPORTED, + FEATURE_NOT_SUPPORTED, + INVALID_CONTACT, + MODEM_INCOMPATIBLE, + NETWORK_TIMEOUT, + NO_SATELLITE_SIGNAL, + NOT_SUFFICIENT_ACCOUNT_BALANCE, + RADIO_TECHNOLOGY_NOT_SUPPORTED, + SUBSCRIBER_NOT_AUTHORIZED, + SWITCHED_FROM_SATELLITE_TO_TERRESTRIAL, + UNIDENTIFIED_SUBSCRIBER } @UnsupportedAppUsage @@ -341,7 +352,28 @@ public class CommandException extends RuntimeException { return new CommandException(Error.RF_HARDWARE_ISSUE); case RILConstants.NO_RF_CALIBRATION_INFO: return new CommandException(Error.NO_RF_CALIBRATION_INFO); - + case RILConstants.ENCODING_NOT_SUPPORTED: + return new CommandException(Error.ENCODING_NOT_SUPPORTED); + case RILConstants.FEATURE_NOT_SUPPORTED: + return new CommandException(Error.FEATURE_NOT_SUPPORTED); + case RILConstants.INVALID_CONTACT: + return new CommandException(Error.INVALID_CONTACT); + case RILConstants.MODEM_INCOMPATIBLE: + return new CommandException(Error.MODEM_INCOMPATIBLE); + case RILConstants.NETWORK_TIMEOUT: + return new CommandException(Error.NETWORK_TIMEOUT); + case RILConstants.NO_SATELLITE_SIGNAL: + return new CommandException(Error.NO_SATELLITE_SIGNAL); + case RILConstants.NOT_SUFFICIENT_ACCOUNT_BALANCE: + return new CommandException(Error.NOT_SUFFICIENT_ACCOUNT_BALANCE); + case RILConstants.RADIO_TECHNOLOGY_NOT_SUPPORTED: + return new CommandException(Error.RADIO_TECHNOLOGY_NOT_SUPPORTED); + case RILConstants.SUBSCRIBER_NOT_AUTHORIZED: + return new CommandException(Error.SUBSCRIBER_NOT_AUTHORIZED); + case RILConstants.SWITCHED_FROM_SATELLITE_TO_TERRESTRIAL: + return new CommandException(Error.SWITCHED_FROM_SATELLITE_TO_TERRESTRIAL); + case RILConstants.UNIDENTIFIED_SUBSCRIBER: + return new CommandException(Error.UNIDENTIFIED_SUBSCRIBER); default: Rlog.e("GSM", "Unrecognized RIL errno " + ril_errno); return new CommandException(Error.INVALID_RESPONSE); |