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 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_stream_volumes.xml", 43 vendor: true, 44 src: ":audio_policy_engine_stream_volumes", 45} 46prebuilt_etc { 47 name: "audio_policy_engine_default_stream_volumes.xml", 48 vendor: true, 49 src: ":audio_policy_engine_default_stream_volumes", 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", 84 srcs: ["audio_policy_engine_configuration.xml"], 85} 86filegroup { 87 name: "audio_policy_engine_stream_volumes", 88 srcs: ["audio_policy_engine_stream_volumes.xml"], 89} 90filegroup { 91 name: "audio_policy_engine_default_stream_volumes", 92 srcs: ["audio_policy_engine_default_stream_volumes.xml"], 93} 94filegroup { 95 name: "audio_policy_engine_configuration_files", 96 srcs: [ 97 ":audio_policy_engine_configuration", 98 "audio_policy_engine_product_strategies.xml", 99 ":audio_policy_engine_stream_volumes", 100 ":audio_policy_engine_default_stream_volumes", 101 ":audio_policy_engine_criterion_types", 102 ":audio_policy_engine_criteria", 103 ], 104} 105