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

Commit 0852ebab authored by Hyundo Moon's avatar Hyundo Moon
Browse files

AML: Make MediaSessionManager.createSession() as @SystemApi

Bug: 119749862
Test: make update-api
Change-Id: Ic3df0c3312c789130624fc42efc77ea3e1e01ad0
parent c49b4131
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -3011,6 +3011,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;
    }

    /**