• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1package {
2    // See: http://go/android-license-faq
3    // A large-scale-change added 'default_applicable_licenses' to import
4    // all of the 'license_kinds' from "frameworks_av_license"
5    // to get the below license kinds:
6    //   SPDX-license-identifier-Apache-2.0
7    default_applicable_licenses: ["frameworks_av_license"],
8}
9
10filegroup {
11    name: "resourcemanager_aidl",
12    srcs: [
13        "aidl/android/media/IResourceManagerClient.aidl",
14        "aidl/android/media/IResourceManagerService.aidl",
15        "aidl/android/media/MediaResourceType.aidl",
16        "aidl/android/media/MediaResourceSubType.aidl",
17        "aidl/android/media/MediaResourceParcel.aidl",
18        "aidl/android/media/MediaResourcePolicyParcel.aidl",
19    ],
20    path: "aidl",
21}
22
23filegroup {
24    name: "resourceobserver_aidl",
25    srcs: [
26        "aidl/android/media/IResourceObserver.aidl",
27        "aidl/android/media/IResourceObserverService.aidl",
28        "aidl/android/media/MediaObservableEvent.aidl",
29        "aidl/android/media/MediaObservableFilter.aidl",
30        "aidl/android/media/MediaObservableType.aidl",
31        "aidl/android/media/MediaObservableParcel.aidl",
32    ],
33    path: "aidl",
34}
35
36aidl_interface {
37    name: "resourcemanager_aidl_interface",
38    unstable: true,
39    local_include_dir: "aidl",
40    srcs: [
41        ":resourcemanager_aidl",
42    ],
43}
44
45aidl_interface {
46    name: "resourceobserver_aidl_interface",
47    local_include_dir: "aidl",
48    srcs: [
49        ":resourceobserver_aidl",
50    ],
51    backend: {
52        java: {
53            enabled: false,
54        },
55        cpp: {
56            enabled: false,
57        },
58        ndk: {
59            apex_available: [
60                "//apex_available:platform",
61                "com.android.media",
62                "test_com.android.media",
63            ],
64            min_sdk_version: "29",
65            enabled: true,
66        },
67    },
68    versions: ["1"],
69}
70
71cc_library {
72    name: "libresourcemanagerservice",
73
74    srcs: [
75        "ResourceManagerService.cpp",
76        "ResourceObserverService.cpp",
77        "ServiceLog.cpp",
78
79        // TODO: convert to AIDL?
80        "IMediaResourceMonitor.cpp",
81    ],
82
83    shared_libs: [
84        "libmedia",
85        "libmediautils",
86        "libbinder",
87        "libbinder_ndk",
88        "libutils",
89        "liblog",
90    ],
91
92    static_libs: [
93        "resourceobserver_aidl_interface-V1-ndk",
94    ],
95
96    include_dirs: ["frameworks/av/include"],
97
98    cflags: [
99        "-Werror",
100        "-Wall",
101    ],
102
103    export_include_dirs: ["."],
104}
105