From 2858a32d6d53f66c1e48538496dac31409651811 Mon Sep 17 00:00:00 2001 From: Sungjae Date: Mon, 23 Mar 2020 12:42:20 +0900 Subject: [PATCH] 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 Change-Id: I79ae8ee9c5246b5480da2394e63d676d971bd2c1 Signed-off-by: Sungjae --- core/api/current.txt | 1 + telephony/java/android/telephony/ims/ImsReasonInfo.java | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/core/api/current.txt b/core/api/current.txt index 7e7c22c282dfd..ddc7d504cc316 100644 --- a/core/api/current.txt +++ b/core/api/current.txt @@ -47301,6 +47301,7 @@ package android.telephony.ims { field public static final int CODE_WIFI_LOST = 1407; // 0x57f field @NonNull public static final android.os.Parcelable.Creator 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 184477af0b46e..c14024975cf50 100644 --- a/telephony/java/android/telephony/ims/ImsReasonInfo.java +++ b/telephony/java/android/telephony/ims/ImsReasonInfo.java @@ -1322,6 +1322,13 @@ public final class ImsReasonInfo implements Parcelable { */ 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. + *

+ * Try to connect the call using CS as emergency + */ + public static final int EXTRA_CODE_CALL_RETRY_EMERGENCY = 4; // For main reason code /** @hide */