• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Copyright (C) 2008 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    default_team: "trendy_team_framework_backstage_power",
18}
19
20android_test {
21    name: "CtsAppTestCases",
22    defaults: ["cts_defaults"],
23    libs: [
24        "android.test.runner.stubs.test",
25        "org.apache.http.legacy.stubs.test",
26        "android.test.base.stubs.test",
27    ],
28    static_libs: [
29        "compatibility-device-util-axt",
30        "ctstestrunner-axt",
31        "ctstestserver",
32        "cts-wm-util",
33        "mockito-target-minus-junit4",
34        "androidx.test.ext.junit",
35        "androidx.test.rules",
36        "platform-test-annotations",
37        "platformprotosnano",
38        "permission-test-util-lib",
39        "CtsAppTestStubsShared",
40        "android.content.pm.flags-aconfig-java",
41        "android.multiuser.flags-aconfig-java",
42        "am_flags_lib",
43        "flag-junit",
44        "com.android.media.flags.bettertogether-aconfig-java",
45        "android.app.flags-aconfig-java",
46        "ravenwood-junit",
47        "bedstead",
48        "services.core",
49    ],
50    srcs: [
51        "src/**/*.java",
52        "src/**/*.kt",
53    ],
54    // Tag this module as a cts test artifact
55    test_suites: [
56        "cts",
57        "general-tests",
58        "sts",
59    ],
60    instrumentation_for: "CtsAppTestStubs",
61    sdk_version: "test_current",
62    // 29 required for Harrier.
63    min_sdk_version: "29",
64    // Disable coverage since it pushes us over the dex limit and we don't
65    // actually need to measure the tests themselves.
66    jacoco: {
67        exclude_filter: ["**"],
68    },
69    // Even with coverage disabled, we're close to the single dex limit, so allow use of multi-dex.
70    dxflags: ["--multi-dex"],
71    data: [
72        ":CtsSimpleApp",
73        ":CtsAppTestDelayedStart",
74        ":CtsAppTestStubs",
75        ":CtsAppTestStubsApp1",
76        ":CtsAppTestStubsApp3",
77        ":CtsAppTestStubsApp2",
78        ":CtsAppTestStubsApi30",
79        ":CtsAppTestStubsApi34",
80        ":CtsAppTestWedgedStart",
81        ":CtsBadProviderStubs",
82        ":CtsCantSaveState1",
83        ":CtsCantSaveState2",
84        ":StorageDelegator",
85        ":CtsActivityManagerApi29",
86        ":WallpaperTest",
87        ":CtsAppTestProviderApp",
88    ],
89    per_testcase_directory: true,
90}
91
92android_ravenwood_test {
93    name: "CtsAppTestCasesRavenwood",
94    static_libs: [
95        "androidx.annotation_annotation",
96        "androidx.test.rules",
97        "compatibility-device-util-axt-ravenwood",
98    ],
99    srcs: [
100        "src/android/app/cts/ActivityOptionsTest.java",
101        "src/android/app/cts/BroadcastOptionsTest.java",
102    ],
103    auto_gen_config: true,
104    team: "trendy_team_ravenwood",
105}
106
107android_test {
108    name: "CtsDownloadManagerApi28",
109    defaults: ["cts_defaults"],
110    libs: [
111        "android.test.runner.stubs.test",
112        "org.apache.http.legacy.stubs.test",
113        "android.test.base.stubs.test",
114    ],
115    static_libs: [
116        "compatibility-device-util-axt",
117        "ctstestrunner-axt",
118        "ctstestserver",
119        "mockito-target-minus-junit4",
120        "androidx.test.rules",
121        "platform-test-annotations",
122    ],
123    srcs: [
124        "DownloadManagerApi28Test/src/**/*.java",
125        "src/android/app/cts/DownloadManagerTestBase.java",
126    ],
127    resource_dirs: ["app/res"],
128    asset_dirs: ["app/assets"],
129    // Tag this module as a cts test artifact
130    test_suites: [
131        "cts",
132        "general-tests",
133    ],
134    sdk_version: "test_current",
135    min_sdk_version: "21",
136    manifest: "DownloadManagerApi28Test/AndroidManifest.xml",
137    test_config: "DownloadManagerApi28Test/AndroidTest.xml",
138    lint: {
139        baseline_filename: "lint-baseline.xml",
140    },
141}
142
143android_test {
144    name: "CtsDownloadManagerInstaller",
145    defaults: ["cts_defaults"],
146    libs: [
147        "android.test.runner.stubs.test",
148        "org.apache.http.legacy.stubs.test",
149        "android.test.base.stubs.test",
150    ],
151    static_libs: [
152        "compatibility-device-util-axt",
153        "ctstestrunner-axt",
154        "ctstestserver",
155        "mockito-target-minus-junit4",
156        "androidx.test.rules",
157        "platform-test-annotations",
158    ],
159    srcs: [
160        "DownloadManagerInstallerTest/src/**/*.java",
161        "src/android/app/cts/DownloadManagerTestBase.java",
162    ],
163    resource_dirs: ["app/res"],
164    asset_dirs: ["app/assets"],
165    // Tag this module as a cts test artifact
166    test_suites: [
167        "cts",
168        "general-tests",
169    ],
170    sdk_version: "test_current",
171    min_sdk_version: "21",
172    manifest: "DownloadManagerInstallerTest/AndroidManifest.xml",
173    test_config: "DownloadManagerInstallerTest/AndroidTest.xml",
174    lint: {
175        baseline_filename: "lint-baseline.xml",
176    },
177}
178
179android_test {
180    name: "CtsAppStartTestCases",
181    team: "trendy_team_system_performance",
182    defaults: ["cts_defaults"],
183    libs: [
184        "android.test.runner.stubs.system",
185        "org.apache.http.legacy.stubs.system",
186        "android.test.base.stubs.system",
187    ],
188    static_libs: [
189        "androidx.test.uiautomator_uiautomator",
190        "androidx.test.rules",
191        "compatibility-device-util-axt",
192        "CtsExternalServiceCommon",
193        "cts-wm-util",
194        "libprotobuf-java-lite",
195    ],
196    aidl: {
197        local_include_dirs: ["app/src"],
198    },
199    srcs: [
200        "AppStartTest/src/**/*.java",
201        "app/src/**/*.aidl",
202    ],
203    test_suites: [
204        "cts",
205        "general-tests",
206    ],
207    manifest: "AppStartTest/AndroidManifest.xml",
208    test_config: "AppStartTest/AndroidTest.xml",
209    platform_apis: true,
210    data: [
211        ":CtsAppStartInfoApp",
212        ":CtsExternalServiceService",
213        ":CtsAppTestStubs",
214    ],
215    per_testcase_directory: true,
216}
217
218android_test {
219    name: "CtsAppExitTestCases",
220    team: "trendy_team_framework_backstage_power",
221    defaults: ["cts_defaults"],
222    libs: [
223        "android.test.runner.stubs.system",
224        "org.apache.http.legacy.stubs.system",
225        "android.test.base.stubs.system",
226    ],
227    static_libs: [
228        "androidx.test.uiautomator_uiautomator",
229        "androidx.test.rules",
230        "compatibility-device-util-axt",
231        "CtsExternalServiceCommon",
232        "cts-wm-util",
233        "libprotobuf-java-lite",
234    ],
235    aidl: {
236        local_include_dirs: ["app/src"],
237    },
238    srcs: [
239        ":libtombstone_proto-src",
240        "AppExitTest/src/**/*.java",
241        "app/src/**/*.aidl",
242        "src/android/app/cts/android/app/cts/tools/WatchUidRunner.java",
243    ],
244    jarjar_rules: "AppExitTest/jarjar-rules.txt",
245    test_suites: [
246        "cts",
247        "general-tests",
248    ],
249    manifest: "AppExitTest/AndroidManifest.xml",
250    test_config: "AppExitTest/AndroidTest.xml",
251    platform_apis: true,
252    data: [
253        ":CtsSimpleApp",
254        ":CtsExternalServiceService",
255        ":CtsAppTestStubs",
256    ],
257    per_testcase_directory: true,
258}
259
260android_test {
261    name: "CtsAppFgsTestCases",
262    team: "trendy_team_framework_backstage_power",
263    defaults: ["cts_defaults"],
264    libs: [
265        "android.test.runner.stubs.system",
266        "org.apache.http.legacy.stubs.system",
267        "android.test.base.stubs.system",
268    ],
269    static_libs: [
270        "androidx.test.uiautomator_uiautomator",
271        "androidx.test.rules",
272        "compatibility-device-util-axt",
273        "CtsExternalServiceCommon",
274        "cts-wm-util",
275        "libprotobuf-java-lite",
276        "flag-junit",
277        "android.content.pm.flags-aconfig-java",
278        "com.android.media.flags.bettertogether-aconfig-java",
279    ],
280    aidl: {
281        local_include_dirs: ["app/src"],
282    },
283    srcs: [
284        "FgsTest/src/**/*.java",
285        "app/src/**/*.aidl",
286        "app/src/android/app/stubs/ScreenOnActivity.java",
287        "src/android/app/cts/android/app/cts/tools/WatchUidRunner.java",
288        "FgsTestHelper/src/android/app/fgstesthelper/LocalForegroundServiceBase.java",
289    ],
290    test_suites: [
291        "cts",
292        "general-tests",
293    ],
294    instrumentation_for: "CtsAppTestFgsTestHelper",
295    manifest: "FgsTest/AndroidManifest.xml",
296    test_config: "FgsTest/AndroidTest.xml",
297    platform_apis: true,
298    data: [
299        ":CtsAppTestFgsTestHelper",
300        ":CtsAppTestFgsTestHelperCurrent",
301        ":CtsAppTestFgsTestHelperApi33",
302    ],
303    per_testcase_directory: true,
304}
305
306test_module_config {
307    name: "CtsAppTestCases_android_server_am_Presubmit",
308    base: "CtsAppTestCases",
309    test_suites: ["general-tests"],
310    include_filters: [
311        "android.app.cts.ActivityManagerProcessStateTest",
312        "android.app.cts.ServiceTest",
313        "android.app.cts.ActivityManagerTest",
314        "android.app.cts.ActivityManagerFgsBgStartTest",
315        "android.app.cts.TaskDescriptionTest",
316    ],
317    include_annotations: ["android.platform.test.annotations.Presubmit"],
318    exclude_annotations: ["androidx.test.filters.LargeTest"],
319}
320
321test_module_config {
322    name: "CtsAppTestCases_android_server_am",
323    base: "CtsAppTestCases",
324    test_suites: ["general-tests"],
325    include_filters: [
326        "android.app.cts.ActivityManagerProcessStateTest",
327        "android.app.cts.ServiceTest",
328        "android.app.cts.ActivityManagerTest",
329        "android.app.cts.ActivityManagerFgsBgStartTest",
330        "android.app.cts.TaskDescriptionTest",
331    ],
332}
333
334test_module_config {
335    name: "CtsAppTestCases_cts_activitymanagerapi29test",
336    base: "CtsAppTestCases",
337    test_suites: ["general-tests"],
338    include_filters: ["android.app.cts.ActivityManagerApi29Test"],
339}
340
341test_module_config {
342    name: "CtsAppTestCases_cts_requesttileserviceaddtest",
343    base: "CtsAppTestCases",
344    test_suites: ["general-tests"],
345    include_filters: ["android.app.cts.RequestTileServiceAddTest"],
346}
347
348test_module_config {
349    name: "CtsAppTestCases_cts_toolbaractionbartest",
350    base: "CtsAppTestCases",
351    test_suites: ["general-tests"],
352    include_filters: ["android.app.cts.ToolbarActionBarTest"],
353}
354
355test_module_config {
356    name: "CtsAppTestCases_cts_downloadmanagertest",
357    base: "CtsAppTestCases",
358    test_suites: ["general-tests"],
359    include_filters: ["android.app.cts.DownloadManagerTest"],
360}
361
362test_module_config {
363    name: "CtsAppTestCases_all-except-large",
364    base: "CtsAppTestCases",
365    test_suites: ["general-tests"],
366    exclude_filters: ["android.app.cts.ActivityManagerProcessStateTest"],
367    exclude_annotations: ["androidx.test.filters.LargeTest"],
368}
369
370test_module_config {
371    name: "CtsAppTestCases_activitymanagerprocessstatetest",
372    base: "CtsAppTestCases",
373    test_suites: ["general-tests"],
374    include_filters: ["android.app.cts.ActivityManagerProcessStateTest"],
375    exclude_annotations: ["androidx.test.filters.LargeTest"],
376}
377
378test_module_config {
379    name: "CtsAppFgsTestCases_pm_Presubmit",
380    base: "CtsAppFgsTestCases",
381    test_suites: ["general-tests"],
382    include_annotations: ["android.platform.test.annotations.Presubmit"],
383    exclude_annotations: ["androidx.test.filters.LargeTest"],
384}
385