Add Connection.setCallCapabilities

This will be used to enable things like hold and
conferencing.

Change-Id: I90238eeefbcbfaa044881d80833b62e4474821d6
This commit is contained in:
Sailesh Nepal
2014-07-09 21:03:20 -07:00
parent 770a6cafad
commit 1a7061ba95
7 changed files with 42 additions and 26 deletions

View File

@@ -221,16 +221,10 @@ final class ConnectionServiceAdapter implements DeathRecipient {
}
}
/**
* Indicates that the specified call can conference with any of the specified list of calls.
*
* @param callId The unique ID of the call.
* @param canConference Specified whether or not the call can be conferenced.
*/
void setCanConference(String callId, boolean canConference) {
void setCallCapabilities(String callId, int capabilities) {
for (IConnectionServiceAdapter adapter : mAdapters) {
try {
adapter.setCanConference(callId, canConference);
adapter.setCallCapabilities(callId, capabilities);
} catch (RemoteException ignored) {
}
}