1package { 2 default_team: "trendy_team_android_media_audio_framework", 3 // See: http://go/android-license-faq 4 // A large-scale-change added 'default_applicable_licenses' to import 5 // all of the 'license_kinds' from "hardware_interfaces_license" 6 // to get the below license kinds: 7 // SPDX-license-identifier-Apache-2.0 8 default_applicable_licenses: ["hardware_interfaces_license"], 9} 10 11cc_defaults { 12 name: "VtsHalAudioTargetTestDefaults", 13 defaults: [ 14 "latest_android_hardware_audio_common_ndk_static", 15 "latest_android_hardware_audio_effect_ndk_static", 16 "latest_android_media_audio_common_types_ndk_static", 17 "use_libaidlvintf_gtest_helper_static", 18 "VtsHalTargetTestDefaults", 19 ], 20 shared_libs: [ 21 "libbinder_ndk", 22 "libfmq", 23 ], 24 static_libs: [ 25 "android.hardware.common-V2-ndk", 26 "android.hardware.common.fmq-V1-ndk", 27 "libaudioaidlcommon", 28 "libaidlcommonsupport", 29 "libpffft", 30 ], 31 header_libs: [ 32 "libaudioaidl_headers", 33 "libexpectedutils_headers", 34 ], 35 cflags: [ 36 "-Wall", 37 "-Wextra", 38 "-Werror", 39 "-Wthread-safety", 40 "-Wno-error=unused-parameter", 41 ], 42 test_config_template: "VtsHalAudioTargetTestTemplate.xml", 43 test_suites: [ 44 "general-tests", 45 "vts", 46 ], 47 srcs: [ 48 "TestUtils.cpp", 49 ], 50} 51 52cc_defaults { 53 name: "VtsHalAudioEffectTargetTestDefaults", 54 defaults: [ 55 "latest_android_hardware_audio_effect_ndk_static", 56 "VtsHalAudioTargetTestDefaults", 57 ], 58 srcs: [ 59 ":effectCommonFile", 60 ], 61} 62 63cc_test { 64 name: "VtsHalAudioCoreTargetTest", 65 defaults: [ 66 "VtsHalAudioTargetTestDefaults", 67 "latest_android_hardware_audio_core_ndk_static", 68 "latest_android_hardware_audio_core_sounddose_ndk_static", 69 ], 70 shared_libs: [ 71 "libcutils", 72 ], 73 srcs: [ 74 "ModuleConfig.cpp", 75 "VtsHalAudioCoreConfigTargetTest.cpp", 76 "VtsHalAudioCoreModuleTargetTest.cpp", 77 ], 78} 79 80cc_test { 81 name: "VtsHalAudioEffectFactoryTargetTest", 82 defaults: ["VtsHalAudioEffectTargetTestDefaults"], 83 srcs: ["VtsHalAudioEffectFactoryTargetTest.cpp"], 84} 85 86cc_test { 87 name: "VtsHalAudioEffectTargetTest", 88 defaults: ["VtsHalAudioEffectTargetTestDefaults"], 89 srcs: ["VtsHalAudioEffectTargetTest.cpp"], 90} 91 92cc_test { 93 name: "VtsHalBassBoostTargetTest", 94 defaults: ["VtsHalAudioEffectTargetTestDefaults"], 95 srcs: ["VtsHalBassBoostTargetTest.cpp"], 96 cflags: [ 97 "-Wno-error=unused-parameter", 98 ], 99 static_libs: [ 100 "libpffft", 101 ], 102} 103 104cc_test { 105 name: "VtsHalDownmixTargetTest", 106 defaults: ["VtsHalAudioEffectTargetTestDefaults"], 107 srcs: ["VtsHalDownmixTargetTest.cpp"], 108 shared_libs: [ 109 "libaudioutils", 110 ], 111} 112 113cc_test { 114 name: "VtsHalDynamicsProcessingTargetTest", 115 defaults: ["VtsHalAudioEffectTargetTestDefaults"], 116 static_libs: ["libaudioaidlranges"], 117 srcs: ["VtsHalDynamicsProcessingTest.cpp"], 118} 119 120cc_test { 121 name: "VtsHalEnvironmentalReverbTargetTest", 122 defaults: ["VtsHalAudioEffectTargetTestDefaults"], 123 srcs: ["VtsHalEnvironmentalReverbTargetTest.cpp"], 124 shared_libs: [ 125 "libaudioutils", 126 ], 127} 128 129cc_test { 130 name: "VtsHalEqualizerTargetTest", 131 defaults: ["VtsHalAudioEffectTargetTestDefaults"], 132 srcs: ["VtsHalEqualizerTargetTest.cpp"], 133} 134 135cc_test { 136 name: "VtsHalHapticGeneratorTargetTest", 137 defaults: ["VtsHalAudioEffectTargetTestDefaults"], 138 srcs: ["VtsHalHapticGeneratorTargetTest.cpp"], 139} 140 141cc_test { 142 name: "VtsHalLoudnessEnhancerTargetTest", 143 defaults: ["VtsHalAudioEffectTargetTestDefaults"], 144 srcs: ["VtsHalLoudnessEnhancerTargetTest.cpp"], 145} 146 147cc_test { 148 name: "VtsHalPresetReverbTargetTest", 149 defaults: ["VtsHalAudioEffectTargetTestDefaults"], 150 srcs: ["VtsHalPresetReverbTargetTest.cpp"], 151 shared_libs: [ 152 "libaudioutils", 153 ], 154} 155 156cc_test { 157 name: "VtsHalVirtualizerTargetTest", 158 defaults: ["VtsHalAudioEffectTargetTestDefaults"], 159 srcs: ["VtsHalVirtualizerTargetTest.cpp"], 160 shared_libs: [ 161 "libaudioutils", 162 ], 163} 164 165cc_test { 166 name: "VtsHalVisualizerTargetTest", 167 defaults: ["VtsHalAudioEffectTargetTestDefaults"], 168 srcs: ["VtsHalVisualizerTargetTest.cpp"], 169} 170 171cc_test { 172 name: "VtsHalVolumeTargetTest", 173 defaults: ["VtsHalAudioEffectTargetTestDefaults"], 174 srcs: ["VtsHalVolumeTargetTest.cpp"], 175} 176 177cc_test { 178 name: "VtsHalAECTargetTest", 179 defaults: ["VtsHalAudioEffectTargetTestDefaults"], 180 srcs: ["VtsHalAECTargetTest.cpp"], 181} 182 183cc_test { 184 name: "VtsHalAGC1TargetTest", 185 defaults: ["VtsHalAudioEffectTargetTestDefaults"], 186 srcs: ["VtsHalAGC1TargetTest.cpp"], 187} 188 189cc_test { 190 name: "VtsHalAGC2TargetTest", 191 defaults: ["VtsHalAudioEffectTargetTestDefaults"], 192 srcs: ["VtsHalAGC2TargetTest.cpp"], 193} 194 195cc_test { 196 name: "VtsHalNSTargetTest", 197 defaults: ["VtsHalAudioEffectTargetTestDefaults"], 198 srcs: ["VtsHalNSTargetTest.cpp"], 199} 200 201cc_test { 202 name: "VtsHalSpatializerTargetTest", 203 defaults: ["VtsHalAudioEffectTargetTestDefaults"], 204 srcs: ["VtsHalSpatializerTargetTest.cpp"], 205} 206