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

Commit e6b6653d authored by Robert Greenwalt's avatar Robert Greenwalt Committed by android-build-merger
Browse files

Merge "Add IMEI_NOT_ACCEPTED disconnect cause" am: 43ced594

am: 14a5b810

Change-Id: Ib7a87a5028975e8f55dd6ba311cde78a3c1c2460
parents 852fb2b1 14a5b810
Loading
Loading
Loading
Loading
+11 −2
Original line number Original line Diff line number Diff line
@@ -233,6 +233,13 @@ public class DisconnectCause {
     */
     */
    public static final int DIALED_ON_WRONG_SLOT = 56;
    public static final int DIALED_ON_WRONG_SLOT = 56;


    /**
     * The network does not accept the emergency call request because IMEI was used as
     * identification and this cability is not supported by the network.
     * {@hide}
     */
    public static final int IMEI_NOT_ACCEPTED = 57;

    //*********************************************************************************************
    //*********************************************************************************************
    // When adding a disconnect type:
    // When adding a disconnect type:
    // 1) Please assign the new type the next id value below.
    // 1) Please assign the new type the next id value below.
@@ -241,14 +248,14 @@ public class DisconnectCause {
    // 4) Update toString() with the newly added disconnect type.
    // 4) Update toString() with the newly added disconnect type.
    // 5) Update android.telecom.DisconnectCauseUtil with any mappings to a telecom.DisconnectCause.
    // 5) Update android.telecom.DisconnectCauseUtil with any mappings to a telecom.DisconnectCause.
    //
    //
    // NextId: 57
    // NextId: 58
    //*********************************************************************************************
    //*********************************************************************************************


    /** Smallest valid value for call disconnect codes. */
    /** Smallest valid value for call disconnect codes. */
    public static final int MINIMUM_VALID_VALUE = NOT_DISCONNECTED;
    public static final int MINIMUM_VALID_VALUE = NOT_DISCONNECTED;


    /** Largest valid value for call disconnect codes. */
    /** Largest valid value for call disconnect codes. */
    public static final int MAXIMUM_VALID_VALUE = DIALED_ON_WRONG_SLOT;
    public static final int MAXIMUM_VALID_VALUE = IMEI_NOT_ACCEPTED;


    /** Private constructor to avoid class instantiation. */
    /** Private constructor to avoid class instantiation. */
    private DisconnectCause() {
    private DisconnectCause() {
@@ -370,6 +377,8 @@ public class DisconnectCause {
            return "DATA_LIMIT_REACHED";
            return "DATA_LIMIT_REACHED";
        case DIALED_ON_WRONG_SLOT:
        case DIALED_ON_WRONG_SLOT:
            return "DIALED_ON_WRONG_SLOT";
            return "DIALED_ON_WRONG_SLOT";
        case IMEI_NOT_ACCEPTED:
            return "IMEI_NOT_ACCEPTED";
        default:
        default:
            return "INVALID: " + cause;
            return "INVALID: " + cause;
        }
        }