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 Car Emulator configuration example 18 19soong_namespace { 20 imports: [ 21 "frameworks/av/services/audiopolicy/engineconfigurable/config/example/automotive", 22 "frameworks/av/services/audiopolicy/config", 23 ], 24} 25 26package { 27 // See: http://go/android-license-faq 28 // A large-scale-change added 'default_applicable_licenses' to import 29 // all of the 'license_kinds' from "frameworks_av_license" 30 // to get the below license kinds: 31 // SPDX-license-identifier-Apache-2.0 32 default_applicable_licenses: ["frameworks_av_license"], 33} 34 35prebuilt_etc { 36 name: "audio_policy_engine_configuration.xml", 37 vendor: true, 38 src: ":audio_policy_engine_configuration", 39 required: [ 40 "audio_policy_engine_criterion_types.xml", 41 "audio_policy_engine_criteria.xml", 42 "audio_policy_engine_product_strategies.xml", 43 ":audio_policy_engine_volumes.xml", 44 ], 45} 46prebuilt_etc { 47 name: "audio_policy_engine_product_strategies.xml", 48 vendor: true, 49 src: "audio_policy_engine_product_strategies.xml", 50} 51prebuilt_etc { 52 name: "audio_policy_engine_criterion_types.xml", 53 vendor: true, 54 src: ":audio_policy_engine_criterion_types", 55} 56 57// 58// Generate audio_policy_engine criterion type file => provides device addresses criterion type 59// 60genrule { 61 name: "audio_policy_engine_criterion_types", 62 defaults: ["buildpolicycriteriontypesrule"], 63 srcs: [ 64 ":audio_policy_configuration_top_file", 65 ":audio_policy_configuration_files", 66 ], 67} 68filegroup { 69 name: "audio_policy_configuration_files", 70 srcs: [ 71 ":r_submix_audio_policy_configuration", 72 ":default_volume_tables", 73 ":audio_policy_volumes", 74 ":surround_sound_configuration_5_0", 75 ":primary_audio_policy_configuration", 76 ], 77} 78filegroup { 79 name : "audio_policy_configuration_top_file", 80 srcs: [":audio_policy_configuration_generic"], 81} 82filegroup { 83 name: "audio_policy_engine_configuration_files", 84 srcs: [ 85 ":audio_policy_engine_configuration", 86 "audio_policy_engine_product_strategies.xml", 87 ":audio_policy_engine_volumes", 88 ":audio_policy_engine_criterion_types", 89 ":audio_policy_engine_criteria", 90 ], 91} 92