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 b6800fc715
)
Merged-In: I3be36009d1b5db218c846efe96f078e858283992
This commit is contained in:
parent
87edc66e1f
commit
22dc9b9aa4
2 changed files with 3 additions and 0 deletions
|
@ -462,6 +462,7 @@ package android.audio.policy.configuration.V7_1 {
|
|||
method @Nullable public String getName();
|
||||
method @Nullable public java.util.List<android.audio.policy.configuration.V7_1.AudioUsage> getPreferredUsage();
|
||||
method @Nullable public java.util.List<android.audio.policy.configuration.V7_1.Profile> 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<android.audio.policy.configuration.V7_1.AudioInOutFlag>);
|
||||
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<android.audio.policy.configuration.V7_1.AudioUsage>);
|
||||
method public void setRecommendedMuteDurationMs(@Nullable long);
|
||||
method public void setRole(@Nullable android.audio.policy.configuration.V7_1.Role);
|
||||
}
|
||||
|
||||
|
|
|
@ -226,6 +226,7 @@
|
|||
</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
<xs:attribute name="recommendedMuteDurationMs" type="xs:unsignedInt"/>
|
||||
</xs:complexType>
|
||||
<xs:unique name="mixPortProfileUniqueness">
|
||||
<xs:selector xpath="profile"/>
|
||||
|
|
Loading…
Reference in a new issue