From f61f8e7cafb7766382c2fb4d40944940dcf6230c Mon Sep 17 00:00:00 2001 From: xiaotonj Date: Wed, 6 Dec 2023 16:08:55 -0800 Subject: Add hidden API for raw route mask to support call audio routing refactor. Bug: b/306395598 Test: Unit test from telecom stack Change-Id: Ie49456a07b16e5614456f4483ef8072aa7eb8545 --- telecomm/java/android/telecom/CallAudioState.java | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'telecomm/java') diff --git a/telecomm/java/android/telecom/CallAudioState.java b/telecomm/java/android/telecom/CallAudioState.java index c7cc1bd88bdf..49e9232ad535 100644 --- a/telecomm/java/android/telecom/CallAudioState.java +++ b/telecomm/java/android/telecom/CallAudioState.java @@ -198,6 +198,16 @@ public final class CallAudioState implements Parcelable { } } + /** + * @return Bit mask of all routes supported by this call, won't be changed by streaming state. + * + * @hide + */ + @CallAudioRoute + public int getRawSupportedRouteMask() { + return supportedRouteMask; + } + /** * @return The {@link BluetoothDevice} through which audio is being routed. * Will not be {@code null} if {@link #getRoute()} returns {@link #ROUTE_BLUETOOTH}. -- cgit v1.2.3-59-g8ed1b