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_jetpack_utils", 54 srcs: [ 55 "src/android/server/wm/jetpack/utils/**/*.java", 56 ":cts-wm-nested-shell-permission", 57 ], 58 static_libs: [ 59 "compatibility-device-util-axt", 60 "cts_window-extensions", 61 "cts_window-extensions-core", 62 "cts_window-sidecar", 63 "cts-wm-window-manager-helper", 64 ], 65 sdk_version: "test_current", 66} 67 68android_test { 69 name: "CtsWindowManagerJetpackTestCases", 70 defaults: ["cts_defaults"], 71 srcs: ["src/**/*.java"], 72 static_libs: [ 73 "androidx.test.ext.junit", 74 "androidx.test.rules", 75 "compatibility-device-util-axt", 76 "platform-test-annotations", 77 "cts-wm-util", 78 "cts_window-sidecar", 79 "cts_window-extensions", 80 "cts_window-extensions-core", 81 ], 82 libs: [ 83 "android.test.base", 84 ], 85 test_suites: [ 86 "cts", 87 "general-tests", 88 ], 89 sdk_version: "test_current", 90 data: [ 91 ":CtsWindowManagerJetpackSecondUidApp", 92 ":CtsWindowManagerJetpackSignedApp", 93 ], 94 per_testcase_directory: true, 95} 96