1//
2// Copyright (C) 2018 The Android Open Source Project
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8//      http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15//
16
17package {
18    // See: http://go/android-license-faq
19    // A large-scale-change added 'default_applicable_licenses' to import
20    // all of the 'license_kinds' from "frameworks_base_license"
21    // to get the below license kinds:
22    //   SPDX-license-identifier-Apache-2.0
23    default_team: "trendy_team_windowing_sdk",
24    default_applicable_licenses: ["frameworks_base_license"],
25}
26
27filegroup {
28    name: "FlickerTestsOtherCommon-src",
29    srcs: ["src/**/ActivityEmbeddingTestBase.kt"],
30}
31
32filegroup {
33    name: "FlickerTestsOtherOpen-src",
34    srcs: ["src/**/open/*"],
35}
36
37filegroup {
38    name: "FlickerTestsOtherRotation-src",
39    srcs: ["src/**/rotation/*"],
40}
41
42java_library {
43    name: "FlickerTestsOtherCommon",
44    defaults: ["FlickerTestsDefault"],
45    srcs: [":FlickerTestsOtherCommon-src"],
46    static_libs: ["FlickerTestsBase"],
47}
48
49java_defaults {
50    name: "FlickerTestsOtherDefaults",
51    defaults: ["FlickerTestsDefault"],
52    manifest: "AndroidManifest.xml",
53    package_name: "com.android.server.wm.flicker",
54    instrumentation_target_package: "com.android.server.wm.flicker",
55    test_config_template: "AndroidTestTemplate.xml",
56    static_libs: [
57        "FlickerTestsBase",
58        "FlickerTestsOtherCommon",
59    ],
60    data: ["trace_config/*"],
61}
62
63android_test {
64    name: "FlickerTestsOtherOpen",
65    defaults: ["FlickerTestsOtherDefaults"],
66    srcs: [":FlickerTestsOtherOpen-src"],
67}
68
69android_test {
70    name: "FlickerTestsOtherRotation",
71    defaults: ["FlickerTestsOtherDefaults"],
72    srcs: [":FlickerTestsOtherRotation-src"],
73}
74
75android_test {
76    name: "FlickerTestsOther",
77    defaults: ["FlickerTestsOtherDefaults"],
78    srcs: ["src/**/*"],
79    exclude_srcs: [
80        ":FlickerTestsOtherOpen-src",
81        ":FlickerTestsOtherRotation-src",
82        ":FlickerTestsOtherCommon-src",
83    ],
84}
85