blob: 3b15ed4658547f2e54be4a150f6f346b355065da [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 {
18 // See: http://go/android-license-faq
19 // A large-scale-change added 'default_applicable_licenses' to import
20 // all of the 'license_kinds' from "hardware_interfaces_license"
21 // to get the below license kinds:
22 // SPDX-license-identifier-Apache-2.0
23 default_applicable_licenses: ["hardware_interfaces_license"],
24}
25
Kevin Rocard1108d4a2018-11-15 18:51:07 -080026cc_defaults {
27 name: "VtsHalAudioEffectTargetTest_default",
Kevin Rocard96d2cd92018-11-14 16:22:07 -080028 defaults: ["VtsHalTargetTestDefaults"],
Chih-Hung Hsiehad1bf312022-02-17 21:56:13 -080029 tidy_timeout_srcs: [
30 "VtsHalAudioEffectTargetTest.cpp",
31 ],
Kevin Rocard96d2cd92018-11-14 16:22:07 -080032 srcs: [
33 "VtsHalAudioEffectTargetTest.cpp",
Mikhail Naganova8814e52020-08-06 23:34:26 +000034 "ValidateAudioEffectsConfiguration.cpp",
Kevin Rocard96d2cd92018-11-14 16:22:07 -080035 ],
36 static_libs: [
37 "android.hardware.audio.common.test.utility",
Kevin Rocard96d2cd92018-11-14 16:22:07 -080038 "android.hidl.allocator@1.0",
39 "android.hidl.memory@1.0",
40 "libeffectsconfig",
Kevin Rocard96d2cd92018-11-14 16:22:07 -080041 "libxml2",
42 ],
43 header_libs: [
44 "android.hardware.audio.common.util@all-versions",
45 ],
Mikhail Naganova8814e52020-08-06 23:34:26 +000046 test_suites: [
47 "general-tests",
48 "vts",
49 ],
Kevin Rocard1108d4a2018-11-15 18:51:07 -080050}
51
52cc_test {
53 name: "VtsHalAudioEffectV2_0TargetTest",
54 defaults: ["VtsHalAudioEffectTargetTest_default"],
Dan Shiba894f82020-03-26 00:06:39 -070055 // Use test_config for vts suite.
nelsonli3c12e582019-12-12 13:53:49 +080056 // TODO(b/146104851): Add auto-gen rules and remove it.
57 test_config: "VtsHalAudioEffectV2_0TargetTest.xml",
Kevin Rocard1108d4a2018-11-15 18:51:07 -080058 static_libs: [
59 "android.hardware.audio.common@2.0",
60 "android.hardware.audio.effect@2.0",
61 ],
nelsonli3c12e582019-12-12 13:53:49 +080062 data: [
63 ":audio_effects_conf_V2_0",
64 ],
Kevin Rocard96d2cd92018-11-14 16:22:07 -080065 cflags: [
66 "-DMAJOR_VERSION=2",
67 "-DMINOR_VERSION=0",
68 "-include common/all-versions/VersionMacro.h",
Mikhail Naganova8814e52020-08-06 23:34:26 +000069 ],
Kevin Rocard96d2cd92018-11-14 16:22:07 -080070}
71
72cc_test {
73 name: "VtsHalAudioEffectV4_0TargetTest",
Kevin Rocard1108d4a2018-11-15 18:51:07 -080074 defaults: ["VtsHalAudioEffectTargetTest_default"],
Dan Shiba894f82020-03-26 00:06:39 -070075 // Use test_config for vts suite.
nelsonli3c12e582019-12-12 13:53:49 +080076 // TODO(b/146104851): Add auto-gen rules and remove it.
77 test_config: "VtsHalAudioEffectV4_0TargetTest.xml",
Kevin Rocard96d2cd92018-11-14 16:22:07 -080078 static_libs: [
Kevin Rocard96d2cd92018-11-14 16:22:07 -080079 "android.hardware.audio.common@4.0",
80 "android.hardware.audio.effect@4.0",
Kevin Rocard96d2cd92018-11-14 16:22:07 -080081 ],
nelsonli3c12e582019-12-12 13:53:49 +080082 data: [
83 ":audio_effects_conf_V4_0",
84 ],
Kevin Rocard96d2cd92018-11-14 16:22:07 -080085 cflags: [
86 "-DMAJOR_VERSION=4",
87 "-DMINOR_VERSION=0",
88 "-include common/all-versions/VersionMacro.h",
Mikhail Naganova8814e52020-08-06 23:34:26 +000089 ],
Kevin Rocard96d2cd92018-11-14 16:22:07 -080090}
Kevin Rocard20614ba2018-11-10 07:20:17 -080091
92cc_test {
93 name: "VtsHalAudioEffectV5_0TargetTest",
94 defaults: ["VtsHalAudioEffectTargetTest_default"],
Dan Shiba894f82020-03-26 00:06:39 -070095 // Use test_config for vts suite.
nelsonli3c12e582019-12-12 13:53:49 +080096 // TODO(b/146104851): Add auto-gen rules and remove it.
97 test_config: "VtsHalAudioEffectV5_0TargetTest.xml",
Kevin Rocard20614ba2018-11-10 07:20:17 -080098 static_libs: [
99 "android.hardware.audio.common@5.0",
100 "android.hardware.audio.effect@5.0",
101 ],
nelsonli3c12e582019-12-12 13:53:49 +0800102 data: [
103 ":audio_effects_conf_V5_0",
104 ],
Kevin Rocard20614ba2018-11-10 07:20:17 -0800105 cflags: [
106 "-DMAJOR_VERSION=5",
107 "-DMINOR_VERSION=0",
108 "-include common/all-versions/VersionMacro.h",
Mikhail Naganova8814e52020-08-06 23:34:26 +0000109 ],
Kevin Rocard20614ba2018-11-10 07:20:17 -0800110}
111
Kevin Rocard2a515e12019-09-30 19:53:00 +0100112cc_test {
113 name: "VtsHalAudioEffectV6_0TargetTest",
114 defaults: ["VtsHalAudioEffectTargetTest_default"],
Dan Shiba894f82020-03-26 00:06:39 -0700115 // Use test_config for vts suite.
nelsonli3c12e582019-12-12 13:53:49 +0800116 // TODO(b/146104851): Add auto-gen rules and remove it.
117 test_config: "VtsHalAudioEffectV6_0TargetTest.xml",
Kevin Rocard2a515e12019-09-30 19:53:00 +0100118 static_libs: [
119 "android.hardware.audio.common@6.0",
120 "android.hardware.audio.effect@6.0",
121 ],
nelsonli3c12e582019-12-12 13:53:49 +0800122 data: [
123 ":audio_effects_conf_V6_0",
124 ],
Kevin Rocard2a515e12019-09-30 19:53:00 +0100125 cflags: [
126 "-DMAJOR_VERSION=6",
127 "-DMINOR_VERSION=0",
128 "-include common/all-versions/VersionMacro.h",
Mikhail Naganova8814e52020-08-06 23:34:26 +0000129 ],
Kevin Rocard2a515e12019-09-30 19:53:00 +0100130}
Mikhail Naganov60ced762020-07-23 18:08:26 +0000131
132cc_test {
133 name: "VtsHalAudioEffectV7_0TargetTest",
134 defaults: ["VtsHalAudioEffectTargetTest_default"],
135 // Use test_config for vts suite.
136 // TODO(b/146104851): Add auto-gen rules and remove it.
137 test_config: "VtsHalAudioEffectV7_0TargetTest.xml",
138 static_libs: [
139 "android.hardware.audio.common@7.0",
Mikhail Naganovd72a7c22020-08-14 00:16:09 +0000140 "android.hardware.audio.common@7.0-enums",
Mikhail Naganov60ced762020-07-23 18:08:26 +0000141 "android.hardware.audio.effect@7.0",
142 ],
143 data: [
144 ":audio_effects_conf_V7_0",
145 ],
146 cflags: [
147 "-DMAJOR_VERSION=7",
148 "-DMINOR_VERSION=0",
149 "-include common/all-versions/VersionMacro.h",
Mikhail Naganova8814e52020-08-06 23:34:26 +0000150 ],
Mikhail Naganov60ced762020-07-23 18:08:26 +0000151}