Home
last modified time | relevance | path

Searched refs:mMediaSession (Results 1 – 5 of 5) sorted by relevance

/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/media/
DPlayer.java53 protected MediaSessionCompat mMediaSession; field in Player
104 if (mMediaSession == null) { in initMediaSession()
107 mMediaSession.setMetadata(null); in initMediaSession()
108 mMediaSession.setPlaybackState(INIT_PLAYBACK_STATE); in initMediaSession()
112 if (mMediaSession == null) { in updateMetadata()
119 mMediaSession.setMetadata(null); in updateMetadata()
128 mMediaSession.setMetadata(bob.build()); in updateMetadata()
132 if (mMediaSession == null) { in publishState()
155 mMediaSession.setPlaybackState(pbState); in publishState()
157 mMediaSession.setActive(true); in publishState()
[all …]
DSampleMediaRouterActivity.java135 mPlayer = Player.create(SampleMediaRouterActivity.this, route, mMediaSession);
148 mMediaSession.setActive(false);
196 private MediaSessionCompat mMediaSession; field in SampleMediaRouterActivity
383 mMediaRouter.setMediaSessionCompat(mMediaSession); in onCreate()
387 mMediaRouter.getSelectedRoute(), mMediaSession); in onCreate()
406 mMediaSession = new MediaSessionCompat(this, "SampleMediaRouter", mEventReceiver, in createMediaSession()
408 mMediaSession.setFlags(MediaSessionCompat.FLAG_HANDLES_MEDIA_BUTTONS in createMediaSession()
410 mMediaSession.setCallback(new MediaSessionCompat.Callback() { in createMediaSession()
518 mMediaSession.release(); in onDestroy()
/frameworks/base/media/java/android/media/session/
DMediaSession.java988 private WeakReference<MediaSession> mMediaSession; field in MediaSession.CallbackStub
991 mMediaSession = new WeakReference<MediaSession>(session); in CallbackStub()
996 MediaSession session = mMediaSession.get(); in onCommand()
1005 MediaSession session = mMediaSession.get(); in onMediaButton()
1019 MediaSession session = mMediaSession.get(); in onPrepare()
1027 MediaSession session = mMediaSession.get(); in onPrepareFromMediaId()
1035 MediaSession session = mMediaSession.get(); in onPrepareFromSearch()
1043 MediaSession session = mMediaSession.get(); in onPrepareFromUri()
1051 MediaSession session = mMediaSession.get(); in onPlay()
1059 MediaSession session = mMediaSession.get(); in onPlayFromMediaId()
[all …]
/frameworks/support/v7/mediarouter/src/android/support/v7/media/
DMediaRouter.java1948 private MediaSessionRecord mMediaSession; field in MediaRouter.GlobalMediaRouter
2668 if (mMediaSession != null) { in setMediaSessionRecord()
2669 mMediaSession.clearVolumeHandling(); in setMediaSessionRecord()
2671 mMediaSession = mediaSessionRecord; in setMediaSessionRecord()
2678 if (mMediaSession != null) { in getMediaSessionToken()
2679 return mMediaSession.getToken(); in getMediaSessionToken()
2710 if (mMediaSession != null) { in updatePlaybackInfoFromSelectedRoute()
2714 mMediaSession.clearVolumeHandling(); in updatePlaybackInfoFromSelectedRoute()
2722 mMediaSession.configureVolume(controlType, mPlaybackInfo.volumeMax, in updatePlaybackInfoFromSelectedRoute()
2727 if (mMediaSession != null) { in updatePlaybackInfoFromSelectedRoute()
[all …]
/frameworks/opt/net/ims/src/java/com/android/ims/
DImsCall.java493 private ImsStreamMediaSession mMediaSession = null; field in ImsCall
602 mMediaSession = null; in close()
782 return mMediaSession; in getMediaSession()