blob: 55c2db6c91ede26afb903471e9c147ea174b13a2 [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",
Michael Ensing910968d2020-07-19 17:19:31 -070058 "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"],
Michael Ensingb8d93262020-05-12 00:41:30 -070076 },
77}
78
79cc_fuzz {
80 name: "inputflinger_cursor_input_fuzzer",
81 defaults: [
82 "inputflinger_fuzz_defaults",
83 ],
84 srcs: [
85 "CursorInputFuzzer.cpp",
86 ],
87}
88
89cc_fuzz {
90 name: "inputflinger_keyboard_input_fuzzer",
91 defaults: [
92 "inputflinger_fuzz_defaults",
93 ],
94 srcs: [
95 "KeyboardInputFuzzer.cpp",
96 ],
97}
98
99cc_fuzz {
100 name: "inputflinger_multitouch_input_fuzzer",
101 defaults: [
102 "inputflinger_fuzz_defaults",
103 ],
104 srcs: [
105 "MultiTouchInputFuzzer.cpp",
106 ],
107}
108
109cc_fuzz {
110 name: "inputflinger_switch_input_fuzzer",
111 defaults: [
112 "inputflinger_fuzz_defaults",
113 ],
114 srcs: [
115 "SwitchInputFuzzer.cpp",
116 ],
117}
Michael Ensing910968d2020-07-19 17:19:31 -0700118
119cc_fuzz {
Michael Ensing0f0ca6e2021-01-12 16:13:20 -0800120 name: "inputflinger_input_reader_fuzzer",
121 defaults: [
122 "inputflinger_fuzz_defaults",
123 ],
124 srcs: [
125 "InputReaderFuzzer.cpp",
126 ],
127}
128
129cc_fuzz {
Michael Ensing910968d2020-07-19 17:19:31 -0700130 name: "inputflinger_blocking_queue_fuzzer",
131 defaults: [
132 "inputflinger_fuzz_defaults",
133 ],
134 srcs: [
135 "BlockingQueueFuzzer.cpp",
136 ],
137}
138
139cc_fuzz {
140 name: "inputflinger_input_classifier_fuzzer",
141 defaults: [
142 "inputflinger_fuzz_defaults",
143 ],
144 srcs: [
145 "InputClassifierFuzzer.cpp",
146 ],
147}