blob: 36b197234a06e632edbc25132a51f51d80c2324b [file] [log] [blame]
Lloyd Pique66ce40d2018-01-23 16:42:19 -08001// Copyright (C) 2018 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
Bob Badour3306e492021-02-25 15:35:37 -080015package {
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
Lloyd Pique66ce40d2018-01-23 16:42:19 -080024cc_test {
25 name: "SurfaceFlinger_test",
Sally Qi6920a2f2022-08-26 10:40:05 -070026 defaults: [
27 "android.hardware.graphics.common-ndk_shared",
28 "surfaceflinger_defaults",
29 ],
Lloyd Pique66ce40d2018-01-23 16:42:19 -080030 test_suites: ["device-tests"],
31 srcs: [
Kriti Dang59ff1e72022-02-10 12:41:00 +010032 "BootDisplayMode_test.cpp",
Ady Abraham07d03c42023-09-27 19:15:08 -070033 "Binder_test.cpp",
Marissa Wall713b63f2018-10-17 15:42:43 -070034 "BufferGenerator.cpp",
Marissa Wall5b285482019-11-18 17:07:46 -080035 "CommonTypes_test.cpp",
Ana Krulec13be8ad2018-08-21 02:43:56 +000036 "Credentials_test.cpp",
chaviw76f5f2f2019-09-23 10:15:51 -070037 "DereferenceSurfaceControl_test.cpp",
Ana Krulec0782b882019-10-15 17:34:54 -070038 "DisplayConfigs_test.cpp",
Rachel Leeef2e21f2022-02-01 14:51:34 -080039 "DisplayEventReceiver_test.cpp",
Vishnu Nairc43a23c2020-05-29 14:32:27 -070040 "EffectLayer_test.cpp",
Sally Qi147581b2023-06-27 11:55:34 -070041 "HdrSdrRatioOverlay_test.cpp",
chaviw76f5f2f2019-09-23 10:15:51 -070042 "InvalidHandles_test.cpp",
Sally Qi147581b2023-06-27 11:55:34 -070043 "LayerBorder_test.cpp",
Valerie Hau9cfc6d82019-09-23 13:54:07 -070044 "LayerCallback_test.cpp",
chaviw76f5f2f2019-09-23 10:15:51 -070045 "LayerRenderTypeTransaction_test.cpp",
chaviw618c42d2020-07-24 15:25:08 -070046 "LayerState_test.cpp",
chaviw76f5f2f2019-09-23 10:15:51 -070047 "LayerTransaction_test.cpp",
Chavi Weingarten076acac2023-01-19 17:20:43 +000048 "LayerTrustedPresentationListener_test.cpp",
chaviw76f5f2f2019-09-23 10:15:51 -070049 "LayerTypeAndRenderTypeTransaction_test.cpp",
50 "LayerTypeTransaction_test.cpp",
51 "LayerUpdate_test.cpp",
chaviwfe94a222019-08-21 13:52:59 -070052 "MirrorLayer_test.cpp",
chaviw76f5f2f2019-09-23 10:15:51 -070053 "MultiDisplayLayerBounds_test.cpp",
Ady Abraham4a474e82020-10-02 15:47:55 -070054 "RefreshRateOverlay_test.cpp",
chaviw76f5f2f2019-09-23 10:15:51 -070055 "RelativeZ_test.cpp",
Vishnu Nair1506b182021-02-22 14:35:15 -080056 "ReleaseBufferCallback_test.cpp",
chaviw3efadb12020-07-27 10:07:15 -070057 "ScreenCapture_test.cpp",
Steven Thomas3172e202020-01-06 19:25:30 -080058 "SetFrameRate_test.cpp",
Andy Yu8c38b252022-01-15 01:13:19 -080059 "SetFrameRateOverride_test.cpp",
chaviw76f5f2f2019-09-23 10:15:51 -070060 "SetGeometry_test.cpp",
61 "Stress_test.cpp",
Patrick Williams3886b072023-01-25 14:32:23 -060062 "TextureFiltering_test.cpp",
chaviw8beb4142019-04-11 13:09:05 -070063 "VirtualDisplay_test.cpp",
chaviwbf023a62021-06-07 16:00:06 -050064 "WindowInfosListener_test.cpp",
Lloyd Pique66ce40d2018-01-23 16:42:19 -080065 ],
66 data: ["SurfaceFlinger_test.filter"],
67 static_libs: [
Vishnu Nairdf6a4f62020-11-11 20:25:34 -080068 "liblayers_proto",
Vishnu Nair3242d5f2020-10-06 10:48:32 -070069 "android.hardware.graphics.composer@2.1",
Lloyd Pique66ce40d2018-01-23 16:42:19 -080070 ],
71 shared_libs: [
Marissa Wall5b285482019-11-18 17:07:46 -080072 "android.hardware.graphics.common@1.2",
Lloyd Pique66ce40d2018-01-23 16:42:19 -080073 "libandroid",
Vishnu Nair3242d5f2020-10-06 10:48:32 -070074 "libbase",
Lloyd Pique66ce40d2018-01-23 16:42:19 -080075 "libbinder",
76 "libcutils",
77 "libEGL",
78 "libGLESv2",
79 "libgui",
80 "liblog",
Peiyong Lin91a2b3d2019-12-12 21:33:11 -080081 "libnativewindow",
Lloyd Pique66ce40d2018-01-23 16:42:19 -080082 "libprotobuf-cpp-full",
83 "libui",
84 "libutils",
Peiyong Lin91a2b3d2019-12-12 21:33:11 -080085 ],
86 header_libs: [
87 "libnativewindow_headers",
88 ],
Valerie Hau9dab9732019-08-20 09:29:25 -070089}
Lloyd Pique66ce40d2018-01-23 16:42:19 -080090
Valerie Hau9dab9732019-08-20 09:29:25 -070091cc_defaults {
92 name: "ipc_defaults",
93 cflags: [
94 "-Wall",
Yiwei Zhangd7927052020-01-13 16:05:01 -080095 "-Werror",
Valerie Hau9dab9732019-08-20 09:29:25 -070096 ],
97}
98
99cc_test {
100 name: "IPC_test",
101 defaults: ["ipc_defaults"],
102 test_suites: ["device-tests"],
103 srcs: [
104 "BufferGenerator.cpp",
105 "IPC_test.cpp",
106 ],
107 cppflags: [
108 "-Wall",
Yiwei Zhangd7927052020-01-13 16:05:01 -0800109 "-Werror",
110 "-Wformat",
111 "-Wthread-safety",
112 "-Wunused",
113 "-Wunreachable-code",
Valerie Hau9dab9732019-08-20 09:29:25 -0700114 ],
115 shared_libs: [
116 "libandroid",
117 "libbinder",
118 "libcutils",
119 "libEGL",
120 "libGLESv2",
121 "libgui",
122 "liblayers_proto",
123 "liblog",
124 "libprotobuf-cpp-full",
Valerie Hau9dab9732019-08-20 09:29:25 -0700125 "libui",
126 "libutils",
127 ],
128 cpp_std: "experimental",
129 gnu_extensions: false,
jahinimtiaz63138ec2023-03-14 00:07:50 +0000130 data: [
131 ":SurfaceFlinger_test",
132 ],
Lloyd Pique66ce40d2018-01-23 16:42:19 -0800133}
134
135subdirs = [
Lloyd Pique66ce40d2018-01-23 16:42:19 -0800136 "hwc2",
Lloyd Piquef58625d2017-12-19 13:22:33 -0800137 "unittests",
Valerie Haue9137b72019-08-27 13:22:18 -0700138 "utils",
Lloyd Pique66ce40d2018-01-23 16:42:19 -0800139 "vsync",
140 "waitforvsync",
141]