blob: 9313a890051c976b88a800c14c59362be54e272b [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
Michael Ensingb8d93262020-05-12 00:41:30 -070024cc_defaults {
25 name: "inputflinger_fuzz_defaults",
26 defaults: [
27 "inputflinger_defaults",
Siarhei Vishniakou8bea9db2023-06-15 19:51:24 -070028 "libinputflinger_defaults",
Michael Ensingb8d93262020-05-12 00:41:30 -070029 ],
Siarhei Vishniakou8bea9db2023-06-15 19:51:24 -070030 host_supported: true,
Michael Ensingb8d93262020-05-12 00:41:30 -070031 include_dirs: [
32 "frameworks/native/services/inputflinger",
33 ],
34 shared_libs: [
Michael Ensingb8d93262020-05-12 00:41:30 -070035 "libinputreader",
36 "libinputflinger_base",
Michael Ensingb8d93262020-05-12 00:41:30 -070037 ],
Siarhei Vishniakou8bea9db2023-06-15 19:51:24 -070038 sanitize: {
39 hwaddress: true,
40 undefined: true,
41 all_undefined: true,
42 diag: {
43 undefined: true,
44 },
45 },
46 target: {
47 host: {
48 sanitize: {
49 address: true,
50 },
51 },
52 },
Michael Ensingb8d93262020-05-12 00:41:30 -070053 header_libs: [
54 "libbatteryservice_headers",
55 "libinputreader_headers",
56 ],
57 fuzz_config: {
Siarhei Vishniakou862ae212022-09-28 15:17:28 -070058 cc: ["android-framework-input@google.com"],
Ayushi Khopkar4cb1d532023-03-20 18:52:31 +053059 componentid: 155276,
60 hotlists: [
61 "4593311",
62 ],
63 description: "The fuzzer targets the APIs of libinputflinger library",
64 vector: "local_no_privileges_required",
65 service_privilege: "privileged",
66 users: "multi_user",
67 fuzzed_code_usage: "shipped",
Michael Ensingb8d93262020-05-12 00:41:30 -070068 },
69}
70
71cc_fuzz {
72 name: "inputflinger_cursor_input_fuzzer",
73 defaults: [
74 "inputflinger_fuzz_defaults",
75 ],
76 srcs: [
77 "CursorInputFuzzer.cpp",
78 ],
79}
80
81cc_fuzz {
82 name: "inputflinger_keyboard_input_fuzzer",
83 defaults: [
84 "inputflinger_fuzz_defaults",
85 ],
86 srcs: [
87 "KeyboardInputFuzzer.cpp",
88 ],
89}
90
91cc_fuzz {
92 name: "inputflinger_multitouch_input_fuzzer",
93 defaults: [
94 "inputflinger_fuzz_defaults",
95 ],
96 srcs: [
97 "MultiTouchInputFuzzer.cpp",
98 ],
99}
100
101cc_fuzz {
102 name: "inputflinger_switch_input_fuzzer",
103 defaults: [
104 "inputflinger_fuzz_defaults",
105 ],
106 srcs: [
107 "SwitchInputFuzzer.cpp",
108 ],
109}
Michael Ensing910968d2020-07-19 17:19:31 -0700110
111cc_fuzz {
Harry Cuttsccb75e82023-06-23 14:08:06 +0000112 name: "inputflinger_touchpad_input_fuzzer",
113 defaults: [
114 "inputflinger_fuzz_defaults",
115 ],
116 srcs: [
117 "TouchpadInputFuzzer.cpp",
118 ],
119 static_libs: [
120 "libchrome-gestures",
121 ],
122 header_libs: [
123 "libchrome-gestures_headers",
124 ],
125}
126
127cc_fuzz {
Michael Ensing0f0ca6e2021-01-12 16:13:20 -0800128 name: "inputflinger_input_reader_fuzzer",
129 defaults: [
130 "inputflinger_fuzz_defaults",
131 ],
132 srcs: [
133 "InputReaderFuzzer.cpp",
134 ],
135}
136
137cc_fuzz {
Michael Ensing910968d2020-07-19 17:19:31 -0700138 name: "inputflinger_blocking_queue_fuzzer",
139 defaults: [
140 "inputflinger_fuzz_defaults",
141 ],
142 srcs: [
143 "BlockingQueueFuzzer.cpp",
144 ],
145}
146
147cc_fuzz {
148 name: "inputflinger_input_classifier_fuzzer",
149 defaults: [
150 "inputflinger_fuzz_defaults",
151 ],
152 srcs: [
153 "InputClassifierFuzzer.cpp",
154 ],
155}
Siarhei Vishniakou8bea9db2023-06-15 19:51:24 -0700156
157cc_fuzz {
158 name: "inputflinger_latencytracker_fuzzer",
159 defaults: [
160 "inputflinger_fuzz_defaults",
161 "libinputdispatcher_defaults",
162 ],
163 shared_libs: [
164 "libinputreporter",
165 ],
166 srcs: [
167 "LatencyTrackerFuzzer.cpp",
168 ],
169}