1// 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.
14
15package {
16    default_applicable_licenses: ["Android-Apache-2.0"],
17}
18
19java_library {
20    name: "cts_window-extensions",
21    sdk_version: "test_current",
22    static_libs: [
23        "androidx.window.extensions_extensions-nodeps",
24    ],
25    installable: false,
26}
27
28java_library {
29    name: "cts_window-extensions-core",
30    sdk_version: "test_current",
31    static_libs: [
32        "androidx.window.extensions.core_core-nodeps",
33    ],
34    installable: false,
35}
36
37android_library_import {
38    name: "cts_window-sidecar_nodeps",
39    aars: ["window-sidecar-release.aar"],
40    sdk_version: "current",
41}
42
43java_library {
44    name: "cts_window-sidecar",
45    sdk_version: "test_current",
46    static_libs: [
47        "cts_window-sidecar_nodeps",
48    ],
49    installable: false,
50}
51
52java_library {
53    name: "cts_window_extensions_jetpack_util",
54    srcs: [
55        "src/android/server/wm/jetpack/extensions/util/**/*.java",
56    ],
57    static_libs: [
58        "compatibility-device-util-axt",
59        "cts_window-extensions",
60        "cts_window-extensions-core",
61        "cts_window-sidecar",
62        "com.android.window.flags.window-aconfig-java",
63    ],
64    sdk_version: "test_current",
65}
66
67java_library {
68    name: "cts_window_jetpack_utils",
69    srcs: [
70        "src/android/server/wm/jetpack/utils/**/*.java",
71    ],
72    static_libs: [
73        "compatibility-device-util-axt",
74        "cts-wm-util",
75        "cts_window-extensions",
76        "cts_window-extensions-core",
77        "cts_window-sidecar",
78        "com.android.window.flags.window-aconfig-java",
79    ],
80    sdk_version: "test_current",
81}
82
83android_test {
84    name: "CtsWindowManagerJetpackTestCases",
85    team: "trendy_team_windowing_sdk",
86    defaults: ["cts_defaults"],
87    srcs: ["src/**/*.java"],
88    static_libs: [
89        "androidx.test.ext.junit",
90        "androidx.test.rules",
91        "compatibility-device-util-axt",
92        "platform-test-annotations",
93        "cts-wm-util",
94        "cts_window-sidecar",
95        "cts_window-extensions",
96        "cts_window-extensions-core",
97        "com.android.window.flags.window-aconfig-java",
98        "truth",
99    ],
100    libs: [
101        "android.test.base",
102    ],
103    test_suites: [
104        "cts",
105        "general-tests",
106    ],
107    sdk_version: "test_current",
108    data: [
109        ":CtsWindowManagerJetpackSecondUidApp",
110        ":CtsWindowManagerJetpackSignedApp",
111    ],
112    per_testcase_directory: true,
113}
114