From 6ec972a72a21769c3df62e32c5615037aeece6fb Mon Sep 17 00:00:00 2001 From: allenwtsu Date: Tue, 10 Nov 2020 17:32:46 +0800 Subject: Declare audio codec bitrate and bandwidth Bug: 172304392 Test: atest Change-Id: Iea4de76a4c1628c8828ba84282ef014f94cc169a --- telecomm/java/android/telecom/Connection.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'telecomm') diff --git a/telecomm/java/android/telecom/Connection.java b/telecomm/java/android/telecom/Connection.java index bbf34df8fe84..724a9e477b95 100644 --- a/telecomm/java/android/telecom/Connection.java +++ b/telecomm/java/android/telecom/Connection.java @@ -766,6 +766,19 @@ public abstract class Connection extends Conferenceable { public static final @AudioCodec String EXTRA_AUDIO_CODEC = "android.telecom.extra.AUDIO_CODEC"; + /** + * Float connection extra key used to store the audio codec bitrate in kbps for the current + * {@link Connection}. + */ + public static final String EXTRA_AUDIO_CODEC_BITRATE_KBPS = + "android.telecom.extra.AUDIO_CODEC_BITRATE_KBPS"; + + /** + * Float connection extra key used to store the audio codec bandwidth in khz for the current + * {@link Connection}. + */ + public static final String EXTRA_AUDIO_CODEC_BANDWIDTH_KHZ = + "android.telecom.extra.AUDIO_CODEC_BANDWIDTH_KHZ"; /** * Connection event used to inform Telecom that it should play the on hold tone. This is used * to play a tone when the peer puts the current call on hold. Sent to Telecom via -- cgit v1.2.3