blob: 05755acf6c62f6379488759475917da9e489a307 [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
24
25cc_fuzz {
26 name: "inputflinger_latencytracker_fuzzer",
27 defaults: [
28 "inputflinger_defaults",
29 ],
30 include_dirs: [
31 "frameworks/native/services/inputflinger",
32 ],
33 shared_libs: [
34 "libbase",
35 "libbinder",
36 "liblog",
37 "libui",
38 "libutils",
39 "libinput",
40 "libinputflinger",
41 ],
42 srcs: [
43 "LatencyTrackerFuzzer.cpp",
44 ],
Anis Assid96387b2022-03-08 20:02:03 +000045 fuzz_config: {
46 cc: ["android-framework-input@google.com"],
47 },
Siarhei Vishniakouf9cb2a72021-07-09 03:22:42 +000048}
Michael Ensingb8d93262020-05-12 00:41:30 -070049
50cc_defaults {
51 name: "inputflinger_fuzz_defaults",
52 defaults: [
53 "inputflinger_defaults",
54 ],
55 include_dirs: [
56 "frameworks/native/services/inputflinger",
57 ],
58 shared_libs: [
59 "android.hardware.input.classifier@1.0",
Michael Ensing910968d2020-07-19 17:19:31 -070060 "android.hardware.input.processor-V1-ndk",
Michael Ensingb8d93262020-05-12 00:41:30 -070061 "libbase",
62 "libbinder",
63 "libcutils",
64 "liblog",
65 "libutils",
66 "libui",
67 "libinput",
68 "libinputflinger",
69 "libinputreader",
70 "libinputflinger_base",
71 "libstatslog",
72 ],
73 header_libs: [
74 "libbatteryservice_headers",
75 "libinputreader_headers",
76 ],
77 fuzz_config: {
78 cc: ["android-framework-input@google.com"],
79 },
80}
81
82cc_fuzz {
83 name: "inputflinger_cursor_input_fuzzer",
84 defaults: [
85 "inputflinger_fuzz_defaults",
86 ],
87 srcs: [
88 "CursorInputFuzzer.cpp",
89 ],
90}
91
92cc_fuzz {
93 name: "inputflinger_keyboard_input_fuzzer",
94 defaults: [
95 "inputflinger_fuzz_defaults",
96 ],
97 srcs: [
98 "KeyboardInputFuzzer.cpp",
99 ],
100}
101
102cc_fuzz {
103 name: "inputflinger_multitouch_input_fuzzer",
104 defaults: [
105 "inputflinger_fuzz_defaults",
106 ],
107 srcs: [
108 "MultiTouchInputFuzzer.cpp",
109 ],
110}
111
112cc_fuzz {
113 name: "inputflinger_switch_input_fuzzer",
114 defaults: [
115 "inputflinger_fuzz_defaults",
116 ],
117 srcs: [
118 "SwitchInputFuzzer.cpp",
119 ],
120}
Michael Ensing910968d2020-07-19 17:19:31 -0700121
122cc_fuzz {
123 name: "inputflinger_blocking_queue_fuzzer",
124 defaults: [
125 "inputflinger_fuzz_defaults",
126 ],
127 srcs: [
128 "BlockingQueueFuzzer.cpp",
129 ],
130}
131
132cc_fuzz {
133 name: "inputflinger_input_classifier_fuzzer",
134 defaults: [
135 "inputflinger_fuzz_defaults",
136 ],
137 srcs: [
138 "InputClassifierFuzzer.cpp",
139 ],
140}