Searched refs:mMediaSession (Results 1 – 1 of 1) sorted by relevance
273 private MediaSession mMediaSession; field in MainActivity617 mMediaSession = new MediaSession(this, MEDIA_SESSION_TAG); in onCreate()618 mMediaSession.setCallback(new MediaSession.Callback() { in onCreate()625 mMediaSession.setFlags(MediaSession.FLAG_HANDLES_MEDIA_BUTTONS | in onCreate()843 if (mMediaSession.isActive()) { in onPause()844 mMediaSession.setActive(false); in onPause()1606 if (mMediaSession.isActive()) { in stopTv()1607 mMediaSession.setActive(false); in stopTv()1892 mMediaSession.setActive(false); in updateMediaSession()1904 mMediaSession.setActive(true); in updateMediaSession()[all …]