1// Copyright (C) 2022 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_test_host { 20 name: "CtsSdkSandboxHostSideTests", 21 srcs: [ 22 "src/**/*.java", 23 ":CtsHostsideTestsAppSecurityUtil", 24 ], 25 libs: ["tradefed"], 26 static_libs: [ 27 "modules-utils-build-testing", 28 "SdkSandboxHostTestUtils", 29 ], 30 test_suites: [ 31 "cts", 32 "mts-adservices", 33 "general-tests", 34 ], 35 data: [ 36 ":CtsSdkSandboxHostTestApp", 37 ":CtsSdkSandboxHostTestApp2", 38 ":SdkSandboxDataIsolationTestProvider", 39 ":SdkSandboxStorageTestProvider", 40 ":SdkSandboxMediationTestProvider", 41 ], 42} 43 44android_test_helper_app { 45 name: "CtsSdkSandboxHostTestApp", 46 manifest: "app/AndroidManifest.xml", 47 defaults: ["platform_app_defaults"], 48 srcs: [ 49 "app/src/**/app/*.java", 50 ], 51 libs: [ 52 "framework-sdksandbox.impl", 53 ], 54 static_libs: [ 55 "CtsStorageTestSdkApi", 56 "CtsMediationTestSdkApi", 57 "CtsDataIsolationTestSdkApi", 58 "SdkSandboxTestUtils", 59 "androidx.core_core", 60 "androidx.test.ext.junit", 61 "compatibility-device-util-axt", 62 ], 63 min_sdk_version: "33", 64 target_sdk_version: "33", 65} 66 67android_test_helper_app { 68 name: "CtsSdkSandboxHostTestApp2", 69 manifest: "app/AndroidManifest2.xml", 70 srcs: [ 71 "app/src/**/app2/*.java", 72 ], 73 defaults: ["platform_app_defaults"], 74 min_sdk_version: "33", 75 target_sdk_version: "33", 76} 77 78android_test_helper_app { 79 name: "SdkSandboxDataIsolationTestProvider", 80 manifest: "provider/AndroidManifest.xml", 81 defaults: ["platform_app_defaults"], 82 certificate: ":sdksandbox-test", 83 srcs: [ 84 "provider/src/**/dataisolationtest/*.java", 85 ], 86 static_libs: [ 87 "CtsDataIsolationTestSdkApi", 88 "compatibility-device-util-axt", 89 ], 90 min_sdk_version: "33", 91 target_sdk_version: "33", 92} 93 94java_library { 95 name: "CtsDataIsolationTestSdkApi", 96 srcs: [ 97 "provider/src/**/dataisolationtest/*.aidl", 98 ], 99} 100 101android_test_helper_app { 102 name: "SdkSandboxStorageTestProvider", 103 manifest: "provider/StorageTestManifest.xml", 104 defaults: ["platform_app_defaults"], 105 certificate: ":sdksandbox-test", 106 srcs: [ 107 "provider/src/**/storagetest/*.java", 108 ], 109 static_libs: [ 110 "CtsStorageTestSdkApi", 111 "compatibility-device-util-axt", 112 ], 113 min_sdk_version: "33", 114 target_sdk_version: "33", 115} 116 117android_test_helper_app { 118 name: "SdkSandboxMediationTestProvider", 119 manifest: "provider/MediationTestManifest.xml", 120 defaults: ["platform_app_defaults"], 121 certificate: ":sdksandbox-test", 122 srcs: [ 123 "provider/src/**/mediationtest/*.java", 124 ], 125 static_libs: [ 126 "CtsMediationTestSdkApi", 127 "compatibility-device-util-axt", 128 ], 129 min_sdk_version: "33", 130 target_sdk_version: "33", 131} 132 133java_library { 134 name: "CtsMediationTestSdkApi", 135 srcs: [ 136 "provider/src/**/mediationtest/*.aidl", 137 ":framework-sdksandbox-aidl-sources", 138 ], 139 libs: [ 140 "framework-sdksandbox.impl", 141 ], 142 min_sdk_version: "33", // This is passed to the AIDL compiler so that generated Java code doesn't use newer (>33) APIs 143 144} 145 146java_library { 147 name: "CtsStorageTestSdkApi", 148 srcs: [ 149 "provider/src/**/storagetest/*.aidl", 150 ], 151} 152