diff options
author | Tyler Gunn <tgunn@google.com> | 2017-04-27 16:26:17 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2017-04-27 16:26:23 +0000 |
commit | 24067aceff476d36075c8d13a27c25ca2f26a65b (patch) | |
tree | 1ac18c0ecc0500751507deb359adfc21ad4a2d6f /telecomm/java/android/telecom/TelecomManager.java | |
parent | 0ce9e6d54e3f2a19185c3a732e1b7100281a9a32 (diff) | |
parent | 9f6f04733ef1ce1c3def27b4307d3acbd3831a9d (diff) |
Merge "Further handover support changes."
Diffstat (limited to 'telecomm/java/android/telecom/TelecomManager.java')
-rw-r--r-- | telecomm/java/android/telecom/TelecomManager.java | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/telecomm/java/android/telecom/TelecomManager.java b/telecomm/java/android/telecom/TelecomManager.java index 38e4861caee1..7a35cd3ac5c7 100644 --- a/telecomm/java/android/telecom/TelecomManager.java +++ b/telecomm/java/android/telecom/TelecomManager.java @@ -346,16 +346,35 @@ public class TelecomManager { "android.telecom.extra.NEW_OUTGOING_CALL_CANCEL_TIMEOUT"; /** - * Boolean extra specified when calling {@link #addNewIncomingCall(PhoneAccountHandle, Bundle)} - * to indicate to Telecom that the purpose of adding a new incoming call is to handover an + * Boolean extra specified to indicate that the intention of adding a call is to handover an * existing call from the user's device to a different {@link PhoneAccount}. * <p> + * Used when calling {@link #addNewIncomingCall(PhoneAccountHandle, Bundle)} + * to indicate to Telecom that the purpose of adding a new incoming call is to handover an + * existing call from the user's device to a different {@link PhoneAccount}. This occurs on + * the receiving side of a handover. + * <p> + * Used when Telecom calls + * {@link ConnectionService#onCreateOutgoingConnection(PhoneAccountHandle, ConnectionRequest)} + * to indicate that the purpose of Telecom requesting a new outgoing connection it to request + * a handover to this {@link ConnectionService} from an ongoing call on the user's device. This + * occurs on the initiating side of a handover. + * <p> * The phone number of the call used by Telecom to determine which call should be handed over. * @hide */ public static final String EXTRA_IS_HANDOVER = "android.telecom.extra.IS_HANDOVER"; /** + * Extra key specified in the {@link ConnectionRequest#getExtras()} when Telecom calls + * {@link ConnectionService#onCreateOutgoingConnection(PhoneAccountHandle, ConnectionRequest)} + * to inform the {@link ConnectionService} what the initial {@link CallAudioState} of the + * {@link Connection} will be. + * @hide + */ + public static final String EXTRA_CALL_AUDIO_STATE = "android.telecom.extra.CALL_AUDIO_STATE"; + + /** * A boolean extra, which when set on the {@link Intent#ACTION_CALL} intent or on the bundle * passed into {@link #placeCall(Uri, Bundle)}, indicates that the call should be initiated with * an RTT session open. See {@link android.telecom.Call.RttCall} for more information on RTT. |