blob: d7980f564e0abca74760032d0c3ea5c1f75239b8 [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"],
Michael Ensingb8d93262020-05-12 00:41:30 -070059 },
60}
61
62cc_fuzz {
63 name: "inputflinger_cursor_input_fuzzer",
64 defaults: [
65 "inputflinger_fuzz_defaults",
66 ],
67 srcs: [
68 "CursorInputFuzzer.cpp",
69 ],
70}
71
72cc_fuzz {
73 name: "inputflinger_keyboard_input_fuzzer",
74 defaults: [
75 "inputflinger_fuzz_defaults",
76 ],
77 srcs: [
78 "KeyboardInputFuzzer.cpp",
79 ],
80}
81
82cc_fuzz {
83 name: "inputflinger_multitouch_input_fuzzer",
84 defaults: [
85 "inputflinger_fuzz_defaults",
86 ],
87 srcs: [
88 "MultiTouchInputFuzzer.cpp",
89 ],
90}
91
92cc_fuzz {
93 name: "inputflinger_switch_input_fuzzer",
94 defaults: [
95 "inputflinger_fuzz_defaults",
96 ],
97 srcs: [
98 "SwitchInputFuzzer.cpp",
99 ],
100}
Michael Ensing910968d2020-07-19 17:19:31 -0700101
102cc_fuzz {
Harry Cuttsccb75e82023-06-23 14:08:06 +0000103 name: "inputflinger_touchpad_input_fuzzer",
104 defaults: [
105 "inputflinger_fuzz_defaults",
106 ],
107 srcs: [
108 "TouchpadInputFuzzer.cpp",
109 ],
110 static_libs: [
111 "libchrome-gestures",
112 ],
113 header_libs: [
114 "libchrome-gestures_headers",
115 ],
116}
117
118cc_fuzz {
Michael Ensing0f0ca6e2021-01-12 16:13:20 -0800119 name: "inputflinger_input_reader_fuzzer",
120 defaults: [
121 "inputflinger_fuzz_defaults",
122 ],
123 srcs: [
124 "InputReaderFuzzer.cpp",
125 ],
126}
127
128cc_fuzz {
Michael Ensing910968d2020-07-19 17:19:31 -0700129 name: "inputflinger_blocking_queue_fuzzer",
130 defaults: [
131 "inputflinger_fuzz_defaults",
132 ],
133 srcs: [
134 "BlockingQueueFuzzer.cpp",
135 ],
136}
137
138cc_fuzz {
139 name: "inputflinger_input_classifier_fuzzer",
140 defaults: [
141 "inputflinger_fuzz_defaults",
142 ],
143 srcs: [
144 "InputClassifierFuzzer.cpp",
145 ],
146}
Siarhei Vishniakou8bea9db2023-06-15 19:51:24 -0700147
148cc_fuzz {
149 name: "inputflinger_latencytracker_fuzzer",
150 defaults: [
151 "inputflinger_fuzz_defaults",
152 "libinputdispatcher_defaults",
153 ],
154 shared_libs: [
155 "libinputreporter",
156 ],
157 srcs: [
158 "LatencyTrackerFuzzer.cpp",
159 ],
160}