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
15android_test {
16    name: "CtsShortcutManagerTestCases",
17    defaults: [
18        "cts_defaults",
19        "CtsShortcutManagerDefaults",
20    ],
21    libs: [
22        "android.test.runner",
23        "android.test.base",
24    ],
25    srcs: ["src/**/*.java"],
26    test_suites: [
27        "cts",
28        "vts10",
29        "general-tests",
30    ],
31}
32
33//-----------------------------------------------------------
34android_test_helper_app {
35    name: "CtsShortcutManagerLauncher1",
36    defaults: [
37        "cts_defaults",
38        "CtsShortcutManagerDefaults",
39    ],
40    srcs: ["packages/src/**/*.java"],
41    // tag this module as a cts test artifact
42    test_suites: [
43        "cts",
44        "vts10",
45        "general-tests",
46    ],
47    aaptflags: [
48        "--rename-manifest-package",
49        "android.content.pm.cts.shortcutmanager.packages.launcher1",
50    ],
51    manifest: "packages/launchermanifest/AndroidManifest.xml",
52}
53
54//-----------------------------------------------------------
55android_test_helper_app {
56    name: "CtsShortcutManagerLauncher2",
57    defaults: [
58        "cts_defaults",
59        "CtsShortcutManagerDefaults",
60    ],
61    srcs: ["packages/src/**/*.java"],
62    // tag this module as a cts test artifact
63    test_suites: [
64        "cts",
65        "vts10",
66        "general-tests",
67    ],
68    aaptflags: [
69        "--rename-manifest-package",
70        "android.content.pm.cts.shortcutmanager.packages.launcher2",
71    ],
72    manifest: "packages/launchermanifest/AndroidManifest.xml",
73}
74
75//-----------------------------------------------------------
76android_test_helper_app {
77    name: "CtsShortcutManagerLauncher3",
78    defaults: [
79        "cts_defaults",
80        "CtsShortcutManagerDefaults",
81    ],
82    srcs: ["packages/src/**/*.java"],
83    // tag this module as a cts test artifact
84    test_suites: [
85        "cts",
86        "vts10",
87        "general-tests",
88    ],
89    aaptflags: [
90        "--rename-manifest-package",
91        "android.content.pm.cts.shortcutmanager.packages.launcher3",
92    ],
93    manifest: "packages/launchermanifest/AndroidManifest.xml",
94}
95
96android_test_helper_app {
97    name: "CtsShortcutManagerLauncher4",
98    defaults: [
99        "cts_defaults",
100        "CtsShortcutManagerDefaults",
101    ],
102    srcs: ["packages/src/**/*.java"],
103    // tag this module as a cts test artifact
104    test_suites: [
105        "cts",
106        "vts10",
107        "general-tests",
108    ],
109    aaptflags: [
110        "--rename-manifest-package",
111        "android.content.pm.cts.shortcutmanager.packages.launcher4",
112    ],
113    manifest: "packages/launchermanifest_nonshared/AndroidManifest.xml",
114}
115
116android_test_helper_app {
117    name: "CtsShortcutManagerPackage1",
118    defaults: [
119        "cts_defaults",
120        "CtsShortcutManagerDefaults",
121    ],
122    srcs: ["packages/src/**/*.java"],
123    // tag this module as a cts test artifact
124    test_suites: [
125        "cts",
126        "vts10",
127        "general-tests",
128    ],
129    aaptflags: [
130        "--rename-manifest-package",
131        "android.content.pm.cts.shortcutmanager.packages.package1",
132    ],
133    manifest: "packages/packagemanifest/AndroidManifest.xml",
134    resource_dirs: ["packages/packagemanifest/res"],
135}
136
137//-----------------------------------------------------------
138android_test_helper_app {
139    name: "CtsShortcutManagerPackage2",
140    defaults: [
141        "cts_defaults",
142        "CtsShortcutManagerDefaults",
143    ],
144    srcs: ["packages/src/**/*.java"],
145    // tag this module as a cts test artifact
146    test_suites: [
147        "cts",
148        "vts10",
149        "general-tests",
150    ],
151    aaptflags: [
152        "--rename-manifest-package",
153        "android.content.pm.cts.shortcutmanager.packages.package2",
154    ],
155    manifest: "packages/packagemanifest/AndroidManifest.xml",
156    resource_dirs: ["packages/packagemanifest/res"],
157}
158
159//-----------------------------------------------------------
160android_test_helper_app {
161    name: "CtsShortcutManagerPackage3",
162    defaults: [
163        "cts_defaults",
164        "CtsShortcutManagerDefaults",
165    ],
166    srcs: ["packages/src/**/*.java"],
167    // tag this module as a cts test artifact
168    test_suites: [
169        "cts",
170        "vts10",
171        "general-tests",
172    ],
173    aaptflags: [
174        "--rename-manifest-package",
175        "android.content.pm.cts.shortcutmanager.packages.package3",
176    ],
177    manifest: "packages/packagemanifest/AndroidManifest.xml",
178    resource_dirs: ["packages/packagemanifest/res"],
179}
180
181android_test_helper_app {
182    name: "CtsShortcutManagerPackage4",
183    defaults: [
184        "cts_defaults",
185        "CtsShortcutManagerDefaults",
186    ],
187    srcs: ["packages/src/**/*.java"],
188    // tag this module as a cts test artifact
189    test_suites: [
190        "cts",
191        "vts10",
192        "general-tests",
193    ],
194    aaptflags: [
195        "--rename-manifest-package",
196        "android.content.pm.cts.shortcutmanager.packages.package4",
197    ],
198    manifest: "packages/packagemanifest_nonshared/AndroidManifest.xml",
199}
200
201android_test_helper_app {
202    name: "CtsShortcutManagerThrottlingTest",
203    defaults: [
204        "cts_defaults",
205        "CtsShortcutManagerDefaults",
206    ],
207    // Tag this module as a cts test artifact
208    test_suites: [
209        "cts",
210        "vts10",
211        "general-tests",
212    ],
213    srcs: ["throttling/src/**/*.java"],
214    min_sdk_version: "25",
215    manifest: "throttling/AndroidManifest.xml",
216}
217
218java_library {
219    name: "CtsShortcutManagerLib",
220    srcs: ["common/src/**/*.java"],
221    static_libs: [
222        "androidx.test.rules",
223        "ShortcutManagerTestUtils",
224    ],
225}
226
227java_defaults {
228    name: "CtsShortcutManagerDefaults",
229    sdk_version: "test_current",
230    static_libs: [
231        "androidx.test.rules",
232        "androidx.legacy_legacy-support-v4",
233        "mockito-target-minus-junit4",
234        "compatibility-device-util-axt",
235        "ctstestrunner-axt",
236        "ub-uiautomator",
237        "ShortcutManagerTestUtils",
238        "CtsShortcutManagerLib",
239    ],
240}
241