Searched refs:mediaSession (Results 1 – 4 of 4) sorted by relevance
53 private ShadowMediaSession mediaSession; field in MediaSessionWrapperTest75 mediaSession = Shadow.extract(mediaSessionWrapper.getMediaSession()); in setUp()80 assertThat(mediaSession.mSessionActivity).isEqualTo(this.pendingIntent); in setSessionActivity()86 assertThat(mediaSession.mActive).isTrue(); in setPlaybackState_true()87 assertThat(mediaSession.mPlaybackState.getState()).isEqualTo(PlaybackState.STATE_PLAYING); in setPlaybackState_true()93 assertThat(mediaSession.mActive).isFalse(); in setPlaybackState_false()94 assertThat(mediaSession.mPlaybackState).isNull(); in setPlaybackState_false()101 assertThat(mediaSession.mActive).isFalse(); in setPlaybackState_trueThenFalse()102 assertThat(mediaSession.mPlaybackState.getState()).isEqualTo(PlaybackState.STATE_STOPPED); in setPlaybackState_trueThenFalse()109 assertThat(asMap(mediaSession.mMediaMetadata)) in update_channel10()[all …]
39 private lateinit var mediaSession: MediaSessionCompat variable in com.android.pandora.MediaPlayerBrowserService55 mediaSession = MediaSessionCompat(this, "MediaSession") in setupMediaSession()56 mediaSession.setCallback(mSessionCallback) in setupMediaSession()58 mediaSession.setQueue(queue) in setupMediaSession()64 mediaSession.setPlaybackState(playbackStateBuilder.build()) in setupMediaSession()65 mediaSession.setMetadata(null) in setupMediaSession()66 mediaSession.setQueueTitle(NOW_PLAYING_PREFIX) in setupMediaSession()67 mediaSession.setActive(true) in setupMediaSession()68 setSessionToken(mediaSession.getSessionToken()) in setupMediaSession()83 mediaSession.setPlaybackState(playbackStateBuilder.build()) in getAvailableActions()[all …]
57 public MediaSessionWrapper(MediaSession mediaSession) { in MediaSessionWrapper() argument58 mMediaSession = mediaSession; in MediaSessionWrapper()
873 MediaSession mediaSession = new MediaSession(mContext, "KitchenSink"); in initMediaButton()874 style.setMediaSession(mediaSession.getSessionToken()); in initMediaButton()876 mediaSession.release(); in initMediaButton()