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 | ":framework-media-annotation-srcs", |
| 7 | ], |
| 8 | |
| 9 | aidl: { |
| 10 | export_include_dirs: [ |
| 11 | "apex/java", |
| 12 | ], |
| 13 | |
Insun Kang | d5fa815 | 2019-01-24 17:08:10 +0900 | [diff] [blame] | 14 | // It would be great if we don't need to add include_dirs for public |
| 15 | // parcelable classes. Find a better way. |
Sungsoo Lim | 64ed009 | 2019-01-24 04:25:44 +0900 | [diff] [blame] | 16 | include_dirs: [ |
Insun Kang | d5fa815 | 2019-01-24 17:08:10 +0900 | [diff] [blame] | 17 | // To refer: |
| 18 | // android.os.Bundle |
| 19 | // android.os.ResultReceiver |
Sungsoo Lim | 64ed009 | 2019-01-24 04:25:44 +0900 | [diff] [blame] | 20 | "frameworks/base/core/java", |
| 21 | ], |
| 22 | }, |
| 23 | |
Sungsoo Lim | 64ed009 | 2019-01-24 04:25:44 +0900 | [diff] [blame] | 24 | 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 | |
| 34 | filegroup { |
Insun Kang | d5fa815 | 2019-01-24 17:08:10 +0900 | [diff] [blame] | 35 | name: "updatable-media-srcs", |
| 36 | srcs: [ |
| 37 | ":mediasession2-srcs", |
| 38 | ":mediaplayer2-srcs", |
| 39 | ], |
| 40 | } |
| 41 | |
| 42 | filegroup { |
| 43 | name: "updatable-media-srcs-without-aidls", |
Sungsoo Lim | 64ed009 | 2019-01-24 04:25:44 +0900 | [diff] [blame] | 44 | srcs : [ |
Sungsoo Lim | 64ed009 | 2019-01-24 04:25:44 +0900 | [diff] [blame] | 45 | ":mediasession2-srcs-without-aidls", |
| 46 | ":mediaplayer2-srcs", |
| 47 | ], |
| 48 | } |
| 49 | |
Insun Kang | b3517bf | 2019-01-16 17:21:05 +0900 | [diff] [blame] | 50 | filegroup { |
Insun Kang | f86a56c | 2019-01-22 17:16:07 +0900 | [diff] [blame] | 51 | 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 Kang | e6e5f41 | 2019-01-29 09:11:02 -0800 | [diff] [blame] | 65 | "apex/java/android/media/Session2Token.java", |
Insun Kang | f86a56c | 2019-01-22 17:16:07 +0900 | [diff] [blame] | 66 | ], |
| 67 | } |
| 68 | |
| 69 | filegroup { |
Sungsoo Lim | 64ed009 | 2019-01-24 04:25:44 +0900 | [diff] [blame] | 70 | name: "mediasession2-srcs-without-aidls", |
Insun Kang | f86a56c | 2019-01-22 17:16:07 +0900 | [diff] [blame] | 71 | 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 Kang | 43c88f3 | 2018-11-28 13:25:30 -0800 | [diff] [blame] | 81 | filegroup { |
Insun Kang | f86a56c | 2019-01-22 17:16:07 +0900 | [diff] [blame] | 82 | name: "mediaplayer2-srcs", |
Dongwon Kang | 43c88f3 | 2018-11-28 13:25:30 -0800 | [diff] [blame] | 83 | srcs: [ |
Dongwon Kang | 8afd531 | 2019-01-15 20:04:51 -0800 | [diff] [blame] | 84 | "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 Kang | 8afd531 | 2019-01-15 20:04:51 -0800 | [diff] [blame] | 90 | "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 Kang | 43c88f3 | 2018-11-28 13:25:30 -0800 | [diff] [blame] | 97 | ], |
| 98 | } |
Insun Kang | d5fa815 | 2019-01-24 17:08:10 +0900 | [diff] [blame] | 99 | |
| 100 | metalava_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 Kang | 27ee190 | 2019-02-04 14:18:38 -0800 | [diff] [blame] | 105 | "--hide HiddenTypedefConstant --show-annotation android.annotation.SystemApi " + |
| 106 | " --show-annotation android.annotation.TestApi " |
Insun Kang | d5fa815 | 2019-01-24 17:08:10 +0900 | [diff] [blame] | 107 | |
| 108 | droidstubs { |
| 109 | name: "updatable-media-stubs", |
| 110 | srcs: [ |
| 111 | ":updatable-media-srcs-without-aidls", |
| 112 | ":framework-media-annotation-srcs", |
| 113 | ], |
Dongwon Kang | 27ee190 | 2019-02-04 14:18:38 -0800 | [diff] [blame] | 114 | args: metalava_updatable_media_args, |
Insun Kang | d5fa815 | 2019-01-24 17:08:10 +0900 | [diff] [blame] | 115 | // 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 | |
| 120 | java_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 | |