Merge "API declarations for Call Handover." am: d88abc7b60 am: c376ca6bc1

am: 41cff321b6

Change-Id: Ia5013e7e0288f037cd94d24c40a72278a60cc50d
This commit is contained in:
Sanket Padawe
2017-11-16 02:08:32 +00:00
committed by android-build-merger
10 changed files with 208 additions and 7 deletions

View File

@@ -2033,6 +2033,43 @@ public abstract class ConnectionService extends Service {
return null;
}
/**
* Called by Telecom on the initiating side of the handover to create an instance of a
* handover connection.
* @param fromPhoneAccountHandle {@link PhoneAccountHandle} associated with the
* ConnectionService which needs to handover the call.
* @param request Details about the call which needs to be handover.
* @return Connection object corresponding to the handover call.
*/
public Connection onCreateOutgoingHandoverConnection(PhoneAccountHandle fromPhoneAccountHandle,
ConnectionRequest request) {
return null;
}
/**
* Called by Telecom on the receiving side of the handover to request the
* {@link ConnectionService} to create an instance of a handover connection.
* @param fromPhoneAccountHandle {@link PhoneAccountHandle} associated with the
* ConnectionService which needs to handover the call.
* @param request Details about the call which needs to be handover.
* @return {@link Connection} object corresponding to the handover call.
*/
public Connection onCreateIncomingHandoverConnection(PhoneAccountHandle fromPhoneAccountHandle,
ConnectionRequest request) {
return null;
}
/**
* Called by Telecom in response to a {@code TelecomManager#acceptHandover()}
* invocation which failed.
* @param request Details about the call which needs to be handover.
* @param error Reason for handover failure as defined in
* {@link android.telecom.Call.Callback#HANDOVER_FAILURE_DEST_INVALID_PERM}
*/
public void onHandoverFailed(ConnectionRequest request, int error) {
return;
}
/**
* Create a {@code Connection} for a new unknown call. An unknown call is a call originating
* from the ConnectionService that was neither a user-initiated outgoing call, nor an incoming