• 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 Car Emulator configuration example
18
19soong_namespace {
20    imports: [
21        "frameworks/av/services/audiopolicy/config",
22        "frameworks/av/services/audiopolicy/engineconfigurable/config/example/automotive",
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: "audio_policy_engine_configuration.xml",
38    vendor: true,
39    src: ":audio_policy_engine_configuration",
40    required: [
41        ":audio_policy_engine_volumes.xml",
42        "audio_policy_engine_criteria.xml",
43        "audio_policy_engine_criterion_types.xml",
44        "audio_policy_engine_product_strategies.xml",
45    ],
46}
47
48prebuilt_etc {
49    name: "audio_policy_engine_product_strategies.xml",
50    vendor: true,
51    src: "audio_policy_engine_product_strategies.xml",
52}
53
54prebuilt_etc {
55    name: "audio_policy_engine_criterion_types.xml",
56    vendor: true,
57    src: ":audio_policy_engine_criterion_types",
58}
59
60//
61// Generate audio_policy_engine criterion type file => provides device addresses criterion type
62//
63genrule {
64    name: "audio_policy_engine_criterion_types",
65    defaults: ["buildpolicycriteriontypesrule"],
66    srcs: [
67        ":audio_policy_configuration_files",
68        ":audio_policy_configuration_top_file",
69    ],
70}
71
72filegroup {
73    name: "audio_policy_configuration_files",
74    srcs: [
75        ":audio_policy_volumes",
76        ":default_volume_tables",
77        ":primary_audio_policy_configuration",
78        ":r_submix_audio_policy_configuration",
79        ":surround_sound_configuration_5_0",
80    ],
81}
82
83filegroup {
84    name: "audio_policy_configuration_top_file",
85    srcs: [":audio_policy_configuration_generic"],
86}
87
88filegroup {
89    name: "audio_policy_engine_configuration_files",
90    srcs: [
91        ":audio_policy_engine_configuration",
92        ":audio_policy_engine_criteria",
93        ":audio_policy_engine_criterion_types",
94        ":audio_policy_engine_volumes",
95        "audio_policy_engine_product_strategies.xml",
96    ],
97}
98