1// Copyright (C) 2020 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} 18 19java_test_host { 20 name: "sdkextensions_e2e_tests", 21 srcs: ["test-src/**/*.java"], 22 libs: ["tradefed"], 23 static_libs: [ 24 "cts-install-lib-host", 25 "frameworks-base-hostutils", 26 ], 27 data: [ 28 ":sdkextensions_e2e_test_app", 29 ":sdkextensions_e2e_test_app_req_r12", 30 ":sdkextensions_e2e_test_app_req_s12", 31 ":sdkextensions_e2e_test_app_req_r45", 32 ":sdkextensions_e2e_test_app_req_s45", 33 ":test_com.android.media", 34 ":test_com.android.sdkext", 35 ], 36 test_config: "sdkextensions-e2e-tests.xml", 37 test_suites: ["device-tests"], 38} 39 40android_test_helper_app { 41 name: "sdkextensions_e2e_test_app", 42 srcs: ["app-src/**/*.java"], 43 libs: [ 44 "framework-sdkextensions", 45 // Depend on the impl library directly so that its tests can try and 46 // invoke methods which it is not allowed to use to verify that the 47 // runtime correctly refuses access to them. 48 "test_framework-sdkextensions.impl", 49 ], 50 static_libs: ["modules-utils-build_system"], 51 sdk_version: "module_current", 52 min_sdk_version: "30", 53} 54