Ims: Add support to add participants to existing call

Supports initiation of a conference call
by directly adding participants to existing call

Test: Manual
Bug: 62151032
Change-Id: I4e60efafab4761ae65a460fdc6c4cacc3e233220
This commit is contained in:
Ravi Paluri
2020-01-23 19:02:44 +05:30
committed by Tyler Gunn
parent 5ff37df1ab
commit 404babbb98
9 changed files with 113 additions and 3 deletions

View File

@@ -376,8 +376,13 @@ public abstract class Connection extends Conferenceable {
/** Call supports the deflect feature. */
public static final int CAPABILITY_SUPPORT_DEFLECT = 0x02000000;
/**
* When set, indicates that this {@link Connection} supports initiation of a conference call
* by directly adding a participant using {@link #onAddConferenceParticipants()}.
*/
public static final int CAPABILITY_ADD_PARTICIPANT = 0x04000000;
//**********************************************************************************************
// Next CAPABILITY value: 0x04000000
// Next CAPABILITY value: 0x08000000
//**********************************************************************************************
/**
@@ -953,7 +958,9 @@ public abstract class Connection extends Conferenceable {
if ((capabilities & CAPABILITY_SUPPORT_DEFLECT) == CAPABILITY_SUPPORT_DEFLECT) {
builder.append(isLong ? " CAPABILITY_SUPPORT_DEFLECT" : " sup_def");
}
if ((capabilities & CAPABILITY_ADD_PARTICIPANT) == CAPABILITY_ADD_PARTICIPANT) {
builder.append(isLong ? " CAPABILITY_ADD_PARTICIPANT" : " add_participant");
}
builder.append("]");
return builder.toString();
}
@@ -2952,6 +2959,13 @@ public abstract class Connection extends Conferenceable {
*/
public void onSeparate() {}
/**
* Supports initiation of a conference call by directly adding participants.
*
* @param participants with which conference call will be formed.
*/
public void onAddConferenceParticipants(@NonNull List<Uri> participants) {}
/**
* Notifies this Connection of a request to abort.
*/