Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8d2cfac2 authored by Hyundo Moon's avatar Hyundo Moon Committed by Android (Google) Code Review
Browse files

Merge "AML: Make MediaSessionManager.createSession() as @SystemApi"

parents fb1270ae 0852ebab
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -3014,6 +3014,7 @@ package android.media.audiopolicy {
package android.media.session {

  public final class MediaSessionManager {
    method public android.media.session.ISession createSession(android.media.session.MediaSession.CallbackStub, java.lang.String, int);
    method public void setOnMediaKeyListener(android.media.session.MediaSessionManager.OnMediaKeyListener, android.os.Handler);
    method public void setOnVolumeKeyLongPressListener(android.media.session.MediaSessionManager.OnVolumeKeyLongPressListener, android.os.Handler);
  }
+8 −2
Original line number Diff line number Diff line
@@ -96,9 +96,15 @@ public final class MediaSessionManager {
     * @return The binder object from the system
     * @hide
     */
    @SystemApi
    public @NonNull ISession createSession(@NonNull MediaSession.CallbackStub cbStub,
            @NonNull String tag, int userId) throws RemoteException {
            @NonNull String tag, int userId) {
        try {
            return mService.createSession(mContext.getPackageName(), cbStub, tag, userId);
        } catch (RemoteException e) {
            e.rethrowFromSystemServer();
        }
        return null;
    }

    /**