1// 2// Copyright 2017 The Android Open Source Project 3// 4// Licensed under the Apache License, Version 2.0 (the "License"); 5// you may not use this file except in compliance with the License. 6// You may obtain a copy of the License at 7// 8// http://www.apache.org/licenses/LICENSE-2.0 9// 10// Unless required by applicable law or agreed to in writing, software 11// distributed under the License is distributed on an "AS IS" BASIS, 12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13// See the License for the specific language governing permissions and 14// limitations under the License. 15// 16 17package { 18 default_applicable_licenses: ["frameworks_base_license"], 19} 20 21java_test_helper_library { 22 name: "DynamicCodeLoggerTestLibrary", 23 srcs: ["src/com/android/dcl/**/*.java"], 24 25} 26 27cc_library_shared { 28 name: "DynamicCodeLoggerNativeTestLibrary", 29 srcs: ["src/cpp/com_android_dcl_Jni.cpp"], 30 header_libs: ["jni_headers"], 31 sdk_version: "28", 32 stl: "c++_static", 33} 34 35cc_binary { 36 name: "DynamicCodeLoggerNativeExecutable", 37 srcs: ["src/cpp/test_executable.cpp"], 38} 39 40android_test { 41 name: "DynamicCodeLoggerIntegrationTests", 42 43 sdk_version: "current", 44 test_suites: ["device-tests"], 45 certificate: "shared", 46 srcs: ["src/com/android/server/pm/**/*.java"], 47 48 static_libs: [ 49 "androidx.test.rules", 50 "truth-prebuilt", 51 ], 52 53 compile_multilib: "both", 54 jni_libs: ["DynamicCodeLoggerNativeTestLibrary"], 55 56 java_resources: [ 57 ":DynamicCodeLoggerTestLibrary", 58 ":DynamicCodeLoggerNativeExecutable", 59 ], 60} 61