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 15filegroup { 16 name: "service-permission-sources", 17 srcs: [ 18 "java/**/*.java", 19 ], 20 path: "java", 21} 22 23java_sdk_library { 24 name: "service-permission", 25 defaults: ["framework-system-server-module-defaults"], 26 visibility: [ 27 "//frameworks/base/services/core", 28 "//frameworks/base/apex/permission", 29 "//frameworks/base/apex/permission/testing", 30 "//frameworks/base/apex/permission/tests", 31 "//frameworks/base/services/tests/mockingservicestests", 32 ], 33 impl_library_visibility: [ 34 "//visibility:override", 35 "//frameworks/base/apex/permission/tests", 36 "//frameworks/base/services/tests/mockingservicestests", 37 "//frameworks/base/services/tests/servicestests", 38 ], 39 srcs: [ 40 ":service-permission-sources", 41 ], 42 libs: [ 43 "framework-permission", 44 ], 45 apex_available: [ 46 "com.android.permission", 47 "test_com.android.permission", 48 ], 49 installable: true, 50} 51