From 34a2b31e95d18739c8f11c82a34106d8d95e70e2 Mon Sep 17 00:00:00 2001 From: Tyler Gunn Date: Fri, 23 Jun 2017 08:32:00 -0700 Subject: [PATCH] Define handover event sent when source disconnects prior to handover. Define new event which is sent to the destination call if the source disconnects prior to the completion of the handover. Test: Manual using test app Bug: 62904673 Change-Id: I9fa74e374f78beb801f08ce1fd7260d7d7fe7cac --- telecomm/java/android/telecom/Call.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/telecomm/java/android/telecom/Call.java b/telecomm/java/android/telecom/Call.java index a6bfbad8e0537..e8e06808e1896 100644 --- a/telecomm/java/android/telecom/Call.java +++ b/telecomm/java/android/telecom/Call.java @@ -189,6 +189,19 @@ public final class Call { */ public static final String EVENT_HANDOVER_COMPLETE = "android.telecom.event.HANDOVER_COMPLETE"; + + /** + * Call event sent from Telecom to the handover destination {@link ConnectionService} via + * {@link Connection#onCallEvent(String, Bundle)} to inform the handover destination that the + * source connection has disconnected. The {@link Bundle} parameter for the call event will be + * {@code null}. + *

+ * A handover is initiated with the {@link #EVENT_REQUEST_HANDOVER} call event. + * @hide + */ + public static final String EVENT_HANDOVER_SOURCE_DISCONNECTED = + "android.telecom.event.HANDOVER_SOURCE_DISCONNECTED"; + /** * Call event sent from Telecom to the handover {@link ConnectionService} via * {@link Connection#onCallEvent(String, Bundle)} to inform a {@link Connection} that a handover