Dongwon Kang | 43c88f3 | 2018-11-28 13:25:30 -0800 | [diff] [blame] | 1 | java_library { |
Hyundo Moon | 14ca142 | 2019-01-28 15:43:24 +0900 | [diff] [blame] | 2 | name: "updatable-media", |
Sungsoo Lim | 64ed009 | 2019-01-24 04:25:44 +0900 | [diff] [blame] | 3 | |
| 4 | srcs: [ |
Insun Kang | d5fa815 | 2019-01-24 17:08:10 +0900 | [diff] [blame] | 5 | ":updatable-media-srcs", |
Sungsoo Lim | 64ed009 | 2019-01-24 04:25:44 +0900 | [diff] [blame] | 6 | ], |
| 7 | |
| 8 | aidl: { |
| 9 | export_include_dirs: [ |
| 10 | "apex/java", |
| 11 | ], |
| 12 | |
Insun Kang | d5fa815 | 2019-01-24 17:08:10 +0900 | [diff] [blame] | 13 | // It would be great if we don't need to add include_dirs for public |
| 14 | // parcelable classes. Find a better way. |
Sungsoo Lim | 64ed009 | 2019-01-24 04:25:44 +0900 | [diff] [blame] | 15 | include_dirs: [ |
Insun Kang | d5fa815 | 2019-01-24 17:08:10 +0900 | [diff] [blame] | 16 | // To refer: |
| 17 | // android.os.Bundle |
| 18 | // android.os.ResultReceiver |
Sungsoo Lim | 64ed009 | 2019-01-24 04:25:44 +0900 | [diff] [blame] | 19 | "frameworks/base/core/java", |
| 20 | ], |
| 21 | }, |
| 22 | |
Sungsoo Lim | 64ed009 | 2019-01-24 04:25:44 +0900 | [diff] [blame] | 23 | static_libs: [ |
| 24 | "mediaplayer2-protos", |
| 25 | ], |
| 26 | |
Vladimir Marko | d634f2b | 2019-04-02 15:31:47 +0100 | [diff] [blame] | 27 | permitted_packages: [ |
| 28 | "android.media", |
| 29 | ], |
| 30 | |
Sungsoo Lim | 64ed009 | 2019-01-24 04:25:44 +0900 | [diff] [blame] | 31 | installable: true, |
| 32 | |
| 33 | // Make sure that the implementaion only relies on SDK or system APIs. |
Insun Kang | 291318d | 2019-01-30 17:28:47 +0900 | [diff] [blame] | 34 | no_framework_libs: true, |
| 35 | libs: [ |
| 36 | // The order matters. android_system_* library should come later. |
| 37 | "framework_media_annotation", |
| 38 | "android_system_stubs_current", |
| 39 | ], |
Sungsoo Lim | 64ed009 | 2019-01-24 04:25:44 +0900 | [diff] [blame] | 40 | } |
| 41 | |
| 42 | filegroup { |
Insun Kang | d5fa815 | 2019-01-24 17:08:10 +0900 | [diff] [blame] | 43 | name: "updatable-media-srcs", |
| 44 | srcs: [ |
| 45 | ":mediasession2-srcs", |
| 46 | ":mediaplayer2-srcs", |
| 47 | ], |
| 48 | } |
| 49 | |
| 50 | filegroup { |
| 51 | name: "updatable-media-srcs-without-aidls", |
Sungsoo Lim | 64ed009 | 2019-01-24 04:25:44 +0900 | [diff] [blame] | 52 | srcs : [ |
Sungsoo Lim | 64ed009 | 2019-01-24 04:25:44 +0900 | [diff] [blame] | 53 | ":mediasession2-srcs-without-aidls", |
| 54 | ":mediaplayer2-srcs", |
| 55 | ], |
| 56 | } |
| 57 | |
Insun Kang | b3517bf | 2019-01-16 17:21:05 +0900 | [diff] [blame] | 58 | filegroup { |
Insun Kang | f86a56c | 2019-01-22 17:16:07 +0900 | [diff] [blame] | 59 | name: "mediasession2-srcs", |
| 60 | srcs: [ |
| 61 | "apex/java/android/media/Controller2Link.java", |
| 62 | "apex/java/android/media/IMediaController2.aidl", |
| 63 | "apex/java/android/media/IMediaSession2.aidl", |
| 64 | "apex/java/android/media/IMediaSession2Service.aidl", |
| 65 | "apex/java/android/media/MediaConstants.java", |
| 66 | "apex/java/android/media/MediaController2.java", |
| 67 | "apex/java/android/media/MediaItem2.java", |
| 68 | "apex/java/android/media/MediaSession2.java", |
| 69 | "apex/java/android/media/MediaSession2Service.java", |
| 70 | "apex/java/android/media/Session2Command.java", |
| 71 | "apex/java/android/media/Session2CommandGroup.java", |
| 72 | "apex/java/android/media/Session2Link.java", |
Dongwon Kang | e6e5f41 | 2019-01-29 09:11:02 -0800 | [diff] [blame] | 73 | "apex/java/android/media/Session2Token.java", |
Insun Kang | f86a56c | 2019-01-22 17:16:07 +0900 | [diff] [blame] | 74 | ], |
| 75 | } |
| 76 | |
| 77 | filegroup { |
Sungsoo Lim | 64ed009 | 2019-01-24 04:25:44 +0900 | [diff] [blame] | 78 | name: "mediasession2-srcs-without-aidls", |
Insun Kang | f86a56c | 2019-01-22 17:16:07 +0900 | [diff] [blame] | 79 | srcs: [ |
| 80 | ":mediasession2-srcs", |
| 81 | ], |
| 82 | exclude_srcs: [ |
| 83 | "apex/java/android/media/IMediaController2.aidl", |
| 84 | "apex/java/android/media/IMediaSession2.aidl", |
| 85 | "apex/java/android/media/IMediaSession2Service.aidl", |
| 86 | ], |
| 87 | } |
| 88 | |
Dongwon Kang | 43c88f3 | 2018-11-28 13:25:30 -0800 | [diff] [blame] | 89 | filegroup { |
Insun Kang | f86a56c | 2019-01-22 17:16:07 +0900 | [diff] [blame] | 90 | name: "mediaplayer2-srcs", |
Dongwon Kang | 43c88f3 | 2018-11-28 13:25:30 -0800 | [diff] [blame] | 91 | srcs: [ |
Dongwon Kang | 8afd531 | 2019-01-15 20:04:51 -0800 | [diff] [blame] | 92 | "apex/java/android/media/CloseGuard.java", |
| 93 | "apex/java/android/media/DataSourceCallback.java", |
| 94 | "apex/java/android/media/DataSourceDesc.java", |
| 95 | "apex/java/android/media/UriDataSourceDesc.java", |
| 96 | "apex/java/android/media/FileDataSourceDesc.java", |
Dongwon Kang | 8afd531 | 2019-01-15 20:04:51 -0800 | [diff] [blame] | 97 | "apex/java/android/media/Media2Utils.java", |
| 98 | "apex/java/android/media/MediaPlayer2Utils.java", |
| 99 | "apex/java/android/media/MediaPlayer2.java", |
| 100 | "apex/java/android/media/Media2HTTPService.java", |
| 101 | "apex/java/android/media/Media2HTTPConnection.java", |
| 102 | "apex/java/android/media/RoutingDelegate.java", |
| 103 | "apex/java/android/media/BufferingParams.java", |
Dongwon Kang | 77ab986 | 2019-03-21 21:38:57 -0700 | [diff] [blame] | 104 | "apex/java/android/media/ProxyDataSourceCallback.java", |
Dongwon Kang | 43c88f3 | 2018-11-28 13:25:30 -0800 | [diff] [blame] | 105 | ], |
| 106 | } |
Insun Kang | d5fa815 | 2019-01-24 17:08:10 +0900 | [diff] [blame] | 107 | |
| 108 | metalava_updatable_media_args = " --error UnhiddenSystemApi " + |
| 109 | "--hide RequiresPermission " + |
| 110 | "--hide MissingPermission --hide BroadcastBehavior " + |
| 111 | "--hide HiddenSuperclass --hide DeprecationMismatch --hide UnavailableSymbol " + |
| 112 | "--hide SdkConstant --hide HiddenTypeParameter --hide Todo --hide Typo " + |
Dongwon Kang | 27ee190 | 2019-02-04 14:18:38 -0800 | [diff] [blame] | 113 | "--hide HiddenTypedefConstant --show-annotation android.annotation.SystemApi " + |
| 114 | " --show-annotation android.annotation.TestApi " |
Insun Kang | d5fa815 | 2019-01-24 17:08:10 +0900 | [diff] [blame] | 115 | |
| 116 | droidstubs { |
| 117 | name: "updatable-media-stubs", |
| 118 | srcs: [ |
| 119 | ":updatable-media-srcs-without-aidls", |
| 120 | ":framework-media-annotation-srcs", |
| 121 | ], |
Dongwon Kang | 27ee190 | 2019-02-04 14:18:38 -0800 | [diff] [blame] | 122 | args: metalava_updatable_media_args, |
Insun Kang | d5fa815 | 2019-01-24 17:08:10 +0900 | [diff] [blame] | 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 | |
| 128 | java_library { |
| 129 | name: "updatable_media_stubs", |
| 130 | srcs: [":updatable-media-stubs"], |
| 131 | // Ideally, sdk_version here should be "current_system", but "current - 1" is used |
| 132 | // to avoid dependency cycle with framework. |
| 133 | sdk_version: "28", |
| 134 | } |
| 135 | |
Insun Kang | 291318d | 2019-01-30 17:28:47 +0900 | [diff] [blame] | 136 | java_library { |
| 137 | name: "framework_media_annotation", |
| 138 | srcs: [":framework-media-annotation-srcs"], |
| 139 | installable: false, |
| 140 | } |