Home
last modified time | relevance | path

Searched refs:MediaSession (Results 1 – 25 of 52) sorted by relevance

123

/frameworks/base/media/java/android/media/session/
DMediaSession.java80 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 …]
DMediaSessionLegacyHelper.java164 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 …]
DISessionManager.aidl30 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()
DMediaSession.aidl18 parcelable MediaSession.Token;
19 parcelable MediaSession.QueueItem;
DIActiveSessionsListener.aidl18 import android.media.session.MediaSession;
25 void onActiveSessionsChanged(in List<MediaSession.Token> sessions); in onActiveSessionsChanged()
DIOnMediaKeyEventSessionChangedListener.aidl19 import android.media.session.MediaSession;
26 in MediaSession.Token mediaKeyEventSessionToken); in onMediaKeyEventSessionChanged()
DIOnMediaKeyEventDispatchedListener.aidl19 import android.media.session.MediaSession;
27 in MediaSession.Token sessionToken); in onMediaKeyEventDispatched()
DMediaSessionManager.java102 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()
DMediaController.java30 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()
DISession.aidl24 import android.media.session.MediaSession;
/frameworks/base/tests/OneMedia/src/com/android/onemedia/
DPlayerSession.java22 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 …]
DIPlayerCallback.aidl18 import android.media.session.MediaSession;
21 void onSessionChanged(in MediaSession.Token session); in onSessionChanged()
DIPlayerService.aidl19 import android.media.session.MediaSession;
26 MediaSession.Token getSessionToken(); in getSessionToken()
DPlayerController.java21 import android.media.session.MediaSession;
140 public MediaSession.Token getSessionToken() { in getSessionToken()
179 MediaSession.Token token;
DPlayerService.java21 import android.media.session.MediaSession;
157 public MediaSession.Token getSessionToken() throws RemoteException { in getSessionToken()
DNotificationHelper.java18 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/
DIRemoteVolumeController.aidl20 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()
DRemoteControlClient.java24 import android.media.session.MediaSession;
332 private MediaSession mSession;
396 public MediaSession getMediaSession() { in getMediaSession()
934 private MediaSession.Callback mTransportListener = new MediaSession.Callback() {
DVolumeProvider.java19 import android.media.session.MediaSession;
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/volume/
DVolumeDialogControllerImplTest.java27 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/
DIMediaBrowserServiceCallbacks.aidl6 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/
DNotificationMediaTemplateViewWrapperTest.java26 import android.media.session.MediaSession;
81 MediaSession session = new MediaSession(mContext, "TEST_CHANNEL"); in makeTestNotification()
/frameworks/base/services/core/java/com/android/server/media/
DMediaSessionStack.java20 import android.media.session.MediaSession;
145 public MediaSessionRecord getMediaSessionRecord(MediaSession.Token sessionToken) { in getMediaSessionRecord()
166 } else if (!MediaSession.isActiveState(newState)) { in onPlaystateChanged()
DMediaSessionRecord.java36 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/
DMediaBrowser.java29 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()

123