| // Copyright (C) 2019 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_team: "trendy_team_responsible_apis", |
| default_applicable_licenses: ["Android-Apache-2.0"], |
| } |
| |
| java_library { |
| name: "bal-testapp", |
| srcs: [ |
| "src/**/*.java", |
| "src/**/*.kt", |
| ], |
| static_libs: [ |
| "cts-wm-app-base", |
| "cts-background-activity-common", |
| "cts-background-activity-common-lib", |
| "cts_window-sidecar", |
| "cts_window-extensions", |
| "cts_window_jetpack_utils", |
| ], |
| visibility: ["//visibility:private"], |
| } |
| |
| java_defaults { |
| name: "CtsBackgroundActivityAppDefault", |
| defaults: ["cts_support_defaults"], |
| static_libs: ["bal-testapp"], |
| test_suites: [ |
| "general-tests", |
| ], |
| target_sdk_version: "current", |
| sdk_version: "test_current", |
| } |
| |
| android_test_helper_app { |
| name: "CtsBackgroundActivityAppA", |
| defaults: ["CtsBackgroundActivityAppDefault"], |
| } |
| |
| android_test_helper_app { |
| name: "CtsBackgroundActivityAppA33", |
| defaults: ["CtsBackgroundActivityAppDefault"], |
| |
| target_sdk_version: "33", |
| aaptflags: [ |
| "--rename-manifest-package android.server.wm.backgroundactivity.appa33", |
| ], |
| } |
| |
| android_test_helper_app { |
| name: "CtsBackgroundActivityAppA36", |
| defaults: ["CtsBackgroundActivityAppDefault"], |
| |
| target_sdk_version: "36", |
| aaptflags: [ |
| "--rename-manifest-package android.server.wm.backgroundactivity.appa36", |
| ], |
| } |
| |
| android_test_helper_app { |
| name: "CtsBackgroundActivityAppB", |
| defaults: ["CtsBackgroundActivityAppDefault"], |
| |
| aaptflags: [ |
| "--rename-manifest-package android.server.wm.backgroundactivity.appb", |
| ], |
| } |
| |
| android_test_helper_app { |
| name: "CtsBackgroundActivityAppB33", |
| defaults: ["CtsBackgroundActivityAppDefault"], |
| |
| target_sdk_version: "33", |
| aaptflags: [ |
| "--rename-manifest-package android.server.wm.backgroundactivity.appb33", |
| ], |
| } |
| |
| android_test_helper_app { |
| name: "CtsBackgroundActivityAppC", |
| defaults: ["CtsBackgroundActivityAppDefault"], |
| |
| aaptflags: [ |
| "--rename-manifest-package android.server.wm.backgroundactivity.appc", |
| ], |
| } |
| |
| android_test_helper_app { |
| name: "CtsBackgroundActivityAppC33", |
| defaults: ["CtsBackgroundActivityAppDefault"], |
| |
| target_sdk_version: "33", |
| aaptflags: [ |
| "--rename-manifest-package android.server.wm.backgroundactivity.appc33", |
| ], |
| } |
| |
| android_test_helper_app { |
| name: "CtsBackgroundActivityAppAllowCrossUidFlagDefault", |
| defaults: ["CtsBackgroundActivityAppDefault"], |
| |
| manifest: "AndroidManifestAllowCrossUidFlagDefault.xml", |
| aaptflags: [ |
| "--rename-manifest-package android.server.wm.backgroundactivity.appasmoptout", |
| ], |
| } |