/frameworks/base/media/java/android/media/session/ |
D | MediaSession.java | 80 public final class MediaSession { class 153 public MediaSession(@NonNull Context context, @NonNull String tag) { in MediaSession() method in MediaSession 175 public MediaSession(@NonNull Context context, @NonNull String tag, in MediaSession() method in MediaSession 849 private MediaSession mSession; 1151 private WeakReference<MediaSession> mMediaSession; 1153 public CallbackStub(MediaSession session) { in CallbackStub() 1164 MediaSession session = mMediaSession.get(); in onCommand() 1174 MediaSession session = mMediaSession.get(); in onMediaButton() 1190 MediaSession session = mMediaSession.get(); in onMediaButtonFromController() 1200 MediaSession session = mMediaSession.get(); in onPrepare() [all …]
|
D | MediaSessionLegacyHelper.java | 164 public MediaSession getSession(PendingIntent pi) { in getSession() 199 public void addRccListener(PendingIntent pi, MediaSession.Callback listener) { in addRccListener() 218 holder.mFlags |= MediaSession.FLAG_HANDLES_TRANSPORT_CONTROLS; in addRccListener() 233 holder.mFlags &= ~MediaSession.FLAG_HANDLES_TRANSPORT_CONTROLS; in removeRccListener() 261 holder.mFlags |= MediaSession.FLAG_HANDLES_MEDIA_BUTTONS; in addMediaButtonListener() 276 holder.mFlags &= ~MediaSession.FLAG_HANDLES_MEDIA_BUTTONS; in removeMediaButtonListener() 325 MediaSession session; in getHolder() 326 session = new MediaSession(mContext, TAG + "-" + pi.getCreatorPackage()); in getHolder() 344 private static final class MediaButtonListener extends MediaSession.Callback { 413 public final MediaSession mSession; [all …]
|
D | ISessionManager.aidl | 30 import android.media.session.MediaSession; 42 List<MediaSession.Token> getSessions(in ComponentName compName, int userId); in getSessions() 47 in MediaSession.Token sessionToken, in KeyEvent keyEvent); in dispatchMediaKeyEventToSessionAsSystemService() 51 in MediaSession.Token sessionToken, in KeyEvent keyEvent); in dispatchVolumeKeyEventToSessionAsSystemService()
|
D | MediaSession.aidl | 18 parcelable MediaSession.Token; 19 parcelable MediaSession.QueueItem;
|
D | IActiveSessionsListener.aidl | 18 import android.media.session.MediaSession; 25 void onActiveSessionsChanged(in List<MediaSession.Token> sessions); in onActiveSessionsChanged()
|
D | IOnMediaKeyEventSessionChangedListener.aidl | 19 import android.media.session.MediaSession; 26 in MediaSession.Token mediaKeyEventSessionToken); in onMediaKeyEventSessionChanged()
|
D | IOnMediaKeyEventDispatchedListener.aidl | 19 import android.media.session.MediaSession; 27 in MediaSession.Token sessionToken); in onMediaKeyEventDispatched()
|
D | MediaSessionManager.java | 102 private MediaSession.Token mCurMediaKeyEventSession; 128 public ISession createSession(@NonNull MediaSession.CallbackStub cbStub, @NonNull String tag, in createSession() 204 List<MediaSession.Token> tokens = mService.getSessions(notificationListener, userId); in getActiveSessionsForUser() 547 public boolean dispatchMediaKeyEventAsSystemService(@NonNull MediaSession.Token sessionToken, in dispatchMediaKeyEventAsSystemService() 613 public void dispatchVolumeKeyEventAsSystemService(@NonNull MediaSession.Token sessionToken, in dispatchVolumeKeyEventAsSystemService() 952 @NonNull MediaSession.Token sessionToken) { } in onMediaKeyEventDispatched() 974 @Nullable MediaSession.Token sessionToken) { } in onMediaKeyEventSessionChanged() 1066 public void onActiveSessionsChanged(final List<MediaSession.Token> tokens) { 1181 MediaSession.Token sessionToken) { in onMediaKeyEventDispatched() 1197 MediaSession.Token sessionToken) { in onMediaKeyEventSessionChanged()
|
D | MediaController.java | 30 import android.media.session.MediaSession.QueueItem; 74 private final MediaSession.Token mToken; 93 public MediaController(@NonNull Context context, @NonNull MediaSession.Token token) { in MediaController() 175 public @Nullable List<MediaSession.QueueItem> getQueue() { in getQueue() 280 public @NonNull MediaSession.Token getSessionToken() { in getSessionToken() 435 } else if (MediaSession.hasCustomParcelable(mSessionInfo)) { in getSessionInfo() 584 public void onQueueChanged(@Nullable List<MediaSession.QueueItem> queue) { in onQueueChanged()
|
D | ISession.aidl | 24 import android.media.session.MediaSession;
|
/frameworks/base/tests/OneMedia/src/com/android/onemedia/ |
D | PlayerSession.java | 22 import android.media.session.MediaSession; 23 import android.media.session.MediaSession.QueueItem; 42 protected MediaSession mSession; 45 protected MediaSession.Callback mCallback; 48 protected ArrayList<MediaSession.QueueItem> mQueue; 64 mQueue = new ArrayList<MediaSession.QueueItem>(); in PlayerSession() 78 mSession = new MediaSession(mContext, "OneMedia"); in createSession() 81 mSession.setFlags(MediaSession.FLAG_HANDLES_TRANSPORT_CONTROLS in createSession() 82 | MediaSession.FLAG_HANDLES_MEDIA_BUTTONS); in createSession() 106 public MediaSession.Token getSessionToken() { in getSessionToken() [all …]
|
D | IPlayerCallback.aidl | 18 import android.media.session.MediaSession; 21 void onSessionChanged(in MediaSession.Token session); in onSessionChanged()
|
D | IPlayerService.aidl | 19 import android.media.session.MediaSession; 26 MediaSession.Token getSessionToken(); in getSessionToken()
|
D | PlayerController.java | 21 import android.media.session.MediaSession; 140 public MediaSession.Token getSessionToken() { in getSessionToken() 179 MediaSession.Token token;
|
D | PlayerService.java | 21 import android.media.session.MediaSession; 157 public MediaSession.Token getSessionToken() throws RemoteException { in getSessionToken()
|
D | NotificationHelper.java | 18 import android.media.session.MediaSession; 36 private final MediaSession mSession; 46 public NotificationHelper(Service service, MediaSession session) { in NotificationHelper()
|
/frameworks/base/media/java/android/media/ |
D | IRemoteVolumeController.aidl | 20 import android.media.session.MediaSession; 29 void remoteVolumeChanged(in MediaSession.Token sessionToken, int flags); in remoteVolumeChanged() 32 void updateRemoteController(in MediaSession.Token sessionToken); in updateRemoteController()
|
D | RemoteControlClient.java | 24 import android.media.session.MediaSession; 332 private MediaSession mSession; 396 public MediaSession getMediaSession() { in getMediaSession() 934 private MediaSession.Callback mTransportListener = new MediaSession.Callback() {
|
D | VolumeProvider.java | 19 import android.media.session.MediaSession;
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/volume/ |
D | VolumeDialogControllerImplTest.java | 27 import android.media.session.MediaSession; 92 MediaSession.Token token = new MediaSession.Token(null); in testOnRemoteVolumeChanged_newStream_noNullPointer() 98 MediaSession.Token token = new MediaSession.Token(null); in testOnRemoteRemove_newStream_noNullPointer()
|
/frameworks/base/media/java/android/service/media/ |
D | IMediaBrowserServiceCallbacks.aidl | 6 import android.media.session.MediaSession; 23 void onConnect(String root, in MediaSession.Token session, in Bundle extras); in onConnect()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/wrapper/ |
D | NotificationMediaTemplateViewWrapperTest.java | 26 import android.media.session.MediaSession; 81 MediaSession session = new MediaSession(mContext, "TEST_CHANNEL"); in makeTestNotification()
|
/frameworks/base/services/core/java/com/android/server/media/ |
D | MediaSessionStack.java | 20 import android.media.session.MediaSession; 145 public MediaSessionRecord getMediaSessionRecord(MediaSession.Token sessionToken) { in getMediaSessionRecord() 166 } else if (!MediaSession.isActiveState(newState)) { in onPlaystateChanged()
|
D | MediaSessionRecord.java | 36 import android.media.session.MediaSession; 37 import android.media.session.MediaSession.QueueItem; 84 private final MediaSession.Token mSessionToken; 136 mSessionToken = new MediaSession.Token(mController); in MediaSessionRecord() 170 public MediaSession.Token getSessionToken() { in getSessionToken() 245 return (mFlags & MediaSession.FLAG_EXCLUSIVE_GLOBAL_PRIORITY) != 0; in isSystemPriority() 271 if (isPlaybackActive() || hasFlag(MediaSession.FLAG_EXCLUSIVE_GLOBAL_PRIORITY)) { in adjustVolume() 379 return MediaSession.isActiveState(state); in isPlaybackActive() 441 return hasFlag(MediaSession.FLAG_HANDLES_TRANSPORT_CONTROLS); in isTransportControlEnabled() 840 if ((flags & MediaSession.FLAG_EXCLUSIVE_GLOBAL_PRIORITY) != 0) { in setFlags() [all …]
|
/frameworks/base/media/java/android/media/browse/ |
D | MediaBrowser.java | 29 import android.media.session.MediaSession; 105 private volatile MediaSession.Token mMediaSessionToken; 334 public @NonNull MediaSession.Token getSessionToken() { in getSessionToken() 579 final String root, final MediaSession.Token session, final Bundle extra) { in onServiceConnected() 1090 public void onConnect(String root, MediaSession.Token session, in onConnect()
|