blob: ae70e67cbb0329c2a99c1bc3c29721fbf43cab7c [file] [log] [blame]
Siarhei Vishniakouf9cb2a72021-07-09 03:22:42 +00001// 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 // See: http://go/android-license-faq
17 // A large-scale-change added 'default_applicable_licenses' to import
18 // all of the 'license_kinds' from "frameworks_native_license"
19 // to get the below license kinds:
20 // SPDX-license-identifier-Apache-2.0
21 default_applicable_licenses: ["frameworks_native_license"],
22}
23
Siarhei Vishniakouf9cb2a72021-07-09 03:22:42 +000024cc_fuzz {
25 name: "inputflinger_latencytracker_fuzzer",
26 defaults: [
27 "inputflinger_defaults",
28 ],
29 include_dirs: [
30 "frameworks/native/services/inputflinger",
31 ],
32 shared_libs: [
33 "libbase",
34 "libbinder",
35 "liblog",
Siarhei Vishniakouf9cb2a72021-07-09 03:22:42 +000036 "libutils",
37 "libinput",
38 "libinputflinger",
39 ],
40 srcs: [
41 "LatencyTrackerFuzzer.cpp",
42 ],
Anis Assid96387b2022-03-08 20:02:03 +000043 fuzz_config: {
Siarhei Vishniakou862ae212022-09-28 15:17:28 -070044 cc: ["android-framework-input@google.com"],
Anis Assid96387b2022-03-08 20:02:03 +000045 },
Siarhei Vishniakouf9cb2a72021-07-09 03:22:42 +000046}
Michael Ensingb8d93262020-05-12 00:41:30 -070047
48cc_defaults {
49 name: "inputflinger_fuzz_defaults",
50 defaults: [
51 "inputflinger_defaults",
52 ],
53 include_dirs: [
54 "frameworks/native/services/inputflinger",
55 ],
56 shared_libs: [
57 "android.hardware.input.classifier@1.0",
Harry Cuttsd1f18fa2022-12-08 14:28:02 +000058 "android.hardware.input.processor-V1-ndk",
Michael Ensingb8d93262020-05-12 00:41:30 -070059 "libbase",
60 "libbinder",
61 "libcutils",
62 "liblog",
63 "libutils",
Michael Ensingb8d93262020-05-12 00:41:30 -070064 "libinput",
65 "libinputflinger",
66 "libinputreader",
67 "libinputflinger_base",
68 "libstatslog",
69 ],
70 header_libs: [
71 "libbatteryservice_headers",
72 "libinputreader_headers",
73 ],
74 fuzz_config: {
Siarhei Vishniakou862ae212022-09-28 15:17:28 -070075 cc: ["android-framework-input@google.com"],
Ayushi Khopkar4cb1d532023-03-20 18:52:31 +053076 componentid: 155276,
77 hotlists: [
78 "4593311",
79 ],
80 description: "The fuzzer targets the APIs of libinputflinger library",
81 vector: "local_no_privileges_required",
82 service_privilege: "privileged",
83 users: "multi_user",
84 fuzzed_code_usage: "shipped",
Michael Ensingb8d93262020-05-12 00:41:30 -070085 },
86}
87
88cc_fuzz {
89 name: "inputflinger_cursor_input_fuzzer",
90 defaults: [
91 "inputflinger_fuzz_defaults",
92 ],
93 srcs: [
94 "CursorInputFuzzer.cpp",
95 ],
96}
97
98cc_fuzz {
99 name: "inputflinger_keyboard_input_fuzzer",
100 defaults: [
101 "inputflinger_fuzz_defaults",
102 ],
103 srcs: [
104 "KeyboardInputFuzzer.cpp",
105 ],
106}
107
108cc_fuzz {
109 name: "inputflinger_multitouch_input_fuzzer",
110 defaults: [
111 "inputflinger_fuzz_defaults",
112 ],
113 srcs: [
114 "MultiTouchInputFuzzer.cpp",
115 ],
116}
117
118cc_fuzz {
119 name: "inputflinger_switch_input_fuzzer",
120 defaults: [
121 "inputflinger_fuzz_defaults",
122 ],
123 srcs: [
124 "SwitchInputFuzzer.cpp",
125 ],
126}
Michael Ensing910968d2020-07-19 17:19:31 -0700127
128cc_fuzz {
Michael Ensing0f0ca6e2021-01-12 16:13:20 -0800129 name: "inputflinger_input_reader_fuzzer",
130 defaults: [
131 "inputflinger_fuzz_defaults",
132 ],
133 srcs: [
134 "InputReaderFuzzer.cpp",
135 ],
136}
137
138cc_fuzz {
Michael Ensing910968d2020-07-19 17:19:31 -0700139 name: "inputflinger_blocking_queue_fuzzer",
140 defaults: [
141 "inputflinger_fuzz_defaults",
142 ],
143 srcs: [
144 "BlockingQueueFuzzer.cpp",
145 ],
146}
147
148cc_fuzz {
149 name: "inputflinger_input_classifier_fuzzer",
150 defaults: [
151 "inputflinger_fuzz_defaults",
152 ],
153 srcs: [
154 "InputClassifierFuzzer.cpp",
155 ],
156}