Update Telecom APIs to include multi-hfp

* Add bluetooth devices to CallAudioState
* Add methods for specifying a bluetooth device to InCallService
* Add methods for specifying a bluetooth device to Connection (for
self-managed connections)

Bug: 64767509
Test: unit tests
Change-Id: I286b19b423dc2ee417dbc90eda7e8055b2da2444
This commit is contained in:
Hall Liu
2017-11-07 17:59:28 -08:00
parent 3ddf22e69c
commit a98f58b5c1
14 changed files with 188 additions and 23 deletions

View File

@@ -398,7 +398,8 @@ final class RemoteConnectionService {
}
@Override
public void setAudioRoute(String callId, int audioRoute, Session.Info sessionInfo) {
public void setAudioRoute(String callId, int audioRoute, String bluetoothAddress,
Session.Info sessionInfo) {
if (hasConnection(callId)) {
// TODO(3pcalls): handle this for remote connections.
// Likely we don't want to do anything since it doesn't make sense for self-managed