1// Copyright (C) 2020 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_test_host {
20    name: "CtsStatsdAtomHostTestCases",
21    defaults: ["cts_defaults"],
22    srcs: [
23        "src/**/alarm/*.java",
24        "src/**/apphibernation/*.java",
25        "src/**/appops/*.java",
26        "src/**/appexit/*.java",
27        "src/**/appstart/*.java",
28        "src/**/batterycycle/*.java",
29        "src/**/batterystats/*.java",
30        "src/**/binderstats/*.java",
31        "src/**/bluetooth/*.java",
32        "src/**/cpu/*.java",
33        "src/**/devicepower/*.java",
34        "src/**/gnss/*.java",
35        "src/**/jobscheduler/*.java",
36        "src/**/integrity/*.java",
37        "src/**/memory/*.java",
38        "src/**/net/*.java",
39        "src/**/notification/*.java",
40        "src/**/perfetto/*.java",
41        "src/**/permissionstate/*.java",
42        "src/**/settingsstats/*.java",
43        "src/**/statsd/*.java",
44        "src/**/telephony/*.java",
45        "src/**/wifi/*.java",
46        "src/**/incremental/*.java",
47    ],
48
49    test_suites: [
50        "cts",
51        "general-tests",
52    ],
53
54    libs: [
55        "compatibility-host-util",
56        "core_cts_test_resources",
57        "cts-tradefed",
58        "host-libprotobuf-java-full",
59        "platformprotos",
60        "tradefed",
61        "truth-prebuilt",
62    ],
63
64    static_libs: [
65        "cts-statsd-atom-host-test-utils",
66        "perfetto_config-full",
67    ],
68
69    data: [
70        ":CtsStatsdAtomApp",
71        ":CtsStatsdApp", //TODO(b/163546661): Remove once migration to new lib is complete.
72    ]
73}
74
75java_library_host {
76    name: "cts-statsd-atom-host-test-utils",
77    srcs: ["src/**/lib/*.java"],
78    libs: [
79        "compatibility-host-util",
80        "cts-tradefed",
81        "host-libprotobuf-java-full",
82        "platformprotos",
83        "tradefed",
84        "truth-prebuilt",
85    ],
86}
87