// Copyright (C) 2024 The Android Open Source Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. package { default_applicable_licenses: ["Android-Apache-2.0"], } java_test_host { name: "CtsBroadcastHostTestCases", team: "trendy_team_framework_backstage_power", defaults: ["cts_defaults"], srcs: [ "src/**/*.java", ":CtsBroadcastsTestsConstants", ], libs: [ "tools-common-prebuilt", "cts-tradefed", "tradefed", "truth", ], static_libs: [ "cts-statsd-atom-host-test-utils", "am_flags_host_lib", "flag-junit-host", ], // Tag this module as a cts test artifact test_suites: [ "cts", "general-tests", ], device_common_data: [ ":CtsBroadcastTestHelper", ":CtsBroadcastTestReceiver", ], per_testcase_directory: true, } android_test_helper_app { name: "CtsBroadcastTestHelper", srcs: [ "test-apps/BroadcastDeviceTestHelper/src/**/*.java", ":CtsBroadcastsTestsConstants", ], static_libs: [ "compatibility-device-util-axt", "androidx.test.ext.junit", "androidx.test.rules", "truth", "testng", ], manifest: "test-apps/BroadcastDeviceTestHelper/AndroidManifest.xml", sdk_version: "test_current", // Tag this module as a cts test artifact test_suites: [ "general-tests", ], } android_test_helper_app { name: "CtsBroadcastTestReceiver", srcs: [ "test-apps/BroadcastDeviceTestHelper/src/**/*.java", ":CtsBroadcastsTestsConstants", ], static_libs: [ "compatibility-device-util-axt", "androidx.test.ext.junit", "androidx.test.rules", "truth", "testng", ], manifest: "test-apps/BroadcastDeviceTestHelper/AndroidManifest.xml", aaptflags: [ "--rename-manifest-package com.android.cts.device.broadcasts.receiver", ], sdk_version: "test_current", // Tag this module as a cts test artifact test_suites: [ "general-tests", ], } filegroup { name: "CtsBroadcastsTestsConstants", srcs: [ "src/**/Constants.java", ], path: "src", }