• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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        "android.media.codec-aconfig-cc",
37        "liblog",
38        "libresourcemanagerservice",
39    ],
40    shared_libs: [
41        "aconfig_mediacodec_flags_c_lib",
42        "libaconfig_storage_read_api_cc",
43        "libactivitymanager_aidl",
44        "libmedia",
45        "libmediautils",
46        "libstats_media_metrics",
47        "libstatspull",
48        "libstatssocket",
49    ],
50    fuzz_config: {
51        cc: [
52            "girishshetty@google.com",
53        ],
54        componentid: 155276,
55        hotlists: [
56            "4593311",
57        ],
58        description: "The fuzzer targets the APIs of libresourcemanagerservice",
59        vector: "remote",
60        service_privilege: "constrained",
61        users: "multi_user",
62        fuzzed_code_usage: "shipped",
63    },
64}
65
66cc_fuzz {
67    name: "mediaresourcemanager_fuzzer",
68    defaults: [
69        "mediaresourcemanager_fuzzer_defaults",
70    ],
71    srcs: [
72        "mediaresourcemanager_fuzzer.cpp",
73    ],
74}
75
76cc_fuzz {
77    name: "resourcemanager_service_fuzzer",
78    defaults: [
79        "mediaresourcemanager_fuzzer_defaults",
80    ],
81    srcs: [
82        "resourcemanager_service_fuzzer.cpp",
83    ],
84}
85
86cc_fuzz {
87    name: "resourceobserver_service_fuzzer",
88    defaults: [
89        "mediaresourcemanager_fuzzer_defaults",
90    ],
91    static_libs: [
92        "resourceobserver_aidl_interface-V1-ndk",
93    ],
94    srcs: [
95        "resourceobserver_service_fuzzer.cpp",
96    ],
97    fuzz_config: {
98        triage_assignee: "waghpawan@google.com",
99    },
100}
101