xref: /aosp_15_r20/platform_testing/libraries/health/rules/Android.bp (revision dd0948b35e70be4c0246aabd6c72554a5eb8b22a)
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        "kotlin-reflect",
59    ],
60    srcs: [
61        "src/android/platform/test/rule/AnnotationUtils.kt",
62        "src/android/platform/test/rule/LimitDevicesRule.kt",
63        "src/android/platform/test/rule/TestAnnotationScanner.kt",
64    ],
65}
66
67java_library {
68    name: "platform-test-core-rules",
69    static_libs: [
70        "androidx.benchmark_benchmark-common",
71        "androidx.benchmark_benchmark-macro",
72        "androidx.benchmark_benchmark-macro-junit4",
73        "androidx.test.runner",
74        "androidx.test.uiautomator_uiautomator",
75        "app-helpers-handheld-interfaces",
76        "collector-device-lib",
77        "collector-device-lib-platform",
78        "guava",
79        "memory-helper",
80        "package-helper",
81        "statsd-helper",
82        "launcher-aosp-tapl",
83        "health-testing-utils",
84        "uiautomator-helpers",
85    ],
86    srcs: [
87        "src/android/platform/test/rule/*SettingRule.kt",
88        "src/**/*.java",
89    ],
90}
91
92filegroup {
93    name: "platform-test-screenshot-rules",
94    srcs: [
95        "src/android/platform/test/rule/DisableAnimationsRule.kt",
96    ],
97}
98