blob: b77c701c78e88598b7d5c69ba6f7febe0d988d59 [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
Santiago Seifert964f5412019-11-14 15:34:16 +000037 static_libs: [
38 "exoplayer2-core"
39 ],
40 jarjar_rules: "jarjar_rules.txt",
41
Kun Niu6eff1d42019-07-01 17:59:25 -070042 plugins: ["java_api_finder"],
Sungsoo Lim64ed0092019-01-24 04:25:44 +090043}
44
45filegroup {
Insun Kangd5fa8152019-01-24 17:08:10 +090046 name: "updatable-media-srcs",
47 srcs: [
Santiago Seifert964f5412019-11-14 15:34:16 +000048 ":mediaparser-srcs",
Santiago Seiferta4be4662019-11-19 20:38:56 +000049 ":mediasession2-srcs",
Insun Kangd5fa8152019-01-24 17:08:10 +090050 ],
51}
52
53filegroup {
Insun Kangf86a56c2019-01-22 17:16:07 +090054 name: "mediasession2-srcs",
55 srcs: [
56 "apex/java/android/media/Controller2Link.java",
57 "apex/java/android/media/IMediaController2.aidl",
58 "apex/java/android/media/IMediaSession2.aidl",
59 "apex/java/android/media/IMediaSession2Service.aidl",
60 "apex/java/android/media/MediaConstants.java",
61 "apex/java/android/media/MediaController2.java",
Insun Kangf86a56c2019-01-22 17:16:07 +090062 "apex/java/android/media/MediaSession2.java",
63 "apex/java/android/media/MediaSession2Service.java",
64 "apex/java/android/media/Session2Command.java",
65 "apex/java/android/media/Session2CommandGroup.java",
66 "apex/java/android/media/Session2Link.java",
Dongwon Kange6e5f412019-01-29 09:11:02 -080067 "apex/java/android/media/Session2Token.java",
Insun Kangf86a56c2019-01-22 17:16:07 +090068 ],
Jiyong Park2230dce2019-08-19 14:42:24 +090069 path: "apex/java",
Insun Kangf86a56c2019-01-22 17:16:07 +090070}
71
Santiago Seifert964f5412019-11-14 15:34:16 +000072filegroup {
73 name: "mediaparser-srcs",
74 srcs: [
75 "apex/java/android/media/MediaParser.java"
Santiago Seiferta4be4662019-11-19 20:38:56 +000076 ],
77 path: "apex/java"
Santiago Seifert964f5412019-11-14 15:34:16 +000078}
79
Insun Kangd5fa8152019-01-24 17:08:10 +090080metalava_updatable_media_args = " --error UnhiddenSystemApi " +
81 "--hide RequiresPermission " +
82 "--hide MissingPermission --hide BroadcastBehavior " +
83 "--hide HiddenSuperclass --hide DeprecationMismatch --hide UnavailableSymbol " +
84 "--hide SdkConstant --hide HiddenTypeParameter --hide Todo --hide Typo " +
Dongwon Kang9b505e92019-04-16 11:45:48 -070085 "--hide HiddenTypedefConstant --show-annotation android.annotation.SystemApi "
Insun Kangd5fa8152019-01-24 17:08:10 +090086
87droidstubs {
88 name: "updatable-media-stubs",
89 srcs: [
Jiyong Parkd2411f72019-08-20 20:48:47 +090090 ":updatable-media-srcs",
Insun Kangd5fa8152019-01-24 17:08:10 +090091 ":framework-media-annotation-srcs",
92 ],
Dongwon Kang27ee1902019-02-04 14:18:38 -080093 args: metalava_updatable_media_args,
Jiyong Park20426532019-08-19 15:24:49 +090094 aidl: {
95 // TODO(b/135922046) remove this
96 include_dirs: ["frameworks/base/core/java"],
97 },
98 sdk_version: "system_current",
Insun Kangd5fa8152019-01-24 17:08:10 +090099}
100
101java_library {
102 name: "updatable_media_stubs",
103 srcs: [":updatable-media-stubs"],
Jiyong Park20426532019-08-19 15:24:49 +0900104 sdk_version: "system_current",
Insun Kangd5fa8152019-01-24 17:08:10 +0900105}
106
Insun Kang291318d2019-01-30 17:28:47 +0900107java_library {
108 name: "framework_media_annotation",
109 srcs: [":framework-media-annotation-srcs"],
110 installable: false,
111}
Ytai Ben-Tsvid58b04a2019-11-22 12:33:09 -0800112
113aidl_interface {
114 name: "audio_common-aidl",
115 local_include_dir: "java",
116 srcs: [
117 "java/android/media/audio/common/AudioChannelMask.aidl",
118 "java/android/media/audio/common/AudioConfig.aidl",
119 "java/android/media/audio/common/AudioFormat.aidl",
120 "java/android/media/audio/common/AudioOffloadInfo.aidl",
121 "java/android/media/audio/common/AudioStreamType.aidl",
122 "java/android/media/audio/common/AudioUsage.aidl",
123 ],
124 backend:
125 {
126 cpp: {
127 enabled: true,
128 },
129 java: {
130 // Already generated as part of the entire media java library.
131 enabled: false,
132 },
133 },
134}
135