From 7443e2f5477f7a966ebc03dde6c4a5ad23d49549 Mon Sep 17 00:00:00 2001 From: Mikhail Naganov Date: Tue, 20 Sep 2022 21:30:16 +0000 Subject: [PATCH] Sync audio_policy_engine_configuration.xsd with the SDK The audio_policy_engine_configuration.xsd schema was missing four values for the usage enum. This was causing the VTS test to fail. These usages must be specified in the audio policy engine configuration file, otherwise a GTS test fails. Bug: 245303963 Bug: 246231268 Bug: 246901091 Test: atest VtsHalAudioPolicyV1_0TargetTest Change-Id: I0161ddb33e52cbca9b425c0cbb4f32f320c43af4 (cherry picked from commit 1cbe492d595e145cf360515d5ab793f71c23e785) Merged-In: I0161ddb33e52cbca9b425c0cbb4f32f320c43af4 --- audio/policy/1.0/xml/api/current.txt | 4 ++++ audio/policy/1.0/xml/audio_policy_engine_configuration.xsd | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/audio/policy/1.0/xml/api/current.txt b/audio/policy/1.0/xml/api/current.txt index 29a9cd402d..3408a8a91d 100644 --- a/audio/policy/1.0/xml/api/current.txt +++ b/audio/policy/1.0/xml/api/current.txt @@ -217,6 +217,10 @@ package audio.policy.V1_0 { enum_constant public static final audio.policy.V1_0.UsageEnumType AUDIO_USAGE_GAME; enum_constant public static final audio.policy.V1_0.UsageEnumType AUDIO_USAGE_MEDIA; enum_constant public static final audio.policy.V1_0.UsageEnumType AUDIO_USAGE_NOTIFICATION; + enum_constant public static final audio.policy.V1_0.UsageEnumType AUDIO_USAGE_NOTIFICATION_COMMUNICATION_DELAYED; + enum_constant public static final audio.policy.V1_0.UsageEnumType AUDIO_USAGE_NOTIFICATION_COMMUNICATION_INSTANT; + enum_constant public static final audio.policy.V1_0.UsageEnumType AUDIO_USAGE_NOTIFICATION_COMMUNICATION_REQUEST; + enum_constant public static final audio.policy.V1_0.UsageEnumType AUDIO_USAGE_NOTIFICATION_EVENT; enum_constant public static final audio.policy.V1_0.UsageEnumType AUDIO_USAGE_NOTIFICATION_TELEPHONY_RINGTONE; enum_constant public static final audio.policy.V1_0.UsageEnumType AUDIO_USAGE_UNKNOWN; enum_constant public static final audio.policy.V1_0.UsageEnumType AUDIO_USAGE_VIRTUAL_SOURCE; diff --git a/audio/policy/1.0/xml/audio_policy_engine_configuration.xsd b/audio/policy/1.0/xml/audio_policy_engine_configuration.xsd index 842e7246d6..0b87118eba 100644 --- a/audio/policy/1.0/xml/audio_policy_engine_configuration.xsd +++ b/audio/policy/1.0/xml/audio_policy_engine_configuration.xsd @@ -336,6 +336,11 @@ + + + + +