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 15java_sdk_library { 16 name: "framework-mediaprovider", 17 defaults: ["framework-module-defaults"], 18 19 srcs: [ 20 ":framework-mediaprovider-sources", 21 ], 22 23 permitted_packages: [ 24 "android.provider", 25 ], 26 27 installable: true, 28 29 libs: [ 30 "framework_mediaprovider_annotation", 31 "unsupportedappusage", 32 ], 33 34 hostdex: true, // for hiddenapi check 35 visibility: ["//visibility:public"], 36 impl_library_visibility: [ 37 "//visibility:override", 38 "//packages/providers/MediaProvider:__subpackages__", 39 ], 40 apex_available: [ 41 "com.android.mediaprovider", 42 "test_com.android.mediaprovider", 43 ], 44} 45 46filegroup { 47 name: "framework-mediaprovider-sources", 48 srcs: [ 49 "java/**/*.java", 50 ], 51 path: "java", 52} 53 54java_library { 55 name: "framework_mediaprovider_annotation", 56 srcs: [":framework-mediaprovider-annotation-sources"], 57 installable: false, 58 sdk_version: "core_current", 59} 60