Home
last modified time | relevance | path

Searched refs:MediaSessionCompat (Results 1 – 25 of 50) sorted by relevance

12

/frameworks/support/samples/Support4Demos/src/com/example/android/supportv4/media/utils/
DQueueHelper.java20 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-compat/java/android/support/v4/media/session/
DMediaSessionCompat.aidl18 parcelable MediaSessionCompat.Token;
19 parcelable MediaSessionCompat.QueueItem;
20 parcelable MediaSessionCompat.ResultReceiverWrapper;
DMediaControllerCompat.java40 import android.support.v4.media.session.MediaSessionCompat.QueueItem;
168 MediaSessionCompat.Token.fromToken(sessionTokenObj)); in getMediaController()
181 case MediaSessionCompat.ACTION_FOLLOW: in validateCustomAction()
182 case MediaSessionCompat.ACTION_UNFOLLOW: in validateCustomAction()
184 || !args.containsKey(MediaSessionCompat.ACTION_ARGUMENT_MEDIA_ATTRIBUTE)) { in validateCustomAction()
186 + MediaSessionCompat.ACTION_ARGUMENT_MEDIA_ATTRIBUTE + " is required " in validateCustomAction()
194 private final MediaSessionCompat.Token mToken;
201 public MediaControllerCompat(Context context, @NonNull MediaSessionCompat session) { in MediaControllerCompat()
225 public MediaControllerCompat(Context context, @NonNull MediaSessionCompat.Token sessionToken) in MediaControllerCompat()
476 public MediaSessionCompat.Token getSessionToken() { in getSessionToken()
[all …]
DIMediaControllerCallback.aidl22 import android.support.v4.media.session.MediaSessionCompat;
36 void onQueueChanged(in List<MediaSessionCompat.QueueItem> queue); in onQueueChanged()
DIMediaSession.aidl26 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()
DMediaSessionCompat.java99 public class MediaSessionCompat { class
358 public MediaSessionCompat(Context context, String tag) { in MediaSessionCompat() method in MediaSessionCompat
383 public MediaSessionCompat(Context context, String tag, ComponentName mbrComponent, in MediaSessionCompat() method in MediaSessionCompat
427 private MediaSessionCompat(Context context, MediaSessionImpl impl) { in MediaSessionCompat() method in MediaSessionCompat
822 public static MediaSessionCompat fromMediaSession(Context context, Object mediaSession) { in fromMediaSession()
824 return new MediaSessionCompat(context, new MediaSessionImplApi21(mediaSession)); in fromMediaSession()
1701 public static final Creator<MediaSessionCompat.QueueItem> CREATOR
1702 = new Creator<MediaSessionCompat.QueueItem>() {
1705 public MediaSessionCompat.QueueItem createFromParcel(Parcel p) {
1706 return new MediaSessionCompat.QueueItem(p);
[all …]
DMediaButtonReceiver.java186 public static KeyEvent handleIntent(MediaSessionCompat mediaSessionCompat, Intent intent) { in handleIntent()
/frameworks/support/samples/Support4Demos/src/com/example/android/supportv4/media/
DQueueAdapter.java21 import android.support.v4.media.session.MediaSessionCompat;
36 public class QueueAdapter extends ArrayAdapter<MediaSessionCompat.QueueItem> {
39 private long mActiveQueueItemId = MediaSessionCompat.QueueItem.UNKNOWN_ID;
42 super(context, R.layout.media_list_item, new ArrayList<MediaSessionCompat.QueueItem>()); in QueueAdapter()
71 MediaSessionCompat.QueueItem item = getItem(position); in getView()
DMediaBrowserServiceSupport.java38 import android.support.v4.media.session.MediaSessionCompat;
132 private MediaSessionCompat mSession;
134 private List<MediaSessionCompat.QueueItem> mPlayingQueue;
157 mSession = new MediaSessionCompat(this, "MusicService"); in onCreate()
160 mSession.setFlags(MediaSessionCompat.FLAG_HANDLES_MEDIA_BUTTONS | in onCreate()
161 MediaSessionCompat.FLAG_HANDLES_TRANSPORT_CONTROLS); in onCreate()
363 private final class MediaSessionCallback extends MediaSessionCompat.Callback {
583 MediaSessionCompat.QueueItem queueItem = mPlayingQueue.get(mCurrentIndexOnQueue); in updateMetadata()
610MediaSessionCompat.QueueItem queueItem = mPlayingQueue.get(mCurrentIndexOnQueue); in updateMetadata()
665 MediaSessionCompat.QueueItem item = mPlayingQueue.get(mCurrentIndexOnQueue); in updatePlaybackState()
[all …]
DQueueFragment.java26 import android.support.v4.media.session.MediaSessionCompat;
80 List<MediaSessionCompat.QueueItem> queue = mMediaController.getQueue();
125 public void onQueueChanged(List<MediaSessionCompat.QueueItem> queue) {
165 MediaSessionCompat.QueueItem item = mQueueAdapter.getItem(position); in onCreateView()
DMediaNotificationManager.java34 import android.support.v4.media.session.MediaSessionCompat;
58 private MediaSessionCompat.Token mSessionToken;
173 MediaSessionCompat.Token freshToken = mService.getSessionToken(); in updateSessionToken()
/frameworks/support/media-compat/tests/src/android/support/v4/media/
DStubMediaBrowserServiceCompatWithDelayedMediaSession.java22 import android.support.v4.media.session.MediaSessionCompat;
36 private MediaSessionCompat mSession;
42 mSession = new MediaSessionCompat( in onCreate()
DStubRemoteMediaBrowserServiceCompat.java21 import android.support.v4.media.session.MediaSessionCompat;
40 private static MediaSessionCompat mSession;
46 mSession = new MediaSessionCompat(this, "StubRemoteMediaBrowserServiceCompat"); in onCreate()
DStubMediaBrowserServiceCompat.java21 import android.support.v4.media.session.MediaSessionCompat;
58 /* package private */ static MediaSessionCompat sSession;
71 sSession = new MediaSessionCompat(this, "StubMediaBrowserServiceCompat"); in onCreate()
/frameworks/support/v7/mediarouter/tests/src/android/support/v7/media/
DMediaRouterTest.java27 import android.support.v4.media.session.MediaSessionCompat;
46 private MediaSessionCompat mSession;
56 mSession = new MediaSessionCompat(mContext, SESSION_TAG); in setUp()
96 private class MediaSessionCallback extends MediaSessionCompat.Callback {
/frameworks/support/media-compat/tests/src/android/support/v4/media/session/
DMediaSessionCompatTest.java90 private MediaSessionCompat mSession;
98 mSession = new MediaSessionCompat(getContext(), TEST_SESSION_TAG); in setUp()
140 MediaSessionCompat session = MediaSessionCompat.fromMediaSession( in testFromSession()
156 MediaSessionCompat.Token sessionToken = mSession.getSessionToken(); in testSessionToken()
165 MediaSessionCompat.Token token = MediaSessionCompat.Token.CREATOR.createFromParcel(p); in testSessionToken()
337 List<MediaSessionCompat.QueueItem> queue = new ArrayList<>(); in testSetQueueAndSetQueueTitle()
338 MediaSessionCompat.QueueItem item = new MediaSessionCompat.QueueItem( in testSetQueueAndSetQueueTitle()
585 mSession.setFlags(MediaSessionCompat.FLAG_HANDLES_MEDIA_BUTTONS); in testCallbackOnMediaButtonEvent()
712 MediaSessionCompat session = new MediaSessionCompat(getContext(), "TEST"); in testSetNullCallback()
727 MediaSessionCompat.QueueItem item = new MediaSessionCompat.QueueItem( in testQueueItem()
[all …]
DMediaControllerCompatTest.java70 private MediaSessionCompat mSession;
79 mSession = new MediaSessionCompat(getContext(), SESSION_TAG); in setUp()
81 mSession.setFlags(MediaSessionCompat.FLAG_HANDLES_QUEUE_COMMANDS); in setUp()
449 private class MediaSessionCallback extends MediaSessionCompat.Callback {
466 private List<MediaSessionCompat.QueueItem> mQueue = new ArrayList<>();
727 mQueue.add(new MediaSessionCompat.QueueItem(description, mQueue.size())); in onAddQueueItem()
739 mQueue.add(index, new MediaSessionCompat.QueueItem(description, mQueue.size())); in onAddQueueItem()
DPlaybackStateCompatTest.java76 assertEquals(MediaSessionCompat.QueueItem.UNKNOWN_ID, state.getActiveQueueItemId()); in testBuilder()
/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/media/
DPlayer.java24 import android.support.v4.media.session.MediaSessionCompat;
53 protected MediaSessionCompat mMediaSession;
87 public static Player create(Context context, RouteInfo route, MediaSessionCompat session) { in create()
163 private void setMediaSession(MediaSessionCompat session) { in setMediaSession()
DSampleMediaRouterActivity.java33 import android.support.v4.media.session.MediaSessionCompat;
196 private MediaSessionCompat mMediaSession;
406 mMediaSession = new MediaSessionCompat(this, "SampleMediaRouter", mEventReceiver, in createMediaSession()
408 mMediaSession.setFlags(MediaSessionCompat.FLAG_HANDLES_MEDIA_BUTTONS in createMediaSession()
409 | MediaSessionCompat.FLAG_HANDLES_TRANSPORT_CONTROLS); in createMediaSession()
410 mMediaSession.setCallback(new MediaSessionCompat.Callback() { in createMediaSession()
/frameworks/support/v7/appcompat/src/android/support/v7/app/
DNotificationCompat.java34 import android.support.v4.media.session.MediaSessionCompat;
62 public static MediaSessionCompat.Token getMediaSession(Notification notification) { in getMediaSession()
68 return MediaSessionCompat.Token.fromToken(tokenInner); in getMediaSession()
76 MediaSessionCompat.Token token = in getMediaSession()
77 MediaSessionCompat.Token.CREATOR.createFromParcel(p); in getMediaSession()
563 MediaSessionCompat.Token mToken;
589 public MediaStyle setMediaSession(MediaSessionCompat.Token token) { in setMediaSession()
/frameworks/support/media-compat/java/android/support/v4/media/
DMediaBrowserCompat.java71 import android.support.v4.media.session.MediaSessionCompat;
263 public @NonNull MediaSessionCompat.Token getSessionToken() { in getSessionToken()
944 @NonNull MediaSessionCompat.Token getSessionToken(); in getSessionToken()
954 void onServiceConnected(Messenger callback, String root, MediaSessionCompat.Token session, in onServiceConnected()
980 private MediaSessionCompat.Token mMediaSessionToken;
1148 public @NonNull MediaSessionCompat.Token getSessionToken() { in getSessionToken()
1303 final MediaSessionCompat.Token session, final Bundle extra) { in onServiceConnected()
1584 private MediaSessionCompat.Token mMediaSessionToken;
1639 public MediaSessionCompat.Token getSessionToken() { in getSessionToken()
1641 mMediaSessionToken = MediaSessionCompat.Token.fromToken( in getSessionToken()
[all …]
DMediaBrowserServiceCompat.java70 import android.support.v4.media.session.MediaSessionCompat;
162 MediaSessionCompat.Token mSession;
167 void setSessionToken(MediaSessionCompat.Token token); in setSessionToken()
189 public void setSessionToken(final MediaSessionCompat.Token token) { in setSessionToken()
260 public void setSessionToken(final MediaSessionCompat.Token token) { in setSessionToken()
917 void onConnect(String root, MediaSessionCompat.Token session, Bundle extras) in onConnect()
937 public void onConnect(String root, MediaSessionCompat.Token session, Bundle extras) in onConnect()
1163 public void setSessionToken(MediaSessionCompat.Token token) { in setSessionToken()
1178 public @Nullable MediaSessionCompat.Token getSessionToken() { in getSessionToken()
DVolumeProviderCompat.java24 import android.support.v4.media.session.MediaSessionCompat;
/frameworks/support/v7/mediarouter/src/android/support/v7/media/
DMediaRouter.java42 import android.support.v4.media.session.MediaSessionCompat;
762 public void setMediaSessionCompat(MediaSessionCompat mediaSession) { in setMediaSessionCompat()
769 public MediaSessionCompat.Token getMediaSessionToken() { in getMediaSessionToken()
1949 MediaSessionCompat mRccMediaSession;
1950 private MediaSessionCompat mCompatSession;
1951 private MediaSessionCompat.OnActiveChangeListener mSessionActiveListener =
1952 new MediaSessionCompat.OnActiveChangeListener() {
2648 public void setMediaSessionCompat(final MediaSessionCompat session) { in setMediaSessionCompat()
2677 public MediaSessionCompat.Token getMediaSessionToken() { in getMediaSessionToken()
2745 private final MediaSessionCompat mMsCompat;
[all …]

12