OSDN Git Service

Adds ACCESS_CLASS_BLOCKED Disconnect cause
authorBrad Ebinger <breadley@google.com>
Fri, 2 Jun 2017 17:56:40 +0000 (10:56 -0700)
committerBrad Ebinger <breadley@google.com>
Fri, 2 Jun 2017 20:20:35 +0000 (13:20 -0700)
Adds the ACCESS_CLASS_BLOCKED Disconnect cause in order
to allow the dialer to take action when this happens
during a VT call.

Bug: 33821263
Test: Build
Change-Id: I9afdd90f0a8a562b626b730dbb1b03cf37776ebd

telephony/java/android/telephony/DisconnectCause.java

index 0346b92..2e61697 100644 (file)
@@ -253,6 +253,12 @@ public class DisconnectCause {
      */
     public static final int WIFI_LOST = 59;
 
+    /**
+     * The call has failed because of access class barring.
+     * {@hide}
+     */
+    public static final int IMS_ACCESS_BLOCKED = 60;
+
     //*********************************************************************************************
     // When adding a disconnect type:
     // 1) Update toString() with the newly added disconnect type.
@@ -385,6 +391,8 @@ public class DisconnectCause {
             return "IMEI_NOT_ACCEPTED";
         case WIFI_LOST:
             return "WIFI_LOST";
+        case IMS_ACCESS_BLOCKED:
+            return "IMS_ACCESS_BLOCKED";
         default:
             return "INVALID: " + cause;
         }