Searched refs:mMediaSession (Results 1 – 2 of 2) sorted by relevance
43 private MediaSession mMediaSession; field in MediaSessionTestHelperService72 if (mMediaSession == null) { in onStartCommand()73 mMediaSession = new MediaSession(this, TAG); in onStartCommand()76 if (mMediaSession != null) { in onStartCommand()78 mMediaSession.setActive(true); in onStartCommand()81 mMediaSession.setActive(false); in onStartCommand()108 if (mMediaSession != null) { in releaseAllMediaSession()109 mMediaSession.release(); in releaseAllMediaSession()110 mMediaSession = null; in releaseAllMediaSession()
130 private static MediaSession mMediaSession = null; field in CommandReceiver541 mMediaSession = new MediaSession(context, TAG); in doStartMediaPlayback()542 mMediaSession.setCallback(new MediaSession.Callback() { in doStartMediaPlayback()570 mMediaSession.release(); in doStartMediaPlayback()573 mMediaSession.setActive(true); in doStartMediaPlayback()580 mMediaSession = new MediaSession(context, TAG); in doCreateMediaSession()581 mMediaSession.setCallback( in doCreateMediaSession()586 setPlaybackState(PlaybackState.STATE_PLAYING, mMediaSession); in doCreateMediaSession()592 setPlaybackState(PlaybackState.STATE_PAUSED, mMediaSession); in doCreateMediaSession()598 setPlaybackState(PlaybackState.STATE_STOPPED, mMediaSession); in doCreateMediaSession()[all …]