blob: 2f75e4458ef5e127caa2f16438446e05bb41142b [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 ],
7
8 aidl: {
9 export_include_dirs: [
10 "apex/java",
11 ],
12
Insun Kangd5fa8152019-01-24 17:08:10 +090013 // It would be great if we don't need to add include_dirs for public
14 // parcelable classes. Find a better way.
Sungsoo Lim64ed0092019-01-24 04:25:44 +090015 include_dirs: [
Insun Kangd5fa8152019-01-24 17:08:10 +090016 // To refer:
17 // android.os.Bundle
18 // android.os.ResultReceiver
Sungsoo Lim64ed0092019-01-24 04:25:44 +090019 "frameworks/base/core/java",
20 ],
21 },
22
Vladimir Markoc631e8f2019-04-02 15:31:47 +010023 permitted_packages: [
24 "android.media",
25 ],
26
Sungsoo Lim64ed0092019-01-24 04:25:44 +090027 installable: true,
28
29 // Make sure that the implementaion only relies on SDK or system APIs.
Paul Duffin8fcace42019-06-12 13:47:18 +010030 sdk_version: "core_platform",
Insun Kang291318d2019-01-30 17:28:47 +090031 libs: [
32 // The order matters. android_system_* library should come later.
33 "framework_media_annotation",
34 "android_system_stubs_current",
35 ],
Kun Niu6eff1d42019-07-01 17:59:25 -070036
37 plugins: ["java_api_finder"],
Sungsoo Lim64ed0092019-01-24 04:25:44 +090038}
39
40filegroup {
Insun Kangd5fa8152019-01-24 17:08:10 +090041 name: "updatable-media-srcs",
42 srcs: [
43 ":mediasession2-srcs",
Insun Kangd5fa8152019-01-24 17:08:10 +090044 ],
45}
46
47filegroup {
Insun Kangf86a56c2019-01-22 17:16:07 +090048 name: "mediasession2-srcs",
49 srcs: [
50 "apex/java/android/media/Controller2Link.java",
51 "apex/java/android/media/IMediaController2.aidl",
52 "apex/java/android/media/IMediaSession2.aidl",
53 "apex/java/android/media/IMediaSession2Service.aidl",
54 "apex/java/android/media/MediaConstants.java",
55 "apex/java/android/media/MediaController2.java",
Insun Kangf86a56c2019-01-22 17:16:07 +090056 "apex/java/android/media/MediaSession2.java",
57 "apex/java/android/media/MediaSession2Service.java",
58 "apex/java/android/media/Session2Command.java",
59 "apex/java/android/media/Session2CommandGroup.java",
60 "apex/java/android/media/Session2Link.java",
Dongwon Kange6e5f412019-01-29 09:11:02 -080061 "apex/java/android/media/Session2Token.java",
Insun Kangf86a56c2019-01-22 17:16:07 +090062 ],
Jiyong Park2230dce2019-08-19 14:42:24 +090063 path: "apex/java",
Insun Kangf86a56c2019-01-22 17:16:07 +090064}
65
Insun Kangd5fa8152019-01-24 17:08:10 +090066metalava_updatable_media_args = " --error UnhiddenSystemApi " +
67 "--hide RequiresPermission " +
68 "--hide MissingPermission --hide BroadcastBehavior " +
69 "--hide HiddenSuperclass --hide DeprecationMismatch --hide UnavailableSymbol " +
70 "--hide SdkConstant --hide HiddenTypeParameter --hide Todo --hide Typo " +
Dongwon Kang9b505e92019-04-16 11:45:48 -070071 "--hide HiddenTypedefConstant --show-annotation android.annotation.SystemApi "
Insun Kangd5fa8152019-01-24 17:08:10 +090072
73droidstubs {
74 name: "updatable-media-stubs",
75 srcs: [
Jiyong Parkd2411f72019-08-20 20:48:47 +090076 ":updatable-media-srcs",
Insun Kangd5fa8152019-01-24 17:08:10 +090077 ":framework-media-annotation-srcs",
78 ],
Dongwon Kang27ee1902019-02-04 14:18:38 -080079 args: metalava_updatable_media_args,
Jiyong Park20426532019-08-19 15:24:49 +090080 aidl: {
81 // TODO(b/135922046) remove this
82 include_dirs: ["frameworks/base/core/java"],
83 },
84 sdk_version: "system_current",
Insun Kangd5fa8152019-01-24 17:08:10 +090085}
86
87java_library {
88 name: "updatable_media_stubs",
89 srcs: [":updatable-media-stubs"],
Jiyong Park20426532019-08-19 15:24:49 +090090 sdk_version: "system_current",
Insun Kangd5fa8152019-01-24 17:08:10 +090091}
92
Insun Kang291318d2019-01-30 17:28:47 +090093java_library {
94 name: "framework_media_annotation",
95 srcs: [":framework-media-annotation-srcs"],
96 installable: false,
97}