Home
last modified time | relevance | path

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

12345

/frameworks/base/media/java/android/media/session/
DISessionManager.aidl30 import android.media.session.MediaSession;
41 List<MediaSession.Token> getSessions(in ComponentName compName, int userId); in getSessions()
42 MediaSession.Token getMediaKeyEventSession(String packageName); in getMediaKeyEventSession()
47 in KeyEvent keyEvent, in MediaSession.Token sessionToken); in dispatchMediaKeyEventToSessionAsSystemService()
51 in KeyEvent keyEvent, in MediaSession.Token sessionToken); in dispatchVolumeKeyEventToSessionAsSystemService()
81 int getSessionPolicies(in MediaSession.Token token); in getSessionPolicies()
82 void setSessionPolicies(in MediaSession.Token token, int policies); in setSessionPolicies()
DMediaSession.java83 public final class MediaSession { class
162 public MediaSession(@NonNull Context context, @NonNull String tag) { in MediaSession() method in MediaSession
186 public MediaSession(@NonNull Context context, @NonNull String tag, in MediaSession() method in MediaSession
894 private MediaSession mSession;
1196 private WeakReference<MediaSession> mMediaSession;
1198 public CallbackStub(MediaSession session) { in CallbackStub()
1209 MediaSession session = mMediaSession.get(); in onCommand()
1219 MediaSession session = mMediaSession.get(); in onMediaButton()
1235 MediaSession session = mMediaSession.get(); in onMediaButtonFromController()
1244 MediaSession session = mMediaSession.get(); in onPrepare()
[all …]
DMediaSessionLegacyHelper.java167 public MediaSession getSession(PendingIntent pi) { in getSession()
202 public void addRccListener(PendingIntent pi, MediaSession.Callback listener) { in addRccListener()
221 holder.mFlags |= MediaSession.FLAG_HANDLES_TRANSPORT_CONTROLS; in addRccListener()
236 holder.mFlags &= ~MediaSession.FLAG_HANDLES_TRANSPORT_CONTROLS; in removeRccListener()
264 holder.mFlags |= MediaSession.FLAG_HANDLES_MEDIA_BUTTONS; in addMediaButtonListener()
279 holder.mFlags &= ~MediaSession.FLAG_HANDLES_MEDIA_BUTTONS; in removeMediaButtonListener()
328 MediaSession session; in getHolder()
329 session = new MediaSession(mContext, TAG + "-" + pi.getCreatorPackage()); in getHolder()
347 private static final class MediaButtonListener extends MediaSession.Callback {
416 public final MediaSession mSession;
[all …]
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()
DMediaSessionManager.java112 private MediaSession.Token mCurMediaKeyEventSession;
145 public ISession createSession(@NonNull MediaSession.CallbackStub cbStub, @NonNull String tag, in createSession()
209 public MediaSession.Token getMediaKeyEventSession() { in getMediaKeyEventSession()
272 List<MediaSession.Token> tokens = mService.getSessions(notificationListener, in getActiveSessionsForUser()
637 @NonNull MediaSession.Token sessionToken) { in dispatchMediaKeyEventToSessionAsSystemService()
711 @NonNull MediaSession.Token sessionToken) { in dispatchVolumeKeyEventToSessionAsSystemService()
1033 public int getSessionPolicies(@NonNull MediaSession.Token token) { in getSessionPolicies()
1047 public void setSessionPolicies(@NonNull MediaSession.Token token, @Nullable int policies) { in setSessionPolicies()
1128 @Nullable MediaSession.Token sessionToken); in onMediaKeyEventDispatched()
1150 @Nullable MediaSession.Token sessionToken); in onMediaKeyEventSessionChanged()
[all …]
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()
/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()
/frameworks/base/media/java/android/media/
DIRemoteSessionCallback.aidl20 import android.media.session.MediaSession;
29 void onVolumeChanged(in MediaSession.Token sessionToken, int flags); in onVolumeChanged()
32 void onSessionChanged(in MediaSession.Token sessionToken); in onSessionChanged()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/media/session/
DMediaSessionManagerExt.kt20 import android.media.session.MediaSession
48 val MediaSessionManager.defaultRemoteSessionChanged: Flow<MediaSession.Token?>
53 override fun onVolumeChanged(sessionToken: MediaSession.Token, flags: Int) = in <lambda>()
57 sessionToken: MediaSession.Token? in <lambda>()
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/volume/
DMediaControllerKosmos.kt24 import android.media.session.MediaSession
53 val localSessionToken: MediaSession.Token = MediaSession.Token(0, mock {}) in <lambda>()
83 val remoteSessionToken: MediaSession.Token = MediaSession.Token(0, mock {}) in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/dialog/
DMediaOutputDialogManager.kt20 import android.media.session.MediaSession
54 token: MediaSession.Token? = null in createAndShow()
83 token: MediaSession.Token? = null, in createAndShowWithController()
116 token: MediaSession.Token? = null, in createAndShow()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/controls/domain/pipeline/
DMediaSessionBasedFilterTest.kt21 import android.media.session.MediaSession
78 private lateinit var token1: MediaSession.Token
79 private lateinit var token2: MediaSession.Token
80 private lateinit var token3: MediaSession.Token
81 private lateinit var token4: MediaSession.Token
86 private lateinit var session1: MediaSession
87 private lateinit var session2: MediaSession
88 private lateinit var session3: MediaSession
89 private lateinit var session4: MediaSession
105 session1 = MediaSession(context, "MediaSessionBasedFilter1") in setUp()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/panel/component/mediaoutput/shared/model/
DMediaDeviceSession.kt19 import android.media.session.MediaSession
25 val sessionToken: MediaSession.Token,
/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/src/com/android/systemui/media/controls/domain/resume/
DResumeMediaBrowser.java29 import android.media.session.MediaSession;
257 MediaSession.Token token = mMediaBrowser.getSessionToken(); in restart()
288 protected MediaController createMediaController(MediaSession.Token token) { in createMediaController()
304 public MediaSession.Token getToken() { in getToken()
341 MediaSession.Token controllerToken = in updateMediaController()
343 MediaSession.Token currentToken = getToken(); in updateMediaController()
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/controls/util/
DMediaControllerFactory.java22 import android.media.session.MediaSession;
43 public MediaController create(@NonNull MediaSession.Token token) { in create()
DLocalMediaManagerFactory.kt20 import android.media.session.MediaSession
34 fun create(packageName: String?, token: MediaSession.Token? = null): LocalMediaManager { in create()
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/panel/component/mediaoutput/domain/model/
DMediaControllerChangeModel.kt21 import android.media.session.MediaSession
36 data class QueueChanged(val queue: MutableList<MediaSession.QueueItem>?) :
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/controls/shared/model/
DMediaControlModel.kt22 import android.media.session.MediaSession
30 val token: MediaSession.Token?,
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/volume/
DVolumeDialogControllerImplTest.java37 import android.media.session.MediaSession;
206 MediaSession.Token token = new MediaSession.Token(Process.myUid(), null); in testOnRemoteVolumeChanged_newStream_noNullPointer()
212 MediaSession.Token token = new MediaSession.Token(Process.myUid(), null); in testOnRemoteRemove_newStream_noNullPointer()
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/controls/domain/pipeline/
DMediaDataManager.kt21 import android.media.session.MediaSession
56 token: MediaSession.Token, in setInactive()

12345