Remove dispatchMediaKeyEvent API
Remove dispatchMediaKeyEvent(KeyEvent) since it can be substituted by calling dispatchMediaKeyEvent(KeyEvent, boolean) API with boolean value as false. Bug: 179116384 Test: build Change-Id: I3692c712a780e8978bb8e3b2d19cfc242357e864
This commit is contained in:
@@ -136,7 +136,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);
|
||||
|
||||
@@ -571,17 +571,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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user