1/* 2 * Copyright (C) 2019 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17// Import this namespace in order to use AOSP Automotive configuration example 18 19soong_namespace { 20 imports: [ 21 "frameworks/av/services/audiopolicy/config", 22 ], 23} 24 25prebuilt_etc { 26 name: "audio_policy_engine_configuration.xml", 27 vendor: true, 28 src: ":audio_policy_engine_configuration", 29 required: [ 30 ":audio_policy_engine_criterion_types.xml", 31 ":audio_policy_engine_criteria.xml", 32 ":audio_policy_engine_product_strategies.xml", 33 ":audio_policy_engine_volumes.xml", 34 ], 35} 36prebuilt_etc { 37 name: "audio_policy_engine_product_strategies.xml", 38 vendor: true, 39 src: "audio_policy_engine_product_strategies.xml", 40} 41prebuilt_etc { 42 name: "audio_policy_engine_volumes.xml", 43 vendor: true, 44 src: ":audio_policy_engine_volumes", 45} 46prebuilt_etc { 47 name: "audio_policy_engine_criterion_types.xml", 48 vendor: true, 49 src: ":audio_policy_engine_criterion_types", 50} 51 52// 53// Generate audio_policy_engine criterion type file => provides device addresses criterion type 54// 55genrule { 56 name: "audio_policy_engine_criterion_types", 57 defaults: ["buildpolicycriteriontypesrule"], 58 srcs: [ 59 ":audio_policy_configuration_top_file", 60 ":audio_policy_configuration_files", 61 ], 62} 63filegroup { 64 name: "audio_policy_configuration_files", 65 srcs: [ 66 ":r_submix_audio_policy_configuration", 67 ":default_volume_tables", 68 ":audio_policy_volumes", 69 ":surround_sound_configuration_5_0", 70 ":primary_audio_policy_configuration", 71 ], 72} 73filegroup { 74 name : "audio_policy_configuration_top_file", 75 srcs: [":audio_policy_configuration_generic"], 76} 77filegroup { 78 name: "audio_policy_engine_configuration", 79 srcs: ["audio_policy_engine_configuration.xml"], 80} 81filegroup { 82 name: "audio_policy_engine_volumes", 83 srcs: ["audio_policy_engine_volumes.xml"], 84} 85filegroup { 86 name: "audio_policy_engine_configuration_files", 87 srcs: [ 88 ":audio_policy_engine_configuration", 89 "audio_policy_engine_product_strategies.xml", 90 ":audio_policy_engine_volumes", 91 ":audio_policy_engine_criterion_types", 92 ":audio_policy_engine_criteria", 93 ], 94} 95