1// 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
15package {
16    default_applicable_licenses: ["Android-Apache-2.0"],
17    default_team: "trendy_team_interactions_frameworks",
18}
19
20filegroup {
21    name: "cts-wm-components",
22    srcs: ["**/Components.java"],
23}
24
25filegroup {
26    name: "cts-wm-decor-inset-test-base",
27    srcs: ["src/android/server/wm/insets/DecorInsetTestsBase.java"],
28}
29
30filegroup {
31    name: "cts-wm-force-relayout-test-base",
32    srcs: ["src/android/server/wm/insets/ForceRelayoutTestBase.java"],
33}
34
35java_defaults {
36    name: "CtsWindowManagerDeviceDefault",
37
38    defaults: ["cts_defaults"],
39
40    resource_dirs: ["res"],
41
42    asset_dirs: ["intent_tests"],
43
44    libs: ["android.test.runner.stubs"],
45
46    test_config_template: "AndroidTestTemplate.xml",
47
48    static_libs: [
49        "compatibility-device-util-axt",
50        "androidx.test.ext.junit",
51        "androidx.test.rules",
52        "hamcrest-library",
53        "platform-test-annotations",
54        "cts-input-lib",
55        "cts-wm-util",
56        "CtsSurfaceValidatorLib",
57        "CtsMockInputMethodLib",
58        "CtsAccessibilityCommon",
59        "metrics-helper-lib",
60        "truth",
61        "cts-wm-overlayapp-base",
62        "cts-wm-shared",
63        "platform-compat-test-rules",
64        "cts_window_jetpack_utils",
65        "com.android.window.flags.window-aconfig-java",
66        "android.permission.flags-aconfig-java",
67        "android.app.flags-aconfig-java",
68        "android.view.inputmethod.flags-aconfig-java",
69        "ui-trace-collector",
70        "flag-junit",
71    ],
72
73    test_suites: [
74        "cts",
75        "general-tests",
76        "sts",
77    ],
78
79    sdk_version: "test_current",
80    data: [
81        ":CtsPropertyCompatAllowOrientationOverrideApp",
82        ":CtsPropertyCompatAllowDisplayOrientationOverrideApp",
83        ":CtsPropertyCompatAllowMinAspectRatioOverrideOptInApp",
84        ":CtsPropertyCompatAllowMinAspectRatioOverrideOptOutApp",
85        ":CtsPropertyCompatAllowIgnoringOrientationRequestWhenLoopDetectedOptInApp",
86        ":CtsPropertyCompatAllowIgnoringOrientationRequestWhenLoopDetectedOptOutApp",
87        ":CtsPropertyCompatAllowIgnoringOrientationRequestWhenLoopDetectedUnsetApp",
88        ":CtsPropertyIgnoreOrientationRequestOverrideOptOutApp",
89        ":CtsPropertyIgnoreOrientationRequestOverrideOptInApp",
90        ":CtsPropertyCompatAllowResizeableActivityOverridesOptInApp",
91        ":CtsPropertyCompatAllowResizeableActivityOverridesOptOutApp",
92        ":CtsPropertyCompatAllowUserAspectRatioFullscreenOverrideOptInApp",
93        ":CtsPropertyCompatAllowUserAspectRatioFullscreenOverrideOptOutApp",
94        ":CtsPropertyCompatAllowUserAspectRatioOverrideOptInApp",
95        ":CtsPropertyCompatAllowUserAspectRatioOverrideOptOutApp",
96        ":CtsPropertyCameraCompatAllowForceRotationApp",
97        ":CtsPropertyCameraCompatAllowRefreshApp",
98        ":CtsPropertyCameraCompatEnableRefreshViaPauseOptInApp",
99        ":CtsPropertyCameraCompatEnableRefreshViaPauseOptOutApp",
100        ":CtsDragAndDropSourceApp",
101        ":CtsDragAndDropTargetApp",
102        ":CtsDeviceAlertWindowTestApp",
103        ":CtsAlertWindowService",
104        ":CtsPropertyCompatAllowSandboxingViewBoundsApisApp",
105        ":CtsPropertyCompatOptOutSandboxingViewBoundsApisApp",
106        ":CtsPropertyCompatEnableFakeFocusOptInApp",
107        ":CtsPropertyCompatEnableFakeFocusOptOutApp",
108        ":CtsDeviceServicesTestApp",
109        ":CtsDeviceServicesTestApp27",
110        ":CtsDeviceServicesTestApp30",
111        ":CtsDeviceServicesTestSecondApp",
112        ":CtsDeviceServicesTestThirdApp",
113        ":CtsDeviceDeprecatedAbiApp",
114        ":CtsDeviceDeprecatedSdkApp",
115        ":CtsDeviceDeskResourcesApp",
116        ":CtsDeviceDisplaySizeApp",
117        ":CtsDevicePrereleaseSdkApp",
118        ":CtsDeviceProfileableApp",
119        ":CtsDeviceTranslucentTestApp",
120        ":CtsDeviceTranslucentTestApp26",
121        ":CtsMockInputMethod",
122        ":CtsDeviceServicesTestShareUidAppA",
123        ":CtsDeviceServicesTestShareUidAppB",
124        ":CtsWindowManagerJetpackSecondUidApp",
125        ":CtsBackLegacyApp",
126        ":CtsDragAndDropTargetAppSdk23",
127        ":CtsDeviceAlertWindowTestAppSdk25",
128        ":CtsWindowManagerExternalApp",
129    ],
130    per_testcase_directory: true,
131}
132
133filegroup {
134    name: "CtsWindowManagerDeviceHelper-src",
135    srcs: ["src/**/HelperActivities.java"],
136}
137
138filegroup {
139    name: "CtsWindowManagerDeviceActivity-src",
140    srcs: [
141        "src/**/activity/*.java",
142        "src/**/activity/lifecycle/*.java",
143        "src/**/intent/*.java",
144    ],
145}
146
147filegroup {
148    name: "CtsWindowManagerDeviceAm-src",
149    srcs: ["src/**/am/*.java"],
150}
151
152filegroup {
153    name: "CtsWindowManagerDeviceBackNavigation-src",
154    srcs: ["src/**/backnavigation/*.java"],
155}
156
157filegroup {
158    name: "CtsWindowManagerDeviceAnimations-src",
159    srcs: [
160        "src/**/animations/*.java",
161    ],
162}
163
164filegroup {
165    name: "CtsWindowManagerDeviceDisplay-src",
166    srcs: [
167        "src/**/display/*.java",
168        "src/**/intent/Activities.java",
169    ],
170}
171
172filegroup {
173    name: "CtsWindowManagerDeviceInsets-src",
174    srcs: [
175        "src/**/insets/*.java",
176        "src/**/intent/Activities.java",
177    ],
178}
179
180filegroup {
181    name: "CtsWindowManagerDeviceMultiDisplay-src",
182    srcs: [
183        "src/**/multidisplay/*.java",
184    ],
185}
186
187filegroup {
188    name: "CtsWindowManagerDeviceKeyguard-src",
189    srcs: ["src/**/keyguard/*.java"],
190}
191
192filegroup {
193    name: "CtsWindowManagerDeviceIme-src",
194    srcs: [
195        "src/**/ime/*.java",
196        "src/**/intent/Activities.java",
197    ],
198}
199
200filegroup {
201    name: "CtsWindowManagerDeviceInput-src",
202    srcs: [
203        "src/**/input/*.java",
204        "src/**/input/*.kt",
205    ],
206}
207
208filegroup {
209    name: "CtsWindowManagerDeviceOther-src",
210    srcs: [
211        "src/**/other/*.java",
212        "src/**/server/wm/*.java",
213    ],
214}
215
216filegroup {
217    name: "CtsWindowManagerDeviceTaskFragment-src",
218    srcs: ["src/**/taskfragment/*.java"],
219}
220
221filegroup {
222    name: "CtsWindowManagerDeviceWindow-src",
223    srcs: ["src/**/window/*.java"],
224}
225
226android_test {
227    name: "CtsWindowManagerDeviceActivity",
228    defaults: ["CtsWindowManagerDeviceDefault"],
229
230    srcs: [
231        ":CtsWindowManagerDeviceHelper-src",
232        ":CtsWindowManagerDeviceActivity-src",
233        ":CtsVerifierMockVrListenerServiceFiles",
234    ],
235}
236
237android_test {
238    name: "CtsWindowManagerDeviceAm",
239    defaults: ["CtsWindowManagerDeviceDefault"],
240
241    srcs: [
242        ":CtsWindowManagerDeviceAm-src",
243        ":CtsVerifierMockVrListenerServiceFiles",
244    ],
245}
246
247android_test {
248    name: "CtsWindowManagerDeviceBackNavigation",
249    defaults: ["CtsWindowManagerDeviceDefault"],
250
251    srcs: [
252        ":CtsWindowManagerDeviceBackNavigation-src",
253        ":CtsVerifierMockVrListenerServiceFiles",
254    ],
255}
256
257android_test {
258    name: "CtsWindowManagerDeviceAnimations",
259    defaults: ["CtsWindowManagerDeviceDefault"],
260
261    srcs: [
262        ":CtsWindowManagerDeviceAnimations-src",
263        ":CtsVerifierMockVrListenerServiceFiles",
264    ],
265}
266
267android_test {
268    name: "CtsWindowManagerDeviceDisplay",
269    defaults: ["CtsWindowManagerDeviceDefault"],
270
271    srcs: [
272        ":CtsWindowManagerDeviceHelper-src",
273        ":CtsWindowManagerDeviceDisplay-src",
274        ":CtsVerifierMockVrListenerServiceFiles",
275    ],
276}
277
278android_test {
279    name: "CtsWindowManagerDeviceKeyguard",
280    defaults: ["CtsWindowManagerDeviceDefault"],
281
282    srcs: [
283        ":CtsWindowManagerDeviceKeyguard-src",
284        ":CtsVerifierMockVrListenerServiceFiles",
285    ],
286}
287
288android_test {
289    name: "CtsWindowManagerDeviceInput",
290    defaults: ["CtsWindowManagerDeviceDefault"],
291
292    kotlincflags: [
293        "-Werror",
294    ],
295
296    srcs: [
297        ":CtsWindowManagerDeviceInput-src",
298        ":CtsVerifierMockVrListenerServiceFiles",
299    ],
300}
301
302android_test {
303    name: "CtsWindowManagerDeviceInsets",
304    defaults: ["CtsWindowManagerDeviceDefault"],
305
306    srcs: [
307        ":CtsWindowManagerDeviceInsets-src",
308        ":CtsVerifierMockVrListenerServiceFiles",
309    ],
310}
311
312android_test {
313    name: "CtsWindowManagerDeviceIme",
314    defaults: ["CtsWindowManagerDeviceDefault"],
315
316    srcs: [
317        ":CtsWindowManagerDeviceIme-src",
318        ":CtsVerifierMockVrListenerServiceFiles",
319    ],
320}
321
322android_test {
323    name: "CtsWindowManagerDeviceTaskFragment",
324    defaults: ["CtsWindowManagerDeviceDefault"],
325
326    srcs: [
327        ":CtsWindowManagerDeviceHelper-src",
328        ":CtsWindowManagerDeviceTaskFragment-src",
329        ":CtsVerifierMockVrListenerServiceFiles",
330    ],
331}
332
333android_test {
334    name: "CtsWindowManagerDeviceMultiDisplay",
335    defaults: ["CtsWindowManagerDeviceDefault"],
336
337    srcs: [
338        ":CtsWindowManagerDeviceMultiDisplay-src",
339        ":CtsWindowManagerDeviceHelper-src",
340        ":CtsVerifierMockVrListenerServiceFiles",
341    ],
342}
343
344android_test {
345    name: "CtsWindowManagerDeviceWindow",
346    defaults: ["CtsWindowManagerDeviceDefault"],
347
348    srcs: [
349        ":CtsWindowManagerDeviceWindow-src",
350        "alertwindowservice/src/**/*.java",
351        ":CtsVerifierMockVrListenerServiceFiles",
352    ],
353}
354
355android_test {
356    name: "CtsWindowManagerDeviceOther",
357    defaults: ["CtsWindowManagerDeviceDefault"],
358
359    srcs: [
360        ":CtsWindowManagerDeviceOther-src",
361        "alertwindowservice/src/**/*.java",
362        ":CtsVerifierMockVrListenerServiceFiles",
363    ],
364}
365