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

Commit 5ea8477e authored by Omkar Kolangade's avatar Omkar Kolangade Committed by Linux Build Service Account
Browse files

IMS: New call fail cause for handover not feasible

When there is a LTE to 3G/2G transition, if handover is
not feasible, this error code will be propagated to UI.

Change-Id: I668ab0c558db6c910ea868d11fe95188fe77165b
CRs-Fixed: 826223
parent d2ecd93f
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -187,6 +187,9 @@ public class DisconnectCause {
     */
    public static final int CDMA_ALREADY_ACTIVATED         = 49;

    /** call failed due to LTE to 3G/2G handover not feasible */
    public static final int HO_NOT_FEASIBLE = 50;

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

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

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

    /** Private constructor to avoid class instantiation. */
    private DisconnectCause() {
@@ -310,6 +313,8 @@ public class DisconnectCause {
            return "IMS_MERGED_SUCCESSFULLY";
        case CDMA_ALREADY_ACTIVATED:
            return "CDMA_ALREADY_ACTIVATED";
        case HO_NOT_FEASIBLE:
            return "HO_NOT_FEASIBLE";
        default:
            return "INVALID: " + cause;
        }
+2 −0
Original line number Diff line number Diff line
@@ -84,6 +84,8 @@ public class ImsReasonInfo implements Parcelable {
    public static final int CODE_LOCAL_CALL_VOLTE_RETRY_REQUIRED = 147;
    // IMS call is already terminated (in TERMINATED state)
    public static final int CODE_LOCAL_CALL_TERMINATED = 148;
    // Handover not feasible
    public static final int CODE_LOCAL_HO_NOT_FEASIBLE = 149;

    /**
     * TIMEOUT (IMS -> Telephony)