xref: /aosp_15_r20/frameworks/av/services/audiopolicy/fuzzer/Android.bp (revision ec779b8e0859a360c3d303172224686826e6e0e1)
1/******************************************************************************
2 *
3 * Copyright (C) 2021 The Android Open Source Project
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at:
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 *
17 ******************************************************************************/
18
19package {
20    default_team: "trendy_team_android_media_audio_framework",
21    // See: http://go/android-license-faq
22    // A large-scale-change added 'default_applicable_licenses' to import
23    // all of the 'license_kinds' from "frameworks_av_license"
24    // to get the below license kinds:
25    //   SPDX-license-identifier-Apache-2.0
26    default_applicable_licenses: ["frameworks_av_license"],
27}
28
29cc_fuzz {
30    name: "audiopolicy_fuzzer",
31    defaults: [
32        "libaudiopolicyservice_dependencies",
33    ],
34    srcs: [
35        "audiopolicy_fuzzer.cpp",
36    ],
37    static_libs: [
38        "[email protected]",
39    ],
40    include_dirs: [
41        "frameworks/av/services/audiopolicy", // include path outside of libaudiopolicyservice
42        "frameworks/av/services/audiopolicy/engine/interface", // for /tests/AudioPolicyTestManager.h:
43    ],
44    data: [":audiopolicyfuzzer_configuration_files"],
45    fuzz_config: {
46        cc: ["[email protected]"],
47        componentid: 155276,
48        hotlists: [
49            "4593311",
50        ],
51        description: "The fuzzer targets the APIs of libaudiopolicy",
52        vector: "local_no_privileges_required",
53        service_privilege: "privileged",
54        users: "multi_user",
55        fuzzed_code_usage: "shipped",
56    },
57}
58