Add Connection.setAudioModeIsVoip

This API will be used by Telecomm to set the call's audio mode.

Change-Id: I29028e614c598d1f2501c4dfdcdbfc929b09f925
This commit is contained in:
Sailesh Nepal
2014-07-07 22:49:44 -07:00
parent 6dc7e4e46c
commit 33aaae4a07
7 changed files with 73 additions and 0 deletions

View File

@@ -320,6 +320,21 @@ final class ConnectionServiceAdapter implements DeathRecipient {
}
}
/**
* Requests that the framework use VOIP audio mode for this connection.
*
* @param callId The unique ID of the call to set with the given call video provider.
* @param isVoip True if the audio mode is VOIP.
*/
void setAudioModeIsVoip(String callId, boolean isVoip) {
for (IConnectionServiceAdapter adapter : mAdapters) {
try {
adapter.setAudioModeIsVoip(callId, isVoip);
} catch (RemoteException e) {
}
}
}
/**
* Set the features associated with the given call.
* Features are defined in {@link android.telecomm.CallFeatures} and are passed in as a