summaryrefslogtreecommitdiffstats
path: root/telephony/java/android
diff options
context:
space:
mode:
authorAndrew Lee <anwlee@google.com>2014-11-13 02:25:22 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-11-13 02:25:22 +0000
commit38f99e55d561e8bc7a5a5cbcfd518621d70994f0 (patch)
tree8adbc87ecb94ecc8c5335eef386d49b60806f70a /telephony/java/android
parentbe65ef8d00e12dfee63a8a5359676600e58e210c (diff)
parent49b03c2374d035524908251113d27733219e9323 (diff)
downloadframeworks_base-38f99e55d561e8bc7a5a5cbcfd518621d70994f0.zip
frameworks_base-38f99e55d561e8bc7a5a5cbcfd518621d70994f0.tar.gz
frameworks_base-38f99e55d561e8bc7a5a5cbcfd518621d70994f0.tar.bz2
am 49b03c23: am 990bbbb3: Merge "Add telephony.DisconnectCause for merged IMS call." into lmp-mr1-dev
* commit '49b03c2374d035524908251113d27733219e9323': Add telephony.DisconnectCause for merged IMS call.
Diffstat (limited to 'telephony/java/android')
-rw-r--r--telephony/java/android/telephony/DisconnectCause.java20
1 files changed, 19 insertions, 1 deletions
diff --git a/telephony/java/android/telephony/DisconnectCause.java b/telephony/java/android/telephony/DisconnectCause.java
index 6fe10dc..1891976 100644
--- a/telephony/java/android/telephony/DisconnectCause.java
+++ b/telephony/java/android/telephony/DisconnectCause.java
@@ -160,11 +160,27 @@ public class DisconnectCause {
*/
public static final int OUTGOING_CANCELED = 44;
+ /**
+ * The call, which was an IMS call, disconnected because it merged with another call.
+ */
+ public static final int IMS_MERGED_SUCCESSFULLY = 45;
+
+ //*********************************************************************************************
+ // When adding a disconnect type:
+ // 1) Please assign the new type the next id value below.
+ // 2) Increment the next id value below to a new value.
+ // 3) Update MAXIMUM_VALID_VALUE to the new disconnect type.
+ // 4) Update toString() with the newly added disconnect type.
+ // 5) Update android.telecom.DisconnectCauseUtil with any mappings to a telecom.DisconnectCause.
+ //
+ // NextId: 46
+ //*********************************************************************************************
+
/** 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 = OUTGOING_CANCELED;
+ public static final int MAXIMUM_VALID_VALUE = IMS_MERGED_SUCCESSFULLY;
/** Private constructor to avoid class instantiation. */
private DisconnectCause() {
@@ -262,6 +278,8 @@ public class DisconnectCause {
return "OUTGOING_FAILURE";
case OUTGOING_CANCELED:
return "OUTGOING_CANCELED";
+ case IMS_MERGED_SUCCESSFULLY:
+ return "IMS_MERGED_SUCCESSFULLY";
default:
return "INVALID: " + cause;
}