Home
last modified time | relevance | path

Searched refs:mediaSession (Results 1 – 4 of 4) sorted by relevance

/packages/apps/TV/tests/robotests/src/com/android/tv/
DMediaSessionWrapperTest.java53 private ShadowMediaSession mediaSession; field in MediaSessionWrapperTest
75 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 …]
/packages/modules/Bluetooth/android/pandora/server/src/
DMediaPlayerBrowserService.kt39 private lateinit var mediaSession: MediaSessionCompat variable in com.android.pandora.MediaPlayerBrowserService
55 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 …]
/packages/services/Telecomm/src/com/android/server/telecom/
DHeadsetMediaButton.java57 public MediaSessionWrapper(MediaSession mediaSession) { in MediaSessionWrapper() argument
58 mMediaSession = mediaSession; in MediaSessionWrapper()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/notification/
DNotificationFragment.java873 MediaSession mediaSession = new MediaSession(mContext, "KitchenSink"); in initMediaButton()
874 style.setMediaSession(mediaSession.getSessionToken()); in initMediaButton()
876 mediaSession.release(); in initMediaButton()