Home
last modified time | relevance | path

Searched refs:MediaSession2 (Results 1 – 11 of 11) sorted by relevance

/packages/modules/Media/apex/framework/java/android/media/
DMediaSession2Service.java31 import android.media.MediaSession2.ControllerInfo;
63 private final MediaSession2.ForegroundServiceEventCallback mForegroundServiceEventCallback =
64 new MediaSession2.ForegroundServiceEventCallback() {
66 public void onPlaybackActiveChanged(MediaSession2 session, boolean playbackActive) {
71 public void onSessionClosed(MediaSession2 session) {
84 private Map<String, MediaSession2> mSessions = new ArrayMap<>();
86 private Map<MediaSession2, MediaNotification> mNotifications = new ArrayMap<>();
134 List<MediaSession2> sessions = getSessions(); in onDestroy()
135 for (MediaSession2 session : sessions) { in onDestroy()
161 public abstract MediaSession2 onGetSession(@NonNull ControllerInfo controllerInfo); in onGetSession()
[all …]
DMediaSession2.java65 public class MediaSession2 implements AutoCloseable { class
103 MediaSession2(@NonNull Context context, @NonNull String id, PendingIntent sessionActivity, in MediaSession2() method in MediaSession2
106 synchronized (MediaSession2.class) { in MediaSession2()
148 synchronized (MediaSession2.class) { in close()
216 mCallback.onCommandResult(MediaSession2.this, controller, this, in sendSessionCommand()
382 mCallback.onConnect(MediaSession2.this, controllerInfo); in onConnect()
421 mCallback.onPostConnect(MediaSession2.this, controllerInfo); in onConnect()
448 mCallback.onDisconnected(MediaSession2.this, controllerInfo); in onDisconnect()
479 MediaSession2.this, controllerInfo, command, args); in onSessionCommand()
611 public MediaSession2 build() { in build()
[all …]
DSession2Link.java38 private static final boolean DEBUG = MediaSession2.DEBUG;
53 private final MediaSession2 mSession;
56 public Session2Link(MediaSession2 session) { in Session2Link()
DMediaController2.java270 } else if (MediaSession2.hasCustomParcelable(tokenExtras)) { in onConnected()
462 if (MediaSession2.hasCustomParcelable(connectionHints)) { in setConnectionHints()
DSession2Token.java148 } else if (MediaSession2.hasCustomParcelable(extras)) { in Session2Token()
/packages/modules/Media/apex/framework/api/
Dcurrent.txt160 public class MediaSession2 implements java.lang.AutoCloseable {
162 …method public void cancelSessionCommand(@NonNull android.media.MediaSession2.ControllerInfo, @NonN…
164 …method @NonNull public java.util.List<android.media.MediaSession2.ControllerInfo> getConnectedCont…
168 …method @NonNull public Object sendSessionCommand(@NonNull android.media.MediaSession2.ControllerIn…
172 public static final class MediaSession2.Builder {
173 ctor public MediaSession2.Builder(@NonNull android.content.Context);
174 method @NonNull public android.media.MediaSession2 build();
175 … method @NonNull public android.media.MediaSession2.Builder setExtras(@NonNull android.os.Bundle);
176 method @NonNull public android.media.MediaSession2.Builder setId(@NonNull String);
177 …method @NonNull public android.media.MediaSession2.Builder setSessionActivity(@Nullable android.ap…
[all …]
Dlint-baseline.txt2 …esPermission: android.media.MediaSession2Service#onUpdateNotification(android.media.MediaSession2):
Dsystem-lint-baseline.txt2 …esPermission: android.media.MediaSession2Service#onUpdateNotification(android.media.MediaSession2):
Dmodule-lib-lint-baseline.txt4 …esPermission: android.media.MediaSession2Service#onUpdateNotification(android.media.MediaSession2):
/packages/modules/Media/flags/
Dflags.aconfig12 description: "Add pid for Session2Token for Supporting project falcon in MediaSession2"
/packages/modules/Media/apex/framework/
DAndroid.bp81 "java/android/media/MediaSession2.java",