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 | |
Vladimir Marko | c631e8f | 2019-04-02 15:31:47 +0100 | [diff] [blame] | 23 | permitted_packages: [ |
| 24 | "android.media", |
| 25 | ], |
| 26 | |
Sungsoo Lim | 64ed009 | 2019-01-24 04:25:44 +0900 | [diff] [blame] | 27 | installable: true, |
| 28 | |
| 29 | // Make sure that the implementaion only relies on SDK or system APIs. |
Paul Duffin | 8fcace4 | 2019-06-12 13:47:18 +0100 | [diff] [blame] | 30 | sdk_version: "core_platform", |
Insun Kang | 291318d | 2019-01-30 17:28:47 +0900 | [diff] [blame] | 31 | libs: [ |
| 32 | // The order matters. android_system_* library should come later. |
| 33 | "framework_media_annotation", |
| 34 | "android_system_stubs_current", |
| 35 | ], |
Kun Niu | 6eff1d4 | 2019-07-01 17:59:25 -0700 | [diff] [blame] | 36 | |
| 37 | plugins: ["java_api_finder"], |
Sungsoo Lim | 64ed009 | 2019-01-24 04:25:44 +0900 | [diff] [blame] | 38 | } |
| 39 | |
| 40 | filegroup { |
Insun Kang | d5fa815 | 2019-01-24 17:08:10 +0900 | [diff] [blame] | 41 | name: "updatable-media-srcs", |
| 42 | srcs: [ |
| 43 | ":mediasession2-srcs", |
Insun Kang | d5fa815 | 2019-01-24 17:08:10 +0900 | [diff] [blame] | 44 | ], |
| 45 | } |
| 46 | |
| 47 | filegroup { |
Insun Kang | f86a56c | 2019-01-22 17:16:07 +0900 | [diff] [blame] | 48 | 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 Kang | f86a56c | 2019-01-22 17:16:07 +0900 | [diff] [blame] | 56 | "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 Kang | e6e5f41 | 2019-01-29 09:11:02 -0800 | [diff] [blame] | 61 | "apex/java/android/media/Session2Token.java", |
Insun Kang | f86a56c | 2019-01-22 17:16:07 +0900 | [diff] [blame] | 62 | ], |
Jiyong Park | 2230dce | 2019-08-19 14:42:24 +0900 | [diff] [blame] | 63 | path: "apex/java", |
Insun Kang | f86a56c | 2019-01-22 17:16:07 +0900 | [diff] [blame] | 64 | } |
| 65 | |
Insun Kang | d5fa815 | 2019-01-24 17:08:10 +0900 | [diff] [blame] | 66 | metalava_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 Kang | 9b505e9 | 2019-04-16 11:45:48 -0700 | [diff] [blame] | 71 | "--hide HiddenTypedefConstant --show-annotation android.annotation.SystemApi " |
Insun Kang | d5fa815 | 2019-01-24 17:08:10 +0900 | [diff] [blame] | 72 | |
| 73 | droidstubs { |
| 74 | name: "updatable-media-stubs", |
| 75 | srcs: [ |
Jiyong Park | d2411f7 | 2019-08-20 20:48:47 +0900 | [diff] [blame] | 76 | ":updatable-media-srcs", |
Insun Kang | d5fa815 | 2019-01-24 17:08:10 +0900 | [diff] [blame] | 77 | ":framework-media-annotation-srcs", |
| 78 | ], |
Dongwon Kang | 27ee190 | 2019-02-04 14:18:38 -0800 | [diff] [blame] | 79 | args: metalava_updatable_media_args, |
Jiyong Park | 2042653 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 80 | aidl: { |
| 81 | // TODO(b/135922046) remove this |
| 82 | include_dirs: ["frameworks/base/core/java"], |
| 83 | }, |
| 84 | sdk_version: "system_current", |
Insun Kang | d5fa815 | 2019-01-24 17:08:10 +0900 | [diff] [blame] | 85 | } |
| 86 | |
| 87 | java_library { |
| 88 | name: "updatable_media_stubs", |
| 89 | srcs: [":updatable-media-stubs"], |
Jiyong Park | 2042653 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 90 | sdk_version: "system_current", |
Insun Kang | d5fa815 | 2019-01-24 17:08:10 +0900 | [diff] [blame] | 91 | } |
| 92 | |
Insun Kang | 291318d | 2019-01-30 17:28:47 +0900 | [diff] [blame] | 93 | java_library { |
| 94 | name: "framework_media_annotation", |
| 95 | srcs: [":framework-media-annotation-srcs"], |
| 96 | installable: false, |
| 97 | } |