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 15 16package { 17 default_applicable_licenses: ["Android-Apache-2.0"], 18} 19 20android_test_helper_app { 21 name: "TestAppAv1", 22 manifest: "testapp/Av1.xml", 23 sdk_version: "current", 24 srcs: ["testapp/src/**/*.java"], 25 resource_dirs: ["testapp/res_v1"], 26 apex_available: [ "com.android.apex.apkrollback.test_v1" ], 27} 28 29android_test_helper_app { 30 name: "TestAppAv2", 31 manifest: "testapp/Av2.xml", 32 sdk_version: "current", 33 srcs: ["testapp/src/**/*.java"], 34 resource_dirs: ["testapp/res_v2"], 35 apex_available: [ "com.android.apex.apkrollback.test_v2" ], 36} 37 38android_test_helper_app { 39 name: "TestAppAv3", 40 manifest: "testapp/Av3.xml", 41 sdk_version: "current", 42 srcs: ["testapp/src/**/*.java"], 43 resource_dirs: ["testapp/res_v3"], 44} 45 46android_test_helper_app { 47 name: "TestAppACrashingV2", 48 manifest: "testapp/ACrashingV2.xml", 49 sdk_version: "current", 50 srcs: ["testapp/src/**/*.java"], 51 resource_dirs: ["testapp/res_v2"], 52 apex_available: [ "com.android.apex.apkrollback.test_v2Crashing" ], 53} 54 55android_test_helper_app { 56 name: "TestAppBv1", 57 manifest: "testapp/Bv1.xml", 58 sdk_version: "current", 59 srcs: ["testapp/src/**/*.java"], 60 resource_dirs: ["testapp/res_v1"], 61} 62 63android_test_helper_app { 64 name: "TestAppBv2", 65 manifest: "testapp/Bv2.xml", 66 sdk_version: "current", 67 srcs: ["testapp/src/**/*.java"], 68 resource_dirs: ["testapp/res_v2"], 69} 70 71android_test_helper_app { 72 name: "TestAppBv3", 73 manifest: "testapp/Bv3.xml", 74 sdk_version: "current", 75 srcs: ["testapp/src/**/*.java"], 76 resource_dirs: ["testapp/res_v3"], 77} 78 79android_test_helper_app { 80 name: "TestAppCv1", 81 manifest: "testapp/Cv1.xml", 82 sdk_version: "current", 83 srcs: ["testapp/src/**/*.java"], 84 resource_dirs: ["testapp/res_v1"], 85} 86 87android_test_helper_app { 88 name: "TestAppCv2", 89 manifest: "testapp/Cv2.xml", 90 sdk_version: "current", 91 srcs: ["testapp/src/**/*.java"], 92 resource_dirs: ["testapp/res_v2"], 93} 94 95android_test_helper_app { 96 name: "TestAppASplitV1", 97 manifest: "testapp/Av1.xml", 98 sdk_version: "current", 99 srcs: ["testapp/src/**/*.java"], 100 resource_dirs: ["testapp/res_v1"], 101 package_splits: ["anydpi"], 102} 103 104android_test_helper_app { 105 name: "TestAppASplitV2", 106 manifest: "testapp/Av2.xml", 107 sdk_version: "current", 108 srcs: ["testapp/src/**/*.java"], 109 resource_dirs: ["testapp/res_v2"], 110 package_splits: ["anydpi"], 111} 112 113android_test_helper_app { 114 name: "TestAppAOriginalV1", 115 manifest: "testapp/Av1.xml", 116 sdk_version: "current", 117 srcs: ["testapp/src/**/*.java"], 118 resource_dirs: ["testapp/res_v1"], 119 certificate: ":cts-ec-p256", 120 apex_available: [ "com.android.apex.apkrollback.test_v1" ], 121} 122 123android_test_helper_app { 124 name: "TestAppARotatedV2", 125 manifest: "testapp/Av2.xml", 126 sdk_version: "current", 127 srcs: ["testapp/src/**/*.java"], 128 resource_dirs: ["testapp/res_v2"], 129 certificate: ":cts-ec-p256", 130 additional_certificates: [":cts-ec-p256_2"], 131 lineage: "testapp/signing/ec-p256-por-1_2", 132 apex_available: [ "com.android.apex.apkrollback.test_v2" ], 133} 134 135java_library { 136 name: "cts-install-lib-java", 137 srcs: ["src/**/lib/*.java"], 138 static_libs: [ 139 "androidx.test.rules", 140 "compatibility-device-util-axt", 141 "cts-shim-lib", 142 "truth-prebuilt" 143 ], 144 sdk_version: "test_current", 145 java_resources: [ 146 ":TestAppAv1", 147 ":TestAppAv2", 148 ":TestAppAv3", 149 ":TestAppBv1", 150 ":TestAppBv2", 151 ":TestAppBv3", 152 ":TestAppCv1", 153 ":TestAppCv2", 154 ":TestAppACrashingV2", 155 ":TestAppASplitV1", 156 ":TestAppASplitV2", 157 ":TestAppAOriginalV1", 158 ":TestAppARotatedV2", 159 ":StagedInstallTestApexV1", 160 ":StagedInstallTestApexV2", 161 ":StagedInstallTestApexV3", 162 ], 163} 164 165android_library { 166 name: "cts-install-lib", 167 manifest: "AndroidManifest.xml", 168 static_libs: [ 169 "cts-install-lib-java", 170 ], 171 min_sdk_version: "30", 172} 173 174java_library_host { 175 name: "cts-install-lib-host", 176 srcs: ["src/**/host/InstallUtilsHost.java"], 177 libs: ["tradefed", "cts-shim-host-lib",], 178} 179