blob: d60ef4869019bad9e0361f9d92e66b901182ee43 [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"],
John Reck38bc8a82024-02-21 17:08:27 -050022 default_team: "trendy_team_android_core_graphics_stack",
Bob Badour3306e492021-02-25 15:35:37 -080023}
24
Lloyd Pique66ce40d2018-01-23 16:42:19 -080025cc_test {
26 name: "SurfaceFlinger_test",
Sally Qi6920a2f2022-08-26 10:40:05 -070027 defaults: [
28 "android.hardware.graphics.common-ndk_shared",
29 "surfaceflinger_defaults",
Matt Buckleyffc31d12024-02-28 16:51:28 +000030 "libsurfaceflinger_common_test_deps",
Sally Qi6920a2f2022-08-26 10:40:05 -070031 ],
Lloyd Pique66ce40d2018-01-23 16:42:19 -080032 test_suites: ["device-tests"],
33 srcs: [
Kriti Dang59ff1e72022-02-10 12:41:00 +010034 "BootDisplayMode_test.cpp",
Ady Abraham07d03c42023-09-27 19:15:08 -070035 "Binder_test.cpp",
Marissa Wall713b63f2018-10-17 15:42:43 -070036 "BufferGenerator.cpp",
Ana Krulec13be8ad2018-08-21 02:43:56 +000037 "Credentials_test.cpp",
chaviw76f5f2f2019-09-23 10:15:51 -070038 "DereferenceSurfaceControl_test.cpp",
Ana Krulec0782b882019-10-15 17:34:54 -070039 "DisplayConfigs_test.cpp",
Rachel Leeef2e21f2022-02-01 14:51:34 -080040 "DisplayEventReceiver_test.cpp",
Vishnu Naird1a05782024-03-19 04:37:38 +000041 "Dumpsys_test.cpp",
Vishnu Nairc43a23c2020-05-29 14:32:27 -070042 "EffectLayer_test.cpp",
Sally Qi147581b2023-06-27 11:55:34 -070043 "HdrSdrRatioOverlay_test.cpp",
chaviw76f5f2f2019-09-23 10:15:51 -070044 "InvalidHandles_test.cpp",
Sally Qi147581b2023-06-27 11:55:34 -070045 "LayerBorder_test.cpp",
Valerie Hau9cfc6d82019-09-23 13:54:07 -070046 "LayerCallback_test.cpp",
chaviw76f5f2f2019-09-23 10:15:51 -070047 "LayerRenderTypeTransaction_test.cpp",
chaviw618c42d2020-07-24 15:25:08 -070048 "LayerState_test.cpp",
chaviw76f5f2f2019-09-23 10:15:51 -070049 "LayerTransaction_test.cpp",
Chavi Weingarten076acac2023-01-19 17:20:43 +000050 "LayerTrustedPresentationListener_test.cpp",
chaviw76f5f2f2019-09-23 10:15:51 -070051 "LayerTypeAndRenderTypeTransaction_test.cpp",
52 "LayerTypeTransaction_test.cpp",
53 "LayerUpdate_test.cpp",
chaviwfe94a222019-08-21 13:52:59 -070054 "MirrorLayer_test.cpp",
chaviw76f5f2f2019-09-23 10:15:51 -070055 "MultiDisplayLayerBounds_test.cpp",
Ady Abraham4a474e82020-10-02 15:47:55 -070056 "RefreshRateOverlay_test.cpp",
chaviw76f5f2f2019-09-23 10:15:51 -070057 "RelativeZ_test.cpp",
Vishnu Nair1506b182021-02-22 14:35:15 -080058 "ReleaseBufferCallback_test.cpp",
chaviw3efadb12020-07-27 10:07:15 -070059 "ScreenCapture_test.cpp",
Steven Thomas3172e202020-01-06 19:25:30 -080060 "SetFrameRate_test.cpp",
chaviw76f5f2f2019-09-23 10:15:51 -070061 "SetGeometry_test.cpp",
62 "Stress_test.cpp",
Patrick Williams3886b072023-01-25 14:32:23 -060063 "TextureFiltering_test.cpp",
chaviw8beb4142019-04-11 13:09:05 -070064 "VirtualDisplay_test.cpp",
chaviwbf023a62021-06-07 16:00:06 -050065 "WindowInfosListener_test.cpp",
Lloyd Pique66ce40d2018-01-23 16:42:19 -080066 ],
67 data: ["SurfaceFlinger_test.filter"],
68 static_libs: [
Vishnu Nairdf6a4f62020-11-11 20:25:34 -080069 "liblayers_proto",
Vishnu Nair3242d5f2020-10-06 10:48:32 -070070 "android.hardware.graphics.composer@2.1",
Melody Hsu793f8362024-01-08 20:00:35 +000071 "libsurfaceflinger_common",
Lloyd Pique66ce40d2018-01-23 16:42:19 -080072 ],
73 shared_libs: [
Marissa Wall5b285482019-11-18 17:07:46 -080074 "android.hardware.graphics.common@1.2",
Lloyd Pique66ce40d2018-01-23 16:42:19 -080075 "libandroid",
Vishnu Nair3242d5f2020-10-06 10:48:32 -070076 "libbase",
Lloyd Pique66ce40d2018-01-23 16:42:19 -080077 "libbinder",
78 "libcutils",
79 "libEGL",
80 "libGLESv2",
81 "libgui",
82 "liblog",
Peiyong Lin91a2b3d2019-12-12 21:33:11 -080083 "libnativewindow",
Lloyd Pique66ce40d2018-01-23 16:42:19 -080084 "libprotobuf-cpp-full",
85 "libui",
86 "libutils",
Melody Hsu793f8362024-01-08 20:00:35 +000087 "server_configurable_flags",
Peiyong Lin91a2b3d2019-12-12 21:33:11 -080088 ],
89 header_libs: [
90 "libnativewindow_headers",
91 ],
Valerie Hau9dab9732019-08-20 09:29:25 -070092}
Lloyd Pique66ce40d2018-01-23 16:42:19 -080093
Valerie Hau9dab9732019-08-20 09:29:25 -070094cc_defaults {
95 name: "ipc_defaults",
96 cflags: [
97 "-Wall",
Yiwei Zhangd7927052020-01-13 16:05:01 -080098 "-Werror",
Valerie Hau9dab9732019-08-20 09:29:25 -070099 ],
100}
101
102cc_test {
103 name: "IPC_test",
104 defaults: ["ipc_defaults"],
105 test_suites: ["device-tests"],
106 srcs: [
107 "BufferGenerator.cpp",
108 "IPC_test.cpp",
109 ],
110 cppflags: [
111 "-Wall",
Yiwei Zhangd7927052020-01-13 16:05:01 -0800112 "-Werror",
113 "-Wformat",
114 "-Wthread-safety",
115 "-Wunused",
116 "-Wunreachable-code",
Valerie Hau9dab9732019-08-20 09:29:25 -0700117 ],
118 shared_libs: [
119 "libandroid",
120 "libbinder",
121 "libcutils",
122 "libEGL",
123 "libGLESv2",
124 "libgui",
125 "liblayers_proto",
126 "liblog",
127 "libprotobuf-cpp-full",
Valerie Hau9dab9732019-08-20 09:29:25 -0700128 "libui",
129 "libutils",
130 ],
131 cpp_std: "experimental",
132 gnu_extensions: false,
jahinimtiaz63138ec2023-03-14 00:07:50 +0000133 data: [
134 ":SurfaceFlinger_test",
135 ],
Lloyd Pique66ce40d2018-01-23 16:42:19 -0800136}
137
138subdirs = [
Lloyd Pique66ce40d2018-01-23 16:42:19 -0800139 "hwc2",
Lloyd Piquef58625d2017-12-19 13:22:33 -0800140 "unittests",
Valerie Haue9137b72019-08-27 13:22:18 -0700141 "utils",
Lloyd Pique66ce40d2018-01-23 16:42:19 -0800142 "vsync",
143 "waitforvsync",
144]