1// Copyright (C) 2018 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
19java_library {
20    name: "platform-test-rules",
21    static_libs: [
22        "androidx.benchmark_benchmark-common",
23        "androidx.benchmark_benchmark-macro",
24        "androidx.benchmark_benchmark-macro-junit4",
25        "androidx.test.runner",
26        "androidx.test.uiautomator_uiautomator",
27        "app-helpers-handheld-interfaces",
28        "collector-device-lib",
29        "collector-device-lib-platform",
30        "//frameworks/base/packages/SystemUI/aconfig:com_android_systemui_flags_lib",
31        "guava",
32        "memory-helper",
33        "notes-role-test-helper",
34        "package-helper",
35        "launcher-aosp-tapl",
36        "flickerlib",
37        "statsd-helper",
38        "health-testing-utils",
39        "uiautomator-helpers",
40        "uinput-device-test-helper",
41        "user-helper",
42        "kotlin-reflect",
43    ],
44    srcs: [
45        "src/**/*.java",
46        "src/**/*.kt",
47    ],
48}
49
50// Similar to platform-test-rules above but reduces the number of lib dependencies. When using
51// platform-test-rules, tradefed includes a different version of protobuf compared to the one
52// included by the dependencies above causing failures.
53java_library {
54    name: "platform-test-rules-deviceless",
55    static_libs: [
56        "junit",
57        "androidx.test.runner",
58    ],
59    srcs: [
60        "src/android/platform/test/rule/LimitDevicesRule.kt",
61        "src/android/platform/test/rule/AnnotationUtils.kt",
62    ],
63}
64
65java_library {
66    name: "platform-test-core-rules",
67    static_libs: [
68        "androidx.benchmark_benchmark-common",
69        "androidx.benchmark_benchmark-macro",
70        "androidx.benchmark_benchmark-macro-junit4",
71        "androidx.test.runner",
72        "androidx.test.uiautomator_uiautomator",
73        "app-helpers-handheld-interfaces",
74        "collector-device-lib",
75        "collector-device-lib-platform",
76        "guava",
77        "memory-helper",
78        "package-helper",
79        "statsd-helper",
80        "launcher-aosp-tapl",
81        "health-testing-utils",
82        "uiautomator-helpers",
83    ],
84    srcs: [
85        "src/android/platform/test/rule/*SettingRule.kt",
86        "src/**/*.java",
87    ],
88}
89
90filegroup {
91    name: "platform-test-screenshot-rules",
92    srcs: [
93        "src/android/platform/test/rule/DisableAnimationsRule.kt",
94    ],
95}
96