diff options
author | Kyunglyul Hyun <klhyun@google.com> | 2022-03-18 22:15:54 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2022-03-18 22:15:54 +0000 |
commit | ba72549969b8dab73405cc20421805fa2cf44949 (patch) | |
tree | 4f8bf13e79f928009d203865328c836a5f8fc09f | |
parent | afb1a85394cf73ed840a76d1bcd62e41225097f6 (diff) | |
parent | be55ac472c5fb16716eb117f918d99587cf3cbde (diff) | |
download | Media-ba72549969b8dab73405cc20421805fa2cf44949.tar.gz |
Add comment to MCM#dispatchKeyEvent am: be55ac472c
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/Media/+/17231287
Change-Id: Ib71160dca62de55b754c33b294fe293f7d02648d
-rw-r--r-- | apex/framework/java/android/media/MediaCommunicationManager.java | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/apex/framework/java/android/media/MediaCommunicationManager.java b/apex/framework/java/android/media/MediaCommunicationManager.java index ef5552e..43ec25b 100644 --- a/apex/framework/java/android/media/MediaCommunicationManager.java +++ b/apex/framework/java/android/media/MediaCommunicationManager.java @@ -251,9 +251,11 @@ public class MediaCommunicationManager { /** * Sends a media key event. The receiver will be selected automatically. * - * @param keyEvent the key event to send - * @param asSystemService if {@code true}, the event sent to the session as if it was come from - * the system service instead of the app process. + * @param keyEvent the key event to send, non-media key events will be ignored. + * @param asSystemService if {@code true}, the event is sent to the session as if it was come + * from the system service instead of the app process. It only affects + * {@link MediaSession.Callback#getCurrentControllerInfo()} and doesn't + * bypass any permission checks. * @hide */ @SystemApi(client = SystemApi.Client.MODULE_LIBRARIES) |