OSDN Git Service

Add MEDIA_TIMEOUT error for RTCP timeout
authorYouming Ye <paulye@google.com>
Wed, 10 Apr 2019 21:50:19 +0000 (14:50 -0700)
committerpaulye <paulye@google.com>
Wed, 10 Apr 2019 22:31:04 +0000 (15:31 -0700)
Bug: 130167535
Test: Build
Change-Id: I7498072a1c6a9ecf084308e91db07f3731969106

telephony/java/android/telephony/DisconnectCause.java

index 6e839ab..cdf4c93 100644 (file)
@@ -333,6 +333,13 @@ public final class DisconnectCause {
      */
     public static final int OTASP_PROVISIONING_IN_PROCESS = 76;
 
+    /**
+     * Indicates that the call is dropped due to RTCP inactivity, primarily due to media path
+     * disruption.
+     * @hide
+     */
+    public static final int MEDIA_TIMEOUT = 77;
+
     //*********************************************************************************************
     // When adding a disconnect type:
     // 1) Update toString() with the newly added disconnect type.
@@ -501,6 +508,8 @@ public final class DisconnectCause {
             return "TOO_MANY_ONGOING_CALLS";
         case OTASP_PROVISIONING_IN_PROCESS:
             return "OTASP_PROVISIONING_IN_PROCESS";
+        case MEDIA_TIMEOUT:
+            return "MEDIA_TIMEOUT";
         default:
             return "INVALID: " + cause;
         }