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 "apct-perftests-utils", 31 ], 32 33 libs: [ 34 "android.test.base.stubs.system", 35 ], 36 37 resource_dirs: ["res/"], 38 39 data: [ 40 ":BstatsTestApp", 41 ], 42 43 test_suites: [ 44 "automotive-tests", 45 "device-tests", 46 ], 47 48 platform_apis: true, 49 50 certificate: "platform", 51 52 dxflags: ["--multi-dex"], 53 54 optimize: { 55 enabled: false, 56 }, 57} 58 59android_ravenwood_test { 60 name: "PowerStatsTestsRavenwood", 61 static_libs: [ 62 "services.core", 63 "platformprotosnano", 64 "coretests-aidl", 65 "ravenwood-junit", 66 "truth", 67 "androidx.annotation_annotation", 68 "androidx.test.ext.junit", 69 "androidx.test.rules", 70 "androidx.test.uiautomator_uiautomator", 71 "modules-utils-binary-xml", 72 "flag-junit", 73 "apct-perftests-utils", 74 ], 75 srcs: [ 76 "src/com/android/server/power/stats/*.java", 77 "src/com/android/server/power/stats/format/*.java", 78 "src/com/android/server/power/stats/processor/*.java", 79 ], 80 java_resources: [ 81 "res/xml/power_profile*.xml", 82 ], 83 auto_gen_config: true, 84} 85 86test_module_config { 87 name: "PowerStatsTests_stats_bstatscputimesvalidationtest", 88 base: "PowerStatsTests", 89 test_suites: [ 90 "automotive-tests", 91 "device-tests", 92 ], 93 include_filters: ["com.android.server.power.stats.BstatsCpuTimesValidationTest"], 94} 95 96test_module_config { 97 name: "PowerStatsTests_power_stats", 98 base: "PowerStatsTests", 99 test_suites: [ 100 "automotive-tests", 101 "device-tests", 102 ], 103 include_filters: ["com.android.server.power.stats"], 104} 105