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 * Originally developed and contributed by Ittiam Systems Pvt. Ltd, Bangalore
19 */
20
21package {
22    // See: http://go/android-license-faq
23    // A large-scale-change added 'default_applicable_licenses' to import
24    // all of the 'license_kinds' from "frameworks_av_license"
25    // to get the below license kinds:
26    //   SPDX-license-identifier-Apache-2.0
27    default_applicable_licenses: ["frameworks_av_license"],
28}
29
30cc_defaults {
31    name: "mediaresourcemanager_fuzzer_defaults",
32    defaults: [
33        "service_fuzzer_defaults",
34    ],
35    static_libs: [
36        "liblog",
37        "libresourcemanagerservice",
38    ],
39    shared_libs: [
40        "libmedia",
41        "libmediautils",
42        "libstats_media_metrics",
43        "libstatspull",
44        "libstatssocket",
45        "libactivitymanager_aidl",
46        "aconfig_mediacodec_flags_c_lib",
47    ],
48    fuzz_config: {
49        cc: [
50            "girishshetty@google.com",
51        ],
52        componentid: 155276,
53        hotlists: [
54            "4593311",
55        ],
56        description: "The fuzzer targets the APIs of libresourcemanagerservice",
57        vector: "remote",
58        service_privilege: "constrained",
59        users: "multi_user",
60        fuzzed_code_usage: "shipped",
61    },
62}
63
64cc_fuzz {
65    name: "mediaresourcemanager_fuzzer",
66    defaults: [
67        "mediaresourcemanager_fuzzer_defaults",
68    ],
69    srcs: [
70        "mediaresourcemanager_fuzzer.cpp",
71    ],
72}
73
74cc_fuzz {
75    name: "resourcemanager_service_fuzzer",
76    defaults: [
77        "mediaresourcemanager_fuzzer_defaults",
78    ],
79    srcs: [
80        "resourcemanager_service_fuzzer.cpp",
81    ],
82}
83
84cc_fuzz {
85    name: "resourceobserver_service_fuzzer",
86    defaults: [
87        "mediaresourcemanager_fuzzer_defaults",
88    ],
89    static_libs: [
90        "resourceobserver_aidl_interface-V1-ndk",
91    ],
92    srcs: [
93        "resourceobserver_service_fuzzer.cpp",
94    ],
95    fuzz_config: {
96        triage_assignee: "waghpawan@google.com",
97    },
98}
99