1// 2// Copyright (C) 2009 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: ["Android-Apache-2.0"], 19} 20 21android_test { 22 name: "CtsPermissionPolicyTestCases", 23 defaults: ["cts_defaults"], 24 // Tag this module as a cts test artifact 25 test_suites: [ 26 "cts", 27 "general-tests", 28 ], 29 libs: ["android.test.base.stubs.test"], 30 static_libs: [ 31 "androidx.test.core", 32 "compatibility-device-util-axt", 33 "ctstestrunner-axt", 34 "guava", 35 "androidx.test.ext.junit-nodeps", 36 "truth", 37 "permission-test-util-lib", 38 "androidx.test.rules", 39 "flag-junit", 40 "android.app.flags-aconfig", 41 "android.permission.flags-aconfig-java-export", 42 ], 43 srcs: [ 44 "src/**/*.java", 45 "src/**/*.kt", 46 ], 47 sdk_version: "test_current", 48 data: [ 49 ":CtsLocationPermissionsUserSdk22", 50 ":CtsLocationPermissionsUserSdk29", 51 ":CtsSMSCallLogPermissionsUserSdk22", 52 ":CtsSMSCallLogPermissionsUserSdk29", 53 ":CtsStoragePermissionsUserDefaultSdk22", 54 ":CtsStoragePermissionsUserDefaultSdk28", 55 ":CtsStoragePermissionsUserDefaultSdk29", 56 ":CtsStoragePermissionsUserOptInSdk22", 57 ":CtsStoragePermissionsUserOptInSdk28", 58 ":CtsStoragePermissionsUserOptOutSdk29", 59 ":CtsStoragePermissionsPreservedUserOptOutSdk30", 60 ":CtsLegacyStorageNotIsolatedWithSharedUid", 61 ":CtsLegacyStorageIsolatedWithSharedUid", 62 ":CtsLegacyStorageRestrictedWithSharedUid", 63 ":CtsLegacyStorageRestrictedSdk28WithSharedUid", 64 ":CtsStoragePermissionsUserOptOutSdk30", 65 ":CtsSMSRestrictedWithSharedUid", 66 ":CtsSMSNotRestrictedWithSharedUid", 67 ":CtsProcessOutgoingCalls", 68 ], 69 lint: { 70 extra_check_modules: [ 71 "PermissionPolicyLintChecker", 72 ], 73 baseline_filename: "lint-baseline.xml", 74 }, 75} 76