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 | |
Santiago Seifert | 964f541 | 2019-11-14 15:34:16 +0000 | [diff] [blame] | 37 | static_libs: [ |
| 38 | "exoplayer2-core" |
| 39 | ], |
| 40 | jarjar_rules: "jarjar_rules.txt", |
| 41 | |
Kun Niu | 6eff1d4 | 2019-07-01 17:59:25 -0700 | [diff] [blame] | 42 | plugins: ["java_api_finder"], |
Sungsoo Lim | 64ed009 | 2019-01-24 04:25:44 +0900 | [diff] [blame] | 43 | } |
| 44 | |
| 45 | filegroup { |
Insun Kang | d5fa815 | 2019-01-24 17:08:10 +0900 | [diff] [blame] | 46 | name: "updatable-media-srcs", |
| 47 | srcs: [ |
Santiago Seifert | 964f541 | 2019-11-14 15:34:16 +0000 | [diff] [blame] | 48 | ":mediaparser-srcs", |
Santiago Seifert | a4be466 | 2019-11-19 20:38:56 +0000 | [diff] [blame] | 49 | ":mediasession2-srcs", |
Insun Kang | d5fa815 | 2019-01-24 17:08:10 +0900 | [diff] [blame] | 50 | ], |
| 51 | } |
| 52 | |
| 53 | filegroup { |
Insun Kang | f86a56c | 2019-01-22 17:16:07 +0900 | [diff] [blame] | 54 | 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 Kang | f86a56c | 2019-01-22 17:16:07 +0900 | [diff] [blame] | 62 | "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 Kang | e6e5f41 | 2019-01-29 09:11:02 -0800 | [diff] [blame] | 67 | "apex/java/android/media/Session2Token.java", |
Insun Kang | f86a56c | 2019-01-22 17:16:07 +0900 | [diff] [blame] | 68 | ], |
Jiyong Park | 2230dce | 2019-08-19 14:42:24 +0900 | [diff] [blame] | 69 | path: "apex/java", |
Insun Kang | f86a56c | 2019-01-22 17:16:07 +0900 | [diff] [blame] | 70 | } |
| 71 | |
Santiago Seifert | 964f541 | 2019-11-14 15:34:16 +0000 | [diff] [blame] | 72 | filegroup { |
| 73 | name: "mediaparser-srcs", |
| 74 | srcs: [ |
| 75 | "apex/java/android/media/MediaParser.java" |
Santiago Seifert | a4be466 | 2019-11-19 20:38:56 +0000 | [diff] [blame] | 76 | ], |
| 77 | path: "apex/java" |
Santiago Seifert | 964f541 | 2019-11-14 15:34:16 +0000 | [diff] [blame] | 78 | } |
| 79 | |
Insun Kang | d5fa815 | 2019-01-24 17:08:10 +0900 | [diff] [blame] | 80 | metalava_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 Kang | 9b505e9 | 2019-04-16 11:45:48 -0700 | [diff] [blame] | 85 | "--hide HiddenTypedefConstant --show-annotation android.annotation.SystemApi " |
Insun Kang | d5fa815 | 2019-01-24 17:08:10 +0900 | [diff] [blame] | 86 | |
| 87 | droidstubs { |
| 88 | name: "updatable-media-stubs", |
| 89 | srcs: [ |
Jiyong Park | d2411f7 | 2019-08-20 20:48:47 +0900 | [diff] [blame] | 90 | ":updatable-media-srcs", |
Insun Kang | d5fa815 | 2019-01-24 17:08:10 +0900 | [diff] [blame] | 91 | ":framework-media-annotation-srcs", |
| 92 | ], |
Dongwon Kang | 27ee190 | 2019-02-04 14:18:38 -0800 | [diff] [blame] | 93 | args: metalava_updatable_media_args, |
Jiyong Park | 2042653 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 94 | aidl: { |
| 95 | // TODO(b/135922046) remove this |
| 96 | include_dirs: ["frameworks/base/core/java"], |
| 97 | }, |
| 98 | sdk_version: "system_current", |
Insun Kang | d5fa815 | 2019-01-24 17:08:10 +0900 | [diff] [blame] | 99 | } |
| 100 | |
| 101 | java_library { |
| 102 | name: "updatable_media_stubs", |
| 103 | srcs: [":updatable-media-stubs"], |
Jiyong Park | 2042653 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 104 | sdk_version: "system_current", |
Insun Kang | d5fa815 | 2019-01-24 17:08:10 +0900 | [diff] [blame] | 105 | } |
| 106 | |
Insun Kang | 291318d | 2019-01-30 17:28:47 +0900 | [diff] [blame] | 107 | java_library { |
| 108 | name: "framework_media_annotation", |
| 109 | srcs: [":framework-media-annotation-srcs"], |
| 110 | installable: false, |
| 111 | } |
Ytai Ben-Tsvi | d58b04a | 2019-11-22 12:33:09 -0800 | [diff] [blame^] | 112 | |
| 113 | aidl_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 | |