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 // See: http://go/android-license-faq 17 default_applicable_licenses: ["Android-Apache-2.0"], 18} 19 20java_sdk_library { 21 name: "framework-mediaprovider", 22 defaults: ["framework-module-defaults"], 23 24 srcs: [ 25 ":framework-mediaprovider-sources", 26 "java/**/*.aidl", 27 ], 28 29 aidl: { 30 local_include_dirs: [ 31 "java", 32 ], 33 }, 34 35 permitted_packages: [ 36 "android.provider", 37 ], 38 39 installable: true, 40 41 stub_only_libs: [ 42 // Needed for javadoc references. 43 "framework-media.stubs.module_lib", 44 ], 45 46 libs: [ 47 "androidx.annotation_annotation", 48 "framework-media.stubs.module_lib", 49 "unsupportedappusage", 50 ], 51 static_libs: [ 52 "mediaprovider_flags_java_lib", 53 ], 54 jarjar_rules: "jarjar_rules.txt", 55 56 hostdex: true, // for hiddenapi check 57 impl_library_visibility: [ 58 "//packages/providers/MediaProvider:__subpackages__", 59 "//cts/tests/PhotoPicker", 60 ], 61 apex_available: [ 62 "com.android.mediaprovider", 63 "test_com.android.mediaprovider", 64 ], 65 min_sdk_version: "30", 66 lint: { 67 baseline_filename: "lint-baseline.xml", 68 }, 69} 70 71filegroup { 72 name: "framework-mediaprovider-sources", 73 defaults: ["framework-sources-module-defaults"], 74 srcs: [ 75 "java/**/*.java", 76 ], 77 path: "java", 78 visibility: ["//packages/providers/MediaProvider/tests"], 79} 80