1// Copyright (C) 2023 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: "ContentProviderRestrictionsHostTest", 21 srcs: ["src/**/ContentProviderRestrictionsHostTest.java"], 22 libs: [ 23 "tradefed", 24 ], 25 static_libs: [ 26 "cts-install-lib-host", 27 ], 28 test_suites: ["general-tests"], 29 data: [ 30 ":ContentProviderRestrictionsTestSdkProvider", 31 ":ContentProviderRestrictionsTestApp", 32 ], 33} 34 35android_test_helper_app { 36 name: "ContentProviderRestrictionsTestApp", 37 manifest: "app/ContentProviderRestrictionsTestAppManifest.xml", 38 srcs: [ 39 "app/src/**/ContentProviderRestrictionsTestApp.java", 40 "app/src/**/SdkSandboxEmptyActivity.java", 41 ":framework-sdksandbox-sources", 42 ":sdksandbox_aidl", 43 ":sdksandbox-sources", 44 "sdkprovider/src/**/*.aidl", 45 ], 46 defaults: ["framework-sdksandbox-jarjar-defaults"], 47 static_libs: [ 48 "androidx.core_core", 49 "androidx.test.ext.junit", 50 "compatibility-device-util-axt", 51 "SdkSandboxTestUtils", 52 "ContentProvidersSdkInterfaces", 53 ], 54 test_suites: ["general-tests"], 55 platform_apis: true, 56 min_sdk_version: "33", 57 target_sdk_version: "33", 58} 59 60android_test_helper_app { 61 name: "ContentProviderRestrictionsTestSdkProvider", 62 certificate: ":cts-keyset-test-b", 63 manifest: "sdkprovider/ContentProviderRestrictionsTestSdkProvider.xml", 64 defaults: [ 65 "platform_app_defaults", 66 "framework-sdksandbox-jarjar-defaults", 67 ], 68 srcs: [ 69 "sdkprovider/src/**/*.java", 70 ":framework-sdksandbox-sources", 71 "sdkprovider/src/**/*.aidl", 72 ], 73 static_libs: [ 74 "ContentProvidersSdkInterfaces", 75 "modules-utils-build", 76 ], 77 platform_apis: true, 78 min_sdk_version: "33", 79 target_sdk_version: "33", 80} 81 82java_library { 83 name: "ContentProvidersSdkInterfaces", 84 srcs: [ 85 "src/**/*.aidl", 86 ], 87} 88