1// Copyright (C) 2021 The Android Open Source Project
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//      http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15package {
16    default_applicable_licenses: ["Android-Apache-2.0"],
17}
18
19cc_test_library {
20    name: "libCtsMediaMetricsHostTestAppJni",
21    srcs: ["jni/aaudio_stream.cpp"],
22    cflags: [
23        "-Wall",
24        "-Werror",
25    ],
26    header_libs: ["jni_headers"],
27    shared_libs: [
28        "libaaudio",
29    ],
30    static_libs: [
31        "libnativetesthelper_jni",
32    ],
33    stl: "c++_static",
34    gtest: false,
35    sdk_version: "current",
36}
37
38android_test_helper_app {
39    name: "CtsMediaMetricsHostTestApp",
40    defaults: ["cts_defaults"],
41    test_suites: [
42        "cts",
43        "general-tests",
44    ],
45    srcs: [
46        "src/**/*.java",
47    ],
48    jni_libs: [
49        "libCtsMediaMetricsHostTestAppJni",
50    ],
51    static_libs: [
52        "androidx.test.rules",
53        "compatibility-device-util-axt",
54        "truth-prebuilt",
55    ],
56    sdk_version: "test_current",
57    min_sdk_version: "30",
58    compile_multilib: "both",
59}
60