blob: 4c07aad5ed6291e0a6366f6c0453c3511ef3605c [file] [log] [blame]
Kevin Rocard96d2cd92018-11-14 16:22:07 -08001//
2// Copyright (C) 2016 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
Bob Badourb224b362021-02-12 20:13:01 -080017package {
Aditya Choudharyc5c6c622024-01-31 11:06:17 +000018 default_team: "trendy_team_android_media_audio_framework",
Bob Badourb224b362021-02-12 20:13:01 -080019 // See: http://go/android-license-faq
20 // A large-scale-change added 'default_applicable_licenses' to import
21 // all of the 'license_kinds' from "hardware_interfaces_license"
22 // to get the below license kinds:
23 // SPDX-license-identifier-Apache-2.0
24 default_applicable_licenses: ["hardware_interfaces_license"],
25}
26
Kevin Rocard1108d4a2018-11-15 18:51:07 -080027cc_defaults {
28 name: "VtsHalAudioEffectTargetTest_default",
Kevin Rocard96d2cd92018-11-14 16:22:07 -080029 defaults: ["VtsHalTargetTestDefaults"],
Chih-Hung Hsiehad1bf312022-02-17 21:56:13 -080030 tidy_timeout_srcs: [
31 "VtsHalAudioEffectTargetTest.cpp",
32 ],
Kevin Rocard96d2cd92018-11-14 16:22:07 -080033 srcs: [
34 "VtsHalAudioEffectTargetTest.cpp",
Mikhail Naganova8814e52020-08-06 23:34:26 +000035 "ValidateAudioEffectsConfiguration.cpp",
Kevin Rocard96d2cd92018-11-14 16:22:07 -080036 ],
37 static_libs: [
38 "android.hardware.audio.common.test.utility",
Kevin Rocard96d2cd92018-11-14 16:22:07 -080039 "android.hidl.allocator@1.0",
40 "android.hidl.memory@1.0",
41 "libeffectsconfig",
Kevin Rocard96d2cd92018-11-14 16:22:07 -080042 "libxml2",
43 ],
44 header_libs: [
45 "android.hardware.audio.common.util@all-versions",
46 ],
Mikhail Naganova8814e52020-08-06 23:34:26 +000047 test_suites: [
48 "general-tests",
49 "vts",
50 ],
Kevin Rocard1108d4a2018-11-15 18:51:07 -080051}
52
53cc_test {
54 name: "VtsHalAudioEffectV2_0TargetTest",
55 defaults: ["VtsHalAudioEffectTargetTest_default"],
Dan Shiba894f82020-03-26 00:06:39 -070056 // Use test_config for vts suite.
nelsonli3c12e582019-12-12 13:53:49 +080057 // TODO(b/146104851): Add auto-gen rules and remove it.
58 test_config: "VtsHalAudioEffectV2_0TargetTest.xml",
Kevin Rocard1108d4a2018-11-15 18:51:07 -080059 static_libs: [
60 "android.hardware.audio.common@2.0",
61 "android.hardware.audio.effect@2.0",
62 ],
nelsonli3c12e582019-12-12 13:53:49 +080063 data: [
64 ":audio_effects_conf_V2_0",
65 ],
Kevin Rocard96d2cd92018-11-14 16:22:07 -080066 cflags: [
67 "-DMAJOR_VERSION=2",
68 "-DMINOR_VERSION=0",
69 "-include common/all-versions/VersionMacro.h",
Mikhail Naganova8814e52020-08-06 23:34:26 +000070 ],
Kevin Rocard96d2cd92018-11-14 16:22:07 -080071}
72
73cc_test {
74 name: "VtsHalAudioEffectV4_0TargetTest",
Kevin Rocard1108d4a2018-11-15 18:51:07 -080075 defaults: ["VtsHalAudioEffectTargetTest_default"],
Dan Shiba894f82020-03-26 00:06:39 -070076 // Use test_config for vts suite.
nelsonli3c12e582019-12-12 13:53:49 +080077 // TODO(b/146104851): Add auto-gen rules and remove it.
78 test_config: "VtsHalAudioEffectV4_0TargetTest.xml",
Kevin Rocard96d2cd92018-11-14 16:22:07 -080079 static_libs: [
Kevin Rocard96d2cd92018-11-14 16:22:07 -080080 "android.hardware.audio.common@4.0",
81 "android.hardware.audio.effect@4.0",
Kevin Rocard96d2cd92018-11-14 16:22:07 -080082 ],
nelsonli3c12e582019-12-12 13:53:49 +080083 data: [
84 ":audio_effects_conf_V4_0",
85 ],
Kevin Rocard96d2cd92018-11-14 16:22:07 -080086 cflags: [
87 "-DMAJOR_VERSION=4",
88 "-DMINOR_VERSION=0",
89 "-include common/all-versions/VersionMacro.h",
Mikhail Naganova8814e52020-08-06 23:34:26 +000090 ],
Kevin Rocard96d2cd92018-11-14 16:22:07 -080091}
Kevin Rocard20614ba2018-11-10 07:20:17 -080092
93cc_test {
94 name: "VtsHalAudioEffectV5_0TargetTest",
95 defaults: ["VtsHalAudioEffectTargetTest_default"],
Dan Shiba894f82020-03-26 00:06:39 -070096 // Use test_config for vts suite.
nelsonli3c12e582019-12-12 13:53:49 +080097 // TODO(b/146104851): Add auto-gen rules and remove it.
98 test_config: "VtsHalAudioEffectV5_0TargetTest.xml",
Kevin Rocard20614ba2018-11-10 07:20:17 -080099 static_libs: [
100 "android.hardware.audio.common@5.0",
101 "android.hardware.audio.effect@5.0",
102 ],
nelsonli3c12e582019-12-12 13:53:49 +0800103 data: [
104 ":audio_effects_conf_V5_0",
105 ],
Kevin Rocard20614ba2018-11-10 07:20:17 -0800106 cflags: [
107 "-DMAJOR_VERSION=5",
108 "-DMINOR_VERSION=0",
109 "-include common/all-versions/VersionMacro.h",
Mikhail Naganova8814e52020-08-06 23:34:26 +0000110 ],
Kevin Rocard20614ba2018-11-10 07:20:17 -0800111}
112
Kevin Rocard2a515e12019-09-30 19:53:00 +0100113cc_test {
114 name: "VtsHalAudioEffectV6_0TargetTest",
115 defaults: ["VtsHalAudioEffectTargetTest_default"],
Dan Shiba894f82020-03-26 00:06:39 -0700116 // Use test_config for vts suite.
nelsonli3c12e582019-12-12 13:53:49 +0800117 // TODO(b/146104851): Add auto-gen rules and remove it.
118 test_config: "VtsHalAudioEffectV6_0TargetTest.xml",
Kevin Rocard2a515e12019-09-30 19:53:00 +0100119 static_libs: [
120 "android.hardware.audio.common@6.0",
121 "android.hardware.audio.effect@6.0",
122 ],
nelsonli3c12e582019-12-12 13:53:49 +0800123 data: [
124 ":audio_effects_conf_V6_0",
125 ],
Kevin Rocard2a515e12019-09-30 19:53:00 +0100126 cflags: [
127 "-DMAJOR_VERSION=6",
128 "-DMINOR_VERSION=0",
129 "-include common/all-versions/VersionMacro.h",
Mikhail Naganova8814e52020-08-06 23:34:26 +0000130 ],
Kevin Rocard2a515e12019-09-30 19:53:00 +0100131}
Mikhail Naganov60ced762020-07-23 18:08:26 +0000132
133cc_test {
134 name: "VtsHalAudioEffectV7_0TargetTest",
135 defaults: ["VtsHalAudioEffectTargetTest_default"],
136 // Use test_config for vts suite.
137 // TODO(b/146104851): Add auto-gen rules and remove it.
138 test_config: "VtsHalAudioEffectV7_0TargetTest.xml",
139 static_libs: [
140 "android.hardware.audio.common@7.0",
Mikhail Naganovd72a7c22020-08-14 00:16:09 +0000141 "android.hardware.audio.common@7.0-enums",
Mikhail Naganov60ced762020-07-23 18:08:26 +0000142 "android.hardware.audio.effect@7.0",
143 ],
144 data: [
145 ":audio_effects_conf_V7_0",
146 ],
147 cflags: [
148 "-DMAJOR_VERSION=7",
149 "-DMINOR_VERSION=0",
150 "-include common/all-versions/VersionMacro.h",
Mikhail Naganova8814e52020-08-06 23:34:26 +0000151 ],
Mikhail Naganov60ced762020-07-23 18:08:26 +0000152}