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