From 22dc9b9aa4d39829d3858450272e5eb02f3d45e0 Mon Sep 17 00:00:00 2001 From: Mikhail Naganov Date: Sat, 29 Jan 2022 00:39:13 +0000 Subject: [PATCH] audio: Add recommended mute duration attribute to APM XSD Add 'recommendedMuteDurationMs' optional attribute to 'mixPort' element. This attribute specifies customized mute duration while switching device's audio path to avoid truncated sound at the beginning. The framework is already aware of this attribute, only need to allow it in the XSD. Bug: 183344508 Bug: 197823000 Test: m CTS-Coverage-bug: 215647214 Change-Id: I3be36009d1b5db218c846efe96f078e858283992 (cherry picked from commit b6800fc7154c51f462a80d7d202e6646e50ef666) Merged-In: I3be36009d1b5db218c846efe96f078e858283992 --- audio/7.1/config/api/current.txt | 2 ++ audio/7.1/config/audio_policy_configuration.xsd | 1 + 2 files changed, 3 insertions(+) diff --git a/audio/7.1/config/api/current.txt b/audio/7.1/config/api/current.txt index 0a0eb02e19..2963904fea 100644 --- a/audio/7.1/config/api/current.txt +++ b/audio/7.1/config/api/current.txt @@ -462,6 +462,7 @@ package android.audio.policy.configuration.V7_1 { method @Nullable public String getName(); method @Nullable public java.util.List getPreferredUsage(); method @Nullable public java.util.List getProfile(); + method @Nullable public long getRecommendedMuteDurationMs(); method @Nullable public android.audio.policy.configuration.V7_1.Role getRole(); method public void setFlags(@Nullable java.util.List); method public void setGains(@Nullable android.audio.policy.configuration.V7_1.Gains); @@ -469,6 +470,7 @@ package android.audio.policy.configuration.V7_1 { method public void setMaxOpenCount(@Nullable long); method public void setName(@Nullable String); method public void setPreferredUsage(@Nullable java.util.List); + method public void setRecommendedMuteDurationMs(@Nullable long); method public void setRole(@Nullable android.audio.policy.configuration.V7_1.Role); } diff --git a/audio/7.1/config/audio_policy_configuration.xsd b/audio/7.1/config/audio_policy_configuration.xsd index defb50651d..414552e89f 100644 --- a/audio/7.1/config/audio_policy_configuration.xsd +++ b/audio/7.1/config/audio_policy_configuration.xsd @@ -226,6 +226,7 @@ +