OSDN Git Service

Fix emergency callback number not shown for incoming calls.
authorTyler Gunn <tgunn@google.com>
Fri, 6 Feb 2015 21:56:52 +0000 (13:56 -0800)
committerTyler Gunn <tgunn@google.com>
Wed, 11 Mar 2015 20:16:19 +0000 (20:16 +0000)
- Adding new Connection/Call capability: CAPABILITY_SHOW_CALLBACK_NUMBER.
- Used in Telephony to indicate on an incoming call that the callback
number should be shown.

Bug: 18689292
Change-Id: I1ab3baf9f0d5a22c4b01e6504e88d496182e01c7

telecomm/java/android/telecom/Call.java
telecomm/java/android/telecom/Connection.java

index d0d94aa..ab58651 100644 (file)
@@ -212,6 +212,13 @@ public final class Call {
         // Next CAPABILITY value: 0x00020000
         //******************************************************************************************
 
+        /**
+         * Indicates that the current device callback number should be shown.
+         *
+         * @hide
+         */
+        public static final int CAPABILITY_SHOW_CALLBACK_NUMBER = 0x00008000;
+
         private final Uri mHandle;
         private final int mHandlePresentation;
         private final String mCallerDisplayName;
@@ -306,6 +313,9 @@ public final class Call {
             if (can(capabilities, CAPABILITY_GENERIC_CONFERENCE)) {
                 builder.append(" CAPABILITY_GENERIC_CONFERENCE");
             }
+            if (can(capabilities, CAPABILITY_SHOW_CALLBACK_NUMBER)) {
+                builder.append(" CAPABILITY_SHOW_CALLBACK_NUMBER");
+            }
             builder.append("]");
             return builder.toString();
         }
index d72c080..98217f7 100644 (file)
@@ -177,6 +177,15 @@ public abstract class Connection implements IConferenceable {
     // Next CAPABILITY value: 0x00020000
     //**********************************************************************************************
 
+    /**
+     * Indicates that the current device callback number should be shown.
+     *
+     * @hide
+     */
+    public static final int CAPABILITY_SHOW_CALLBACK_NUMBER = 0x00008000;
+
+
+
     // Flag controlling whether PII is emitted into the logs
     private static final boolean PII_DEBUG = Log.isLoggable(android.util.Log.DEBUG);
 
@@ -275,6 +284,9 @@ public abstract class Connection implements IConferenceable {
         if (can(capabilities, CAPABILITY_GENERIC_CONFERENCE)) {
             builder.append(" CAPABILITY_GENERIC_CONFERENCE");
         }
+        if (can(capabilities, CAPABILITY_SHOW_CALLBACK_NUMBER)) {
+            builder.append(" CAPABILITY_SHOW_CALLBACK_NUMBER");
+        }
         builder.append("]");
         return builder.toString();
     }