diff options
author | 2023-12-19 19:02:19 +0000 | |
---|---|---|
committer | 2023-12-19 19:02:19 +0000 | |
commit | 59195e5e24c8e6a2801798225e3bd10830d294db (patch) | |
tree | 3f27b630eba46666164016ee5464f54d7d28d415 | |
parent | 93acffd61aa5ad80d04a028825521a64e107ef91 (diff) |
Remove unused hidden handover code.
These extras are not used anywhere. Removing them and the associated
code.
Flag: Code cleanup only; no functional impact since this is orphaned code.
Test: Compile code to verify no build errors.
Bug: 308003610
Change-Id: I598707edc70b23eab3b6cbd39e20321305056237
-rw-r--r-- | telecomm/java/android/telecom/Call.java | 94 | ||||
-rw-r--r-- | telecomm/java/android/telecom/Connection.java | 22 |
2 files changed, 0 insertions, 116 deletions
diff --git a/telecomm/java/android/telecom/Call.java b/telecomm/java/android/telecom/Call.java index def52a517913..874c10c8ea83 100644 --- a/telecomm/java/android/telecom/Call.java +++ b/telecomm/java/android/telecom/Call.java @@ -210,100 +210,6 @@ public final class Call { "android.telecom.extra.SILENT_RINGING_REQUESTED"; /** - * Call event sent from a {@link Call} via {@link #sendCallEvent(String, Bundle)} to inform - * Telecom that the user has requested that the current {@link Call} should be handed over - * to another {@link ConnectionService}. - * <p> - * The caller must specify the {@link #EXTRA_HANDOVER_PHONE_ACCOUNT_HANDLE} to indicate to - * Telecom which {@link PhoneAccountHandle} the {@link Call} should be handed over to. - * @hide - * @deprecated Use {@link Call#handoverTo(PhoneAccountHandle, int, Bundle)} and its associated - * APIs instead. - */ - public static final String EVENT_REQUEST_HANDOVER = - "android.telecom.event.REQUEST_HANDOVER"; - - /** - * Extra key used with the {@link #EVENT_REQUEST_HANDOVER} call event. Specifies the - * {@link PhoneAccountHandle} to which a call should be handed over to. - * @hide - * @deprecated Use {@link Call#handoverTo(PhoneAccountHandle, int, Bundle)} and its associated - * APIs instead. - */ - public static final String EXTRA_HANDOVER_PHONE_ACCOUNT_HANDLE = - "android.telecom.extra.HANDOVER_PHONE_ACCOUNT_HANDLE"; - - /** - * Integer extra key used with the {@link #EVENT_REQUEST_HANDOVER} call event. Specifies the - * video state of the call when it is handed over to the new {@link PhoneAccount}. - * <p> - * Valid values: {@link VideoProfile#STATE_AUDIO_ONLY}, - * {@link VideoProfile#STATE_BIDIRECTIONAL}, {@link VideoProfile#STATE_RX_ENABLED}, and - * {@link VideoProfile#STATE_TX_ENABLED}. - * @hide - * @deprecated Use {@link Call#handoverTo(PhoneAccountHandle, int, Bundle)} and its associated - * APIs instead. - */ - public static final String EXTRA_HANDOVER_VIDEO_STATE = - "android.telecom.extra.HANDOVER_VIDEO_STATE"; - - /** - * Extra key used with the {@link #EVENT_REQUEST_HANDOVER} call event. Used by the - * {@link InCallService} initiating a handover to provide a {@link Bundle} with extra - * information to the handover {@link ConnectionService} specified by - * {@link #EXTRA_HANDOVER_PHONE_ACCOUNT_HANDLE}. - * <p> - * This {@link Bundle} is not interpreted by Telecom, but passed as-is to the - * {@link ConnectionService} via the request extras when - * {@link ConnectionService#onCreateOutgoingConnection(PhoneAccountHandle, ConnectionRequest)} - * is called to initate the handover. - * @hide - * @deprecated Use {@link Call#handoverTo(PhoneAccountHandle, int, Bundle)} and its associated - * APIs instead. - */ - public static final String EXTRA_HANDOVER_EXTRAS = "android.telecom.extra.HANDOVER_EXTRAS"; - - /** - * Call event sent from Telecom to the handover {@link ConnectionService} via - * {@link Connection#onCallEvent(String, Bundle)} to inform a {@link Connection} that a handover - * to the {@link ConnectionService} has completed successfully. - * <p> - * A handover is initiated with the {@link #EVENT_REQUEST_HANDOVER} call event. - * @hide - * @deprecated Use {@link Call#handoverTo(PhoneAccountHandle, int, Bundle)} and its associated - * APIs instead. - */ - 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}. - * <p> - * A handover is initiated with the {@link #EVENT_REQUEST_HANDOVER} call event. - * @hide - * @deprecated Use {@link Call#handoverTo(PhoneAccountHandle, int, Bundle)} and its associated - * APIs instead. - */ - 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 - * to the {@link ConnectionService} has failed. - * <p> - * A handover is initiated with the {@link #EVENT_REQUEST_HANDOVER} call event. - * @hide - * @deprecated Use {@link Call#handoverTo(PhoneAccountHandle, int, Bundle)} and its associated - * APIs instead. - */ - public static final String EVENT_HANDOVER_FAILED = - "android.telecom.event.HANDOVER_FAILED"; - - /** * Event reported from the Telecom stack to report an in-call diagnostic message which the * dialer app may opt to display to the user. A diagnostic message is used to communicate * scenarios the device has detected which may impact the quality of the ongoing call. diff --git a/telecomm/java/android/telecom/Connection.java b/telecomm/java/android/telecom/Connection.java index 4a541da9e5aa..ee9bf8983900 100644 --- a/telecomm/java/android/telecom/Connection.java +++ b/telecomm/java/android/telecom/Connection.java @@ -961,28 +961,6 @@ public abstract class Connection extends Conferenceable { "android.telecom.event.CALL_REMOTELY_UNHELD"; /** - * Connection event used to inform an {@link InCallService} which initiated a call handover via - * {@link Call#EVENT_REQUEST_HANDOVER} that the handover from this {@link Connection} has - * successfully completed. - * @hide - * @deprecated Use {@link Call#handoverTo(PhoneAccountHandle, int, Bundle)} and its associated - * APIs instead. - */ - public static final String EVENT_HANDOVER_COMPLETE = - "android.telecom.event.HANDOVER_COMPLETE"; - - /** - * Connection event used to inform an {@link InCallService} which initiated a call handover via - * {@link Call#EVENT_REQUEST_HANDOVER} that the handover from this {@link Connection} has failed - * to complete. - * @hide - * @deprecated Use {@link Call#handoverTo(PhoneAccountHandle, int, Bundle)} and its associated - * APIs instead. - */ - public static final String EVENT_HANDOVER_FAILED = - "android.telecom.event.HANDOVER_FAILED"; - - /** * String Connection extra key used to store SIP invite fields for an incoming call for IMS call */ public static final String EXTRA_SIP_INVITE = "android.telecom.extra.SIP_INVITE"; |