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_android_permissions", 17 default_applicable_licenses: ["Android-Apache-2.0"], 18} 19 20cc_test_library { 21 name: "libAppThatUsesAppOps_jni", 22 defaults: [ 23 "mts-target-sdk-version-current", 24 ], 25 min_sdk_version: "30", 26 sdk_version: "current", 27 stl: "c++_static", 28 29 srcs: [ 30 "jni/**/*.cpp", 31 ], 32 33 cflags: [ 34 "-Wall", 35 "-Werror", 36 "-Wno-unused-parameter", 37 ], 38 39 shared_libs: [ 40 "liblog", 41 "libbinder_ndk", 42 ], 43 44 static_libs: [ 45 "AppOpsUserServiceAidlNative-ndk", 46 ], 47} 48 49android_test_helper_app { 50 name: "CtsAppThatUsesAppOps", 51 defaults: [ 52 "mts-target-sdk-version-current", 53 ], 54 min_sdk_version: "30", 55 56 compile_multilib: "both", 57 58 srcs: ["src/**/*.kt"], 59 60 static_libs: [ 61 "appops-test-util-lib", 62 "AppOpsUserServiceAidl", 63 "truth", 64 "junit", 65 ], 66 67 jni_libs: [ 68 "libAppThatUsesAppOps_jni", 69 ], 70 71 test_suites: [ 72 "cts", 73 "general-tests", 74 "mts", 75 ], 76 sdk_version: "test_current", 77} 78