blob: 47b0824fd087cb74ed07e995bcf3f80e497dc1e4 [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 {
Michael Ensing0f0ca6e2021-01-12 16:13:20 -0800103 name: "inputflinger_input_reader_fuzzer",
104 defaults: [
105 "inputflinger_fuzz_defaults",
106 ],
107 srcs: [
108 "InputReaderFuzzer.cpp",
109 ],
110}
111
112cc_fuzz {
Michael Ensing910968d2020-07-19 17:19:31 -0700113 name: "inputflinger_blocking_queue_fuzzer",
114 defaults: [
115 "inputflinger_fuzz_defaults",
116 ],
117 srcs: [
118 "BlockingQueueFuzzer.cpp",
119 ],
120}
121
122cc_fuzz {
123 name: "inputflinger_input_classifier_fuzzer",
124 defaults: [
125 "inputflinger_fuzz_defaults",
126 ],
127 srcs: [
128 "InputClassifierFuzzer.cpp",
129 ],
130}
Siarhei Vishniakou8bea9db2023-06-15 19:51:24 -0700131
132cc_fuzz {
133 name: "inputflinger_latencytracker_fuzzer",
134 defaults: [
135 "inputflinger_fuzz_defaults",
136 "libinputdispatcher_defaults",
137 ],
138 shared_libs: [
139 "libinputreporter",
140 ],
141 srcs: [
142 "LatencyTrackerFuzzer.cpp",
143 ],
144}