• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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    // 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_volumes.xml",
52    vendor: true,
53    src: ":audio_policy_engine_volumes",
54}
55prebuilt_etc {
56    name: "audio_policy_engine_criterion_types.xml",
57    vendor: true,
58    src: ":audio_policy_engine_criterion_types",
59}
60
61//
62// Generate audio_policy_engine criterion type file => provides device addresses criterion type
63//
64genrule {
65    name: "audio_policy_engine_criterion_types",
66    defaults: ["buildpolicycriteriontypesrule"],
67    srcs: [
68        ":audio_policy_configuration_top_file",
69        ":audio_policy_configuration_files",
70    ],
71}
72filegroup {
73    name: "audio_policy_configuration_files",
74    srcs: [
75        ":r_submix_audio_policy_configuration",
76        ":default_volume_tables",
77        ":audio_policy_volumes",
78        ":surround_sound_configuration_5_0",
79        ":primary_audio_policy_configuration",
80    ],
81}
82filegroup {
83    name : "audio_policy_configuration_top_file",
84    srcs: [":audio_policy_configuration_generic"],
85}
86filegroup {
87    name: "audio_policy_engine_configuration",
88    srcs: ["audio_policy_engine_configuration.xml"],
89}
90filegroup {
91    name: "audio_policy_engine_volumes",
92    srcs: ["audio_policy_engine_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_volumes",
100        ":audio_policy_engine_criterion_types",
101        ":audio_policy_engine_criteria",
102    ],
103}
104