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", 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 "coretests-aidl", 63 "ravenwood-junit", 64 "truth", 65 "androidx.annotation_annotation", 66 "androidx.test.rules", 67 "androidx.test.uiautomator_uiautomator", 68 "modules-utils-binary-xml", 69 "flag-junit", 70 ], 71 srcs: [ 72 "src/com/android/server/power/stats/*.java", 73 ], 74 java_resources: [ 75 "res/xml/power_profile*.xml", 76 ], 77 auto_gen_config: true, 78} 79