blob: 141d415cbaf37be198481646298190835e1f70ef [file] [log] [blame]
Dongwon Kang43c88f32018-11-28 13:25:30 -08001java_library {
Hyundo Moon14ca1422019-01-28 15:43:24 +09002 name: "updatable-media",
Sungsoo Lim64ed0092019-01-24 04:25:44 +09003
4 srcs: [
Insun Kangd5fa8152019-01-24 17:08:10 +09005 ":updatable-media-srcs",
Sungsoo Lim64ed0092019-01-24 04:25:44 +09006 ":framework-media-annotation-srcs",
7 ],
8
9 aidl: {
10 export_include_dirs: [
11 "apex/java",
12 ],
13
Insun Kangd5fa8152019-01-24 17:08:10 +090014 // It would be great if we don't need to add include_dirs for public
15 // parcelable classes. Find a better way.
Sungsoo Lim64ed0092019-01-24 04:25:44 +090016 include_dirs: [
Insun Kangd5fa8152019-01-24 17:08:10 +090017 // To refer:
18 // android.os.Bundle
19 // android.os.ResultReceiver
Sungsoo Lim64ed0092019-01-24 04:25:44 +090020 "frameworks/base/core/java",
21 ],
22 },
23
Sungsoo Lim64ed0092019-01-24 04:25:44 +090024 static_libs: [
25 "mediaplayer2-protos",
26 ],
27
28 installable: true,
29
30 // Make sure that the implementaion only relies on SDK or system APIs.
31 sdk_version: "system_current",
32}
33
34filegroup {
Insun Kangd5fa8152019-01-24 17:08:10 +090035 name: "updatable-media-srcs",
36 srcs: [
37 ":mediasession2-srcs",
38 ":mediaplayer2-srcs",
39 ],
40}
41
42filegroup {
43 name: "updatable-media-srcs-without-aidls",
Sungsoo Lim64ed0092019-01-24 04:25:44 +090044 srcs : [
Sungsoo Lim64ed0092019-01-24 04:25:44 +090045 ":mediasession2-srcs-without-aidls",
46 ":mediaplayer2-srcs",
47 ],
48}
49
Insun Kangb3517bf2019-01-16 17:21:05 +090050filegroup {
Insun Kangf86a56c2019-01-22 17:16:07 +090051 name: "mediasession2-srcs",
52 srcs: [
53 "apex/java/android/media/Controller2Link.java",
54 "apex/java/android/media/IMediaController2.aidl",
55 "apex/java/android/media/IMediaSession2.aidl",
56 "apex/java/android/media/IMediaSession2Service.aidl",
57 "apex/java/android/media/MediaConstants.java",
58 "apex/java/android/media/MediaController2.java",
59 "apex/java/android/media/MediaItem2.java",
60 "apex/java/android/media/MediaSession2.java",
61 "apex/java/android/media/MediaSession2Service.java",
62 "apex/java/android/media/Session2Command.java",
63 "apex/java/android/media/Session2CommandGroup.java",
64 "apex/java/android/media/Session2Link.java",
Dongwon Kange6e5f412019-01-29 09:11:02 -080065 "apex/java/android/media/Session2Token.java",
Insun Kangf86a56c2019-01-22 17:16:07 +090066 ],
67}
68
69filegroup {
Sungsoo Lim64ed0092019-01-24 04:25:44 +090070 name: "mediasession2-srcs-without-aidls",
Insun Kangf86a56c2019-01-22 17:16:07 +090071 srcs: [
72 ":mediasession2-srcs",
73 ],
74 exclude_srcs: [
75 "apex/java/android/media/IMediaController2.aidl",
76 "apex/java/android/media/IMediaSession2.aidl",
77 "apex/java/android/media/IMediaSession2Service.aidl",
78 ],
79}
80
Dongwon Kang43c88f32018-11-28 13:25:30 -080081filegroup {
Insun Kangf86a56c2019-01-22 17:16:07 +090082 name: "mediaplayer2-srcs",
Dongwon Kang43c88f32018-11-28 13:25:30 -080083 srcs: [
Dongwon Kang8afd5312019-01-15 20:04:51 -080084 "apex/java/android/media/CloseGuard.java",
85 "apex/java/android/media/DataSourceCallback.java",
86 "apex/java/android/media/DataSourceDesc.java",
87 "apex/java/android/media/UriDataSourceDesc.java",
88 "apex/java/android/media/FileDataSourceDesc.java",
89 "apex/java/android/media/CallbackDataSourceDesc.java",
Dongwon Kang8afd5312019-01-15 20:04:51 -080090 "apex/java/android/media/Media2Utils.java",
91 "apex/java/android/media/MediaPlayer2Utils.java",
92 "apex/java/android/media/MediaPlayer2.java",
93 "apex/java/android/media/Media2HTTPService.java",
94 "apex/java/android/media/Media2HTTPConnection.java",
95 "apex/java/android/media/RoutingDelegate.java",
96 "apex/java/android/media/BufferingParams.java",
Dongwon Kang43c88f32018-11-28 13:25:30 -080097 ],
98}
Insun Kangd5fa8152019-01-24 17:08:10 +090099
100metalava_updatable_media_args = " --error UnhiddenSystemApi " +
101 "--hide RequiresPermission " +
102 "--hide MissingPermission --hide BroadcastBehavior " +
103 "--hide HiddenSuperclass --hide DeprecationMismatch --hide UnavailableSymbol " +
104 "--hide SdkConstant --hide HiddenTypeParameter --hide Todo --hide Typo " +
Dongwon Kang27ee1902019-02-04 14:18:38 -0800105 "--hide HiddenTypedefConstant --show-annotation android.annotation.SystemApi " +
106 " --show-annotation android.annotation.TestApi "
Insun Kangd5fa8152019-01-24 17:08:10 +0900107
108droidstubs {
109 name: "updatable-media-stubs",
110 srcs: [
111 ":updatable-media-srcs-without-aidls",
112 ":framework-media-annotation-srcs",
113 ],
Dongwon Kang27ee1902019-02-04 14:18:38 -0800114 args: metalava_updatable_media_args,
Insun Kangd5fa8152019-01-24 17:08:10 +0900115 // Ideally, sdk_version here should be "current_system", but "current - 1" is used
116 // to avoid dependency cycle with framework.
117 sdk_version: "28",
118}
119
120java_library {
121 name: "updatable_media_stubs",
122 srcs: [":updatable-media-stubs"],
123 // Ideally, sdk_version here should be "current_system", but "current - 1" is used
124 // to avoid dependency cycle with framework.
125 sdk_version: "28",
126}
127