Kevin Rocard | 96d2cd9 | 2018-11-14 16:22:07 -0800 | [diff] [blame] | 1 | // |
| 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 Badour | b224b36 | 2021-02-12 20:13:01 -0800 | [diff] [blame] | 17 | package { |
Aditya Choudhary | c5c6c62 | 2024-01-31 11:06:17 +0000 | [diff] [blame] | 18 | default_team: "trendy_team_android_media_audio_framework", |
Bob Badour | b224b36 | 2021-02-12 20:13:01 -0800 | [diff] [blame] | 19 | // 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 Rocard | 1108d4a | 2018-11-15 18:51:07 -0800 | [diff] [blame] | 27 | cc_defaults { |
| 28 | name: "VtsHalAudioEffectTargetTest_default", |
Kevin Rocard | 96d2cd9 | 2018-11-14 16:22:07 -0800 | [diff] [blame] | 29 | defaults: ["VtsHalTargetTestDefaults"], |
Chih-Hung Hsieh | ad1bf31 | 2022-02-17 21:56:13 -0800 | [diff] [blame] | 30 | tidy_timeout_srcs: [ |
| 31 | "VtsHalAudioEffectTargetTest.cpp", |
| 32 | ], |
Kevin Rocard | 96d2cd9 | 2018-11-14 16:22:07 -0800 | [diff] [blame] | 33 | srcs: [ |
| 34 | "VtsHalAudioEffectTargetTest.cpp", |
Mikhail Naganov | a8814e5 | 2020-08-06 23:34:26 +0000 | [diff] [blame] | 35 | "ValidateAudioEffectsConfiguration.cpp", |
Kevin Rocard | 96d2cd9 | 2018-11-14 16:22:07 -0800 | [diff] [blame] | 36 | ], |
| 37 | static_libs: [ |
| 38 | "android.hardware.audio.common.test.utility", |
Kevin Rocard | 96d2cd9 | 2018-11-14 16:22:07 -0800 | [diff] [blame] | 39 | "android.hidl.allocator@1.0", |
| 40 | "android.hidl.memory@1.0", |
| 41 | "libeffectsconfig", |
Kevin Rocard | 96d2cd9 | 2018-11-14 16:22:07 -0800 | [diff] [blame] | 42 | "libxml2", |
| 43 | ], |
| 44 | header_libs: [ |
| 45 | "android.hardware.audio.common.util@all-versions", |
| 46 | ], |
Mikhail Naganov | a8814e5 | 2020-08-06 23:34:26 +0000 | [diff] [blame] | 47 | test_suites: [ |
| 48 | "general-tests", |
| 49 | "vts", |
| 50 | ], |
Kevin Rocard | 1108d4a | 2018-11-15 18:51:07 -0800 | [diff] [blame] | 51 | } |
| 52 | |
| 53 | cc_test { |
| 54 | name: "VtsHalAudioEffectV2_0TargetTest", |
| 55 | defaults: ["VtsHalAudioEffectTargetTest_default"], |
Dan Shi | ba894f8 | 2020-03-26 00:06:39 -0700 | [diff] [blame] | 56 | // Use test_config for vts suite. |
nelsonli | 3c12e58 | 2019-12-12 13:53:49 +0800 | [diff] [blame] | 57 | // TODO(b/146104851): Add auto-gen rules and remove it. |
| 58 | test_config: "VtsHalAudioEffectV2_0TargetTest.xml", |
Kevin Rocard | 1108d4a | 2018-11-15 18:51:07 -0800 | [diff] [blame] | 59 | static_libs: [ |
| 60 | "android.hardware.audio.common@2.0", |
| 61 | "android.hardware.audio.effect@2.0", |
| 62 | ], |
nelsonli | 3c12e58 | 2019-12-12 13:53:49 +0800 | [diff] [blame] | 63 | data: [ |
| 64 | ":audio_effects_conf_V2_0", |
| 65 | ], |
Kevin Rocard | 96d2cd9 | 2018-11-14 16:22:07 -0800 | [diff] [blame] | 66 | cflags: [ |
| 67 | "-DMAJOR_VERSION=2", |
| 68 | "-DMINOR_VERSION=0", |
| 69 | "-include common/all-versions/VersionMacro.h", |
Mikhail Naganov | a8814e5 | 2020-08-06 23:34:26 +0000 | [diff] [blame] | 70 | ], |
Kevin Rocard | 96d2cd9 | 2018-11-14 16:22:07 -0800 | [diff] [blame] | 71 | } |
| 72 | |
| 73 | cc_test { |
| 74 | name: "VtsHalAudioEffectV4_0TargetTest", |
Kevin Rocard | 1108d4a | 2018-11-15 18:51:07 -0800 | [diff] [blame] | 75 | defaults: ["VtsHalAudioEffectTargetTest_default"], |
Dan Shi | ba894f8 | 2020-03-26 00:06:39 -0700 | [diff] [blame] | 76 | // Use test_config for vts suite. |
nelsonli | 3c12e58 | 2019-12-12 13:53:49 +0800 | [diff] [blame] | 77 | // TODO(b/146104851): Add auto-gen rules and remove it. |
| 78 | test_config: "VtsHalAudioEffectV4_0TargetTest.xml", |
Kevin Rocard | 96d2cd9 | 2018-11-14 16:22:07 -0800 | [diff] [blame] | 79 | static_libs: [ |
Kevin Rocard | 96d2cd9 | 2018-11-14 16:22:07 -0800 | [diff] [blame] | 80 | "android.hardware.audio.common@4.0", |
| 81 | "android.hardware.audio.effect@4.0", |
Kevin Rocard | 96d2cd9 | 2018-11-14 16:22:07 -0800 | [diff] [blame] | 82 | ], |
nelsonli | 3c12e58 | 2019-12-12 13:53:49 +0800 | [diff] [blame] | 83 | data: [ |
| 84 | ":audio_effects_conf_V4_0", |
| 85 | ], |
Kevin Rocard | 96d2cd9 | 2018-11-14 16:22:07 -0800 | [diff] [blame] | 86 | cflags: [ |
| 87 | "-DMAJOR_VERSION=4", |
| 88 | "-DMINOR_VERSION=0", |
| 89 | "-include common/all-versions/VersionMacro.h", |
Mikhail Naganov | a8814e5 | 2020-08-06 23:34:26 +0000 | [diff] [blame] | 90 | ], |
Kevin Rocard | 96d2cd9 | 2018-11-14 16:22:07 -0800 | [diff] [blame] | 91 | } |
Kevin Rocard | 20614ba | 2018-11-10 07:20:17 -0800 | [diff] [blame] | 92 | |
| 93 | cc_test { |
| 94 | name: "VtsHalAudioEffectV5_0TargetTest", |
| 95 | defaults: ["VtsHalAudioEffectTargetTest_default"], |
Dan Shi | ba894f8 | 2020-03-26 00:06:39 -0700 | [diff] [blame] | 96 | // Use test_config for vts suite. |
nelsonli | 3c12e58 | 2019-12-12 13:53:49 +0800 | [diff] [blame] | 97 | // TODO(b/146104851): Add auto-gen rules and remove it. |
| 98 | test_config: "VtsHalAudioEffectV5_0TargetTest.xml", |
Kevin Rocard | 20614ba | 2018-11-10 07:20:17 -0800 | [diff] [blame] | 99 | static_libs: [ |
| 100 | "android.hardware.audio.common@5.0", |
| 101 | "android.hardware.audio.effect@5.0", |
| 102 | ], |
nelsonli | 3c12e58 | 2019-12-12 13:53:49 +0800 | [diff] [blame] | 103 | data: [ |
| 104 | ":audio_effects_conf_V5_0", |
| 105 | ], |
Kevin Rocard | 20614ba | 2018-11-10 07:20:17 -0800 | [diff] [blame] | 106 | cflags: [ |
| 107 | "-DMAJOR_VERSION=5", |
| 108 | "-DMINOR_VERSION=0", |
| 109 | "-include common/all-versions/VersionMacro.h", |
Mikhail Naganov | a8814e5 | 2020-08-06 23:34:26 +0000 | [diff] [blame] | 110 | ], |
Kevin Rocard | 20614ba | 2018-11-10 07:20:17 -0800 | [diff] [blame] | 111 | } |
| 112 | |
Kevin Rocard | 2a515e1 | 2019-09-30 19:53:00 +0100 | [diff] [blame] | 113 | cc_test { |
| 114 | name: "VtsHalAudioEffectV6_0TargetTest", |
| 115 | defaults: ["VtsHalAudioEffectTargetTest_default"], |
Dan Shi | ba894f8 | 2020-03-26 00:06:39 -0700 | [diff] [blame] | 116 | // Use test_config for vts suite. |
nelsonli | 3c12e58 | 2019-12-12 13:53:49 +0800 | [diff] [blame] | 117 | // TODO(b/146104851): Add auto-gen rules and remove it. |
| 118 | test_config: "VtsHalAudioEffectV6_0TargetTest.xml", |
Kevin Rocard | 2a515e1 | 2019-09-30 19:53:00 +0100 | [diff] [blame] | 119 | static_libs: [ |
| 120 | "android.hardware.audio.common@6.0", |
| 121 | "android.hardware.audio.effect@6.0", |
| 122 | ], |
nelsonli | 3c12e58 | 2019-12-12 13:53:49 +0800 | [diff] [blame] | 123 | data: [ |
| 124 | ":audio_effects_conf_V6_0", |
| 125 | ], |
Kevin Rocard | 2a515e1 | 2019-09-30 19:53:00 +0100 | [diff] [blame] | 126 | cflags: [ |
| 127 | "-DMAJOR_VERSION=6", |
| 128 | "-DMINOR_VERSION=0", |
| 129 | "-include common/all-versions/VersionMacro.h", |
Mikhail Naganov | a8814e5 | 2020-08-06 23:34:26 +0000 | [diff] [blame] | 130 | ], |
Kevin Rocard | 2a515e1 | 2019-09-30 19:53:00 +0100 | [diff] [blame] | 131 | } |
Mikhail Naganov | 60ced76 | 2020-07-23 18:08:26 +0000 | [diff] [blame] | 132 | |
| 133 | cc_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 Naganov | d72a7c2 | 2020-08-14 00:16:09 +0000 | [diff] [blame] | 141 | "android.hardware.audio.common@7.0-enums", |
Mikhail Naganov | 60ced76 | 2020-07-23 18:08:26 +0000 | [diff] [blame] | 142 | "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 Naganov | a8814e5 | 2020-08-06 23:34:26 +0000 | [diff] [blame] | 151 | ], |
Mikhail Naganov | 60ced76 | 2020-07-23 18:08:26 +0000 | [diff] [blame] | 152 | } |