diff options
author | Ravi Paluri <quic_rpaluri@quicinc.com> | 2020-02-05 12:35:41 +0530 |
---|---|---|
committer | Ravi Paluri <quic_rpaluri@quicinc.com> | 2020-02-14 11:02:09 +0530 |
commit | f4b38e7ff15bef49e333dfb5a0eb788d65abe1ae (patch) | |
tree | 1a106d233c55f7b875f77c7781b38b0fee7fa09c /telecomm/java/android/telecom/InCallAdapter.java | |
parent | 3819be4271be3085bc55d5e2665952dcc8a77991 (diff) |
IMS: Add support for IMS Explicit call transfer
Test: Manual
Bug: 62170207
Change-Id: I06a256adb0e1910d40809c91bcdd42c56a142842
Diffstat (limited to 'telecomm/java/android/telecom/InCallAdapter.java')
-rwxr-xr-x[-rw-r--r--] | telecomm/java/android/telecom/InCallAdapter.java | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/telecomm/java/android/telecom/InCallAdapter.java b/telecomm/java/android/telecom/InCallAdapter.java index 9d29174059ad..dd6c15311651 100644..100755 --- a/telecomm/java/android/telecom/InCallAdapter.java +++ b/telecomm/java/android/telecom/InCallAdapter.java @@ -16,6 +16,7 @@ package android.telecom; +import android.annotation.NonNull; import android.bluetooth.BluetoothDevice; import android.net.Uri; import android.os.Bundle; @@ -102,6 +103,35 @@ public final class InCallAdapter { } /** + * Instructs Telecom to transfer the specified call. + * + * @param callId The identifier of the call to transfer. + * @param targetNumber The address to transfer to. + * @param isConfirmationRequired if {@code true} it will initiate ASSURED transfer, + * if {@code false}, it will initiate BLIND transfer. + */ + public void transferCall(@NonNull String callId, @NonNull Uri targetNumber, + boolean isConfirmationRequired) { + try { + mAdapter.transferCall(callId, targetNumber, isConfirmationRequired); + } catch (RemoteException e) { + } + } + + /** + * Instructs Telecom to transfer the specified call to another ongoing call. + * + * @param callId The identifier of the call to transfer. + * @param otherCallId The identifier of the other call to which this will be transferred. + */ + public void transferCall(@NonNull String callId, @NonNull String otherCallId) { + try { + mAdapter.consultativeTransfer(callId, otherCallId); + } catch (RemoteException e) { + } + } + + /** * Instructs Telecom to disconnect the specified call. * * @param callId The identifier of the call to disconnect. |