1// Copyright (C) 2019 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_team: "trendy_team_framework_android_packages", 17 default_applicable_licenses: ["Android-Apache-2.0"], 18} 19 20android_test_helper_app { 21 name: "TestAppSv1", 22 manifest: "testapp/Sv1.xml", 23 srcs: ["testapp/src/**/*.java"], 24 min_sdk_version: "28", 25 target_sdk_version: "28", 26} 27 28android_test_helper_app { 29 name: "TestAppSv2", 30 manifest: "testapp/Sv2.xml", 31 srcs: ["testapp/src/**/*.java"], 32 min_sdk_version: "28", 33 target_sdk_version: "28", 34} 35 36android_test_helper_app { 37 name: "TestAppAv1", 38 manifest: "testapp/Av1.xml", 39 srcs: ["testapp/src/**/*.java"], 40 resource_dirs: ["testapp/res_v1"], 41 apex_available: ["com.android.apex.apkrollback.test_v1"], 42 min_sdk_version: "28", 43 target_sdk_version: "28", 44} 45 46android_test_helper_app { 47 name: "TestAppAv2", 48 manifest: "testapp/Av2.xml", 49 srcs: ["testapp/src/**/*.java"], 50 resource_dirs: ["testapp/res_v2"], 51 apex_available: ["com.android.apex.apkrollback.test_v2"], 52 min_sdk_version: "28", 53 target_sdk_version: "28", 54} 55 56android_test_helper_app { 57 name: "TestAppAv3", 58 manifest: "testapp/Av3.xml", 59 srcs: ["testapp/src/**/*.java"], 60 resource_dirs: ["testapp/res_v3"], 61 min_sdk_version: "28", 62 target_sdk_version: "28", 63} 64 65android_test_helper_app { 66 name: "TestAppACrashingV2", 67 manifest: "testapp/ACrashingV2.xml", 68 sdk_version: "current", 69 srcs: ["testapp/src/**/*.java"], 70 resource_dirs: ["testapp/res_v2"], 71 apex_available: ["com.android.apex.apkrollback.test_v2Crashing"], 72} 73 74android_test_helper_app { 75 name: "TestAppBv1", 76 manifest: "testapp/Bv1.xml", 77 srcs: ["testapp/src/**/*.java"], 78 resource_dirs: ["testapp/res_v1"], 79 min_sdk_version: "28", 80 target_sdk_version: "28", 81} 82 83android_test_helper_app { 84 name: "TestAppBv2", 85 manifest: "testapp/Bv2.xml", 86 srcs: ["testapp/src/**/*.java"], 87 resource_dirs: ["testapp/res_v2"], 88 min_sdk_version: "28", 89 target_sdk_version: "28", 90} 91 92android_test_helper_app { 93 name: "TestAppBv3", 94 manifest: "testapp/Bv3.xml", 95 srcs: ["testapp/src/**/*.java"], 96 resource_dirs: ["testapp/res_v3"], 97 min_sdk_version: "28", 98 target_sdk_version: "28", 99} 100 101android_test_helper_app { 102 name: "TestAppCv1", 103 manifest: "testapp/Cv1.xml", 104 srcs: ["testapp/src/**/*.java"], 105 resource_dirs: ["testapp/res_v1"], 106 min_sdk_version: "28", 107 target_sdk_version: "28", 108} 109 110android_test_helper_app { 111 name: "TestAppCv2", 112 manifest: "testapp/Cv2.xml", 113 srcs: ["testapp/src/**/*.java"], 114 resource_dirs: ["testapp/res_v2"], 115 min_sdk_version: "28", 116 target_sdk_version: "28", 117} 118 119android_test_helper_app { 120 name: "TestAppASplitV1", 121 manifest: "testapp/Av1.xml", 122 sdk_version: "current", 123 srcs: ["testapp/src/**/*.java"], 124 resource_dirs: ["testapp/res_v1"], 125 package_splits: ["anydpi"], 126} 127 128android_test_helper_app { 129 name: "TestAppASplitV2", 130 manifest: "testapp/Av2.xml", 131 sdk_version: "current", 132 srcs: ["testapp/src/**/*.java"], 133 resource_dirs: ["testapp/res_v2"], 134 package_splits: ["anydpi"], 135} 136 137android_test_helper_app { 138 name: "TestAppAOriginalV1", 139 manifest: "testapp/Av1.xml", 140 sdk_version: "current", 141 srcs: ["testapp/src/**/*.java"], 142 resource_dirs: ["testapp/res_v1"], 143 certificate: ":cts-ec-p256", 144 apex_available: ["com.android.apex.apkrollback.test_v1"], 145} 146 147android_test_helper_app { 148 name: "TestAppARotatedV2", 149 manifest: "testapp/Av2.xml", 150 sdk_version: "current", 151 srcs: ["testapp/src/**/*.java"], 152 resource_dirs: ["testapp/res_v2"], 153 certificate: ":cts-ec-p256", 154 additional_certificates: [":cts-ec-p256_2"], 155 lineage: "testapp/signing/ec-p256-por-1_2", 156 apex_available: ["com.android.apex.apkrollback.test_v2"], 157} 158 159android_test_helper_app { 160 name: "TestAppARollbackWipeV2", 161 manifest: "testapp/ARollbackWipeV2.xml", 162 sdk_version: "current", 163 srcs: ["testapp/src/**/*.java"], 164 resource_dirs: ["testapp/res_v2"], 165 apex_available: ["com.android.apex.apkrollback.test_v2"], 166} 167 168android_test_helper_app { 169 name: "TestAppBRollbackRestoreV2", 170 manifest: "testapp/BRollbackRestoreV2.xml", 171 sdk_version: "current", 172 srcs: ["testapp/src/**/*.java"], 173 resource_dirs: ["testapp/res_v2"], 174} 175 176android_test_helper_app { 177 name: "TestAppCRollbackRetainV2", 178 manifest: "testapp/CRollbackRetainV2.xml", 179 sdk_version: "current", 180 srcs: ["testapp/src/**/*.java"], 181 resource_dirs: ["testapp/res_v2"], 182} 183 184java_library { 185 name: "cts-install-lib-java", 186 srcs: ["src/**/lib/*.java"], 187 static_libs: [ 188 "androidx.test.rules", 189 "compatibility-device-util-axt", 190 "cts-shim-lib", 191 "modules-utils-build", 192 "truth", 193 ], 194 sdk_version: "test_current", 195 java_resources: [ 196 ":TestAppAv1", 197 ":TestAppAv2", 198 ":TestAppAv3", 199 ":TestAppBv1", 200 ":TestAppBv2", 201 ":TestAppBv3", 202 ":TestAppCv1", 203 ":TestAppCv2", 204 ":TestAppSv1", 205 ":TestAppSv2", 206 ":TestAppACrashingV2", 207 ":TestAppASplitV1", 208 ":TestAppASplitV2", 209 ":TestAppAOriginalV1", 210 ":TestAppARotatedV2", 211 ":TestAppARollbackWipeV2", 212 ":TestAppBRollbackRestoreV2", 213 ":TestAppCRollbackRetainV2", 214 ":StagedInstallTestApexV1", 215 ":StagedInstallTestApexV2", 216 ":StagedInstallTestApexV3", 217 ], 218} 219 220android_library { 221 name: "cts-install-lib", 222 manifest: "AndroidManifest.xml", 223 static_libs: [ 224 "cts-install-lib-java", 225 ], 226 min_sdk_version: "29", 227} 228 229java_library_host { 230 name: "cts-install-lib-host", 231 srcs: ["src/**/host/InstallUtilsHost.java"], 232 libs: [ 233 "tradefed", 234 "cts-shim-host-lib", 235 ], 236} 237