summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Robert Greenwalt <rgreenwalt@google.com> 2017-01-03 17:32:59 +0000
committer android-build-merger <android-build-merger@google.com> 2017-01-03 17:32:59 +0000
commit14a5b810b6ab86b8b9de6e83c6f6b6c9a59b1121 (patch)
treee6cb17ff586d7595506dbd2271f0245ade8db6d3
parent56812a01462f0445e1e1baac0d00d69585579e07 (diff)
parent43ced5941e1e9317cec43cccbd1319cefdf33d11 (diff)
Merge "Add IMEI_NOT_ACCEPTED disconnect cause"
am: 43ced5941e Change-Id: I5457b80932f4bb155bf136fc4e05199f04ca7e7c
-rw-r--r--telephony/java/android/telephony/DisconnectCause.java13
1 files changed, 11 insertions, 2 deletions
diff --git a/telephony/java/android/telephony/DisconnectCause.java b/telephony/java/android/telephony/DisconnectCause.java
index 03342548e7df..811c99602599 100644
--- a/telephony/java/android/telephony/DisconnectCause.java
+++ b/telephony/java/android/telephony/DisconnectCause.java
@@ -233,6 +233,13 @@ public class DisconnectCause {
*/
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:
// 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.
// 5) Update android.telecom.DisconnectCauseUtil with any mappings to a telecom.DisconnectCause.
//
- // NextId: 57
+ // NextId: 58
//*********************************************************************************************
/** 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 = DIALED_ON_WRONG_SLOT;
+ public static final int MAXIMUM_VALID_VALUE = IMEI_NOT_ACCEPTED;
/** Private constructor to avoid class instantiation. */
private DisconnectCause() {
@@ -370,6 +377,8 @@ public class DisconnectCause {
return "DATA_LIMIT_REACHED";
case DIALED_ON_WRONG_SLOT:
return "DIALED_ON_WRONG_SLOT";
+ case IMEI_NOT_ACCEPTED:
+ return "IMEI_NOT_ACCEPTED";
default:
return "INVALID: " + cause;
}