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