From fa1f597442a8b99f34a03013b5c5eeab779d65ed Mon Sep 17 00:00:00 2001 From: Kevin Rocard Date: Thu, 30 Nov 2017 18:30:55 -0800 Subject: [PATCH] Audio policy config: Device port (type,address) must be unique Device port are not identified by names but by their type and address and the module they are in. As a result, enforce this constraint in the XSD. Violating it results in a policy parsing crash. Bug: 69442986 Test: xmllint invalidates an XML with two devices of the same type and address Test: vts-tradefed run commandAndExit vts --module VtsHalAudioV2_0Target -t CheckConfig.audioPolicyConfigurationValidation Change-Id: I84245f0fa80fef786a002c98073c166b6aaf2be4 Signed-off-by: Kevin Rocard --- audio/2.0/config/audio_policy_configuration.xsd | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/audio/2.0/config/audio_policy_configuration.xsd b/audio/2.0/config/audio_policy_configuration.xsd index 8c05763dd2..0a52b55932 100644 --- a/audio/2.0/config/audio_policy_configuration.xsd +++ b/audio/2.0/config/audio_policy_configuration.xsd @@ -148,6 +148,11 @@ + + + + + @@ -419,7 +424,7 @@ - +