1// Copyright (C) 2008 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_applicable_licenses: ["Android-Apache-2.0"], 17 default_team: "trendy_team_framework_backstage_power", 18} 19 20android_test { 21 name: "CtsAppTestCases", 22 team: "trendy_team_arc_app_compat", 23 defaults: ["cts_defaults"], 24 libs: [ 25 "android.test.runner", 26 "org.apache.http.legacy", 27 "android.test.base", 28 ], 29 static_libs: [ 30 "compatibility-device-util-axt", 31 "ctstestrunner-axt", 32 "ctstestserver", 33 "cts-wm-util", 34 "mockito-target-minus-junit4", 35 "androidx.test.ext.junit", 36 "androidx.test.rules", 37 "platform-test-annotations", 38 "platformprotosnano", 39 "permission-test-util-lib", 40 "CtsAppTestStubsShared", 41 "android.content.pm.flags-aconfig-java", 42 "android.multiuser.flags-aconfig-java", 43 "flag-junit", 44 "com.android.media.flags.bettertogether-aconfig-java", 45 "android.app.flags-aconfig-java", 46 "ravenwood-junit", 47 "Harrier", 48 ], 49 srcs: [ 50 "src/**/*.java", 51 "src/**/*.kt", 52 ], 53 // Tag this module as a cts test artifact 54 test_suites: [ 55 "cts", 56 "general-tests", 57 "sts", 58 ], 59 instrumentation_for: "CtsAppTestStubs", 60 sdk_version: "test_current", 61 // 29 required for Harrier. 62 min_sdk_version: "29", 63 // Disable coverage since it pushes us over the dex limit and we don't 64 // actually need to measure the tests themselves. 65 jacoco: { 66 exclude_filter: ["**"], 67 }, 68 // Even with coverage disabled, we're close to the single dex limit, so allow use of multi-dex. 69 dxflags: ["--multi-dex"], 70 data: [ 71 ":CtsSimpleApp", 72 ":CtsAppTestDelayedStart", 73 ":CtsAppTestStubs", 74 ":CtsAppTestStubsApp1", 75 ":CtsAppTestStubsApp3", 76 ":CtsAppTestStubsApp2", 77 ":CtsAppTestStubsApi30", 78 ":CtsAppTestStubsApi34", 79 ":CtsAppTestWedgedStart", 80 ":CtsBadProviderStubs", 81 ":CtsCantSaveState1", 82 ":CtsCantSaveState2", 83 ":StorageDelegator", 84 ":CtsActivityManagerApi29", 85 ":WallpaperTest", 86 ":CtsAppTestProviderApp", 87 ], 88 per_testcase_directory: true, 89} 90 91android_ravenwood_test { 92 name: "CtsAppTestCasesRavenwood", 93 static_libs: [ 94 "androidx.annotation_annotation", 95 "androidx.test.rules", 96 "compatibility-device-util-axt", 97 ], 98 srcs: [ 99 "src/android/app/cts/ActivityOptionsTest.java", 100 "src/android/app/cts/BroadcastOptionsTest.java", 101 ], 102 auto_gen_config: true, 103} 104 105android_test { 106 name: "CtsDownloadManagerApi28", 107 defaults: ["cts_defaults"], 108 libs: [ 109 "android.test.runner", 110 "org.apache.http.legacy", 111 "android.test.base", 112 ], 113 static_libs: [ 114 "compatibility-device-util-axt", 115 "ctstestrunner-axt", 116 "ctstestserver", 117 "mockito-target-minus-junit4", 118 "androidx.test.rules", 119 "platform-test-annotations", 120 ], 121 srcs: [ 122 "DownloadManagerApi28Test/src/**/*.java", 123 "src/android/app/cts/DownloadManagerTestBase.java", 124 ], 125 resource_dirs: ["app/res"], 126 asset_dirs: ["app/assets"], 127 // Tag this module as a cts test artifact 128 test_suites: [ 129 "cts", 130 "general-tests", 131 ], 132 sdk_version: "test_current", 133 min_sdk_version: "21", 134 manifest: "DownloadManagerApi28Test/AndroidManifest.xml", 135 test_config: "DownloadManagerApi28Test/AndroidTest.xml", 136 lint: { 137 baseline_filename: "lint-baseline.xml", 138 }, 139} 140 141android_test { 142 name: "CtsDownloadManagerInstaller", 143 defaults: ["cts_defaults"], 144 libs: [ 145 "android.test.runner", 146 "org.apache.http.legacy", 147 "android.test.base", 148 ], 149 static_libs: [ 150 "compatibility-device-util-axt", 151 "ctstestrunner-axt", 152 "ctstestserver", 153 "mockito-target-minus-junit4", 154 "androidx.test.rules", 155 "platform-test-annotations", 156 ], 157 srcs: [ 158 "DownloadManagerInstallerTest/src/**/*.java", 159 "src/android/app/cts/DownloadManagerTestBase.java", 160 ], 161 resource_dirs: ["app/res"], 162 asset_dirs: ["app/assets"], 163 // Tag this module as a cts test artifact 164 test_suites: [ 165 "cts", 166 "general-tests", 167 ], 168 sdk_version: "test_current", 169 min_sdk_version: "21", 170 manifest: "DownloadManagerInstallerTest/AndroidManifest.xml", 171 test_config: "DownloadManagerInstallerTest/AndroidTest.xml", 172 lint: { 173 baseline_filename: "lint-baseline.xml", 174 }, 175} 176 177android_test { 178 name: "CtsAppStartTestCases", 179 team: "trendy_team_system_performance", 180 defaults: ["cts_defaults"], 181 libs: [ 182 "android.test.runner", 183 "org.apache.http.legacy", 184 "android.test.base", 185 ], 186 static_libs: [ 187 "androidx.test.uiautomator_uiautomator", 188 "androidx.test.rules", 189 "compatibility-device-util-axt", 190 "CtsExternalServiceCommon", 191 "cts-wm-util", 192 "libprotobuf-java-lite", 193 ], 194 aidl: { 195 local_include_dirs: ["app/src"], 196 }, 197 srcs: [ 198 "AppStartTest/src/**/*.java", 199 "app/src/**/*.aidl", 200 ], 201 test_suites: [ 202 "cts", 203 "general-tests", 204 ], 205 manifest: "AppStartTest/AndroidManifest.xml", 206 test_config: "AppStartTest/AndroidTest.xml", 207 platform_apis: true, 208 data: [ 209 ":CtsAppStartInfoApp", 210 ":CtsExternalServiceService", 211 ":CtsAppTestStubs", 212 ], 213 per_testcase_directory: true, 214} 215 216android_test { 217 name: "CtsAppExitTestCases", 218 team: "trendy_team_framework_backstage_power", 219 defaults: ["cts_defaults"], 220 libs: [ 221 "android.test.runner", 222 "org.apache.http.legacy", 223 "android.test.base", 224 ], 225 static_libs: [ 226 "androidx.test.uiautomator_uiautomator", 227 "androidx.test.rules", 228 "compatibility-device-util-axt", 229 "CtsExternalServiceCommon", 230 "cts-wm-util", 231 "libprotobuf-java-lite", 232 ], 233 aidl: { 234 local_include_dirs: ["app/src"], 235 }, 236 srcs: [ 237 ":libtombstone_proto-src", 238 "AppExitTest/src/**/*.java", 239 "app/src/**/*.aidl", 240 "src/android/app/cts/android/app/cts/tools/WatchUidRunner.java", 241 ], 242 jarjar_rules: "AppExitTest/jarjar-rules.txt", 243 test_suites: [ 244 "cts", 245 "general-tests", 246 ], 247 manifest: "AppExitTest/AndroidManifest.xml", 248 test_config: "AppExitTest/AndroidTest.xml", 249 platform_apis: true, 250 data: [ 251 ":CtsSimpleApp", 252 ":CtsExternalServiceService", 253 ":CtsAppTestStubs", 254 ], 255 per_testcase_directory: true, 256} 257 258android_test { 259 name: "CtsAppFgsTestCases", 260 team: "trendy_team_framework_backstage_power", 261 defaults: ["cts_defaults"], 262 libs: [ 263 "android.test.runner", 264 "org.apache.http.legacy", 265 "android.test.base", 266 ], 267 static_libs: [ 268 "androidx.test.uiautomator_uiautomator", 269 "androidx.test.rules", 270 "compatibility-device-util-axt", 271 "CtsExternalServiceCommon", 272 "cts-wm-util", 273 "libprotobuf-java-lite", 274 "flag-junit", 275 "android.content.pm.flags-aconfig-java", 276 ], 277 aidl: { 278 local_include_dirs: ["app/src"], 279 }, 280 srcs: [ 281 "FgsTest/src/**/*.java", 282 "app/src/**/*.aidl", 283 "app/src/android/app/stubs/ScreenOnActivity.java", 284 "src/android/app/cts/android/app/cts/tools/WatchUidRunner.java", 285 "FgsTestHelper/src/android/app/fgstesthelper/LocalForegroundServiceBase.java", 286 ], 287 test_suites: [ 288 "cts", 289 "general-tests", 290 ], 291 instrumentation_for: "CtsAppTestFgsTestHelper", 292 manifest: "FgsTest/AndroidManifest.xml", 293 test_config: "FgsTest/AndroidTest.xml", 294 platform_apis: true, 295 data: [ 296 ":CtsAppTestFgsTestHelper", 297 ":CtsAppTestFgsTestHelperCurrent", 298 ":CtsAppTestFgsTestHelperApi33", 299 ], 300 per_testcase_directory: true, 301} 302