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
This commit is contained in:
parent
4bc9e303b1
commit
040bfea972
3 changed files with 5 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -66,6 +66,7 @@
|
|||
</xs:element>
|
||||
<xs:complexType name="globalConfiguration">
|
||||
<xs:attribute name="speaker_drc_enabled" type="xs:boolean" use="required"/>
|
||||
<xs:attribute name="call_screen_mode_supported" type="xs:boolean" use="optional"/>
|
||||
</xs:complexType>
|
||||
<xs:complexType name="modules">
|
||||
<xs:annotation>
|
||||
|
|
|
@ -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_")
|
||||
|
|
Loading…
Reference in a new issue