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