Support for treating single party IMS conference as a standalone call.

Adding @hide APIs which Telephony can use to make a conference call with
a single participant look like its a standalone call.

Test: Manual testing
Bug: 75975913
Change-Id: Id8532234ab295785fc749b120898f43911e12637
This commit is contained in:
Tyler Gunn
2018-10-03 15:38:57 -07:00
parent eb678ba1d3
commit 68a73a4d0d
6 changed files with 131 additions and 0 deletions

View File

@@ -653,4 +653,22 @@ final class ConnectionServiceAdapter implements DeathRecipient {
}
}
}
/**
* Sets whether a conference is treated as a conference or a single party call.
* See {@link Conference#setConferenceState(boolean)} for more information.
*
* @param callId The ID of the telecom call.
* @param isConference {@code true} if this call should be treated as a conference,
* {@code false} otherwise.
*/
void setConferenceState(String callId, boolean isConference) {
Log.v(this, "setConferenceState: %s %b", callId, isConference);
for (IConnectionServiceAdapter adapter : mAdapters) {
try {
adapter.setConferenceState(callId, isConference, Log.getExternalSession());
} catch (RemoteException ignored) {
}
}
}
}