Handle audio route restrictions set on calls
When a call restricts audio routes, it will move the audio route to a
supported route if available. The supported routes are determined initially
and re-evaluated when the call becomes the foreground call.
This is a cherry-pick of abandoned ag/1520954
Bug: 32958838
Change-Id: Ie30847c995839516507df0c70178a591c39f6cdd
diff --git a/src/com/android/server/telecom/ParcelableCallUtils.java b/src/com/android/server/telecom/ParcelableCallUtils.java
index 9cc61b3..c4ea9cf 100644
--- a/src/com/android/server/telecom/ParcelableCallUtils.java
+++ b/src/com/android/server/telecom/ParcelableCallUtils.java
@@ -88,6 +88,8 @@
}
int capabilities = convertConnectionToCallCapabilities(call.getConnectionCapabilities());
int properties = convertConnectionToCallProperties(call.getConnectionProperties());
+ int supportedAudioRoutes = call.getSupportedAudioRoutes();
+
if (call.isConference()) {
properties |= android.telecom.Call.Details.PROPERTY_CONFERENCE;
}
@@ -157,6 +159,7 @@
call.getCannedSmsResponses(),
capabilities,
properties,
+ supportedAudioRoutes,
connectTimeMillis,
handle,
call.getHandlePresentation(),