blob: 88ed9c6a05a984037de66796ce26851ad41621da [file] [log] [blame]
Dongwon Kang43c88f32018-11-28 13:25:30 -08001java_library {
Sungsoo Lim64ed0092019-01-24 04:25:44 +09002 name: "updatable-media1",
Insun Kangb3517bf2019-01-16 17:21:05 +09003
4 srcs: [
5 ":media1-srcs",
Sungsoo Limbb3b4012019-01-23 13:17:53 +09006 ":framework-media-annotation-srcs",
Insun Kangb3517bf2019-01-16 17:21:05 +09007 ],
8
Sungsoo Limbb3b4012019-01-23 13:17:53 +09009 aidl: {
10 export_include_dirs: [
11 "apex/java",
12 ],
13
Sungsoo Lim64ed0092019-01-24 04:25:44 +090014 // TODO: find out a way to include only the necessary aidl files instead of dirs.
Sungsoo Limbb3b4012019-01-23 13:17:53 +090015 include_dirs: [
16 "frameworks/base/core/java",
17 "frameworks/base/media/java",
18 ],
19 },
20
21 installable: true,
22
23 // Make sure that the implementaion only relies on SDK or system APIs.
Insun Kangb3517bf2019-01-16 17:21:05 +090024 sdk_version: "system_current",
25}
26
Sungsoo Lim64ed0092019-01-24 04:25:44 +090027java_library {
28 name: "updatable-mediasession2",
29
30 srcs: [
31 ":mediasession2-srcs",
32 ":framework-media-annotation-srcs",
33 ],
34
35 aidl: {
36 export_include_dirs: [
37 "apex/java",
38 ],
39
40 // TODO: find out a way to include only the necessary aidl files instead of dirs.
41 include_dirs: [
42 "frameworks/base/core/java",
43 ],
44 },
45
46 installable: true,
47
48 // Make sure that the implementaion only relies on SDK or system APIs.
49 sdk_version: "system_current",
50}
51
52java_library {
53 name: "updatable-media",
54
55 srcs: [
56 ":mediaplayer2-srcs",
57 ":framework-media-annotation-srcs",
58 ],
59
60 static_libs: [
61 "mediaplayer2-protos",
62 ],
63
64 installable: true,
65
66 // Make sure that the implementaion only relies on SDK or system APIs.
67 sdk_version: "system_current",
68}
69
70filegroup {
71 name: "media-srcs-without-aidls",
72 srcs : [
73 ":media1-srcs-without-aidls",
74 ":mediasession2-srcs-without-aidls",
75 ":mediaplayer2-srcs",
76 ],
77}
78
Insun Kangb3517bf2019-01-16 17:21:05 +090079filegroup {
80 name: "media1-srcs",
81 srcs: [
Sungsoo Limbb3b4012019-01-23 13:17:53 +090082 "apex/java/android/media/MediaMetadata.java",
83 "apex/java/android/media/MediaParceledListSlice.java",
84 "apex/java/android/media/VolumeProvider.java",
Sungsoo Lim4e475432019-01-24 03:14:12 +090085 "apex/java/android/media/browse/MediaBrowser.java",
86 "apex/java/android/media/browse/MediaBrowserUtils.java",
Sungsoo Limbb3b4012019-01-23 13:17:53 +090087 "apex/java/android/media/session/ControllerCallbackLink.java",
88 "apex/java/android/media/session/ControllerLink.java",
89 "apex/java/android/media/session/ISession.aidl",
90 "apex/java/android/media/session/ISessionCallback.aidl",
91 "apex/java/android/media/session/ISessionController.aidl",
92 "apex/java/android/media/session/ISessionControllerCallback.aidl",
93 "apex/java/android/media/session/MediaController.java",
94 "apex/java/android/media/session/MediaSessionEngine.java",
95 "apex/java/android/media/session/MediaSessionProviderService.java",
96 "apex/java/android/media/session/PlaybackState.java",
97 "apex/java/android/media/session/SessionCallbackLink.java",
98 "apex/java/android/media/session/SessionLink.java",
Sungsoo Lim4e475432019-01-24 03:14:12 +090099 "apex/java/android/service/media/IMediaBrowserService.aidl",
100 "apex/java/android/service/media/IMediaBrowserServiceCallbacks.aidl",
101 "apex/java/android/service/media/MediaBrowserService.java",
Sungsoo Limbb3b4012019-01-23 13:17:53 +0900102 ],
103}
104
105filegroup {
Sungsoo Lim64ed0092019-01-24 04:25:44 +0900106 name: "media1-srcs-without-aidls",
Sungsoo Limbb3b4012019-01-23 13:17:53 +0900107 srcs: [
108 ":media1-srcs",
109 ],
110 exclude_srcs: [
111 "apex/java/android/media/session/ISession.aidl",
112 "apex/java/android/media/session/ISessionCallback.aidl",
113 "apex/java/android/media/session/ISessionController.aidl",
114 "apex/java/android/media/session/ISessionControllerCallback.aidl",
Sungsoo Lim4e475432019-01-24 03:14:12 +0900115 "apex/java/android/service/media/IMediaBrowserService.aidl",
116 "apex/java/android/service/media/IMediaBrowserServiceCallbacks.aidl",
Insun Kangb3517bf2019-01-16 17:21:05 +0900117 ],
118}
119
Insun Kangf86a56c2019-01-22 17:16:07 +0900120filegroup {
121 name: "mediasession2-srcs",
122 srcs: [
123 "apex/java/android/media/Controller2Link.java",
124 "apex/java/android/media/IMediaController2.aidl",
125 "apex/java/android/media/IMediaSession2.aidl",
126 "apex/java/android/media/IMediaSession2Service.aidl",
127 "apex/java/android/media/MediaConstants.java",
128 "apex/java/android/media/MediaController2.java",
129 "apex/java/android/media/MediaItem2.java",
130 "apex/java/android/media/MediaSession2.java",
131 "apex/java/android/media/MediaSession2Service.java",
132 "apex/java/android/media/Session2Command.java",
133 "apex/java/android/media/Session2CommandGroup.java",
134 "apex/java/android/media/Session2Link.java",
135 "apex/java/android/media/Session2Token.java",
136 ],
137}
138
139filegroup {
Sungsoo Lim64ed0092019-01-24 04:25:44 +0900140 name: "mediasession2-srcs-without-aidls",
Insun Kangf86a56c2019-01-22 17:16:07 +0900141 srcs: [
142 ":mediasession2-srcs",
143 ],
144 exclude_srcs: [
145 "apex/java/android/media/IMediaController2.aidl",
146 "apex/java/android/media/IMediaSession2.aidl",
147 "apex/java/android/media/IMediaSession2Service.aidl",
148 ],
149}
150
Dongwon Kang43c88f32018-11-28 13:25:30 -0800151filegroup {
Insun Kangf86a56c2019-01-22 17:16:07 +0900152 name: "mediaplayer2-srcs",
Dongwon Kang43c88f32018-11-28 13:25:30 -0800153 srcs: [
Dongwon Kang8afd5312019-01-15 20:04:51 -0800154 "apex/java/android/media/CloseGuard.java",
155 "apex/java/android/media/DataSourceCallback.java",
156 "apex/java/android/media/DataSourceDesc.java",
157 "apex/java/android/media/UriDataSourceDesc.java",
158 "apex/java/android/media/FileDataSourceDesc.java",
159 "apex/java/android/media/CallbackDataSourceDesc.java",
160 "apex/java/android/media/VideoSize.java",
161 "apex/java/android/media/Media2Utils.java",
162 "apex/java/android/media/MediaPlayer2Utils.java",
163 "apex/java/android/media/MediaPlayer2.java",
164 "apex/java/android/media/Media2HTTPService.java",
165 "apex/java/android/media/Media2HTTPConnection.java",
166 "apex/java/android/media/RoutingDelegate.java",
167 "apex/java/android/media/BufferingParams.java",
Dongwon Kang43c88f32018-11-28 13:25:30 -0800168 ],
169}