OSDN Git Service

Adds speakerphone extra to ACTION_DIAL (2/2).
authorSai Cheemalapati <saicheems@google.com>
Thu, 12 Jun 2014 00:53:27 +0000 (17:53 -0700)
committerSai Cheemalapati <saicheems@google.com>
Tue, 17 Jun 2014 18:54:05 +0000 (11:54 -0700)
If optional extra EXTRA_SPEAKERPHONE_ON is added
to an ACTION_DIAL intent, the speakerphone will turn
on automatically once the call is connected.

Bug: 6810980

Change-Id: Ie4e1c5b413e72f9b0dbd590384571147a43a11ac

api/current.txt
telecomm/java/android/telecomm/TelecommConstants.java

index fe636c9..3e5a695 100644 (file)
@@ -27703,6 +27703,7 @@ package android.telecomm {
     field public static final java.lang.String EXTRA_CALL_SERVICE_DESCRIPTOR = "android.intent.extra.CALL_SERVICE_DESCRIPTOR";
     field public static final java.lang.String EXTRA_INCOMING_CALL_EXTRAS = "android.intent.extra.INCOMING_CALL_EXTRAS";
     field public static final java.lang.String EXTRA_PACKAGE_NAME = "package";
+    field public static final java.lang.String EXTRA_START_CALL_WITH_SPEAKERPHONE = "android.intent.extra.START_CALL_WITH_SPEAKERPHONE";
   }
 
   public class TelecommManager {
index 4ca878e..0952097 100644 (file)
@@ -16,6 +16,7 @@
 
 package android.telecomm;
 
+import android.content.Intent;
 import android.os.Bundle;
 import android.telephony.TelephonyManager;
 
@@ -70,6 +71,13 @@ public final class TelecommConstants {
     public static final String EXTRA_PACKAGE_NAME = "package";
 
     /**
+     * Optional extra for {@link Intent#ACTION_CALL} containing a boolean that determines whether
+     * the speakerphone should be automatically turned on for an outgoing call.
+     */
+    public static final String EXTRA_START_CALL_WITH_SPEAKERPHONE =
+            "android.intent.extra.START_CALL_WITH_SPEAKERPHONE";
+
+    /**
      * Extra for {@link #ACTION_INCOMING_CALL} containing the {@link CallServiceDescriptor} that
      * describes the call service to use for the incoming call.
      */