/frameworks/support/samples/Support4Demos/src/com/example/android/supportv4/media/utils/ |
D | QueueHelper.java | 20 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/ |
D | MediaSessionCompat.aidl | 18 parcelable MediaSessionCompat.Token; 19 parcelable MediaSessionCompat.QueueItem; 20 parcelable MediaSessionCompat.ResultReceiverWrapper;
|
D | MediaControllerCompat.java | 40 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 …]
|
D | IMediaControllerCallback.aidl | 22 import android.support.v4.media.session.MediaSessionCompat; 36 void onQueueChanged(in List<MediaSessionCompat.QueueItem> queue); in onQueueChanged()
|
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 | MediaSessionCompat.java | 99 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 …]
|
D | MediaButtonReceiver.java | 186 public static KeyEvent handleIntent(MediaSessionCompat mediaSessionCompat, Intent intent) { in handleIntent()
|
/frameworks/support/samples/Support4Demos/src/com/example/android/supportv4/media/ |
D | QueueAdapter.java | 21 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()
|
D | MediaBrowserServiceSupport.java | 38 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() 610 … MediaSessionCompat.QueueItem queueItem = mPlayingQueue.get(mCurrentIndexOnQueue); in updateMetadata() 665 MediaSessionCompat.QueueItem item = mPlayingQueue.get(mCurrentIndexOnQueue); in updatePlaybackState() [all …]
|
D | QueueFragment.java | 26 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()
|
D | MediaNotificationManager.java | 34 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/ |
D | StubMediaBrowserServiceCompatWithDelayedMediaSession.java | 22 import android.support.v4.media.session.MediaSessionCompat; 36 private MediaSessionCompat mSession; 42 mSession = new MediaSessionCompat( in onCreate()
|
D | StubRemoteMediaBrowserServiceCompat.java | 21 import android.support.v4.media.session.MediaSessionCompat; 40 private static MediaSessionCompat mSession; 46 mSession = new MediaSessionCompat(this, "StubRemoteMediaBrowserServiceCompat"); in onCreate()
|
D | StubMediaBrowserServiceCompat.java | 21 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/ |
D | MediaRouterTest.java | 27 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/ |
D | MediaSessionCompatTest.java | 90 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 …]
|
D | MediaControllerCompatTest.java | 70 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()
|
D | PlaybackStateCompatTest.java | 76 assertEquals(MediaSessionCompat.QueueItem.UNKNOWN_ID, state.getActiveQueueItemId()); in testBuilder()
|
/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/media/ |
D | Player.java | 24 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()
|
D | SampleMediaRouterActivity.java | 33 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/ |
D | NotificationCompat.java | 34 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/ |
D | MediaBrowserCompat.java | 71 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 …]
|
D | MediaBrowserServiceCompat.java | 70 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()
|
D | VolumeProviderCompat.java | 24 import android.support.v4.media.session.MediaSessionCompat;
|
/frameworks/support/v7/mediarouter/src/android/support/v7/media/ |
D | MediaRouter.java | 42 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 …]
|