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 // http://go/android-license-faq 17 // A large-scale-change added 'default_applicable_licenses' to import 18 // the below license kinds from "libnativehelper_license": 19 // SPDX-license-identifier-Apache-2.0 20 default_applicable_licenses: ["libnativehelper_license"], 21} 22 23java_defaults { 24 name: "mts_libnativehelper_defaults", 25 compile_multilib: "both", 26 libs: [ 27 "android.test.base.stubs", 28 ], 29 static_libs: [ 30 "ctstestrunner-axt", 31 "nativetesthelper", 32 ], 33 jni_uses_platform_apis: true, 34 sdk_version: "test_current", 35 srcs: ["src/com/android/art/libnativehelper/JniHelpTest.java"], 36 test_suites: [ 37 "device-tests", 38 "mts", 39 ], 40} 41 42android_test { 43 name: "MtsLibnativehelperTestCases", 44 defaults: [ 45 "cts_defaults", 46 "mts_libnativehelper_defaults", 47 ], 48 jni_libs: [ 49 "libnativehelper_mts_jni", 50 ], 51 manifest: "AndroidManifest.xml", 52 srcs: [ 53 "src/com/android/art/libnativehelper/LibnativehelperGTests.java", 54 ], 55} 56 57// Same tests as "MtsLibnativehelperTestCases", but with the jni library 58// linked against libnativehelper_lazy.a rather than libnativehelper.so. 59 60android_test { 61 name: "MtsLibnativehelperLazyTestCases", 62 defaults: [ 63 "cts_defaults", 64 "mts_libnativehelper_defaults", 65 ], 66 jni_libs: [ 67 "libnativehelper_lazy_mts_jni", 68 ], 69 srcs: [ 70 "src/com/android/art/libnativehelper/LibnativehelperLazyGTests.java", 71 ], 72} 73