Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 579f7f92 authored by Tim Lin's avatar Tim Lin Committed by Automerger Merge Worker
Browse files

add more error code in CommandException am: 65f1142b

Original change: https://android-review.googlesource.com/c/platform/frameworks/opt/telephony/+/1475858

Change-Id: I59f2a67b7053c4e374846a919772b8624a172186
parents 23a69961 65f1142b
Loading
Loading
Loading
Loading
+15 −0
Original line number Diff line number Diff line
@@ -126,6 +126,11 @@ public class CommandException extends RuntimeException {
        OEM_ERROR_24,
        OEM_ERROR_25,
        REQUEST_CANCELLED,
        SIMULTANEOUS_SMS_AND_CALL_NOT_ALLOWED,
        ACCESS_BARRED,
        BLOCKED_DUE_TO_CALL,
        RF_HARDWARE_ISSUE,
        NO_RF_CALIBRATION_INFO,
    }

    @UnsupportedAppUsage
@@ -326,6 +331,16 @@ public class CommandException extends RuntimeException {
                return new CommandException(Error.OEM_ERROR_25);
            case RILConstants.REQUEST_CANCELLED:
                return new CommandException(Error.REQUEST_CANCELLED);
            case RILConstants.SIMULTANEOUS_SMS_AND_CALL_NOT_ALLOWED:
                return new CommandException(Error.SIMULTANEOUS_SMS_AND_CALL_NOT_ALLOWED);
            case RILConstants.ACCESS_BARRED:
                return new CommandException(Error.ACCESS_BARRED);
            case RILConstants.BLOCKED_DUE_TO_CALL:
                return new CommandException(Error.BLOCKED_DUE_TO_CALL);
            case RILConstants.RF_HARDWARE_ISSUE:
                return new CommandException(Error.RF_HARDWARE_ISSUE);
            case RILConstants.NO_RF_CALIBRATION_INFO:
                return new CommandException(Error.NO_RF_CALIBRATION_INFO);

            default:
                Rlog.e("GSM", "Unrecognized RIL errno " + ril_errno);