Michael Ensing | 7c58e65 | 2020-05-12 00:41:30 -0700 | [diff] [blame] | 1 | // |
| 2 | // Copyright (C) 2020 The Android Open Source Project |
| 3 | // |
| 4 | // Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | // you may not use this file except in compliance with the License. |
| 6 | // You may obtain a copy of the License at |
| 7 | // |
| 8 | // http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | // |
| 10 | // Unless required by applicable law or agreed to in writing, software |
| 11 | // distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | // See the License for the specific language governing permissions and |
| 14 | // limitations under the License. |
| 15 | // |
| 16 | |
| 17 | cc_defaults { |
| 18 | name: "inputflinger_fuzz_defaults", |
| 19 | defaults: [ |
| 20 | "inputflinger_defaults", |
| 21 | ], |
| 22 | include_dirs: [ |
| 23 | "frameworks/native/services/inputflinger", |
| 24 | ], |
| 25 | shared_libs: [ |
| 26 | "android.hardware.input.classifier@1.0", |
| 27 | "libbase", |
| 28 | "libbinder", |
| 29 | "libcutils", |
| 30 | "liblog", |
| 31 | "libutils", |
| 32 | "libui", |
| 33 | "libinput", |
| 34 | "libinputflinger", |
| 35 | "libinputreader", |
| 36 | "libinputflinger_base", |
| 37 | "libstatslog", |
| 38 | ], |
| 39 | header_libs: [ |
| 40 | "libinputreader_headers", |
| 41 | ], |
| 42 | } |
| 43 | |
| 44 | cc_fuzz { |
| 45 | name: "inputflinger_cursor_input_fuzzer", |
| 46 | defaults: [ |
| 47 | "inputflinger_fuzz_defaults", |
| 48 | ], |
| 49 | srcs: [ |
| 50 | "CursorInputFuzzer.cpp", |
| 51 | ], |
| 52 | } |
| 53 | |
| 54 | cc_fuzz { |
| 55 | name: "inputflinger_keyboard_input_fuzzer", |
| 56 | defaults: [ |
| 57 | "inputflinger_fuzz_defaults", |
| 58 | ], |
| 59 | srcs: [ |
| 60 | "KeyboardInputFuzzer.cpp", |
| 61 | ], |
| 62 | } |
| 63 | |
| 64 | cc_fuzz { |
| 65 | name: "inputflinger_multitouch_input_fuzzer", |
| 66 | defaults: [ |
| 67 | "inputflinger_fuzz_defaults", |
| 68 | ], |
| 69 | srcs: [ |
| 70 | "MultiTouchInputFuzzer.cpp", |
| 71 | ], |
| 72 | } |
| 73 | |
| 74 | cc_fuzz { |
| 75 | name: "inputflinger_switch_input_fuzzer", |
| 76 | defaults: [ |
| 77 | "inputflinger_fuzz_defaults", |
| 78 | ], |
| 79 | srcs: [ |
| 80 | "SwitchInputFuzzer.cpp", |
| 81 | ], |
| 82 | } |
Michael Ensing | 39b87e7 | 2020-07-19 17:19:31 -0700 | [diff] [blame] | 83 | |
| 84 | cc_fuzz { |
Michael Ensing | 80c8aff | 2021-01-12 16:13:20 -0800 | [diff] [blame] | 85 | name: "inputflinger_input_reader_device_fuzzer", |
| 86 | defaults: [ |
| 87 | "inputflinger_fuzz_defaults", |
| 88 | ], |
| 89 | srcs: [ |
| 90 | "InputReaderDeviceFuzzer.cpp", |
| 91 | ], |
| 92 | } |
| 93 | |
| 94 | cc_fuzz { |
Michael Ensing | 39b87e7 | 2020-07-19 17:19:31 -0700 | [diff] [blame] | 95 | name: "inputflinger_blocking_queue_fuzzer", |
| 96 | defaults: [ |
| 97 | "inputflinger_fuzz_defaults", |
| 98 | ], |
| 99 | srcs: [ |
| 100 | "BlockingQueueFuzzer.cpp", |
| 101 | ], |
| 102 | } |
| 103 | |
| 104 | cc_fuzz { |
| 105 | name: "inputflinger_input_classifier_fuzzer", |
| 106 | defaults: [ |
| 107 | "inputflinger_fuzz_defaults", |
| 108 | ], |
| 109 | srcs: [ |
| 110 | "InputClassifierFuzzer.cpp", |
| 111 | ], |
| 112 | } |