Prabir Pradhan | 9244aea | 2020-02-05 20:31:40 -0800 | [diff] [blame] | 1 | // Copyright (C) 2020 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. |
Colin Cross | 45a1b9c | 2017-04-19 16:56:46 -0700 | [diff] [blame] | 14 | |
Bob Badour | 3306e49 | 2021-02-25 15:35:37 -0800 | [diff] [blame] | 15 | package { |
Aditya Choudhary | b48ed1d | 2024-01-31 11:06:10 +0000 | [diff] [blame] | 16 | default_team: "trendy_team_input_framework", |
Bob Badour | 3306e49 | 2021-02-25 15:35:37 -0800 | [diff] [blame] | 17 | // See: http://go/android-license-faq |
| 18 | // A large-scale-change added 'default_applicable_licenses' to import |
| 19 | // all of the 'license_kinds' from "frameworks_native_license" |
| 20 | // to get the below license kinds: |
| 21 | // SPDX-license-identifier-Apache-2.0 |
| 22 | default_applicable_licenses: ["frameworks_native_license"], |
| 23 | } |
| 24 | |
Prabir Pradhan | 81e89fe | 2024-03-20 21:17:09 +0000 | [diff] [blame] | 25 | // Source files shared with InputDispatcher's benchmarks and fuzzers |
| 26 | filegroup { |
| 27 | name: "inputdispatcher_common_test_sources", |
| 28 | srcs: [ |
| 29 | "FakeInputDispatcherPolicy.cpp", |
Prabir Pradhan | c534073 | 2024-03-20 22:53:52 +0000 | [diff] [blame] | 30 | "FakeWindows.cpp", |
Prabir Pradhan | 81e89fe | 2024-03-20 21:17:09 +0000 | [diff] [blame] | 31 | ], |
| 32 | } |
| 33 | |
Colin Cross | 45a1b9c | 2017-04-19 16:56:46 -0700 | [diff] [blame] | 34 | cc_test { |
| 35 | name: "inputflinger_tests", |
Siarhei Vishniakou | 3197718 | 2022-09-30 08:51:23 -0700 | [diff] [blame] | 36 | host_supported: true, |
Prabir Pradhan | 9244aea | 2020-02-05 20:31:40 -0800 | [diff] [blame] | 37 | defaults: [ |
| 38 | "inputflinger_defaults", |
| 39 | // For all targets inside inputflinger, these tests build all of their sources using their |
| 40 | // defaults rather than including them as shared or static libraries. By doing so, the tests |
| 41 | // will always run against the compiled version of the inputflinger code rather than the |
| 42 | // version on the device. |
| 43 | "libinputflinger_base_defaults", |
| 44 | "libinputreader_defaults", |
| 45 | "libinputreporter_defaults", |
| 46 | "libinputdispatcher_defaults", |
| 47 | "libinputflinger_defaults", |
| 48 | ], |
Colin Cross | 45a1b9c | 2017-04-19 16:56:46 -0700 | [diff] [blame] | 49 | srcs: [ |
Prabir Pradhan | 81e89fe | 2024-03-20 21:17:09 +0000 | [diff] [blame] | 50 | ":inputdispatcher_common_test_sources", |
Siarhei Vishniakou | d44dddf | 2020-03-25 16:16:40 -0700 | [diff] [blame] | 51 | "AnrTracker_test.cpp", |
Harry Cutts | bb24e27 | 2023-03-21 10:49:47 +0000 | [diff] [blame] | 52 | "CapturedTouchpadEventConverter_test.cpp", |
Siarhei Vishniakou | 979f2d8 | 2023-05-16 14:26:24 -0700 | [diff] [blame] | 53 | "CursorInputMapper_test.cpp", |
Siarhei Vishniakou | 8588cc9 | 2018-12-12 18:17:58 -0800 | [diff] [blame] | 54 | "EventHub_test.cpp", |
Harry Cutts | a5b7129 | 2022-11-28 12:56:17 +0000 | [diff] [blame] | 55 | "FakeEventHub.cpp", |
Harry Cutts | 6b5fbc5 | 2022-11-28 16:37:43 +0000 | [diff] [blame] | 56 | "FakeInputReaderPolicy.cpp", |
Prabir Pradhan | dc3a2ad | 2024-02-05 19:03:51 +0000 | [diff] [blame] | 57 | "FakeInputTracingBackend.cpp", |
Harry Cutts | b57f170 | 2022-11-28 15:34:22 +0000 | [diff] [blame] | 58 | "FakePointerController.cpp", |
Vishnu Nair | c519ff7 | 2021-01-21 08:23:08 -0800 | [diff] [blame] | 59 | "FocusResolver_test.cpp", |
Harry Cutts | 4fb941a | 2022-12-14 19:14:04 +0000 | [diff] [blame] | 60 | "GestureConverter_test.cpp", |
Harry Cutts | 3952c83 | 2023-08-22 15:26:56 +0000 | [diff] [blame] | 61 | "HardwareProperties_test.cpp", |
Harry Cutts | 47db1c7 | 2022-12-13 19:20:47 +0000 | [diff] [blame] | 62 | "HardwareStateConverter_test.cpp", |
Prabir Pradhan | 852db89 | 2023-04-06 22:16:44 +0000 | [diff] [blame] | 63 | "InputDeviceMetricsCollector_test.cpp", |
Asmita Poddar | 631a14e | 2023-10-03 10:22:07 +0000 | [diff] [blame] | 64 | "InputDeviceMetricsSource_test.cpp", |
Harry Cutts | e6512e1 | 2022-11-28 18:44:01 +0000 | [diff] [blame] | 65 | "InputMapperTest.cpp", |
Siarhei Vishniakou | 9899603 | 2022-08-03 11:54:47 -0700 | [diff] [blame] | 66 | "InputProcessor_test.cpp", |
| 67 | "InputProcessorConverter_test.cpp", |
Colin Cross | 45a1b9c | 2017-04-19 16:56:46 -0700 | [diff] [blame] | 68 | "InputDispatcher_test.cpp", |
Siarhei Vishniakou | 473174e | 2017-12-27 16:44:42 -0800 | [diff] [blame] | 69 | "InputReader_test.cpp", |
Prabir Pradhan | 9a9897d | 2024-03-21 21:52:57 +0000 | [diff] [blame] | 70 | "InputTraceSession.cpp", |
| 71 | "InputTracingTest.cpp", |
Harry Cutts | 144ff54 | 2022-11-28 17:41:06 +0000 | [diff] [blame] | 72 | "InstrumentedInputReader.cpp", |
Siarhei Vishniakou | f265212 | 2021-03-05 21:39:46 +0000 | [diff] [blame] | 73 | "LatencyTracker_test.cpp", |
Arpit Singh | 483104c | 2023-10-11 10:11:24 +0000 | [diff] [blame] | 74 | "MultiTouchMotionAccumulator_test.cpp", |
Michael Wright | 1f2db4f | 2022-11-24 16:47:38 +0000 | [diff] [blame] | 75 | "NotifyArgs_test.cpp", |
Prabir Pradhan | b56e92c | 2023-06-09 23:40:37 +0000 | [diff] [blame] | 76 | "PointerChoreographer_test.cpp", |
Siarhei Vishniakou | a3c8e51 | 2022-02-10 19:46:34 -0800 | [diff] [blame] | 77 | "PreferStylusOverTouch_test.cpp", |
Harry Cutts | 1b21791 | 2023-01-03 17:13:19 +0000 | [diff] [blame] | 78 | "PropertyProvider_test.cpp", |
Vladimir Komsiyski | dd438e2 | 2024-02-13 11:47:54 +0100 | [diff] [blame] | 79 | "RotaryEncoderInputMapper_test.cpp", |
Yeabkal Wubshit | 6b66276 | 2023-05-22 23:07:31 -0700 | [diff] [blame] | 80 | "SlopController_test.cpp", |
Harry Cutts | 518695c | 2024-07-12 17:26:56 +0000 | [diff] [blame] | 81 | "SwitchInputMapper_test.cpp", |
Prabir Pradhan | d567811 | 2023-05-18 01:57:10 +0000 | [diff] [blame] | 82 | "SyncQueue_test.cpp", |
Harry Cutts | 8c7cb59 | 2023-08-23 17:20:13 +0000 | [diff] [blame] | 83 | "TimerProvider_test.cpp", |
Vishnu Nair | e798b47 | 2020-07-23 13:52:21 -0700 | [diff] [blame] | 84 | "TestInputListener.cpp", |
Siarhei Vishniakou | 979f2d8 | 2023-05-16 14:26:24 -0700 | [diff] [blame] | 85 | "TouchpadInputMapper_test.cpp", |
Harry Cutts | 4c168d0 | 2024-07-15 16:02:47 +0000 | [diff] [blame^] | 86 | "VibratorInputMapper_test.cpp", |
Arpit Singh | 4b4a457 | 2023-11-24 18:19:56 +0000 | [diff] [blame] | 87 | "MultiTouchInputMapper_test.cpp", |
Arpit Singh | b3b3f73 | 2023-07-04 14:30:05 +0000 | [diff] [blame] | 88 | "KeyboardInputMapper_test.cpp", |
Prabir Pradhan | e0105c9 | 2019-12-26 12:32:13 -0800 | [diff] [blame] | 89 | "UinputDevice.cpp", |
Siarhei Vishniakou | ba0a875 | 2021-09-14 14:43:25 -0700 | [diff] [blame] | 90 | "UnwantedInteractionBlocker_test.cpp", |
Colin Cross | 45a1b9c | 2017-04-19 16:56:46 -0700 | [diff] [blame] | 91 | ], |
Chris Ye | 0783e99 | 2020-06-02 21:34:49 -0700 | [diff] [blame] | 92 | aidl: { |
| 93 | include_dirs: [ |
chaviw | 98318de | 2021-05-19 16:45:23 -0500 | [diff] [blame] | 94 | "frameworks/native/libs/gui", |
Chris Ye | 0783e99 | 2020-06-02 21:34:49 -0700 | [diff] [blame] | 95 | "frameworks/native/libs/input", |
| 96 | ], |
| 97 | }, |
Siarhei Vishniakou | 3197718 | 2022-09-30 08:51:23 -0700 | [diff] [blame] | 98 | target: { |
| 99 | android: { |
| 100 | shared_libs: [ |
Siarhei Vishniakou | 3197718 | 2022-09-30 08:51:23 -0700 | [diff] [blame] | 101 | "libvintf", |
| 102 | ], |
| 103 | }, |
Siarhei Vishniakou | 3197718 | 2022-09-30 08:51:23 -0700 | [diff] [blame] | 104 | }, |
Siarhei Vishniakou | 14bcc3d | 2023-02-28 14:07:41 -0800 | [diff] [blame] | 105 | sanitize: { |
Siarhei Vishniakou | a9f1f11 | 2023-05-26 09:17:16 -0700 | [diff] [blame] | 106 | hwaddress: true, |
Siarhei Vishniakou | 14bcc3d | 2023-02-28 14:07:41 -0800 | [diff] [blame] | 107 | undefined: true, |
| 108 | all_undefined: true, |
| 109 | diag: { |
| 110 | undefined: true, |
| 111 | }, |
| 112 | }, |
Chris Ye | 8594e19 | 2020-07-14 10:34:06 -0700 | [diff] [blame] | 113 | static_libs: [ |
Biswarup Pal | 8ff5e5e | 2024-06-15 12:58:20 +0000 | [diff] [blame] | 114 | "android.companion.virtualdevice.flags-aconfig-cc-test", |
Ameer Armaly | cff4fa5 | 2023-10-04 23:45:11 +0000 | [diff] [blame] | 115 | "libflagtest", |
Siarhei Vishniakou | 88151b8 | 2022-08-11 00:53:38 +0000 | [diff] [blame] | 116 | "libgmock", |
Chris Ye | 8594e19 | 2020-07-14 10:34:06 -0700 | [diff] [blame] | 117 | ], |
Siarhei Vishniakou | 8588cc9 | 2018-12-12 18:17:58 -0800 | [diff] [blame] | 118 | require_root: true, |
Siarhei Vishniakou | 3197718 | 2022-09-30 08:51:23 -0700 | [diff] [blame] | 119 | test_options: { |
| 120 | unit_test: true, |
| 121 | }, |
Sam Dubey | c094531 | 2024-06-11 14:42:12 +0000 | [diff] [blame] | 122 | test_suites: [ |
| 123 | "device-tests", |
| 124 | "device-platinum-tests", |
| 125 | ], |
Colin Cross | 45a1b9c | 2017-04-19 16:56:46 -0700 | [diff] [blame] | 126 | } |