• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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    permitted_packages: [
30        "android.provider",
31    ],
32
33    installable: true,
34
35    libs: [
36        "androidx.annotation_annotation",
37        "framework-media.stubs.module_lib",
38        "unsupportedappusage",
39    ],
40
41    hostdex: true, // for hiddenapi check
42    impl_library_visibility: [
43        "//packages/providers/MediaProvider:__subpackages__",
44        "//cts/tests/PhotoPicker",
45    ],
46    apex_available: [
47        "com.android.mediaprovider",
48        "test_com.android.mediaprovider",
49    ],
50    min_sdk_version: "30",
51}
52
53filegroup {
54    name: "framework-mediaprovider-sources",
55    srcs: [
56        "java/**/*.java",
57    ],
58    path: "java",
59}
60