diff options
author | Santos Cordon <santoscordon@google.com> | 2014-07-24 15:32:34 -0700 |
---|---|---|
committer | Santos Cordon <santoscordon@google.com> | 2014-07-25 03:16:00 +0000 |
commit | 9d0f7c4fbce9445de763ac08b5f387412393359c (patch) | |
tree | 2cf02dbe57813f649a49481f0301cff1f6b838da /telephony | |
parent | 16606119117b6fc738ff60d98dad765fab3068ae (diff) | |
download | frameworks_base-9d0f7c4fbce9445de763ac08b5f387412393359c.zip frameworks_base-9d0f7c4fbce9445de763ac08b5f387412393359c.tar.gz frameworks_base-9d0f7c4fbce9445de763ac08b5f387412393359c.tar.bz2 |
Add more disconnect causes 1/4
Bug: 15692074
Change-Id: Ib94c33fac8450b70e53dbe12d71f41777e9e140c
Diffstat (limited to 'telephony')
-rw-r--r-- | telephony/java/android/telephony/DisconnectCause.java | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/telephony/java/android/telephony/DisconnectCause.java b/telephony/java/android/telephony/DisconnectCause.java index d2044be..aa6c47c 100644 --- a/telephony/java/android/telephony/DisconnectCause.java +++ b/telephony/java/android/telephony/DisconnectCause.java @@ -149,10 +149,21 @@ public class DisconnectCause { */ public static final int EXITED_ECM = 42; + /** + * The outgoing call failed with an unknown cause. + */ + public static final int OUTGOING_FAILURE = 43; + + /** + * The outgoing call was canceled by the {@link android.telecomm.ConnectionService}. + */ + public static final int OUTGOING_CANCELED = 44; + /** 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 = EXITED_ECM; + public static final int MAXIMUM_VALID_VALUE = OUTGOING_CANCELED; /** Private constructor to avoid class instantiation. */ private DisconnectCause() { @@ -246,6 +257,10 @@ public class DisconnectCause { return "EXITED_ECM"; case ERROR_UNSPECIFIED: return "ERROR_UNSPECIFIED"; + case OUTGOING_FAILURE: + return "OUTGOING_FAILURE"; + case OUTGOING_CANCELED: + return "OUTGOING_CANCELED"; default: return "INVALID"; } |