Home
last modified time | relevance | path

Searched refs:mMediaSessionCompat (Results 1 – 3 of 3) sorted by relevance

/frameworks/support/samples/SupportLeanbackDemos/src/main/java/com/example/android/leanback/
DPlaybackTransportControlGlueSample.java53 private MediaSessionCompat mMediaSessionCompat; field in PlaybackTransportControlGlueSample
96 if (mMediaSessionCompat == null) { in onUpdateBufferedProgress()
100 mMediaSessionCompat.setPlaybackState(createPlaybackStateBasedOnAdapterState()); in onUpdateBufferedProgress()
108 if (mMediaSessionCompat == null) { in onUpdateProgress()
112 mMediaSessionCompat.setPlaybackState(createPlaybackStateBasedOnAdapterState()); in onUpdateProgress()
145 mMediaSessionCompat = mediaSessionCompat; in connectToMediaSession()
146 mMediaSessionCompat.setFlags(MediaSessionCompat.FLAG_HANDLES_MEDIA_BUTTONS in connectToMediaSession()
148 mMediaSessionCompat.setActive(true); in connectToMediaSession()
149 mMediaSessionCompat.setCallback(new MediaSessionCallback()); in connectToMediaSession()
160 mMediaSessionCompat.setActive(false); in disconnectToMediaSession()
[all …]
DSampleVideoSupportFragment.java58 private MediaSessionCompat mMediaSessionCompat; field in SampleVideoSupportFragment
111 mMediaSessionCompat = new MediaSessionCompat(getActivity(), MEDIA_SESSION_COMPAT_TOKEN); in onCreate()
112 mMediaPlayerGlue.connectToMediaSession(mMediaSessionCompat); in onCreate()
163 mMediaPlayerGlue.connectToMediaSession(mMediaSessionCompat); in switchAnotherGlue()
DSampleVideoFragment.java55 private MediaSessionCompat mMediaSessionCompat; field in SampleVideoFragment
108 mMediaSessionCompat = new MediaSessionCompat(getActivity(), MEDIA_SESSION_COMPAT_TOKEN); in onCreate()
109 mMediaPlayerGlue.connectToMediaSession(mMediaSessionCompat); in onCreate()
160 mMediaPlayerGlue.connectToMediaSession(mMediaSessionCompat); in switchAnotherGlue()