• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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}
18
19filegroup {
20    name: "cts-wm-components",
21    srcs: ["**/Components.java"],
22}
23
24filegroup {
25    name: "cts-wm-aspect-ratio-test-base",
26    srcs: ["src/android/server/wm/AspectRatioTestsBase.java"],
27}
28
29filegroup {
30    name: "cts-wm-decor-inset-test-base",
31    srcs: ["src/android/server/wm/DecorInsetTestsBase.java"],
32}
33
34filegroup {
35    name: "cts-wm-force-relayout-test-base",
36    srcs: ["src/android/server/wm/ForceRelayoutTestBase.java"],
37}
38
39android_test {
40    name: "CtsWindowManagerDeviceTestCases",
41    defaults: ["cts_defaults"],
42
43    srcs: [
44        "src/**/*.java",
45        "alertwindowservice/src/**/*.java",
46        ":cts-wm-components",
47        ":CtsVerifierMockVrListenerServiceFiles",
48        "src/**/*.aidl",
49    ],
50
51    resource_dirs: ["res"],
52
53    asset_dirs: ["intent_tests"],
54
55    libs: ["android.test.runner.stubs"],
56
57    static_libs: [
58        "compatibility-device-util-axt",
59        "androidx.test.ext.junit",
60        "androidx.test.rules",
61        "hamcrest-library",
62        "platform-test-annotations",
63        "cts-wm-util",
64        "CtsSurfaceValidatorLib",
65        "CtsMockInputMethodLib",
66        "CtsAccessibilityCommon",
67        "metrics-helper-lib",
68        "truth-prebuilt",
69        "cts-wm-overlayapp-base",
70        "cts-wm-shared",
71        "platform-compat-test-rules",
72        "cts_window_jetpack_utils",
73    ],
74
75    test_suites: [
76        "cts",
77        "general-tests",
78        "sts",
79    ],
80
81    sdk_version: "test_current",
82    data: [
83        ":CtsPropertyCompatAllowOrientationOverrideApp",
84        ":CtsPropertyCompatAllowDisplayOrientationOverrideApp",
85        ":CtsPropertyIgnoreOrientationRequestOverrideOptOutApp",
86        ":CtsPropertyIgnoreOrientationRequestOverrideOptInApp",
87        ":CtsPropertyCameraCompatAllowForceRotationApp",
88        ":CtsPropertyCameraCompatAllowRefreshApp",
89        ":CtsPropertyCameraCompatEnableRefreshViaPauseOptInApp",
90        ":CtsPropertyCameraCompatEnableRefreshViaPauseOptOutApp",
91        ":CtsDragAndDropSourceApp",
92        ":CtsDragAndDropTargetApp",
93        ":CtsDeviceAlertWindowTestApp",
94        ":CtsAlertWindowService",
95        ":CtsPropertyCompatAllowSandboxingViewBoundsApisApp",
96        ":CtsPropertyCompatOptOutSandboxingViewBoundsApisApp",
97        ":CtsPropertyCompatEnableFakeFocusOptInApp",
98        ":CtsPropertyCompatEnableFakeFocusOptOutApp",
99        ":CtsDeviceServicesTestApp",
100        ":CtsDeviceServicesTestApp27",
101        ":CtsDeviceServicesTestApp30",
102        ":CtsDeviceServicesTestSecondApp",
103        ":CtsDeviceServicesTestThirdApp",
104        ":CtsDeviceDeprecatedAbiApp",
105        ":CtsDeviceDeprecatedSdkApp",
106        ":CtsDeviceDeskResourcesApp",
107        ":CtsDeviceDisplaySizeApp",
108        ":CtsDevicePrereleaseSdkApp",
109        ":CtsDeviceProfileableApp",
110        ":CtsDeviceTranslucentTestApp",
111        ":CtsDeviceTranslucentTestApp26",
112        ":CtsMockInputMethod",
113        ":CtsDeviceServicesTestShareUidAppA",
114        ":CtsDeviceServicesTestShareUidAppB",
115        ":CtsCrossProcessSurfaceControlViewHostTestService",
116        ":CtsWindowManagerJetpackSecondUidApp",
117        ":CtsBackLegacyApp",
118        ":CtsDragAndDropTargetAppSdk23",
119        ":CtsDeviceAlertWindowTestAppSdk25",
120    ],
121    per_testcase_directory: true,
122}
123