1// Copyright (C) 2016 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
19android_test_helper_app {
20    name: "CtsDeviceAndProfileOwnerApp23",
21    defaults: ["cts_defaults"],
22    platform_apis: true,
23    srcs: ["src/**/*.java"],
24    libs: [
25        "android.test.runner",
26        "android.test.base",
27    ],
28    static_libs: [
29        "compatibility-device-util-axt",
30        "ctstestrunner-axt",
31        "ub-uiautomator",
32        "cts-security-test-support-library",
33        "androidx.legacy_legacy-support-v4",
34        "cts-devicepolicy-suspensionchecker",
35        "devicepolicy-deviceside-common",
36        "ShortcutManagerTestUtils",
37        "MetricsRecorder",
38        "statsdprotolite",
39    ],
40    resource_dirs: ["res"],
41    asset_dirs: ["assets"],
42    // tag this module as a cts test artifact
43    test_suites: [
44        "cts",
45        "general-tests",
46        "mts",
47    ],
48    manifest: "api23/AndroidManifest.xml",
49}
50
51android_test_helper_app {
52    name: "CtsDeviceAndProfileOwnerApp25",
53    defaults: ["cts_defaults"],
54    platform_apis: true,
55    min_sdk_version: "30",
56    target_sdk_version: "25",
57    srcs: ["src/**/*.java"],
58    libs: [
59        "android.test.runner",
60        "android.test.base",
61    ],
62    static_libs: [
63        "compatibility-device-util-axt",
64        "ctstestrunner-axt",
65        "ub-uiautomator",
66        "cts-security-test-support-library",
67        "androidx.legacy_legacy-support-v4",
68        "cts-devicepolicy-suspensionchecker",
69        "devicepolicy-deviceside-common",
70        "ShortcutManagerTestUtils",
71        "MetricsRecorder",
72        "statsdprotolite",
73    ],
74    resource_dirs: ["res"],
75    asset_dirs: ["assets"],
76    // tag this module as a cts test artifact
77    test_suites: [
78        "arcts",
79        "cts",
80        "general-tests",
81        "mts",
82    ],
83    manifest: "api25/AndroidManifest.xml",
84}
85
86android_test_helper_app {
87    name: "CtsDeviceAndProfileOwnerApp30",
88    defaults: ["cts_defaults"],
89    platform_apis: true,
90    srcs: ["src/**/*.java"],
91    libs: [
92        "android.test.runner",
93        "android.test.base",
94    ],
95    static_libs: [
96        "compatibility-device-util-axt",
97        "ctstestrunner-axt",
98        "ub-uiautomator",
99        "cts-security-test-support-library",
100        "androidx.legacy_legacy-support-v4",
101        "cts-devicepolicy-suspensionchecker",
102        "devicepolicy-deviceside-common",
103        "ShortcutManagerTestUtils",
104        "MetricsRecorder",
105        "statsdprotolite",
106    ],
107    resource_dirs: ["res"],
108    asset_dirs: ["assets"],
109    // tag this module as a cts test artifact
110    test_suites: [
111        "arcts",
112        "cts",
113        "general-tests",
114        "mts",
115    ],
116    manifest: "api30/AndroidManifest.xml",
117}
118
119android_test_helper_app {
120    name: "CtsDeviceAndProfileOwnerApp",
121    defaults: [
122        "cts_defaults",
123        "mts-target-sdk-version-current",
124    ],
125    platform_apis: true,
126    min_sdk_version: "30",
127    srcs: ["src/**/*.java"],
128    libs: [
129        "android.test.runner",
130        "android.test.base",
131    ],
132    static_libs: [
133        "compatibility-device-util-axt",
134        "ctstestrunner-axt",
135        "ub-uiautomator",
136        "cts-security-test-support-library",
137        "androidx.legacy_legacy-support-v4",
138        "cts-devicepolicy-suspensionchecker",
139        "devicepolicy-deviceside-common",
140        "ShortcutManagerTestUtils",
141        "MetricsRecorder",
142        "statsdprotolite",
143    ],
144    resource_dirs: ["res"],
145    asset_dirs: ["assets"],
146    // tag this module as a cts test artifact
147    test_suites: [
148        "arcts",
149        "cts",
150        "general-tests",
151        "mts",
152    ],
153    manifest: "latest/AndroidManifest.xml",
154}
155