blob: 6ae9790aac7b694fcfa143bbadddca048c1142ee [file] [log] [blame]
Prabir Pradhan9244aea2020-02-05 20:31:40 -08001// 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 Cross45a1b9c2017-04-19 16:56:46 -070014
Bob Badour3306e492021-02-25 15:35:37 -080015package {
Aditya Choudharyb48ed1d2024-01-31 11:06:10 +000016 default_team: "trendy_team_input_framework",
Bob Badour3306e492021-02-25 15:35:37 -080017 // 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 Pradhan81e89fe2024-03-20 21:17:09 +000025// Source files shared with InputDispatcher's benchmarks and fuzzers
26filegroup {
27 name: "inputdispatcher_common_test_sources",
28 srcs: [
29 "FakeInputDispatcherPolicy.cpp",
Prabir Pradhanc5340732024-03-20 22:53:52 +000030 "FakeWindows.cpp",
Prabir Pradhan81e89fe2024-03-20 21:17:09 +000031 ],
32}
33
Colin Cross45a1b9c2017-04-19 16:56:46 -070034cc_test {
35 name: "inputflinger_tests",
Siarhei Vishniakou31977182022-09-30 08:51:23 -070036 host_supported: true,
Prabir Pradhan9244aea2020-02-05 20:31:40 -080037 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 Cross45a1b9c2017-04-19 16:56:46 -070049 srcs: [
Prabir Pradhan81e89fe2024-03-20 21:17:09 +000050 ":inputdispatcher_common_test_sources",
Siarhei Vishniakoud44dddf2020-03-25 16:16:40 -070051 "AnrTracker_test.cpp",
Harry Cuttsbb24e272023-03-21 10:49:47 +000052 "CapturedTouchpadEventConverter_test.cpp",
Siarhei Vishniakou979f2d82023-05-16 14:26:24 -070053 "CursorInputMapper_test.cpp",
Siarhei Vishniakou8588cc92018-12-12 18:17:58 -080054 "EventHub_test.cpp",
Harry Cuttsa5b71292022-11-28 12:56:17 +000055 "FakeEventHub.cpp",
Harry Cutts6b5fbc52022-11-28 16:37:43 +000056 "FakeInputReaderPolicy.cpp",
Prabir Pradhandc3a2ad2024-02-05 19:03:51 +000057 "FakeInputTracingBackend.cpp",
Harry Cuttsb57f1702022-11-28 15:34:22 +000058 "FakePointerController.cpp",
Vishnu Nairc519ff72021-01-21 08:23:08 -080059 "FocusResolver_test.cpp",
Harry Cutts4fb941a2022-12-14 19:14:04 +000060 "GestureConverter_test.cpp",
Harry Cutts3952c832023-08-22 15:26:56 +000061 "HardwareProperties_test.cpp",
Harry Cutts47db1c72022-12-13 19:20:47 +000062 "HardwareStateConverter_test.cpp",
Prabir Pradhan852db892023-04-06 22:16:44 +000063 "InputDeviceMetricsCollector_test.cpp",
Asmita Poddar631a14e2023-10-03 10:22:07 +000064 "InputDeviceMetricsSource_test.cpp",
Harry Cuttse6512e12022-11-28 18:44:01 +000065 "InputMapperTest.cpp",
Siarhei Vishniakou98996032022-08-03 11:54:47 -070066 "InputProcessor_test.cpp",
67 "InputProcessorConverter_test.cpp",
Colin Cross45a1b9c2017-04-19 16:56:46 -070068 "InputDispatcher_test.cpp",
Siarhei Vishniakou473174e2017-12-27 16:44:42 -080069 "InputReader_test.cpp",
Harry Cutts144ff542022-11-28 17:41:06 +000070 "InstrumentedInputReader.cpp",
Siarhei Vishniakouf2652122021-03-05 21:39:46 +000071 "LatencyTracker_test.cpp",
Arpit Singh483104c2023-10-11 10:11:24 +000072 "MultiTouchMotionAccumulator_test.cpp",
Michael Wright1f2db4f2022-11-24 16:47:38 +000073 "NotifyArgs_test.cpp",
Prabir Pradhanb56e92c2023-06-09 23:40:37 +000074 "PointerChoreographer_test.cpp",
Siarhei Vishniakoua3c8e512022-02-10 19:46:34 -080075 "PreferStylusOverTouch_test.cpp",
Harry Cutts1b217912023-01-03 17:13:19 +000076 "PropertyProvider_test.cpp",
Yeabkal Wubshit6b662762023-05-22 23:07:31 -070077 "SlopController_test.cpp",
Prabir Pradhand5678112023-05-18 01:57:10 +000078 "SyncQueue_test.cpp",
Harry Cutts8c7cb592023-08-23 17:20:13 +000079 "TimerProvider_test.cpp",
Vishnu Naire798b472020-07-23 13:52:21 -070080 "TestInputListener.cpp",
Siarhei Vishniakou979f2d82023-05-16 14:26:24 -070081 "TouchpadInputMapper_test.cpp",
Arpit Singh4b4a4572023-11-24 18:19:56 +000082 "MultiTouchInputMapper_test.cpp",
Arpit Singhb3b3f732023-07-04 14:30:05 +000083 "KeyboardInputMapper_test.cpp",
Prabir Pradhane0105c92019-12-26 12:32:13 -080084 "UinputDevice.cpp",
Siarhei Vishniakouba0a8752021-09-14 14:43:25 -070085 "UnwantedInteractionBlocker_test.cpp",
Colin Cross45a1b9c2017-04-19 16:56:46 -070086 ],
Chris Ye0783e992020-06-02 21:34:49 -070087 aidl: {
88 include_dirs: [
chaviw98318de2021-05-19 16:45:23 -050089 "frameworks/native/libs/gui",
Chris Ye0783e992020-06-02 21:34:49 -070090 "frameworks/native/libs/input",
91 ],
92 },
Siarhei Vishniakou31977182022-09-30 08:51:23 -070093 target: {
94 android: {
95 shared_libs: [
Siarhei Vishniakou31977182022-09-30 08:51:23 -070096 "libvintf",
97 ],
98 },
Siarhei Vishniakou31977182022-09-30 08:51:23 -070099 },
Siarhei Vishniakou14bcc3d2023-02-28 14:07:41 -0800100 sanitize: {
Siarhei Vishniakoua9f1f112023-05-26 09:17:16 -0700101 hwaddress: true,
Siarhei Vishniakou14bcc3d2023-02-28 14:07:41 -0800102 undefined: true,
103 all_undefined: true,
104 diag: {
105 undefined: true,
106 },
107 },
Chris Ye8594e192020-07-14 10:34:06 -0700108 static_libs: [
Ameer Armalycff4fa52023-10-04 23:45:11 +0000109 "libflagtest",
Siarhei Vishniakou60a15882022-01-31 09:00:15 -0800110 "libc++fs",
Siarhei Vishniakou88151b82022-08-11 00:53:38 +0000111 "libgmock",
Chris Ye8594e192020-07-14 10:34:06 -0700112 ],
Siarhei Vishniakou8588cc92018-12-12 18:17:58 -0800113 require_root: true,
Siarhei Vishniakou31977182022-09-30 08:51:23 -0700114 test_options: {
115 unit_test: true,
116 },
Siarhei Vishniakoua8388392020-10-21 23:58:48 -0500117 test_suites: ["device-tests"],
Colin Cross45a1b9c2017-04-19 16:56:46 -0700118}