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

Commit 888e5a4f authored by Hyundo Moon's avatar Hyundo Moon
Browse files

Hide constructor of MediaController#PlaybackInfo

This CL reverts the API change introduced by
"1dfec66d: Make hidden constructor of PlaybackInfo as @SystemApi"

Bug: 128245348
Test: atest CtsMediaTestCases:android.media.cts.MediaSessionTest;
      atest CtsMediaTestCases:android.media.cts.MediaControllerTest;
      atest CtsMediaTestCases:android.media.cts.MediaBrowserTest;
Change-Id: I6deeb048d6d209baa085792edf5ef2fdd8bb1d7c
parent fc0fbbb3
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -3722,10 +3722,6 @@ package android.media.audiopolicy {
package android.media.session {
  public static final class MediaController.PlaybackInfo implements android.os.Parcelable {
    ctor public MediaController.PlaybackInfo(int, int, int, int, android.media.AudioAttributes);
  }
  public final class MediaSessionManager {
    method @RequiresPermission(android.Manifest.permission.SET_MEDIA_KEY_LISTENER) public void setOnMediaKeyListener(android.media.session.MediaSessionManager.OnMediaKeyListener, @Nullable android.os.Handler);
    method @RequiresPermission(android.Manifest.permission.SET_VOLUME_KEY_LONG_PRESS_LISTENER) public void setOnVolumeKeyLongPressListener(android.media.session.MediaSessionManager.OnVolumeKeyLongPressListener, @Nullable android.os.Handler);
+0 −2
Original line number Diff line number Diff line
@@ -18,7 +18,6 @@ package android.media.session;

import android.annotation.NonNull;
import android.annotation.Nullable;
import android.annotation.SystemApi;
import android.annotation.UnsupportedAppUsage;
import android.app.PendingIntent;
import android.content.Context;
@@ -954,7 +953,6 @@ public final class MediaController {
        /**
         * @hide
         */
        @SystemApi
        public PlaybackInfo(int type, int control, int max, int current, AudioAttributes attrs) {
            mVolumeType = type;
            mVolumeControl = control;