diff options
author | RoboErik <epastern@google.com> | 2014-08-15 15:21:41 -0700 |
---|---|---|
committer | Erik Pasternak <roboerik@android.com> | 2014-08-19 17:12:42 +0000 |
commit | a66c40bf6e0fb79ead6d8a9fc29c5671fa7b1206 (patch) | |
tree | 5dfa5f9037fc7023e17e0ff090c64ee0a7d9c776 /api | |
parent | f1381debeccf67ffec37acf929d1d8572fd86ce9 (diff) | |
download | frameworks_base-a66c40bf6e0fb79ead6d8a9fc29c5671fa7b1206.zip frameworks_base-a66c40bf6e0fb79ead6d8a9fc29c5671fa7b1206.tar.gz frameworks_base-a66c40bf6e0fb79ead6d8a9fc29c5671fa7b1206.tar.bz2 |
Update MediaSession APIs for council feedback
-Changes MediaSessionManager.SessionsListener to OnActiveSessionsChangedListener
and makes it an interface.
-Renames MediaController.VolumeInfo to MediaController.AudioInfo
-Renames MediaSession.Track to MediaSession.Item
bug:17059552
Change-Id: I3a0b4371700ad6657972c312a5ab89ddfac6df5b
Diffstat (limited to 'api')
-rw-r--r-- | api/current.txt | 63 |
1 files changed, 31 insertions, 32 deletions
diff --git a/api/current.txt b/api/current.txt index 93f30d6..fd7c053 100644 --- a/api/current.txt +++ b/api/current.txt @@ -16623,33 +16623,41 @@ package android.media.session { method public void adjustVolume(int, int); method public android.media.routing.MediaRouter.Delegate createMediaRouterDelegate(); method public boolean dispatchMediaButtonEvent(android.view.KeyEvent); + method public android.media.session.MediaController.AudioInfo getAudioInfo(); method public android.os.Bundle getExtras(); method public long getFlags(); method public android.app.PendingIntent getLaunchActivity(); method public android.media.MediaMetadata getMetadata(); method public java.lang.String getPackageName(); method public android.media.session.PlaybackState getPlaybackState(); - method public java.util.List<android.media.session.MediaSession.Track> getQueue(); + method public java.util.List<android.media.session.MediaSession.Item> getQueue(); method public java.lang.CharSequence getQueueTitle(); method public int getRatingType(); method public android.media.session.MediaSession.Token getSessionToken(); method public android.media.session.MediaController.TransportControls getTransportControls(); - method public android.media.session.MediaController.VolumeInfo getVolumeInfo(); method public void removeCallback(android.media.session.MediaController.Callback); method public void sendCommand(java.lang.String, android.os.Bundle, android.os.ResultReceiver); method public void setVolumeTo(int, int); } + public static final class MediaController.AudioInfo { + method public android.media.AudioAttributes getAudioAttributes(); + method public int getCurrentVolume(); + method public int getMaxVolume(); + method public int getVolumeControl(); + method public int getVolumeType(); + } + public static abstract class MediaController.Callback { ctor public MediaController.Callback(); + method public void onAudioInfoChanged(android.media.session.MediaController.AudioInfo); method public void onExtrasChanged(android.os.Bundle); method public void onMetadataChanged(android.media.MediaMetadata); method public void onPlaybackStateChanged(android.media.session.PlaybackState); - method public void onQueueChanged(java.util.List<android.media.session.MediaSession.Track>); + method public void onQueueChanged(java.util.List<android.media.session.MediaSession.Item>); method public void onQueueTitleChanged(java.lang.CharSequence); method public void onSessionDestroyed(); method public void onSessionEvent(java.lang.String, android.os.Bundle); - method public void onVolumeInfoChanged(android.media.session.MediaController.VolumeInfo); } public final class MediaController.TransportControls { @@ -16663,20 +16671,12 @@ package android.media.session { method public void sendCustomAction(android.media.session.PlaybackState.CustomAction, android.os.Bundle); method public void sendCustomAction(java.lang.String, android.os.Bundle); method public void setRating(android.media.Rating); + method public void skipToItem(long); method public void skipToNext(); method public void skipToPrevious(); - method public void skipToTrack(long); method public void stop(); } - public static final class MediaController.VolumeInfo { - method public android.media.AudioAttributes getAudioAttributes(); - method public int getCurrentVolume(); - method public int getMaxVolume(); - method public int getVolumeControl(); - method public int getVolumeType(); - } - public final class MediaSession { ctor public MediaSession(android.content.Context, java.lang.String); method public android.media.session.MediaController getController(); @@ -16696,7 +16696,7 @@ package android.media.session { method public void setPlaybackState(android.media.session.PlaybackState); method public void setPlaybackToLocal(android.media.AudioAttributes); method public void setPlaybackToRemote(android.media.VolumeProvider); - method public void setQueue(java.util.List<android.media.session.MediaSession.Track>); + method public void setQueue(java.util.List<android.media.session.MediaSession.Item>); method public void setQueueTitle(java.lang.CharSequence); field public static final int FLAG_HANDLES_MEDIA_BUTTONS = 1; // 0x1 field public static final int FLAG_HANDLES_TRANSPORT_CONTROLS = 2; // 0x2 @@ -16717,19 +16717,13 @@ package android.media.session { method public void onRewind(); method public void onSeekTo(long); method public void onSetRating(android.media.Rating); + method public void onSkipToItem(long); method public void onSkipToNext(); method public void onSkipToPrevious(); - method public void onSkipToTrack(long); method public void onStop(); } - public static final class MediaSession.Token implements android.os.Parcelable { - method public int describeContents(); - method public void writeToParcel(android.os.Parcel, int); - field public static final android.os.Parcelable.Creator CREATOR; - } - - public static final class MediaSession.Track implements android.os.Parcelable { + public static final class MediaSession.Item implements android.os.Parcelable { method public int describeContents(); method public android.os.Bundle getExtras(); method public long getId(); @@ -16740,20 +16734,25 @@ package android.media.session { field public static final int UNKNOWN_ID = -1; // 0xffffffff } - public static final class MediaSession.Track.Builder { - ctor public MediaSession.Track.Builder(android.media.MediaMetadata, long, android.net.Uri); - method public android.media.session.MediaSession.Track build(); - method public android.media.session.MediaSession.Track.Builder setExtras(android.os.Bundle); + public static final class MediaSession.Item.Builder { + ctor public MediaSession.Item.Builder(android.media.MediaMetadata, long, android.net.Uri); + method public android.media.session.MediaSession.Item build(); + method public android.media.session.MediaSession.Item.Builder setExtras(android.os.Bundle); + } + + public static final class MediaSession.Token implements android.os.Parcelable { + method public int describeContents(); + method public void writeToParcel(android.os.Parcel, int); + field public static final android.os.Parcelable.Creator CREATOR; } public final class MediaSessionManager { - method public void addActiveSessionsListener(android.media.session.MediaSessionManager.SessionListener, android.content.ComponentName); + method public void addOnActiveSessionsChangedListener(android.media.session.MediaSessionManager.OnActiveSessionsChangedListener, android.content.ComponentName); method public java.util.List<android.media.session.MediaController> getActiveSessions(android.content.ComponentName); - method public void removeActiveSessionsListener(android.media.session.MediaSessionManager.SessionListener); + method public void removeOnActiveSessionsChangedListener(android.media.session.MediaSessionManager.OnActiveSessionsChangedListener); } - public static abstract class MediaSessionManager.SessionListener { - ctor public MediaSessionManager.SessionListener(android.content.Context); + public static abstract interface MediaSessionManager.OnActiveSessionsChangedListener { method public abstract void onActiveSessionsChanged(java.util.List<android.media.session.MediaController>); } @@ -16777,9 +16776,9 @@ package android.media.session { field public static final long ACTION_REWIND = 8L; // 0x8L field public static final long ACTION_SEEK_TO = 256L; // 0x100L field public static final long ACTION_SET_RATING = 128L; // 0x80L + field public static final long ACTION_SKIP_TO_ITEM = 4096L; // 0x1000L field public static final long ACTION_SKIP_TO_NEXT = 32L; // 0x20L field public static final long ACTION_SKIP_TO_PREVIOUS = 16L; // 0x10L - field public static final long ACTION_SKIP_TO_TRACK = 4096L; // 0x1000L field public static final long ACTION_STOP = 1L; // 0x1L field public static final android.os.Parcelable.Creator CREATOR; field public static final long PLAYBACK_POSITION_UNKNOWN = -1L; // 0xffffffffffffffffL @@ -16803,7 +16802,7 @@ package android.media.session { method public android.media.session.PlaybackState.Builder addCustomAction(android.media.session.PlaybackState.CustomAction); method public android.media.session.PlaybackState build(); method public android.media.session.PlaybackState.Builder setActions(long); - method public android.media.session.PlaybackState.Builder setActiveTrack(long); + method public android.media.session.PlaybackState.Builder setActiveItem(long); method public android.media.session.PlaybackState.Builder setBufferPosition(long); method public android.media.session.PlaybackState.Builder setErrorMessage(java.lang.CharSequence); method public android.media.session.PlaybackState.Builder setState(int, long, float, long); |