blob: d6ca10a23fb944d24635755f4a84f3d52c7968b4 [file] [log] [blame]
package {
default_team: "trendy_team_framework_backstage_power",
// See: http://go/android-license-faq
default_applicable_licenses: ["frameworks_base_license"],
}
android_test {
name: "PowerStatsTests",
// Include all test java files.
srcs: [
"src/**/*.java",
],
static_libs: [
"services.core",
"coretests-aidl",
"platformprotosnano",
"junit",
"truth",
"androidx.test.runner",
"androidx.test.ext.junit",
"androidx.test.ext.truth",
"androidx.test.uiautomator_uiautomator",
"mockito-target-minus-junit4",
"ravenwood-junit",
"servicestests-utils",
"platform-test-annotations",
"flag-junit",
],
libs: [
"android.test.base.stubs.system",
],
resource_dirs: ["res/"],
data: [
":BstatsTestApp",
],
test_suites: [
"automotive-tests",
"device-tests",
],
platform_apis: true,
certificate: "platform",
dxflags: ["--multi-dex"],
optimize: {
enabled: false,
},
}
android_ravenwood_test {
name: "PowerStatsTestsRavenwood",
static_libs: [
"services.core",
"platformprotosnano",
"coretests-aidl",
"ravenwood-junit",
"truth",
"androidx.annotation_annotation",
"androidx.test.rules",
"androidx.test.uiautomator_uiautomator",
"modules-utils-binary-xml",
"flag-junit",
],
srcs: [
"src/com/android/server/power/stats/*.java",
"src/com/android/server/power/stats/format/*.java",
"src/com/android/server/power/stats/processor/*.java",
],
java_resources: [
"res/xml/power_profile*.xml",
],
auto_gen_config: true,
}
test_module_config {
name: "PowerStatsTests_stats_bstatscputimesvalidationtest",
base: "PowerStatsTests",
test_suites: [
"automotive-tests",
"device-tests",
],
include_filters: ["com.android.server.power.stats.BstatsCpuTimesValidationTest"],
}
test_module_config {
name: "PowerStatsTests_power_stats",
base: "PowerStatsTests",
test_suites: [
"automotive-tests",
"device-tests",
],
include_filters: ["com.android.server.power.stats"],
}