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 25package { 26 default_team: "trendy_team_android_media_audio_framework", 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_criteria.xml", 41 ":audio_policy_engine_criterion_types.xml", 42 ":audio_policy_engine_product_strategies.xml", 43 ":audio_policy_engine_volumes.xml", 44 ], 45} 46 47prebuilt_etc { 48 name: "audio_policy_engine_product_strategies.xml", 49 vendor: true, 50 src: "audio_policy_engine_product_strategies.xml", 51} 52 53prebuilt_etc { 54 name: "audio_policy_engine_volumes.xml", 55 vendor: true, 56 src: ":audio_policy_engine_volumes", 57} 58 59prebuilt_etc { 60 name: "audio_policy_engine_criterion_types.xml", 61 vendor: true, 62 src: ":audio_policy_engine_criterion_types", 63} 64 65// 66// Generate audio_policy_engine criterion type file => provides device addresses criterion type 67// 68genrule { 69 name: "audio_policy_engine_criterion_types", 70 defaults: ["buildpolicycriteriontypesrule"], 71 srcs: [ 72 ":audio_policy_configuration_files", 73 ":audio_policy_configuration_top_file", 74 ], 75} 76 77filegroup { 78 name: "audio_policy_configuration_files", 79 srcs: [ 80 ":audio_policy_volumes", 81 ":default_volume_tables", 82 ":primary_audio_policy_configuration", 83 ":r_submix_audio_policy_configuration", 84 ":surround_sound_configuration_5_0", 85 ], 86} 87 88filegroup { 89 name: "audio_policy_configuration_top_file", 90 srcs: [":audio_policy_configuration_generic"], 91} 92 93filegroup { 94 name: "audio_policy_engine_configuration", 95 srcs: ["audio_policy_engine_configuration.xml"], 96} 97 98filegroup { 99 name: "audio_policy_engine_volumes", 100 srcs: ["audio_policy_engine_volumes.xml"], 101} 102 103filegroup { 104 name: "audio_policy_engine_configuration_files", 105 srcs: [ 106 ":audio_policy_engine_configuration", 107 ":audio_policy_engine_criteria", 108 ":audio_policy_engine_criterion_types", 109 ":audio_policy_engine_volumes", 110 "audio_policy_engine_product_strategies.xml", 111 ], 112} 113