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: "BroadcastRestrictionsHostTest", 21 srcs: ["src/**/BroadcastRestrictionsHostTest.java"], 22 libs: [ 23 "tradefed", 24 ], 25 static_libs: [ 26 "cts-install-lib-host", 27 ], 28 test_suites: ["general-tests"], 29 data: [ 30 ":BroadcastRestrictionsTestSdkProvider", 31 ":BroadcastRestrictionsTestApp", 32 ], 33} 34 35android_test_helper_app { 36 name: "BroadcastRestrictionsTestApp", 37 manifest: "app/BroadcastRestrictionsTestAppManifest.xml", 38 srcs: [ 39 "app/src/**/BroadcastRestrictionsTestApp.java", 40 ":framework-sdksandbox-sources", 41 ":sdksandbox_aidl", 42 ":sdksandbox-sources", 43 "sdkprovider/src/**/*.aidl", 44 ], 45 defaults: ["framework-sdksandbox-jarjar-defaults"], 46 static_libs: [ 47 "androidx.core_core", 48 "androidx.test.ext.junit", 49 "compatibility-device-util-axt", 50 "SdkSandboxTestUtils", 51 "BroadcastsSdkInterfaces", 52 "modules-utils-build", 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: "BroadcastRestrictionsTestSdkProvider", 62 certificate: ":cts-keyset-test-b", 63 manifest: "sdkprovider/BroadcastRestrictionsTestSdkProvider.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 "BroadcastsSdkInterfaces", 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: "BroadcastsSdkInterfaces", 84 srcs: [ 85 "src/**/*.aidl", 86 ], 87}