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

Commit d6d5ee73 authored by Adrian Roos's avatar Adrian Roos
Browse files

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

This reverts commit 0852ebab.

Reason for revert: Return and parameter types of added SystemApi are not themselves part of the API.

Bug: 119749862
Change-Id: I9f89abc25d2f3f6cff60c2465fca8e471e7f1f2a
parent 0852ebab
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -3011,7 +3011,6 @@ 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);
  }
+2 −8
Original line number Diff line number Diff line
@@ -96,15 +96,9 @@ 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) {
        try {
            @NonNull String tag, int userId) throws RemoteException {
        return mService.createSession(mContext.getPackageName(), cbStub, tag, userId);
        } catch (RemoteException e) {
            e.rethrowFromSystemServer();
        }
        return null;
    }

    /**