Siarhei Vishniakou | f9cb2a7 | 2021-07-09 03:22:42 +0000 | [diff] [blame] | 1 | // 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 | |
| 15 | package { |
| 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 Vishniakou | f9cb2a7 | 2021-07-09 03:22:42 +0000 | [diff] [blame] | 24 | cc_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 Vishniakou | f9cb2a7 | 2021-07-09 03:22:42 +0000 | [diff] [blame] | 36 | "libutils", |
| 37 | "libinput", |
| 38 | "libinputflinger", |
| 39 | ], |
| 40 | srcs: [ |
| 41 | "LatencyTrackerFuzzer.cpp", |
| 42 | ], |
Anis Assi | d96387b | 2022-03-08 20:02:03 +0000 | [diff] [blame] | 43 | fuzz_config: { |
Siarhei Vishniakou | 862ae21 | 2022-09-28 15:17:28 -0700 | [diff] [blame^] | 44 | cc: ["android-framework-input@google.com"], |
Anis Assi | d96387b | 2022-03-08 20:02:03 +0000 | [diff] [blame] | 45 | }, |
Siarhei Vishniakou | f9cb2a7 | 2021-07-09 03:22:42 +0000 | [diff] [blame] | 46 | } |
Michael Ensing | b8d9326 | 2020-05-12 00:41:30 -0700 | [diff] [blame] | 47 | |
| 48 | cc_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 Ensing | 910968d | 2020-07-19 17:19:31 -0700 | [diff] [blame] | 58 | "android.hardware.input.processor-V1-ndk", |
Michael Ensing | b8d9326 | 2020-05-12 00:41:30 -0700 | [diff] [blame] | 59 | "libbase", |
| 60 | "libbinder", |
| 61 | "libcutils", |
| 62 | "liblog", |
| 63 | "libutils", |
Michael Ensing | b8d9326 | 2020-05-12 00:41:30 -0700 | [diff] [blame] | 64 | "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 Vishniakou | 862ae21 | 2022-09-28 15:17:28 -0700 | [diff] [blame^] | 75 | cc: ["android-framework-input@google.com"], |
Michael Ensing | b8d9326 | 2020-05-12 00:41:30 -0700 | [diff] [blame] | 76 | }, |
| 77 | } |
| 78 | |
| 79 | cc_fuzz { |
| 80 | name: "inputflinger_cursor_input_fuzzer", |
| 81 | defaults: [ |
| 82 | "inputflinger_fuzz_defaults", |
| 83 | ], |
| 84 | srcs: [ |
| 85 | "CursorInputFuzzer.cpp", |
| 86 | ], |
| 87 | } |
| 88 | |
| 89 | cc_fuzz { |
| 90 | name: "inputflinger_keyboard_input_fuzzer", |
| 91 | defaults: [ |
| 92 | "inputflinger_fuzz_defaults", |
| 93 | ], |
| 94 | srcs: [ |
| 95 | "KeyboardInputFuzzer.cpp", |
| 96 | ], |
| 97 | } |
| 98 | |
| 99 | cc_fuzz { |
| 100 | name: "inputflinger_multitouch_input_fuzzer", |
| 101 | defaults: [ |
| 102 | "inputflinger_fuzz_defaults", |
| 103 | ], |
| 104 | srcs: [ |
| 105 | "MultiTouchInputFuzzer.cpp", |
| 106 | ], |
| 107 | } |
| 108 | |
| 109 | cc_fuzz { |
| 110 | name: "inputflinger_switch_input_fuzzer", |
| 111 | defaults: [ |
| 112 | "inputflinger_fuzz_defaults", |
| 113 | ], |
| 114 | srcs: [ |
| 115 | "SwitchInputFuzzer.cpp", |
| 116 | ], |
| 117 | } |
Michael Ensing | 910968d | 2020-07-19 17:19:31 -0700 | [diff] [blame] | 118 | |
| 119 | cc_fuzz { |
Michael Ensing | 0f0ca6e | 2021-01-12 16:13:20 -0800 | [diff] [blame] | 120 | name: "inputflinger_input_reader_fuzzer", |
| 121 | defaults: [ |
| 122 | "inputflinger_fuzz_defaults", |
| 123 | ], |
| 124 | srcs: [ |
| 125 | "InputReaderFuzzer.cpp", |
| 126 | ], |
| 127 | } |
| 128 | |
| 129 | cc_fuzz { |
Michael Ensing | 910968d | 2020-07-19 17:19:31 -0700 | [diff] [blame] | 130 | name: "inputflinger_blocking_queue_fuzzer", |
| 131 | defaults: [ |
| 132 | "inputflinger_fuzz_defaults", |
| 133 | ], |
| 134 | srcs: [ |
| 135 | "BlockingQueueFuzzer.cpp", |
| 136 | ], |
| 137 | } |
| 138 | |
| 139 | cc_fuzz { |
| 140 | name: "inputflinger_input_classifier_fuzzer", |
| 141 | defaults: [ |
| 142 | "inputflinger_fuzz_defaults", |
| 143 | ], |
| 144 | srcs: [ |
| 145 | "InputClassifierFuzzer.cpp", |
| 146 | ], |
| 147 | } |