1// Copyright (C) 2024 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: "CtsBroadcastHostTestCases", 21 team: "trendy_team_framework_backstage_power", 22 defaults: ["cts_defaults"], 23 srcs: [ 24 "src/**/*.java", 25 ":CtsBroadcastsTestsConstants", 26 ], 27 libs: [ 28 "tools-common-prebuilt", 29 "cts-tradefed", 30 "tradefed", 31 "truth", 32 ], 33 static_libs: [ 34 "cts-statsd-atom-host-test-utils", 35 "am_flags_host_lib", 36 "flag-junit-host", 37 ], 38 // Tag this module as a cts test artifact 39 test_suites: [ 40 "cts", 41 "general-tests", 42 ], 43 device_common_data: [ 44 ":CtsBroadcastTestHelper", 45 ":CtsBroadcastTestReceiver", 46 ], 47 per_testcase_directory: true, 48} 49 50android_test_helper_app { 51 name: "CtsBroadcastTestHelper", 52 srcs: [ 53 "test-apps/BroadcastDeviceTestHelper/src/**/*.java", 54 ":CtsBroadcastsTestsConstants", 55 ], 56 static_libs: [ 57 "compatibility-device-util-axt", 58 "androidx.test.ext.junit", 59 "androidx.test.rules", 60 "truth", 61 "testng", 62 ], 63 manifest: "test-apps/BroadcastDeviceTestHelper/AndroidManifest.xml", 64 sdk_version: "test_current", 65 // Tag this module as a cts test artifact 66 test_suites: [ 67 "general-tests", 68 ], 69} 70 71android_test_helper_app { 72 name: "CtsBroadcastTestReceiver", 73 srcs: [ 74 "test-apps/BroadcastDeviceTestHelper/src/**/*.java", 75 ":CtsBroadcastsTestsConstants", 76 ], 77 static_libs: [ 78 "compatibility-device-util-axt", 79 "androidx.test.ext.junit", 80 "androidx.test.rules", 81 "truth", 82 "testng", 83 ], 84 manifest: "test-apps/BroadcastDeviceTestHelper/AndroidManifest.xml", 85 aaptflags: [ 86 "--rename-manifest-package com.android.cts.device.broadcasts.receiver", 87 ], 88 sdk_version: "test_current", 89 // Tag this module as a cts test artifact 90 test_suites: [ 91 "general-tests", 92 ], 93} 94 95filegroup { 96 name: "CtsBroadcastsTestsConstants", 97 srcs: [ 98 "src/**/Constants.java", 99 ], 100 path: "src", 101} 102