From bd13f22f83fc536b2f6e06795f97aa469916a829 Mon Sep 17 00:00:00 2001 From: Brad Ebinger Date: Tue, 20 Sep 2016 15:22:19 -0700 Subject: [PATCH] Adds a Disconnect Cause for Emergency Redial The radio has the ability to send back a "redial on the other slot" DisconnectCause. This adds that DisconnectCause definition. Bug: 31498841 Change-Id: I9a59cc81ba03562531b0445e3acb5eeec99b1aba --- telephony/java/android/telephony/DisconnectCause.java | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/telephony/java/android/telephony/DisconnectCause.java b/telephony/java/android/telephony/DisconnectCause.java index f5e422df7511..03342548e7df 100644 --- a/telephony/java/android/telephony/DisconnectCause.java +++ b/telephony/java/android/telephony/DisconnectCause.java @@ -226,6 +226,13 @@ public class DisconnectCause { */ public static final int DATA_LIMIT_REACHED = 55; + /** + * The emergency call was terminated because it was dialed on the wrong SIM slot. + * The call needs to be redialed the other slot. + * {@hide} + */ + public static final int DIALED_ON_WRONG_SLOT = 56; + //********************************************************************************************* // When adding a disconnect type: // 1) Please assign the new type the next id value below. @@ -234,14 +241,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: 56 + // NextId: 57 //********************************************************************************************* /** 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 = DATA_LIMIT_REACHED; + public static final int MAXIMUM_VALID_VALUE = DIALED_ON_WRONG_SLOT; /** Private constructor to avoid class instantiation. */ private DisconnectCause() { @@ -361,6 +368,8 @@ public class DisconnectCause { return "DATA_DISABLED"; case DATA_LIMIT_REACHED: return "DATA_LIMIT_REACHED"; + case DIALED_ON_WRONG_SLOT: + return "DIALED_ON_WRONG_SLOT"; default: return "INVALID: " + cause; } -- 2.11.0