1// 2// Copyright (C) 2020 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 // See: http://go/android-license-faq 19 // A large-scale-change added 'default_applicable_licenses' to import 20 // all of the 'license_kinds' from "packages_modules_Permission_PermissionController_license" 21 // to get the below license kinds: 22 // SPDX-license-identifier-Apache-2.0 23 default_applicable_licenses: [ 24 "packages_modules_Permission_PermissionController_license", 25 ], 26} 27 28android_test { 29 name: "PermissionControllerMockingTests", 30 31 sdk_version: "system_current", 32 target_sdk_version: "30", 33 min_sdk_version: "30", 34 35 resource_dirs: [ 36 "main_res", 37 ], 38 39 srcs: [ 40 ":permissioncontroller-sources", 41 42 "src/**/*.kt", 43 ], 44 45 libs: [ 46 "android.car-stubs", 47 48 "android.test.base", 49 "android.test.runner", 50 ], 51 52 static_libs: [ 53 "iconloader", 54 "com.google.android.material_material", 55 "androidx.transition_transition", 56 "androidx-constraintlayout_constraintlayout", 57 "androidx.core_core", 58 "androidx.media_media", 59 "androidx.legacy_legacy-support-core-utils", 60 "androidx.legacy_legacy-support-core-ui", 61 "androidx.fragment_fragment", 62 "androidx.appcompat_appcompat", 63 "androidx.preference_preference", 64 "androidx.recyclerview_recyclerview", 65 "androidx.legacy_legacy-preference-v14", 66 "androidx.leanback_leanback", 67 "androidx.leanback_leanback-preference", 68 "androidx.lifecycle_lifecycle-extensions", 69 "androidx.lifecycle_lifecycle-common-java8", 70 "kotlin-stdlib", 71 "kotlinx-coroutines-android", 72 "androidx.navigation_navigation-common-ktx", 73 "androidx.navigation_navigation-fragment-ktx", 74 "androidx.navigation_navigation-runtime-ktx", 75 "androidx.navigation_navigation-ui-ktx", 76 "SettingsLibHelpUtils", 77 "SettingsLibRestrictedLockUtils", 78 "SettingsLibAppPreference", 79 "SettingsLibSearchWidget", 80 "SettingsLibLayoutPreference", 81 "SettingsLibBarChartPreference", 82 "SettingsLibActionBarShadow", 83 "SettingsLibProgressBar", 84 "SettingsLibCollapsingToolbarBaseActivity", 85 "SettingsLibSettingsTheme", 86 "SettingsLibFooterPreference", 87 "SettingsLibRadioButtonPreference", 88 "SettingsLibTwoTargetPreference", 89 "androidx.annotation_annotation", 90 "permissioncontroller-statsd", 91 "car-ui-lib", 92 "libprotobuf-java-lite", 93 "SettingsLibUtils", 94 "modules-utils-build_system", 95 96 "androidx.test.rules", 97 "androidx.test.ext.truth", 98 "androidx.test.ext.junit", 99 "mockito-target-extended-minus-junit4", 100 ], 101 102 jni_libs: [ 103 "libdexmakerjvmtiagent", 104 "libstaticjvmtiagent", 105 ], 106 compile_multilib: "both", 107 108 aaptflags: ["--custom-package com.android.permissioncontroller"], 109 110 test_suites: [ 111 "device-tests", 112 "mts", 113 ], 114} 115