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 "frameworks_av_license" 6 // to get the below license kinds: 7 // SPDX-license-identifier-Apache-2.0 8 default_applicable_licenses: ["frameworks_av_license"], 9} 10 11cc_defaults { 12 name: "libaudioclient_tests_defaults", 13 test_suites: ["device-tests"], 14 cflags: [ 15 "-Wall", 16 "-Werror", 17 ], 18 shared_libs: [ 19 "libbinder", 20 "libcutils", 21 "liblog", 22 "libutils", 23 ], 24 sanitize: { 25 misc_undefined: [ 26 "signed-integer-overflow", 27 "unsigned-integer-overflow", 28 ], 29 }, 30} 31 32cc_defaults { 33 name: "audio_aidl_conversion_test_defaults", 34 defaults: [ 35 "latest_android_media_audio_common_types_cpp_static", 36 "libaudioclient_tests_defaults", 37 ], 38 static_libs: [ 39 "audioclient-types-aidl-cpp", 40 "av-types-aidl-cpp", 41 "libaudio_aidl_conversion_common_cpp", 42 "libaudioclient_aidl_conversion", 43 "libstagefright_foundation", 44 ], 45} 46 47cc_test { 48 name: "audio_aidl_conversion_tests", 49 defaults: [ 50 "audio_aidl_conversion_test_defaults", 51 ], 52 srcs: ["audio_aidl_legacy_conversion_tests.cpp"], 53} 54 55cc_test { 56 name: "audio_aidl_status_tests", 57 defaults: ["libaudioclient_tests_defaults"], 58 srcs: ["audio_aidl_status_tests.cpp"], 59 shared_libs: [ 60 "libaudioclient_aidl_conversion", 61 ], 62} 63 64cc_test { 65 name: "test_create_audiotrack", 66 defaults: ["libaudioclient_tests_defaults"], 67 srcs: [ 68 "test_create_audiotrack.cpp", 69 "test_create_utils.cpp", 70 ], 71 header_libs: [ 72 "libmedia_headers", 73 "libmediametrics_headers", 74 ], 75 shared_libs: [ 76 "framework-permission-aidl-cpp", 77 "libaudioclient", 78 ], 79 data: ["track_test_input_*.txt"], 80} 81 82cc_test { 83 name: "test_create_audiorecord", 84 defaults: ["libaudioclient_tests_defaults"], 85 srcs: [ 86 "test_create_audiorecord.cpp", 87 "test_create_utils.cpp", 88 ], 89 header_libs: [ 90 "libmedia_headers", 91 "libmediametrics_headers", 92 ], 93 shared_libs: [ 94 "framework-permission-aidl-cpp", 95 "libaudioclient", 96 ], 97 data: ["record_test_input_*.txt"], 98} 99 100cc_defaults { 101 name: "libaudioclient_gtests_defaults", 102 defaults: [ 103 "audio_aidl_conversion_test_defaults", 104 ], 105 shared_libs: [ 106 "capture_state_listener-aidl-cpp", 107 "framework-permission-aidl-cpp", 108 "libaudioutils", 109 "libbase", 110 "libcgrouprc", 111 "libdl", 112 "libmedia", 113 "libmedia_helper", 114 "libmediametrics", 115 "libmediautils", 116 "libnblog", 117 "libprocessgroup", 118 "libshmemcompat", 119 "mediametricsservice-aidl-cpp", 120 "packagemanager_aidl-cpp", 121 "shared-file-region-aidl-cpp", 122 ], 123 static_libs: [ 124 "android.hardware.audio.common@7.0-enums", 125 "audio-permission-aidl-cpp", 126 "audioclient-types-aidl-cpp", 127 "audioflinger-aidl-cpp", 128 "audiopolicy-aidl-cpp", 129 "audiopolicy-types-aidl-cpp", 130 "av-types-aidl-cpp", 131 "effect-aidl-cpp", 132 "libaudioclient", 133 "libaudiofoundation", 134 "libaudiomanager", 135 "libaudiopolicy", 136 ], 137 data: ["bbb*.raw"], 138 srcs: [ 139 "audio_test_utils.cpp", 140 "test_execution_tracer.cpp", 141 ], 142 test_config_template: "audio_test_template.xml", 143} 144 145cc_test { 146 name: "audiorecord_tests", 147 defaults: ["libaudioclient_gtests_defaults"], 148 srcs: [ 149 "audiorecord_tests.cpp", 150 ], 151} 152 153cc_test { 154 name: "audiotrack_tests", 155 defaults: ["libaudioclient_gtests_defaults"], 156 srcs: [ 157 "audiotrack_tests.cpp", 158 ], 159} 160 161cc_test { 162 name: "audioeffect_tests", 163 defaults: ["libaudioclient_gtests_defaults"], 164 srcs: [ 165 "audioeffect_tests.cpp", 166 ], 167} 168 169cc_test { 170 name: "audioeffect_analysis", 171 defaults: ["libaudioclient_gtests_defaults"], 172 // flag needed for pfft/pffft.hpp 173 cflags: [ 174 "-Wno-error=unused-parameter", 175 ], 176 srcs: [ 177 "audioeffect_analyser.cpp", 178 ], 179 static_libs: [ 180 "libpffft", 181 ], 182} 183 184cc_test { 185 name: "audiorouting_tests", 186 defaults: ["libaudioclient_gtests_defaults"], 187 srcs: [ 188 "audiorouting_tests.cpp", 189 ], 190} 191 192cc_test { 193 name: "audioclient_serialization_tests", 194 defaults: ["libaudioclient_gtests_defaults"], 195 srcs: [ 196 "audioclient_serialization_tests.cpp", 197 ], 198} 199 200cc_test { 201 name: "trackplayerbase_tests", 202 defaults: ["libaudioclient_gtests_defaults"], 203 srcs: [ 204 "trackplayerbase_tests.cpp", 205 ], 206} 207 208cc_test { 209 name: "audiosystem_tests", 210 defaults: ["libaudioclient_gtests_defaults"], 211 srcs: [ 212 "audiosystem_tests.cpp", 213 ], 214} 215