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_team: "trendy_team_framework_android_packages",
17    default_applicable_licenses: ["Android-Apache-2.0"],
18}
19
20java_defaults {
21    name: "stats_host_cts_defaults",
22    defaults: ["cts_defaults"],
23
24    // tag this module as a cts test artifact
25    test_suites: [
26        "cts",
27        "general-tests",
28    ],
29    libs: [
30        "cts-tradefed",
31        "tradefed",
32        "compatibility-host-util",
33        "cts-host-utils",
34    ],
35    static_libs: [
36        "cts-statsd-atom-host-test-utils",
37        "flag-junit-host",
38        "android.content.pm.flags-aconfig-java-host",
39    ],
40    data: [
41        ":CtsStatsdAtomEmptyApp",
42        ":CtsStatsdAtomEmptyAppV2",
43        ":CtsStatsdAtomEmptyApp2",
44        ":CtsStatsdAtomStaticSharedLibProviderV1",
45        ":CtsStatsdAtomStaticSharedLibProviderV2",
46        ":CtsStatsdAtomEmptySplitApp",
47        ":CtsStatsdAtomApp",
48        ":CtsStatsdAtomTestComponentStateApp",
49        ":PackageManagerStatsTestsHelper",
50    ],
51    java_resource_dirs: ["res"],
52}
53
54java_test_host {
55    name: "CtsPackageManagerStatsHostTestCases",
56    defaults: ["stats_host_cts_defaults"],
57    srcs: [
58        "src/**/ComponentStateChangedReportedStatsTests.java",
59        "src/**/PackageInstallationSessionReportedStatsTests.java",
60        "src/**/PackageInstallerV2StatsTests.java",
61        "src/**/PackageManagerStatsTestsBase.java",
62        "src/**/SettingsProviderSettingChangedStatsTests.java",
63        "src/**/Utils.java",
64    ],
65    test_config: "AndroidTest.xml",
66}
67
68java_test_host {
69    name: "CtsPackageManagerIncrementalStatsHostTestCases",
70    defaults: ["stats_host_cts_defaults"],
71
72    srcs: [
73        "src/**/IncrementalAppErrorStatsTests.java",
74        "src/**/InstalledIncrementalPackageStatsTests.java",
75        "src/**/PackageManagerStatsTestsBase.java",
76        "src/**/Utils.java",
77    ],
78    test_config: "IncrementalStatsTests.xml",
79}
80