Define EXTRA_CODE_CALL_RETRY_EMERGENCY for emergency CS retry

Silent redial to CS can be occured in case of emergency call or normal
call. And there needs emergency silent redial regarding emergency
number or non-detectable emergency number.
For this case, EXTRA_CODE_CALL_RETRY_EMERGENCY is defined.

Bug: 162775513, 164024664

Signed-off-by: Sungjae <sung_jae.kim@samsung.com>
Change-Id: I79ae8ee9c5246b5480da2394e63d676d971bd2c1
Signed-off-by: Sungjae <sung_jae.kim@samsung.com>
diff --git a/core/api/current.txt b/core/api/current.txt
index 7e7c22c..ddc7d50 100644
--- a/core/api/current.txt
+++ b/core/api/current.txt
@@ -47301,6 +47301,7 @@
     field public static final int CODE_WIFI_LOST = 1407; // 0x57f
     field @NonNull public static final android.os.Parcelable.Creator<android.telephony.ims.ImsReasonInfo> CREATOR;
     field public static final int EXTRA_CODE_CALL_RETRY_BY_SETTINGS = 3; // 0x3
+    field public static final int EXTRA_CODE_CALL_RETRY_EMERGENCY = 4; // 0x4
     field public static final int EXTRA_CODE_CALL_RETRY_NORMAL = 1; // 0x1
     field public static final int EXTRA_CODE_CALL_RETRY_SILENT_REDIAL = 2; // 0x2
   }
diff --git a/telephony/java/android/telephony/ims/ImsReasonInfo.java b/telephony/java/android/telephony/ims/ImsReasonInfo.java
index 184477a..c140249 100644
--- a/telephony/java/android/telephony/ims/ImsReasonInfo.java
+++ b/telephony/java/android/telephony/ims/ImsReasonInfo.java
@@ -1322,6 +1322,13 @@
      */
     public static final int EXTRA_CODE_CALL_RETRY_BY_SETTINGS = 3;
 
+    /**
+     * An extra that may be populated when the {@link #CODE_LOCAL_CALL_CS_RETRY_REQUIRED} result has
+     * been returned.
+     * <p>
+     * Try to connect the call using CS as emergency
+     */
+    public static final int EXTRA_CODE_CALL_RETRY_EMERGENCY = 4;
 
     // For main reason code
     /** @hide */