Implement Call handover initiation side APIs.
Bug: 65415068 Test: Manual Design doc: https://docs.google.com/document/d/1qY3oAzjff_4A1ttYb_CGrE_OwTRmXMG_KGsIuPT1ey8/edit# Change-Id: I692bb14fba66733154378c2dda525aa85c471a38 Merged-in: I692bb14fba66733154378c2dda525aa85c471a38
This commit is contained in:
@@ -1371,9 +1371,19 @@ public abstract class ConnectionService extends Service {
|
||||
isIncoming,
|
||||
isUnknown);
|
||||
|
||||
Connection connection = isUnknown ? onCreateUnknownConnection(callManagerAccount, request)
|
||||
: isIncoming ? onCreateIncomingConnection(callManagerAccount, request)
|
||||
: onCreateOutgoingConnection(callManagerAccount, request);
|
||||
Connection connection = null;
|
||||
if (request.getExtras() != null && request.getExtras().getBoolean(
|
||||
TelecomManager.EXTRA_IS_HANDOVER,false)) {
|
||||
if (!isIncoming) {
|
||||
connection = onCreateOutgoingHandoverConnection(callManagerAccount, request);
|
||||
} else {
|
||||
// Todo: Call onCreateIncommingHandoverConnection()
|
||||
}
|
||||
} else {
|
||||
connection = isUnknown ? onCreateUnknownConnection(callManagerAccount, request)
|
||||
: isIncoming ? onCreateIncomingConnection(callManagerAccount, request)
|
||||
: onCreateOutgoingConnection(callManagerAccount, request);
|
||||
}
|
||||
Log.d(this, "createConnection, connection: %s", connection);
|
||||
if (connection == null) {
|
||||
connection = Connection.createFailedConnection(
|
||||
|
||||
Reference in New Issue
Block a user