xref: /aosp_15_r20/frameworks/base/services/tests/powerstatstests/Android.bp (revision d57664e9bc4670b3ecf6748a746a57c557b6bc9e)
1package {
2    default_team: "trendy_team_framework_backstage_power",
3    // See: http://go/android-license-faq
4    default_applicable_licenses: ["frameworks_base_license"],
5}
6
7android_test {
8    name: "PowerStatsTests",
9
10    // Include all test java files.
11    srcs: [
12        "src/**/*.java",
13    ],
14
15    static_libs: [
16        "services.core",
17        "coretests-aidl",
18        "platformprotosnano",
19        "junit",
20        "truth",
21        "androidx.test.runner",
22        "androidx.test.ext.junit",
23        "androidx.test.ext.truth",
24        "androidx.test.uiautomator_uiautomator",
25        "mockito-target-minus-junit4",
26        "ravenwood-junit",
27        "servicestests-utils",
28        "platform-test-annotations",
29        "flag-junit",
30    ],
31
32    libs: [
33        "android.test.base.stubs.system",
34    ],
35
36    resource_dirs: ["res/"],
37
38    data: [
39        ":BstatsTestApp",
40    ],
41
42    test_suites: [
43        "automotive-tests",
44        "device-tests",
45    ],
46
47    platform_apis: true,
48
49    certificate: "platform",
50
51    dxflags: ["--multi-dex"],
52
53    optimize: {
54        enabled: false,
55    },
56}
57
58android_ravenwood_test {
59    name: "PowerStatsTestsRavenwood",
60    static_libs: [
61        "services.core",
62        "platformprotosnano",
63        "coretests-aidl",
64        "ravenwood-junit",
65        "truth",
66        "androidx.annotation_annotation",
67        "androidx.test.rules",
68        "androidx.test.uiautomator_uiautomator",
69        "modules-utils-binary-xml",
70        "flag-junit",
71    ],
72    srcs: [
73        "src/com/android/server/power/stats/*.java",
74        "src/com/android/server/power/stats/format/*.java",
75        "src/com/android/server/power/stats/processor/*.java",
76    ],
77    java_resources: [
78        "res/xml/power_profile*.xml",
79    ],
80    auto_gen_config: true,
81}
82
83test_module_config {
84    name: "PowerStatsTests_stats_bstatscputimesvalidationtest",
85    base: "PowerStatsTests",
86    test_suites: [
87        "automotive-tests",
88        "device-tests",
89    ],
90    include_filters: ["com.android.server.power.stats.BstatsCpuTimesValidationTest"],
91}
92
93test_module_config {
94    name: "PowerStatsTests_power_stats",
95    base: "PowerStatsTests",
96    test_suites: [
97        "automotive-tests",
98        "device-tests",
99    ],
100    include_filters: ["com.android.server.power.stats"],
101}
102