Add ability to set supported audio routes on phone accounts and connection
The set audio routes are used by Telecom to restrict where the audio may be routed to. For example, an account can specify that calls may not be routed over bluetooth headsets, which will prevent a new call from being routed to this source. This is a cherry-pick of abandoned ag/1521009. Bug: 32958838 Change-Id: Idd5e4d38b157f11454f3d991385644f2f384596e
This commit is contained in:
committed by
Hall Liu
parent
fbeacb02c0
commit
2830ce9a09
@ -324,6 +324,7 @@ public final class Call {
|
||||
private final PhoneAccountHandle mAccountHandle;
|
||||
private final int mCallCapabilities;
|
||||
private final int mCallProperties;
|
||||
private final int mSupportedAudioRoutes = CallAudioState.ROUTE_ALL;
|
||||
private final DisconnectCause mDisconnectCause;
|
||||
private final long mConnectTimeMillis;
|
||||
private final GatewayInfo mGatewayInfo;
|
||||
@ -535,6 +536,15 @@ public final class Call {
|
||||
return mCallProperties;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return a bitmask of the audio routes available for the call.
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
public int getSupportedAudioRoutes() {
|
||||
return mSupportedAudioRoutes;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return For a {@link #STATE_DISCONNECTED} {@code Call}, the disconnect cause expressed
|
||||
* by {@link android.telecom.DisconnectCause}.
|
||||
|
Reference in New Issue
Block a user