1 package android.support.v4.media { 2 3 public class AudioAttributesCompat { 4 method public int getContentType(); 5 method public int getFlags(); 6 method public int getLegacyStreamType(); 7 method public int getUsage(); 8 method public int getVolumeControlStream(); 9 method public java.lang.Object unwrap(); 10 method public static android.support.v4.media.AudioAttributesCompat wrap(java.lang.Object); 11 field public static final int CONTENT_TYPE_MOVIE = 3; // 0x3 12 field public static final int CONTENT_TYPE_MUSIC = 2; // 0x2 13 field public static final int CONTENT_TYPE_SONIFICATION = 4; // 0x4 14 field public static final int CONTENT_TYPE_SPEECH = 1; // 0x1 15 field public static final int CONTENT_TYPE_UNKNOWN = 0; // 0x0 16 field public static final int FLAG_AUDIBILITY_ENFORCED = 1; // 0x1 17 field public static final int FLAG_HW_AV_SYNC = 16; // 0x10 18 field public static final int USAGE_ALARM = 4; // 0x4 19 field public static final int USAGE_ASSISTANCE_ACCESSIBILITY = 11; // 0xb 20 field public static final int USAGE_ASSISTANCE_NAVIGATION_GUIDANCE = 12; // 0xc 21 field public static final int USAGE_ASSISTANCE_SONIFICATION = 13; // 0xd 22 field public static final int USAGE_ASSISTANT = 16; // 0x10 23 field public static final int USAGE_GAME = 14; // 0xe 24 field public static final int USAGE_MEDIA = 1; // 0x1 25 field public static final int USAGE_NOTIFICATION = 5; // 0x5 26 field public static final int USAGE_NOTIFICATION_COMMUNICATION_DELAYED = 9; // 0x9 27 field public static final int USAGE_NOTIFICATION_COMMUNICATION_INSTANT = 8; // 0x8 28 field public static final int USAGE_NOTIFICATION_COMMUNICATION_REQUEST = 7; // 0x7 29 field public static final int USAGE_NOTIFICATION_EVENT = 10; // 0xa 30 field public static final int USAGE_NOTIFICATION_RINGTONE = 6; // 0x6 31 field public static final int USAGE_UNKNOWN = 0; // 0x0 32 field public static final int USAGE_VOICE_COMMUNICATION = 2; // 0x2 33 field public static final int USAGE_VOICE_COMMUNICATION_SIGNALLING = 3; // 0x3 34 } 35 36 public static class AudioAttributesCompat.Builder { 37 ctor public AudioAttributesCompat.Builder(); 38 ctor public AudioAttributesCompat.Builder(android.support.v4.media.AudioAttributesCompat); 39 method public android.support.v4.media.AudioAttributesCompat build(); 40 method public android.support.v4.media.AudioAttributesCompat.Builder setContentType(int); 41 method public android.support.v4.media.AudioAttributesCompat.Builder setFlags(int); 42 method public android.support.v4.media.AudioAttributesCompat.Builder setLegacyStreamType(int); 43 method public android.support.v4.media.AudioAttributesCompat.Builder setUsage(int); 44 } 45 46 public final class MediaBrowserCompat { 47 ctor public MediaBrowserCompat(android.content.Context, android.content.ComponentName, android.support.v4.media.MediaBrowserCompat.ConnectionCallback, android.os.Bundle); 48 method public void connect(); 49 method public void disconnect(); 50 method public android.os.Bundle getExtras(); 51 method public void getItem(java.lang.String, android.support.v4.media.MediaBrowserCompat.ItemCallback); 52 method public java.lang.String getRoot(); 53 method public android.content.ComponentName getServiceComponent(); 54 method public android.support.v4.media.session.MediaSessionCompat.Token getSessionToken(); 55 method public boolean isConnected(); 56 method public void search(java.lang.String, android.os.Bundle, android.support.v4.media.MediaBrowserCompat.SearchCallback); 57 method public void sendCustomAction(java.lang.String, android.os.Bundle, android.support.v4.media.MediaBrowserCompat.CustomActionCallback); 58 method public void subscribe(java.lang.String, android.support.v4.media.MediaBrowserCompat.SubscriptionCallback); 59 method public void subscribe(java.lang.String, android.os.Bundle, android.support.v4.media.MediaBrowserCompat.SubscriptionCallback); 60 method public void unsubscribe(java.lang.String); 61 method public void unsubscribe(java.lang.String, android.support.v4.media.MediaBrowserCompat.SubscriptionCallback); 62 field public static final java.lang.String CUSTOM_ACTION_DOWNLOAD = "android.support.v4.media.action.DOWNLOAD"; 63 field public static final java.lang.String CUSTOM_ACTION_REMOVE_DOWNLOADED_FILE = "android.support.v4.media.action.REMOVE_DOWNLOADED_FILE"; 64 field public static final java.lang.String EXTRA_DOWNLOAD_PROGRESS = "android.media.browse.extra.DOWNLOAD_PROGRESS"; 65 field public static final java.lang.String EXTRA_MEDIA_ID = "android.media.browse.extra.MEDIA_ID"; 66 field public static final java.lang.String EXTRA_PAGE = "android.media.browse.extra.PAGE"; 67 field public static final java.lang.String EXTRA_PAGE_SIZE = "android.media.browse.extra.PAGE_SIZE"; 68 } 69 70 public static class MediaBrowserCompat.ConnectionCallback { 71 ctor public MediaBrowserCompat.ConnectionCallback(); 72 method public void onConnected(); 73 method public void onConnectionFailed(); 74 method public void onConnectionSuspended(); 75 } 76 77 public static abstract class MediaBrowserCompat.CustomActionCallback { 78 ctor public MediaBrowserCompat.CustomActionCallback(); 79 method public void onError(java.lang.String, android.os.Bundle, android.os.Bundle); 80 method public void onProgressUpdate(java.lang.String, android.os.Bundle, android.os.Bundle); 81 method public void onResult(java.lang.String, android.os.Bundle, android.os.Bundle); 82 } 83 84 public static abstract class MediaBrowserCompat.ItemCallback { 85 ctor public MediaBrowserCompat.ItemCallback(); 86 method public void onError(java.lang.String); 87 method public void onItemLoaded(android.support.v4.media.MediaBrowserCompat.MediaItem); 88 } 89 90 public static class MediaBrowserCompat.MediaItem implements android.os.Parcelable { 91 ctor public MediaBrowserCompat.MediaItem(android.support.v4.media.MediaDescriptionCompat, int); 92 method public int describeContents(); 93 method public static android.support.v4.media.MediaBrowserCompat.MediaItem fromMediaItem(java.lang.Object); 94 method public static java.util.List<android.support.v4.media.MediaBrowserCompat.MediaItem> fromMediaItemList(java.util.List<?>); 95 method public android.support.v4.media.MediaDescriptionCompat getDescription(); 96 method public int getFlags(); 97 method public java.lang.String getMediaId(); 98 method public boolean isBrowsable(); 99 method public boolean isPlayable(); 100 method public void writeToParcel(android.os.Parcel, int); 101 field public static final android.os.Parcelable.Creator<android.support.v4.media.MediaBrowserCompat.MediaItem> CREATOR; 102 field public static final int FLAG_BROWSABLE = 1; // 0x1 103 field public static final int FLAG_PLAYABLE = 2; // 0x2 104 } 105 106 public static abstract class MediaBrowserCompat.SearchCallback { 107 ctor public MediaBrowserCompat.SearchCallback(); 108 method public void onError(java.lang.String, android.os.Bundle); 109 method public void onSearchResult(java.lang.String, android.os.Bundle, java.util.List<android.support.v4.media.MediaBrowserCompat.MediaItem>); 110 } 111 112 public static abstract class MediaBrowserCompat.SubscriptionCallback { 113 ctor public MediaBrowserCompat.SubscriptionCallback(); 114 method public void onChildrenLoaded(java.lang.String, java.util.List<android.support.v4.media.MediaBrowserCompat.MediaItem>); 115 method public void onChildrenLoaded(java.lang.String, java.util.List<android.support.v4.media.MediaBrowserCompat.MediaItem>, android.os.Bundle); 116 method public void onError(java.lang.String); 117 method public void onError(java.lang.String, android.os.Bundle); 118 } 119 120 public abstract class MediaBrowserServiceCompat extends android.app.Service { 121 ctor public MediaBrowserServiceCompat(); 122 method public void dump(java.io.FileDescriptor, java.io.PrintWriter, java.lang.String[]); 123 method public final android.os.Bundle getBrowserRootHints(); 124 method public android.support.v4.media.session.MediaSessionCompat.Token getSessionToken(); 125 method public void notifyChildrenChanged(java.lang.String); 126 method public void notifyChildrenChanged(java.lang.String, android.os.Bundle); 127 method public android.os.IBinder onBind(android.content.Intent); 128 method public void onCustomAction(java.lang.String, android.os.Bundle, android.support.v4.media.MediaBrowserServiceCompat.Result<android.os.Bundle>); 129 method public abstract android.support.v4.media.MediaBrowserServiceCompat.BrowserRoot onGetRoot(java.lang.String, int, android.os.Bundle); 130 method public abstract void onLoadChildren(java.lang.String, android.support.v4.media.MediaBrowserServiceCompat.Result<java.util.List<android.support.v4.media.MediaBrowserCompat.MediaItem>>); 131 method public void onLoadChildren(java.lang.String, android.support.v4.media.MediaBrowserServiceCompat.Result<java.util.List<android.support.v4.media.MediaBrowserCompat.MediaItem>>, android.os.Bundle); 132 method public void onLoadItem(java.lang.String, android.support.v4.media.MediaBrowserServiceCompat.Result<android.support.v4.media.MediaBrowserCompat.MediaItem>); 133 method public void onSearch(java.lang.String, android.os.Bundle, android.support.v4.media.MediaBrowserServiceCompat.Result<java.util.List<android.support.v4.media.MediaBrowserCompat.MediaItem>>); 134 method public void setSessionToken(android.support.v4.media.session.MediaSessionCompat.Token); 135 field public static final java.lang.String SERVICE_INTERFACE = "android.media.browse.MediaBrowserService"; 136 } 137 138 public static final class MediaBrowserServiceCompat.BrowserRoot { 139 ctor public MediaBrowserServiceCompat.BrowserRoot(java.lang.String, android.os.Bundle); 140 method public android.os.Bundle getExtras(); 141 method public java.lang.String getRootId(); 142 field public static final java.lang.String EXTRA_OFFLINE = "android.service.media.extra.OFFLINE"; 143 field public static final java.lang.String EXTRA_RECENT = "android.service.media.extra.RECENT"; 144 field public static final java.lang.String EXTRA_SUGGESTED = "android.service.media.extra.SUGGESTED"; 145 field public static final deprecated java.lang.String EXTRA_SUGGESTION_KEYWORDS = "android.service.media.extra.SUGGESTION_KEYWORDS"; 146 } 147 148 public static class MediaBrowserServiceCompat.Result<T> { 149 method public void detach(); 150 method public void sendError(android.os.Bundle); 151 method public void sendProgressUpdate(android.os.Bundle); 152 method public void sendResult(T); 153 } 154 155 public final class MediaDescriptionCompat implements android.os.Parcelable { 156 method public int describeContents(); 157 method public static android.support.v4.media.MediaDescriptionCompat fromMediaDescription(java.lang.Object); 158 method public java.lang.CharSequence getDescription(); 159 method public android.os.Bundle getExtras(); 160 method public android.graphics.Bitmap getIconBitmap(); 161 method public android.net.Uri getIconUri(); 162 method public java.lang.Object getMediaDescription(); 163 method public java.lang.String getMediaId(); 164 method public android.net.Uri getMediaUri(); 165 method public java.lang.CharSequence getSubtitle(); 166 method public java.lang.CharSequence getTitle(); 167 method public void writeToParcel(android.os.Parcel, int); 168 field public static final long BT_FOLDER_TYPE_ALBUMS = 2L; // 0x2L 169 field public static final long BT_FOLDER_TYPE_ARTISTS = 3L; // 0x3L 170 field public static final long BT_FOLDER_TYPE_GENRES = 4L; // 0x4L 171 field public static final long BT_FOLDER_TYPE_MIXED = 0L; // 0x0L 172 field public static final long BT_FOLDER_TYPE_PLAYLISTS = 5L; // 0x5L 173 field public static final long BT_FOLDER_TYPE_TITLES = 1L; // 0x1L 174 field public static final long BT_FOLDER_TYPE_YEARS = 6L; // 0x6L 175 field public static final android.os.Parcelable.Creator<android.support.v4.media.MediaDescriptionCompat> CREATOR; 176 field public static final java.lang.String EXTRA_BT_FOLDER_TYPE = "android.media.extra.BT_FOLDER_TYPE"; 177 field public static final java.lang.String EXTRA_DOWNLOAD_STATUS = "android.media.extra.DOWNLOAD_STATUS"; 178 field public static final long STATUS_DOWNLOADED = 2L; // 0x2L 179 field public static final long STATUS_DOWNLOADING = 1L; // 0x1L 180 field public static final long STATUS_NOT_DOWNLOADED = 0L; // 0x0L 181 } 182 183 public static final class MediaDescriptionCompat.Builder { 184 ctor public MediaDescriptionCompat.Builder(); 185 method public android.support.v4.media.MediaDescriptionCompat build(); 186 method public android.support.v4.media.MediaDescriptionCompat.Builder setDescription(java.lang.CharSequence); 187 method public android.support.v4.media.MediaDescriptionCompat.Builder setExtras(android.os.Bundle); 188 method public android.support.v4.media.MediaDescriptionCompat.Builder setIconBitmap(android.graphics.Bitmap); 189 method public android.support.v4.media.MediaDescriptionCompat.Builder setIconUri(android.net.Uri); 190 method public android.support.v4.media.MediaDescriptionCompat.Builder setMediaId(java.lang.String); 191 method public android.support.v4.media.MediaDescriptionCompat.Builder setMediaUri(android.net.Uri); 192 method public android.support.v4.media.MediaDescriptionCompat.Builder setSubtitle(java.lang.CharSequence); 193 method public android.support.v4.media.MediaDescriptionCompat.Builder setTitle(java.lang.CharSequence); 194 } 195 196 public final class MediaMetadataCompat implements android.os.Parcelable { 197 method public boolean containsKey(java.lang.String); 198 method public int describeContents(); 199 method public static android.support.v4.media.MediaMetadataCompat fromMediaMetadata(java.lang.Object); 200 method public android.graphics.Bitmap getBitmap(java.lang.String); 201 method public android.os.Bundle getBundle(); 202 method public android.support.v4.media.MediaDescriptionCompat getDescription(); 203 method public long getLong(java.lang.String); 204 method public java.lang.Object getMediaMetadata(); 205 method public android.support.v4.media.RatingCompat getRating(java.lang.String); 206 method public java.lang.String getString(java.lang.String); 207 method public java.lang.CharSequence getText(java.lang.String); 208 method public java.util.Set<java.lang.String> keySet(); 209 method public int size(); 210 method public void writeToParcel(android.os.Parcel, int); 211 field public static final android.os.Parcelable.Creator<android.support.v4.media.MediaMetadataCompat> CREATOR; 212 field public static final java.lang.String METADATA_KEY_ADVERTISEMENT = "android.media.metadata.ADVERTISEMENT"; 213 field public static final java.lang.String METADATA_KEY_ALBUM = "android.media.metadata.ALBUM"; 214 field public static final java.lang.String METADATA_KEY_ALBUM_ART = "android.media.metadata.ALBUM_ART"; 215 field public static final java.lang.String METADATA_KEY_ALBUM_ARTIST = "android.media.metadata.ALBUM_ARTIST"; 216 field public static final java.lang.String METADATA_KEY_ALBUM_ART_URI = "android.media.metadata.ALBUM_ART_URI"; 217 field public static final java.lang.String METADATA_KEY_ART = "android.media.metadata.ART"; 218 field public static final java.lang.String METADATA_KEY_ARTIST = "android.media.metadata.ARTIST"; 219 field public static final java.lang.String METADATA_KEY_ART_URI = "android.media.metadata.ART_URI"; 220 field public static final java.lang.String METADATA_KEY_AUTHOR = "android.media.metadata.AUTHOR"; 221 field public static final java.lang.String METADATA_KEY_BT_FOLDER_TYPE = "android.media.metadata.BT_FOLDER_TYPE"; 222 field public static final java.lang.String METADATA_KEY_COMPILATION = "android.media.metadata.COMPILATION"; 223 field public static final java.lang.String METADATA_KEY_COMPOSER = "android.media.metadata.COMPOSER"; 224 field public static final java.lang.String METADATA_KEY_DATE = "android.media.metadata.DATE"; 225 field public static final java.lang.String METADATA_KEY_DISC_NUMBER = "android.media.metadata.DISC_NUMBER"; 226 field public static final java.lang.String METADATA_KEY_DISPLAY_DESCRIPTION = "android.media.metadata.DISPLAY_DESCRIPTION"; 227 field public static final java.lang.String METADATA_KEY_DISPLAY_ICON = "android.media.metadata.DISPLAY_ICON"; 228 field public static final java.lang.String METADATA_KEY_DISPLAY_ICON_URI = "android.media.metadata.DISPLAY_ICON_URI"; 229 field public static final java.lang.String METADATA_KEY_DISPLAY_SUBTITLE = "android.media.metadata.DISPLAY_SUBTITLE"; 230 field public static final java.lang.String METADATA_KEY_DISPLAY_TITLE = "android.media.metadata.DISPLAY_TITLE"; 231 field public static final java.lang.String METADATA_KEY_DOWNLOAD_STATUS = "android.media.metadata.DOWNLOAD_STATUS"; 232 field public static final java.lang.String METADATA_KEY_DURATION = "android.media.metadata.DURATION"; 233 field public static final java.lang.String METADATA_KEY_GENRE = "android.media.metadata.GENRE"; 234 field public static final java.lang.String METADATA_KEY_MEDIA_ID = "android.media.metadata.MEDIA_ID"; 235 field public static final java.lang.String METADATA_KEY_MEDIA_URI = "android.media.metadata.MEDIA_URI"; 236 field public static final java.lang.String METADATA_KEY_NUM_TRACKS = "android.media.metadata.NUM_TRACKS"; 237 field public static final java.lang.String METADATA_KEY_RATING = "android.media.metadata.RATING"; 238 field public static final java.lang.String METADATA_KEY_TITLE = "android.media.metadata.TITLE"; 239 field public static final java.lang.String METADATA_KEY_TRACK_NUMBER = "android.media.metadata.TRACK_NUMBER"; 240 field public static final java.lang.String METADATA_KEY_USER_RATING = "android.media.metadata.USER_RATING"; 241 field public static final java.lang.String METADATA_KEY_WRITER = "android.media.metadata.WRITER"; 242 field public static final java.lang.String METADATA_KEY_YEAR = "android.media.metadata.YEAR"; 243 } 244 245 public static final class MediaMetadataCompat.Builder { 246 ctor public MediaMetadataCompat.Builder(); 247 ctor public MediaMetadataCompat.Builder(android.support.v4.media.MediaMetadataCompat); 248 method public android.support.v4.media.MediaMetadataCompat build(); 249 method public android.support.v4.media.MediaMetadataCompat.Builder putBitmap(java.lang.String, android.graphics.Bitmap); 250 method public android.support.v4.media.MediaMetadataCompat.Builder putLong(java.lang.String, long); 251 method public android.support.v4.media.MediaMetadataCompat.Builder putRating(java.lang.String, android.support.v4.media.RatingCompat); 252 method public android.support.v4.media.MediaMetadataCompat.Builder putString(java.lang.String, java.lang.String); 253 method public android.support.v4.media.MediaMetadataCompat.Builder putText(java.lang.String, java.lang.CharSequence); 254 } 255 256 public final class RatingCompat implements android.os.Parcelable { 257 method public int describeContents(); 258 method public static android.support.v4.media.RatingCompat fromRating(java.lang.Object); 259 method public float getPercentRating(); 260 method public java.lang.Object getRating(); 261 method public int getRatingStyle(); 262 method public float getStarRating(); 263 method public boolean hasHeart(); 264 method public boolean isRated(); 265 method public boolean isThumbUp(); 266 method public static android.support.v4.media.RatingCompat newHeartRating(boolean); 267 method public static android.support.v4.media.RatingCompat newPercentageRating(float); 268 method public static android.support.v4.media.RatingCompat newStarRating(int, float); 269 method public static android.support.v4.media.RatingCompat newThumbRating(boolean); 270 method public static android.support.v4.media.RatingCompat newUnratedRating(int); 271 method public void writeToParcel(android.os.Parcel, int); 272 field public static final android.os.Parcelable.Creator<android.support.v4.media.RatingCompat> CREATOR; 273 field public static final int RATING_3_STARS = 3; // 0x3 274 field public static final int RATING_4_STARS = 4; // 0x4 275 field public static final int RATING_5_STARS = 5; // 0x5 276 field public static final int RATING_HEART = 1; // 0x1 277 field public static final int RATING_NONE = 0; // 0x0 278 field public static final int RATING_PERCENTAGE = 6; // 0x6 279 field public static final int RATING_THUMB_UP_DOWN = 2; // 0x2 280 } 281 282 public abstract class VolumeProviderCompat { 283 ctor public VolumeProviderCompat(int, int, int); 284 method public final int getCurrentVolume(); 285 method public final int getMaxVolume(); 286 method public final int getVolumeControl(); 287 method public java.lang.Object getVolumeProvider(); 288 method public void onAdjustVolume(int); 289 method public void onSetVolumeTo(int); 290 method public void setCallback(android.support.v4.media.VolumeProviderCompat.Callback); 291 method public final void setCurrentVolume(int); 292 field public static final int VOLUME_CONTROL_ABSOLUTE = 2; // 0x2 293 field public static final int VOLUME_CONTROL_FIXED = 0; // 0x0 294 field public static final int VOLUME_CONTROL_RELATIVE = 1; // 0x1 295 } 296 297 public static abstract class VolumeProviderCompat.Callback { 298 ctor public VolumeProviderCompat.Callback(); 299 method public abstract void onVolumeChanged(android.support.v4.media.VolumeProviderCompat); 300 } 301 302 } 303 304 package android.support.v4.media.app { 305 306 public class NotificationCompat { 307 } 308 309 public static class NotificationCompat.DecoratedMediaCustomViewStyle extends android.support.v4.media.app.NotificationCompat.MediaStyle { 310 ctor public NotificationCompat.DecoratedMediaCustomViewStyle(); 311 } 312 313 public static class NotificationCompat.MediaStyle extends android.support.v4.app.NotificationCompat.Style { 314 ctor public NotificationCompat.MediaStyle(); 315 ctor public NotificationCompat.MediaStyle(android.support.v4.app.NotificationCompat.Builder); 316 method public static android.support.v4.media.session.MediaSessionCompat.Token getMediaSession(android.app.Notification); 317 method public android.support.v4.media.app.NotificationCompat.MediaStyle setCancelButtonIntent(android.app.PendingIntent); 318 method public android.support.v4.media.app.NotificationCompat.MediaStyle setMediaSession(android.support.v4.media.session.MediaSessionCompat.Token); 319 method public android.support.v4.media.app.NotificationCompat.MediaStyle setShowActionsInCompactView(int...); 320 method public android.support.v4.media.app.NotificationCompat.MediaStyle setShowCancelButton(boolean); 321 } 322 323 } 324 325 package android.support.v4.media.session { 326 327 public class MediaButtonReceiver extends android.content.BroadcastReceiver { 328 ctor public MediaButtonReceiver(); 329 method public static android.app.PendingIntent buildMediaButtonPendingIntent(android.content.Context, long); 330 method public static android.app.PendingIntent buildMediaButtonPendingIntent(android.content.Context, android.content.ComponentName, long); 331 method public static android.view.KeyEvent handleIntent(android.support.v4.media.session.MediaSessionCompat, android.content.Intent); 332 method public void onReceive(android.content.Context, android.content.Intent); 333 } 334 335 public final class MediaControllerCompat { 336 ctor public MediaControllerCompat(android.content.Context, android.support.v4.media.session.MediaSessionCompat); 337 ctor public MediaControllerCompat(android.content.Context, android.support.v4.media.session.MediaSessionCompat.Token) throws android.os.RemoteException; 338 method public void addQueueItem(android.support.v4.media.MediaDescriptionCompat); 339 method public void addQueueItem(android.support.v4.media.MediaDescriptionCompat, int); 340 method public void adjustVolume(int, int); 341 method public boolean dispatchMediaButtonEvent(android.view.KeyEvent); 342 method public android.os.Bundle getExtras(); 343 method public long getFlags(); 344 method public static android.support.v4.media.session.MediaControllerCompat getMediaController(android.app.Activity); 345 method public java.lang.Object getMediaController(); 346 method public android.support.v4.media.MediaMetadataCompat getMetadata(); 347 method public java.lang.String getPackageName(); 348 method public android.support.v4.media.session.MediaControllerCompat.PlaybackInfo getPlaybackInfo(); 349 method public android.support.v4.media.session.PlaybackStateCompat getPlaybackState(); 350 method public java.util.List<android.support.v4.media.session.MediaSessionCompat.QueueItem> getQueue(); 351 method public java.lang.CharSequence getQueueTitle(); 352 method public int getRatingType(); 353 method public int getRepeatMode(); 354 method public android.app.PendingIntent getSessionActivity(); 355 method public android.support.v4.media.session.MediaSessionCompat.Token getSessionToken(); 356 method public int getShuffleMode(); 357 method public android.support.v4.media.session.MediaControllerCompat.TransportControls getTransportControls(); 358 method public boolean isCaptioningEnabled(); 359 method public boolean isSessionReady(); 360 method public void registerCallback(android.support.v4.media.session.MediaControllerCompat.Callback); 361 method public void registerCallback(android.support.v4.media.session.MediaControllerCompat.Callback, android.os.Handler); 362 method public void removeQueueItem(android.support.v4.media.MediaDescriptionCompat); 363 method public deprecated void removeQueueItemAt(int); 364 method public void sendCommand(java.lang.String, android.os.Bundle, android.os.ResultReceiver); 365 method public static void setMediaController(android.app.Activity, android.support.v4.media.session.MediaControllerCompat); 366 method public void setVolumeTo(int, int); 367 method public void unregisterCallback(android.support.v4.media.session.MediaControllerCompat.Callback); 368 } 369 370 public static abstract class MediaControllerCompat.Callback implements android.os.IBinder.DeathRecipient { 371 ctor public MediaControllerCompat.Callback(); 372 method public void binderDied(); 373 method public void onAudioInfoChanged(android.support.v4.media.session.MediaControllerCompat.PlaybackInfo); 374 method public void onCaptioningEnabledChanged(boolean); 375 method public void onExtrasChanged(android.os.Bundle); 376 method public void onMetadataChanged(android.support.v4.media.MediaMetadataCompat); 377 method public void onPlaybackStateChanged(android.support.v4.media.session.PlaybackStateCompat); 378 method public void onQueueChanged(java.util.List<android.support.v4.media.session.MediaSessionCompat.QueueItem>); 379 method public void onQueueTitleChanged(java.lang.CharSequence); 380 method public void onRepeatModeChanged(int); 381 method public void onSessionDestroyed(); 382 method public void onSessionEvent(java.lang.String, android.os.Bundle); 383 method public void onSessionReady(); 384 method public void onShuffleModeChanged(int); 385 } 386 387 public static final class MediaControllerCompat.PlaybackInfo { 388 method public int getAudioStream(); 389 method public int getCurrentVolume(); 390 method public int getMaxVolume(); 391 method public int getPlaybackType(); 392 method public int getVolumeControl(); 393 field public static final int PLAYBACK_TYPE_LOCAL = 1; // 0x1 394 field public static final int PLAYBACK_TYPE_REMOTE = 2; // 0x2 395 } 396 397 public static abstract class MediaControllerCompat.TransportControls { 398 method public abstract void fastForward(); 399 method public abstract void pause(); 400 method public abstract void play(); 401 method public abstract void playFromMediaId(java.lang.String, android.os.Bundle); 402 method public abstract void playFromSearch(java.lang.String, android.os.Bundle); 403 method public abstract void playFromUri(android.net.Uri, android.os.Bundle); 404 method public abstract void prepare(); 405 method public abstract void prepareFromMediaId(java.lang.String, android.os.Bundle); 406 method public abstract void prepareFromSearch(java.lang.String, android.os.Bundle); 407 method public abstract void prepareFromUri(android.net.Uri, android.os.Bundle); 408 method public abstract void rewind(); 409 method public abstract void seekTo(long); 410 method public abstract void sendCustomAction(android.support.v4.media.session.PlaybackStateCompat.CustomAction, android.os.Bundle); 411 method public abstract void sendCustomAction(java.lang.String, android.os.Bundle); 412 method public abstract void setCaptioningEnabled(boolean); 413 method public abstract void setRating(android.support.v4.media.RatingCompat); 414 method public abstract void setRating(android.support.v4.media.RatingCompat, android.os.Bundle); 415 method public abstract void setRepeatMode(int); 416 method public abstract void setShuffleMode(int); 417 method public abstract void skipToNext(); 418 method public abstract void skipToPrevious(); 419 method public abstract void skipToQueueItem(long); 420 method public abstract void stop(); 421 field public static final java.lang.String EXTRA_LEGACY_STREAM_TYPE = "android.media.session.extra.LEGACY_STREAM_TYPE"; 422 } 423 424 public class MediaSessionCompat { 425 ctor public MediaSessionCompat(android.content.Context, java.lang.String); 426 ctor public MediaSessionCompat(android.content.Context, java.lang.String, android.content.ComponentName, android.app.PendingIntent); 427 method public void addOnActiveChangeListener(android.support.v4.media.session.MediaSessionCompat.OnActiveChangeListener); 428 method public static android.support.v4.media.session.MediaSessionCompat fromMediaSession(android.content.Context, java.lang.Object); 429 method public android.support.v4.media.session.MediaControllerCompat getController(); 430 method public java.lang.Object getMediaSession(); 431 method public java.lang.Object getRemoteControlClient(); 432 method public android.support.v4.media.session.MediaSessionCompat.Token getSessionToken(); 433 method public boolean isActive(); 434 method public void release(); 435 method public void removeOnActiveChangeListener(android.support.v4.media.session.MediaSessionCompat.OnActiveChangeListener); 436 method public void sendSessionEvent(java.lang.String, android.os.Bundle); 437 method public void setActive(boolean); 438 method public void setCallback(android.support.v4.media.session.MediaSessionCompat.Callback); 439 method public void setCallback(android.support.v4.media.session.MediaSessionCompat.Callback, android.os.Handler); 440 method public void setCaptioningEnabled(boolean); 441 method public void setExtras(android.os.Bundle); 442 method public void setFlags(int); 443 method public void setMediaButtonReceiver(android.app.PendingIntent); 444 method public void setMetadata(android.support.v4.media.MediaMetadataCompat); 445 method public void setPlaybackState(android.support.v4.media.session.PlaybackStateCompat); 446 method public void setPlaybackToLocal(int); 447 method public void setPlaybackToRemote(android.support.v4.media.VolumeProviderCompat); 448 method public void setQueue(java.util.List<android.support.v4.media.session.MediaSessionCompat.QueueItem>); 449 method public void setQueueTitle(java.lang.CharSequence); 450 method public void setRatingType(int); 451 method public void setRepeatMode(int); 452 method public void setSessionActivity(android.app.PendingIntent); 453 method public void setShuffleMode(int); 454 field public static final java.lang.String ACTION_FLAG_AS_INAPPROPRIATE = "android.support.v4.media.session.action.FLAG_AS_INAPPROPRIATE"; 455 field public static final java.lang.String ACTION_FOLLOW = "android.support.v4.media.session.action.FOLLOW"; 456 field public static final java.lang.String ACTION_SKIP_AD = "android.support.v4.media.session.action.SKIP_AD"; 457 field public static final java.lang.String ACTION_UNFOLLOW = "android.support.v4.media.session.action.UNFOLLOW"; 458 field public static final java.lang.String ARGUMENT_MEDIA_ATTRIBUTE = "android.support.v4.media.session.ARGUMENT_MEDIA_ATTRIBUTE"; 459 field public static final java.lang.String ARGUMENT_MEDIA_ATTRIBUTE_VALUE = "android.support.v4.media.session.ARGUMENT_MEDIA_ATTRIBUTE_VALUE"; 460 field public static final int FLAG_HANDLES_MEDIA_BUTTONS = 1; // 0x1 461 field public static final int FLAG_HANDLES_QUEUE_COMMANDS = 4; // 0x4 462 field public static final int FLAG_HANDLES_TRANSPORT_CONTROLS = 2; // 0x2 463 field public static final int MEDIA_ATTRIBUTE_ALBUM = 1; // 0x1 464 field public static final int MEDIA_ATTRIBUTE_ARTIST = 0; // 0x0 465 field public static final int MEDIA_ATTRIBUTE_PLAYLIST = 2; // 0x2 466 } 467 468 public static abstract class MediaSessionCompat.Callback { 469 ctor public MediaSessionCompat.Callback(); 470 method public void onAddQueueItem(android.support.v4.media.MediaDescriptionCompat); 471 method public void onAddQueueItem(android.support.v4.media.MediaDescriptionCompat, int); 472 method public void onCommand(java.lang.String, android.os.Bundle, android.os.ResultReceiver); 473 method public void onCustomAction(java.lang.String, android.os.Bundle); 474 method public void onFastForward(); 475 method public boolean onMediaButtonEvent(android.content.Intent); 476 method public void onPause(); 477 method public void onPlay(); 478 method public void onPlayFromMediaId(java.lang.String, android.os.Bundle); 479 method public void onPlayFromSearch(java.lang.String, android.os.Bundle); 480 method public void onPlayFromUri(android.net.Uri, android.os.Bundle); 481 method public void onPrepare(); 482 method public void onPrepareFromMediaId(java.lang.String, android.os.Bundle); 483 method public void onPrepareFromSearch(java.lang.String, android.os.Bundle); 484 method public void onPrepareFromUri(android.net.Uri, android.os.Bundle); 485 method public void onRemoveQueueItem(android.support.v4.media.MediaDescriptionCompat); 486 method public deprecated void onRemoveQueueItemAt(int); 487 method public void onRewind(); 488 method public void onSeekTo(long); 489 method public void onSetCaptioningEnabled(boolean); 490 method public void onSetRating(android.support.v4.media.RatingCompat); 491 method public void onSetRating(android.support.v4.media.RatingCompat, android.os.Bundle); 492 method public void onSetRepeatMode(int); 493 method public void onSetShuffleMode(int); 494 method public void onSkipToNext(); 495 method public void onSkipToPrevious(); 496 method public void onSkipToQueueItem(long); 497 method public void onStop(); 498 } 499 500 public static abstract interface MediaSessionCompat.OnActiveChangeListener { 501 method public abstract void onActiveChanged(); 502 } 503 504 public static final class MediaSessionCompat.QueueItem implements android.os.Parcelable { 505 ctor public MediaSessionCompat.QueueItem(android.support.v4.media.MediaDescriptionCompat, long); 506 method public int describeContents(); 507 method public static android.support.v4.media.session.MediaSessionCompat.QueueItem fromQueueItem(java.lang.Object); 508 method public static java.util.List<android.support.v4.media.session.MediaSessionCompat.QueueItem> fromQueueItemList(java.util.List<?>); 509 method public android.support.v4.media.MediaDescriptionCompat getDescription(); 510 method public long getQueueId(); 511 method public java.lang.Object getQueueItem(); 512 method public void writeToParcel(android.os.Parcel, int); 513 field public static final android.os.Parcelable.Creator<android.support.v4.media.session.MediaSessionCompat.QueueItem> CREATOR; 514 field public static final int UNKNOWN_ID = -1; // 0xffffffff 515 } 516 517 public static final class MediaSessionCompat.Token implements android.os.Parcelable { 518 method public int describeContents(); 519 method public static android.support.v4.media.session.MediaSessionCompat.Token fromToken(java.lang.Object); 520 method public java.lang.Object getToken(); 521 method public void writeToParcel(android.os.Parcel, int); 522 field public static final android.os.Parcelable.Creator<android.support.v4.media.session.MediaSessionCompat.Token> CREATOR; 523 } 524 525 public class ParcelableVolumeInfo implements android.os.Parcelable { 526 ctor public ParcelableVolumeInfo(int, int, int, int, int); 527 ctor public ParcelableVolumeInfo(android.os.Parcel); 528 method public int describeContents(); 529 method public void writeToParcel(android.os.Parcel, int); 530 field public static final android.os.Parcelable.Creator<android.support.v4.media.session.ParcelableVolumeInfo> CREATOR; 531 field public int audioStream; 532 field public int controlType; 533 field public int currentVolume; 534 field public int maxVolume; 535 field public int volumeType; 536 } 537 538 public final class PlaybackStateCompat implements android.os.Parcelable { 539 method public int describeContents(); 540 method public static android.support.v4.media.session.PlaybackStateCompat fromPlaybackState(java.lang.Object); 541 method public long getActions(); 542 method public long getActiveQueueItemId(); 543 method public long getBufferedPosition(); 544 method public java.util.List<android.support.v4.media.session.PlaybackStateCompat.CustomAction> getCustomActions(); 545 method public int getErrorCode(); 546 method public java.lang.CharSequence getErrorMessage(); 547 method public android.os.Bundle getExtras(); 548 method public long getLastPositionUpdateTime(); 549 method public float getPlaybackSpeed(); 550 method public java.lang.Object getPlaybackState(); 551 method public long getPosition(); 552 method public int getState(); 553 method public static int toKeyCode(long); 554 method public void writeToParcel(android.os.Parcel, int); 555 field public static final long ACTION_FAST_FORWARD = 64L; // 0x40L 556 field public static final long ACTION_PAUSE = 2L; // 0x2L 557 field public static final long ACTION_PLAY = 4L; // 0x4L 558 field public static final long ACTION_PLAY_FROM_MEDIA_ID = 1024L; // 0x400L 559 field public static final long ACTION_PLAY_FROM_SEARCH = 2048L; // 0x800L 560 field public static final long ACTION_PLAY_FROM_URI = 8192L; // 0x2000L 561 field public static final long ACTION_PLAY_PAUSE = 512L; // 0x200L 562 field public static final long ACTION_PREPARE = 16384L; // 0x4000L 563 field public static final long ACTION_PREPARE_FROM_MEDIA_ID = 32768L; // 0x8000L 564 field public static final long ACTION_PREPARE_FROM_SEARCH = 65536L; // 0x10000L 565 field public static final long ACTION_PREPARE_FROM_URI = 131072L; // 0x20000L 566 field public static final long ACTION_REWIND = 8L; // 0x8L 567 field public static final long ACTION_SEEK_TO = 256L; // 0x100L 568 field public static final long ACTION_SET_CAPTIONING_ENABLED = 1048576L; // 0x100000L 569 field public static final long ACTION_SET_RATING = 128L; // 0x80L 570 field public static final long ACTION_SET_REPEAT_MODE = 262144L; // 0x40000L 571 field public static final long ACTION_SET_SHUFFLE_MODE = 2097152L; // 0x200000L 572 field public static final deprecated long ACTION_SET_SHUFFLE_MODE_ENABLED = 524288L; // 0x80000L 573 field public static final long ACTION_SKIP_TO_NEXT = 32L; // 0x20L 574 field public static final long ACTION_SKIP_TO_PREVIOUS = 16L; // 0x10L 575 field public static final long ACTION_SKIP_TO_QUEUE_ITEM = 4096L; // 0x1000L 576 field public static final long ACTION_STOP = 1L; // 0x1L 577 field public static final android.os.Parcelable.Creator<android.support.v4.media.session.PlaybackStateCompat> CREATOR; 578 field public static final int ERROR_CODE_ACTION_ABORTED = 10; // 0xa 579 field public static final int ERROR_CODE_APP_ERROR = 1; // 0x1 580 field public static final int ERROR_CODE_AUTHENTICATION_EXPIRED = 3; // 0x3 581 field public static final int ERROR_CODE_CONCURRENT_STREAM_LIMIT = 5; // 0x5 582 field public static final int ERROR_CODE_CONTENT_ALREADY_PLAYING = 8; // 0x8 583 field public static final int ERROR_CODE_END_OF_QUEUE = 11; // 0xb 584 field public static final int ERROR_CODE_NOT_AVAILABLE_IN_REGION = 7; // 0x7 585 field public static final int ERROR_CODE_NOT_SUPPORTED = 2; // 0x2 586 field public static final int ERROR_CODE_PARENTAL_CONTROL_RESTRICTED = 6; // 0x6 587 field public static final int ERROR_CODE_PREMIUM_ACCOUNT_REQUIRED = 4; // 0x4 588 field public static final int ERROR_CODE_SKIP_LIMIT_REACHED = 9; // 0x9 589 field public static final int ERROR_CODE_UNKNOWN_ERROR = 0; // 0x0 590 field public static final long PLAYBACK_POSITION_UNKNOWN = -1L; // 0xffffffffffffffffL 591 field public static final int REPEAT_MODE_ALL = 2; // 0x2 592 field public static final int REPEAT_MODE_GROUP = 3; // 0x3 593 field public static final int REPEAT_MODE_INVALID = -1; // 0xffffffff 594 field public static final int REPEAT_MODE_NONE = 0; // 0x0 595 field public static final int REPEAT_MODE_ONE = 1; // 0x1 596 field public static final int SHUFFLE_MODE_ALL = 1; // 0x1 597 field public static final int SHUFFLE_MODE_GROUP = 2; // 0x2 598 field public static final int SHUFFLE_MODE_INVALID = -1; // 0xffffffff 599 field public static final int SHUFFLE_MODE_NONE = 0; // 0x0 600 field public static final int STATE_BUFFERING = 6; // 0x6 601 field public static final int STATE_CONNECTING = 8; // 0x8 602 field public static final int STATE_ERROR = 7; // 0x7 603 field public static final int STATE_FAST_FORWARDING = 4; // 0x4 604 field public static final int STATE_NONE = 0; // 0x0 605 field public static final int STATE_PAUSED = 2; // 0x2 606 field public static final int STATE_PLAYING = 3; // 0x3 607 field public static final int STATE_REWINDING = 5; // 0x5 608 field public static final int STATE_SKIPPING_TO_NEXT = 10; // 0xa 609 field public static final int STATE_SKIPPING_TO_PREVIOUS = 9; // 0x9 610 field public static final int STATE_SKIPPING_TO_QUEUE_ITEM = 11; // 0xb 611 field public static final int STATE_STOPPED = 1; // 0x1 612 } 613 614 public static final class PlaybackStateCompat.Builder { 615 ctor public PlaybackStateCompat.Builder(); 616 ctor public PlaybackStateCompat.Builder(android.support.v4.media.session.PlaybackStateCompat); 617 method public android.support.v4.media.session.PlaybackStateCompat.Builder addCustomAction(java.lang.String, java.lang.String, int); 618 method public android.support.v4.media.session.PlaybackStateCompat.Builder addCustomAction(android.support.v4.media.session.PlaybackStateCompat.CustomAction); 619 method public android.support.v4.media.session.PlaybackStateCompat build(); 620 method public android.support.v4.media.session.PlaybackStateCompat.Builder setActions(long); 621 method public android.support.v4.media.session.PlaybackStateCompat.Builder setActiveQueueItemId(long); 622 method public android.support.v4.media.session.PlaybackStateCompat.Builder setBufferedPosition(long); 623 method public deprecated android.support.v4.media.session.PlaybackStateCompat.Builder setErrorMessage(java.lang.CharSequence); 624 method public android.support.v4.media.session.PlaybackStateCompat.Builder setErrorMessage(int, java.lang.CharSequence); 625 method public android.support.v4.media.session.PlaybackStateCompat.Builder setExtras(android.os.Bundle); 626 method public android.support.v4.media.session.PlaybackStateCompat.Builder setState(int, long, float); 627 method public android.support.v4.media.session.PlaybackStateCompat.Builder setState(int, long, float, long); 628 } 629 630 public static final class PlaybackStateCompat.CustomAction implements android.os.Parcelable { 631 method public int describeContents(); 632 method public static android.support.v4.media.session.PlaybackStateCompat.CustomAction fromCustomAction(java.lang.Object); 633 method public java.lang.String getAction(); 634 method public java.lang.Object getCustomAction(); 635 method public android.os.Bundle getExtras(); 636 method public int getIcon(); 637 method public java.lang.CharSequence getName(); 638 method public void writeToParcel(android.os.Parcel, int); 639 field public static final android.os.Parcelable.Creator<android.support.v4.media.session.PlaybackStateCompat.CustomAction> CREATOR; 640 } 641 642 public static final class PlaybackStateCompat.CustomAction.Builder { 643 ctor public PlaybackStateCompat.CustomAction.Builder(java.lang.String, java.lang.CharSequence, int); 644 method public android.support.v4.media.session.PlaybackStateCompat.CustomAction build(); 645 method public android.support.v4.media.session.PlaybackStateCompat.CustomAction.Builder setExtras(android.os.Bundle); 646 } 647 648 } 649 650