Merge "Remove dispatchMediaKeyEvent API" into sc-dev

This commit is contained in:
TreeHugger Robot
2021-03-07 13:23:56 +00:00
committed by Android (Google) Code Review
2 changed files with 0 additions and 12 deletions

View File

@@ -144,7 +144,6 @@ package android.media.session {
public final class MediaSessionManager {
method public void addOnActiveSessionsChangedListener(@Nullable android.content.ComponentName, @NonNull android.os.UserHandle, @NonNull java.util.concurrent.Executor, @NonNull android.media.session.MediaSessionManager.OnActiveSessionsChangedListener);
method public void dispatchMediaKeyEvent(@NonNull android.view.KeyEvent);
method public void dispatchMediaKeyEvent(@NonNull android.view.KeyEvent, boolean);
method public void dispatchMediaKeyEventAsSystemService(@NonNull android.view.KeyEvent);
method public boolean dispatchMediaKeyEventToSessionAsSystemService(@NonNull android.view.KeyEvent, @NonNull android.media.session.MediaSession.Token);

View File

@@ -537,17 +537,6 @@ public final class MediaSessionManager {
}
}
/**
* Sends a media key event. The receiver will be selected automatically.
*
* @param keyEvent the key event to send
* @hide
*/
@SystemApi(client = SystemApi.Client.MODULE_LIBRARIES)
public void dispatchMediaKeyEvent(@NonNull KeyEvent keyEvent) {
dispatchMediaKeyEventInternal(keyEvent, /*asSystemService=*/false, /*needWakeLock=*/false);
}
/**
* Sends a media key event. The receiver will be selected automatically.
*