• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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/**/gamemanager/*.java",
37        "src/**/gnss/*.java",
38        "src/**/jobscheduler/*.java",
39        "src/**/integrity/*.java",
40        "src/**/media/*.java",
41        "src/**/memory/*.java",
42        "src/**/net/*.java",
43        "src/**/notification/*.java",
44        "src/**/perfetto/*.java",
45        "src/**/performancehintmanager/*.java",
46        "src/**/permissionstate/*.java",
47        "src/**/settingsstats/*.java",
48        "src/**/sizecompatrestartbutton/*.java",
49        "src/**/statsd/*.java",
50        "src/**/telephony/*.java",
51        "src/**/wifi/*.java",
52        "src/**/incremental/*.java",
53    ],
54
55    test_suites: [
56        "cts",
57        "general-tests",
58    ],
59
60    libs: [
61        "compatibility-host-util",
62        "core_cts_test_resources",
63        "cts-tradefed",
64        "host-libprotobuf-java-full",
65        "platformprotos",
66        "tradefed",
67        "truth-prebuilt",
68    ],
69
70    static_libs: [
71        "cts-statsd-atom-host-test-utils",
72        "perfetto_config-full",
73    ],
74
75    data: [
76        ":CtsStatsdAtomApp",
77        ":CtsStatsdApp", //TODO(b/163546661): Remove once migration to new lib is complete.
78        ":CtsAppExitTestCases",
79        ":CtsExternalServiceService",
80        ":CtsSimpleApp",
81        ":CtsStatsdAlarmHelper",
82        ":CtsStatsdAlarmHelper2",
83    ],
84    per_testcase_directory: true,
85}
86
87java_library_host {
88    name: "cts-statsd-atom-host-test-utils",
89    srcs: ["src/**/lib/*.java"],
90    libs: [
91        "compatibility-host-util",
92        "cts-tradefed",
93        "host-libprotobuf-java-full",
94        "platformprotos",
95        "tradefed",
96        "truth-prebuilt",
97    ],
98}
99