From 040bfea972a82f85d2d32e35b355a2c86e127fbf Mon Sep 17 00:00:00 2001 From: Eric Laurent Date: Wed, 6 Nov 2019 11:03:01 -0800 Subject: [PATCH] audio: Add CALL_SCREEN audio mode. Add new audio mode AudioMode.CALL_SCREEN allowing call screening to take place while other audio use cases are still active. Also add audio policy configuration attribute indicating if the vendor implementation supports this audio mode. Bug: 140384450 Test: make Change-Id: I2714a9949f2c45b1f8e5a5c40368a6152bd91572 --- audio/6.0/config/api/current.txt | 2 ++ audio/6.0/config/audio_policy_configuration.xsd | 1 + audio/common/6.0/types.hal | 2 ++ 3 files changed, 5 insertions(+) diff --git a/audio/6.0/config/api/current.txt b/audio/6.0/config/api/current.txt index 7aa147cbb5..e67831c6c9 100644 --- a/audio/6.0/config/api/current.txt +++ b/audio/6.0/config/api/current.txt @@ -250,7 +250,9 @@ package audio.policy.configuration.V6_0 { public class GlobalConfiguration { ctor public GlobalConfiguration(); + method public boolean getCall_screen_mode_supported(); method public boolean getSpeaker_drc_enabled(); + method public void setCall_screen_mode_supported(boolean); method public void setSpeaker_drc_enabled(boolean); } diff --git a/audio/6.0/config/audio_policy_configuration.xsd b/audio/6.0/config/audio_policy_configuration.xsd index 0dc89bb1a7..29f6f3811b 100644 --- a/audio/6.0/config/audio_policy_configuration.xsd +++ b/audio/6.0/config/audio_policy_configuration.xsd @@ -66,6 +66,7 @@ + diff --git a/audio/common/6.0/types.hal b/audio/common/6.0/types.hal index 132f86dc4e..0c97c3686c 100644 --- a/audio/common/6.0/types.hal +++ b/audio/common/6.0/types.hal @@ -556,6 +556,8 @@ enum AudioMode : int32_t { IN_CALL = 2, /** Calls handled by apps (Eg: Hangout). */ IN_COMMUNICATION = 3, + /** Call screening in progress */ + CALL_SCREEN = 4, }; @export(name="", value_prefix="AUDIO_DEVICE_")