Merge "Make hidden constructor of PlaybackInfo as @SystemApi"

This commit is contained in:
Hyundo Moon
2019-01-29 07:33:58 +00:00
committed by Android (Google) Code Review
2 changed files with 6 additions and 0 deletions

View File

@@ -3621,6 +3621,10 @@ package android.media.session {
method public void unregisterCallback(@NonNull android.media.session.ControllerCallbackLink);
}
public static final class MediaController.PlaybackInfo implements android.os.Parcelable {
ctor public MediaController.PlaybackInfo(int, int, int, int, android.media.AudioAttributes);
}
public abstract static class MediaSession.Callback {
method public void onSetMediaButtonEventDelegate(@NonNull android.media.session.MediaSessionEngine.MediaButtonEventDelegate);
}

View File

@@ -18,6 +18,7 @@ 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;
@@ -995,6 +996,7 @@ public final class MediaController {
/**
* @hide
*/
@SystemApi
public PlaybackInfo(int type, int control, int max, int current, AudioAttributes attrs) {
mVolumeType = type;
mVolumeControl = control;