Searched refs:mMediaSession (Results 1 – 5 of 5) sorted by relevance
53 protected MediaSessionCompat mMediaSession; field in Player104 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 …]
135 mPlayer = Player.create(SampleMediaRouterActivity.this, route, mMediaSession);148 mMediaSession.setActive(false);196 private MediaSessionCompat mMediaSession; field in SampleMediaRouterActivity383 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()
988 private WeakReference<MediaSession> mMediaSession; field in MediaSession.CallbackStub991 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 …]
1948 private MediaSessionRecord mMediaSession; field in MediaRouter.GlobalMediaRouter2668 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 …]
493 private ImsStreamMediaSession mMediaSession = null; field in ImsCall602 mMediaSession = null; in close()782 return mMediaSession; in getMediaSession()