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