/frameworks/support/samples/Support4Demos/src/main/java/com/example/android/supportv4/media/utils/ |
D | QueueHelper.java | 23 import android.support.v4.media.session.MediaSessionCompat; 40 public static List<MediaSessionCompat.QueueItem> getPlayingQueue(String mediaId, in getPlayingQueue() 71 public static List<MediaSessionCompat.QueueItem> getPlayingQueueFromSearch(String query, in getPlayingQueueFromSearch() 80 public static int getMusicIndexOnQueue(Iterable<MediaSessionCompat.QueueItem> queue, in getMusicIndexOnQueue() 83 for (MediaSessionCompat.QueueItem item : queue) { in getMusicIndexOnQueue() 92 public static int getMusicIndexOnQueue(Iterable<MediaSessionCompat.QueueItem> queue, in getMusicIndexOnQueue() 95 for (MediaSessionCompat.QueueItem item : queue) { in getMusicIndexOnQueue() 104 private static List<MediaSessionCompat.QueueItem> convertToQueue( in convertToQueue() 106 List<MediaSessionCompat.QueueItem> queue = new ArrayList<>(); in convertToQueue() 121 MediaSessionCompat.QueueItem item = new MediaSessionCompat.QueueItem( in convertToQueue() [all …]
|
/frameworks/support/media/src/main/java/android/support/v4/media/session/ |
D | MediaControllerCompat.java | 38 import android.support.v4.media.session.MediaSessionCompat.QueueItem; 202 MediaSessionCompat.Token.fromToken(sessionTokenObj)); in getMediaController() 215 case MediaSessionCompat.ACTION_FOLLOW: in validateCustomAction() 216 case MediaSessionCompat.ACTION_UNFOLLOW: in validateCustomAction() 218 || !args.containsKey(MediaSessionCompat.ARGUMENT_MEDIA_ATTRIBUTE)) { in validateCustomAction() 220 + MediaSessionCompat.ARGUMENT_MEDIA_ATTRIBUTE + " is required " in validateCustomAction() 228 private final MediaSessionCompat.Token mToken; 238 public MediaControllerCompat(Context context, @NonNull MediaSessionCompat session) { in MediaControllerCompat() 262 public MediaControllerCompat(Context context, @NonNull MediaSessionCompat.Token sessionToken) in MediaControllerCompat() 521 public MediaSessionCompat.Token getSessionToken() { in getSessionToken() [all …]
|
/frameworks/support/media/src/main/aidl/android/support/v4/media/session/ |
D | MediaSessionCompat.aidl | 18 parcelable MediaSessionCompat.Token; 19 parcelable MediaSessionCompat.QueueItem; 20 parcelable MediaSessionCompat.ResultReceiverWrapper;
|
D | IMediaSession.aidl | 26 import android.support.v4.media.session.MediaSessionCompat; 38 …void sendCommand(String command, in Bundle args, in MediaSessionCompat.ResultReceiverWrapper cb) =… in sendCommand() 52 List<MediaSessionCompat.QueueItem> getQueue() = 28; in getQueue()
|
D | IMediaControllerCallback.aidl | 22 import android.support.v4.media.session.MediaSessionCompat; 36 void onQueueChanged(in List<MediaSessionCompat.QueueItem> queue); in onQueueChanged()
|
/frameworks/support/samples/Support4Demos/src/main/java/com/example/android/supportv4/media/ |
D | QueueAdapter.java | 20 import android.support.v4.media.session.MediaSessionCompat; 37 public class QueueAdapter extends ArrayAdapter<MediaSessionCompat.QueueItem> { 40 private long mActiveQueueItemId = MediaSessionCompat.QueueItem.UNKNOWN_ID; 43 super(context, R.layout.media_list_item, new ArrayList<MediaSessionCompat.QueueItem>()); in QueueAdapter() 72 MediaSessionCompat.QueueItem item = getItem(position); in getView()
|
D | MediaBrowserServiceSupport.java | 36 import android.support.v4.media.session.MediaSessionCompat; 133 private MediaSessionCompat mSession; 135 private List<MediaSessionCompat.QueueItem> mPlayingQueue; 158 mSession = new MediaSessionCompat(this, "MusicService"); in onCreate() 161 mSession.setFlags(MediaSessionCompat.FLAG_HANDLES_MEDIA_BUTTONS | in onCreate() 162 MediaSessionCompat.FLAG_HANDLES_TRANSPORT_CONTROLS); in onCreate() 364 private final class MediaSessionCallback extends MediaSessionCompat.Callback { 584 MediaSessionCompat.QueueItem queueItem = mPlayingQueue.get(mCurrentIndexOnQueue); in updateMetadata() 611 … MediaSessionCompat.QueueItem queueItem = mPlayingQueue.get(mCurrentIndexOnQueue); in updateMetadata() 666 MediaSessionCompat.QueueItem item = mPlayingQueue.get(mCurrentIndexOnQueue); in updatePlaybackState() [all …]
|
/frameworks/support/mediarouter/src/androidTest/java/androidx/mediarouter/media/ |
D | MediaRouterTest.java | 27 import android.support.v4.media.session.MediaSessionCompat; 48 private MediaSessionCompat mSession; 58 mSession = new MediaSessionCompat(mContext, SESSION_TAG); in setUp() 98 private class MediaSessionCallback extends MediaSessionCompat.Callback {
|
/frameworks/support/media/version-compat-tests/current/service/src/androidTest/java/android/support/mediacompat/service/ |
D | StubMediaBrowserServiceCompatWithDelayedMediaSession.java | 21 import android.support.v4.media.session.MediaSessionCompat; 39 private MediaSessionCompat mSession; 45 mSession = new MediaSessionCompat( in onCreate()
|
D | MediaSessionCompatCallbackTest.java | 95 import android.support.v4.media.session.MediaSessionCompat; 132 private MediaSessionCompat mSession; 146 mSession = new MediaSessionCompat(getTargetContext(), TEST_SESSION_TAG); in setUp() 211 MediaSessionCompat session = MediaSessionCompat.fromMediaSession( in testFromSession() 226 MediaSessionCompat.Token sessionToken = mSession.getSessionToken(); in testSessionToken() 235 MediaSessionCompat.Token token = MediaSessionCompat.Token.CREATOR.createFromParcel(p); in testSessionToken() 246 MediaSessionCompat.QueueItem item = new MediaSessionCompat.QueueItem( in testQueueItem() 260 MediaSessionCompat.QueueItem other = in testQueueItem() 261 MediaSessionCompat.QueueItem.CREATOR.createFromParcel(p); in testQueueItem() 348 mSession.setFlags(MediaSessionCompat.FLAG_HANDLES_QUEUE_COMMANDS); in testAddRemoveQueueItems() [all …]
|
/frameworks/support/media/version-compat-tests/previous/service/src/androidTest/java/android/support/mediacompat/service/ |
D | StubMediaBrowserServiceCompatWithDelayedMediaSession.java | 24 import android.support.v4.media.session.MediaSessionCompat; 38 private MediaSessionCompat mSession; 44 mSession = new MediaSessionCompat( in onCreate()
|
D | MediaSessionCompatCallbackTest.java | 95 import android.support.v4.media.session.MediaSessionCompat; 130 private MediaSessionCompat mSession; 144 mSession = new MediaSessionCompat(getTargetContext(), TEST_SESSION_TAG); in setUp() 209 MediaSessionCompat session = MediaSessionCompat.fromMediaSession( in testFromSession() 224 MediaSessionCompat.Token sessionToken = mSession.getSessionToken(); in testSessionToken() 233 MediaSessionCompat.Token token = MediaSessionCompat.Token.CREATOR.createFromParcel(p); in testSessionToken() 244 MediaSessionCompat.QueueItem item = new MediaSessionCompat.QueueItem( in testQueueItem() 258 MediaSessionCompat.QueueItem other = in testQueueItem() 259 MediaSessionCompat.QueueItem.CREATOR.createFromParcel(p); in testQueueItem() 346 mSession.setFlags(MediaSessionCompat.FLAG_HANDLES_QUEUE_COMMANDS); in testAddRemoveQueueItems() [all …]
|
/frameworks/support/media/src/main/java/androidx/media/ |
D | MediaLibrarySessionImplBase.java | 23 import android.support.v4.media.session.MediaSessionCompat; 33 MediaSessionCompat sessionCompat, String id, in MediaLibrarySessionImplBase() 62 new MediaSessionCompat(mContext, mId), mId, mPlayer, mPlaylistAgent, in build()
|
D | SessionToken2.java | 27 import android.support.v4.media.session.MediaSessionCompat; 94 private final MediaSessionCompat.Token mSessionCompatToken; 161 String id, MediaSessionCompat.Token sessionCompatToken) { in SessionToken2() 263 final MediaSessionCompat.Token token = bundle.getParcelable(KEY_SESSION_TOKEN); in fromBundle() 318 MediaSessionCompat.Token getSessionCompatToken() { in getSessionCompatToken()
|
/frameworks/support/media/src/main/java/androidx/media/app/ |
D | NotificationCompat.java | 29 import android.support.v4.media.session.MediaSessionCompat; 101 public static MediaSessionCompat.Token getMediaSession(Notification notification) { in getMediaSession() 108 return MediaSessionCompat.Token.fromToken(tokenInner); in getMediaSession() 117 MediaSessionCompat.Token token = in getMediaSession() 118 MediaSessionCompat.Token.CREATOR.createFromParcel(p); in getMediaSession() 131 MediaSessionCompat.Token mToken; 157 public MediaStyle setMediaSession(MediaSessionCompat.Token token) { in setMediaSession()
|
/frameworks/support/samples/Support7Demos/src/main/java/com/example/android/supportv7/media/ |
D | Player.java | 23 import android.support.v4.media.session.MediaSessionCompat; 54 protected MediaSessionCompat mMediaSession; 88 public static Player create(Context context, RouteInfo route, MediaSessionCompat session) { in create() 164 private void setMediaSession(MediaSessionCompat session) { in setMediaSession()
|
/frameworks/support/samples/SupportLeanbackDemos/src/main/java/com/example/android/leanback/ |
D | PlaybackTransportControlGlueSample.java | 24 import android.support.v4.media.session.MediaSessionCompat; 53 private MediaSessionCompat mMediaSessionCompat; 144 public void connectToMediaSession(MediaSessionCompat mediaSessionCompat) { in connectToMediaSession() 146 mMediaSessionCompat.setFlags(MediaSessionCompat.FLAG_HANDLES_MEDIA_BUTTONS in connectToMediaSession() 147 | MediaSessionCompat.FLAG_HANDLES_TRANSPORT_CONTROLS); in connectToMediaSession() 306 private class MediaSessionCallback extends MediaSessionCompat.Callback {
|
D | SampleVideoSupportFragment.java | 21 import android.support.v4.media.session.MediaSessionCompat; 58 private MediaSessionCompat mMediaSessionCompat; 111 mMediaSessionCompat = new MediaSessionCompat(getActivity(), MEDIA_SESSION_COMPAT_TOKEN); in onCreate()
|
D | SampleVideoFragment.java | 18 import android.support.v4.media.session.MediaSessionCompat; 55 private MediaSessionCompat mMediaSessionCompat; 108 mMediaSessionCompat = new MediaSessionCompat(getActivity(), MEDIA_SESSION_COMPAT_TOKEN); in onCreate()
|
/frameworks/support/media/api_legacy/ |
D | 26.0.0.txt | 54 method public android.support.v4.media.session.MediaSessionCompat.Token getSessionToken(); 124 method public android.support.v4.media.session.MediaSessionCompat.Token getSessionToken(); 134 method public void setSessionToken(android.support.v4.media.session.MediaSessionCompat.Token); 316 …method public static android.support.v4.media.session.MediaSessionCompat.Token getMediaSession(and… 318 …cationCompat.MediaStyle setMediaSession(android.support.v4.media.session.MediaSessionCompat.Token); 331 …ndroid.view.KeyEvent handleIntent(android.support.v4.media.session.MediaSessionCompat, android.con… 336 …ediaControllerCompat(android.content.Context, android.support.v4.media.session.MediaSessionCompat); 337 …erCompat(android.content.Context, android.support.v4.media.session.MediaSessionCompat.Token) throw… 350 …method public java.util.List<android.support.v4.media.session.MediaSessionCompat.QueueItem> getQue… 355 method public android.support.v4.media.session.MediaSessionCompat.Token getSessionToken(); [all …]
|
D | 26.1.0.txt | 54 method public android.support.v4.media.session.MediaSessionCompat.Token getSessionToken(); 124 method public android.support.v4.media.session.MediaSessionCompat.Token getSessionToken(); 134 method public void setSessionToken(android.support.v4.media.session.MediaSessionCompat.Token); 316 …method public static android.support.v4.media.session.MediaSessionCompat.Token getMediaSession(and… 318 …cationCompat.MediaStyle setMediaSession(android.support.v4.media.session.MediaSessionCompat.Token); 331 …ndroid.view.KeyEvent handleIntent(android.support.v4.media.session.MediaSessionCompat, android.con… 336 …ediaControllerCompat(android.content.Context, android.support.v4.media.session.MediaSessionCompat); 337 …erCompat(android.content.Context, android.support.v4.media.session.MediaSessionCompat.Token) throw… 350 …method public java.util.List<android.support.v4.media.session.MediaSessionCompat.QueueItem> getQue… 355 method public android.support.v4.media.session.MediaSessionCompat.Token getSessionToken(); [all …]
|
D | 28.0.0-alpha1.txt | 54 method public android.support.v4.media.session.MediaSessionCompat.Token getSessionToken(); 124 method public android.support.v4.media.session.MediaSessionCompat.Token getSessionToken(); 134 method public void setSessionToken(android.support.v4.media.session.MediaSessionCompat.Token); 316 …method public static android.support.v4.media.session.MediaSessionCompat.Token getMediaSession(and… 318 …cationCompat.MediaStyle setMediaSession(android.support.v4.media.session.MediaSessionCompat.Token); 331 …ndroid.view.KeyEvent handleIntent(android.support.v4.media.session.MediaSessionCompat, android.con… 336 …ediaControllerCompat(android.content.Context, android.support.v4.media.session.MediaSessionCompat); 337 …erCompat(android.content.Context, android.support.v4.media.session.MediaSessionCompat.Token) throw… 350 …method public java.util.List<android.support.v4.media.session.MediaSessionCompat.QueueItem> getQue… 355 method public android.support.v4.media.session.MediaSessionCompat.Token getSessionToken(); [all …]
|
D | current.txt | 54 method public android.support.v4.media.session.MediaSessionCompat.Token getSessionToken(); 124 method public android.support.v4.media.session.MediaSessionCompat.Token getSessionToken(); 134 method public void setSessionToken(android.support.v4.media.session.MediaSessionCompat.Token); 316 …method public static android.support.v4.media.session.MediaSessionCompat.Token getMediaSession(and… 318 …cationCompat.MediaStyle setMediaSession(android.support.v4.media.session.MediaSessionCompat.Token); 331 …ndroid.view.KeyEvent handleIntent(android.support.v4.media.session.MediaSessionCompat, android.con… 336 …ediaControllerCompat(android.content.Context, android.support.v4.media.session.MediaSessionCompat); 337 …erCompat(android.content.Context, android.support.v4.media.session.MediaSessionCompat.Token) throw… 350 …method public java.util.List<android.support.v4.media.session.MediaSessionCompat.QueueItem> getQue… 355 method public android.support.v4.media.session.MediaSessionCompat.Token getSessionToken(); [all …]
|
D | 27.1.0.txt | 54 method public android.support.v4.media.session.MediaSessionCompat.Token getSessionToken(); 124 method public android.support.v4.media.session.MediaSessionCompat.Token getSessionToken(); 134 method public void setSessionToken(android.support.v4.media.session.MediaSessionCompat.Token); 316 …method public static android.support.v4.media.session.MediaSessionCompat.Token getMediaSession(and… 318 …cationCompat.MediaStyle setMediaSession(android.support.v4.media.session.MediaSessionCompat.Token); 331 …ndroid.view.KeyEvent handleIntent(android.support.v4.media.session.MediaSessionCompat, android.con… 336 …ediaControllerCompat(android.content.Context, android.support.v4.media.session.MediaSessionCompat); 337 …erCompat(android.content.Context, android.support.v4.media.session.MediaSessionCompat.Token) throw… 350 …method public java.util.List<android.support.v4.media.session.MediaSessionCompat.QueueItem> getQue… 355 method public android.support.v4.media.session.MediaSessionCompat.Token getSessionToken(); [all …]
|
D | 27.0.0.txt | 54 method public android.support.v4.media.session.MediaSessionCompat.Token getSessionToken(); 124 method public android.support.v4.media.session.MediaSessionCompat.Token getSessionToken(); 134 method public void setSessionToken(android.support.v4.media.session.MediaSessionCompat.Token); 316 …method public static android.support.v4.media.session.MediaSessionCompat.Token getMediaSession(and… 318 …cationCompat.MediaStyle setMediaSession(android.support.v4.media.session.MediaSessionCompat.Token); 331 …ndroid.view.KeyEvent handleIntent(android.support.v4.media.session.MediaSessionCompat, android.con… 336 …ediaControllerCompat(android.content.Context, android.support.v4.media.session.MediaSessionCompat); 337 …erCompat(android.content.Context, android.support.v4.media.session.MediaSessionCompat.Token) throw… 350 …method public java.util.List<android.support.v4.media.session.MediaSessionCompat.QueueItem> getQue… 355 method public android.support.v4.media.session.MediaSessionCompat.Token getSessionToken(); [all …]
|