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 No Input configuration example 18 19soong_namespace { 20 imports: [ 21 "frameworks/av/services/audiopolicy/config", 22 "frameworks/av/services/audiopolicy/engineconfigurable/config/example/phone", 23 ], 24} 25 26package { 27 default_team: "trendy_team_android_media_audio_framework", 28 // See: http://go/android-license-faq 29 // A large-scale-change added 'default_applicable_licenses' to import 30 // all of the 'license_kinds' from "frameworks_av_license" 31 // to get the below license kinds: 32 // SPDX-license-identifier-Apache-2.0 33 default_applicable_licenses: ["frameworks_av_license"], 34} 35 36prebuilt_etc { 37 name: "parameter-framework.policy", 38 enabled: false, // TODO: This module depends on domaingeneratorpolicyrule_gen, which fails to build 39 filename_from_src: true, 40 vendor: true, 41 src: ":domaingeneratorpolicyrule_gen", 42 sub_dir: "parameter-framework/Settings/Policy", 43 required: [ 44 "PolicyClass.xml", 45 "PolicySubsystem-CommonTypes.xml", 46 "PolicySubsystem.xml", 47 ], 48} 49 50genrule { 51 name: "domaingeneratorpolicyrule_gen", 52 enabled: false, // TODO: This module fails to build 53 defaults: ["domaingeneratorpolicyrule"], 54 srcs: [ 55 ":audio_policy_engine_criterion_types", 56 ":audio_policy_pfw_structure_files", 57 ":audio_policy_pfw_toplevel", 58 ":edd_files", 59 ], 60} 61 62filegroup { 63 name: "audio_policy_pfw_toplevel", 64 srcs: [":ParameterFrameworkConfigurationPolicy.userdebug.xml"], 65} 66 67filegroup { 68 name: "audio_policy_pfw_structure_files", 69 srcs: [ 70 ":PolicyClass", 71 ":PolicySubsystem", 72 ":buildcommontypesstructure_gen", 73 ], 74} 75 76filegroup { 77 name: "edd_files", 78 srcs: [ 79 ":volumes.pfw", 80 "device_for_input_source.pfw", 81 ], 82} 83 84prebuilt_etc { 85 name: "PolicySubsystem.xml", 86 vendor: true, 87 src: ":PolicySubsystem-no-strategy", 88 sub_dir: "parameter-framework/Structure/Policy", 89} 90