Searched refs:mMediaSessionManager (Results 1 – 8 of 8) sorted by relevance
48 private MediaSessionManager mMediaSessionManager; field in MediaOutputUtilsTest62 doReturn(mMediaSessionManager).when(mContext).getSystemService(MediaSessionManager.class); in setUp()64 doReturn(mMediaControllers).when(mMediaSessionManager).getActiveSessions(any()); in setUp()74 assertThat(MediaOutputUtils.getActiveLocalMediaController(mMediaSessionManager)).isEqualTo( in getActiveLocalMediaController_localMediaPlaying_returnController()94 assertThat(MediaOutputUtils.getActiveLocalMediaController(mMediaSessionManager)).isNull(); in getActiveLocalMediaController_remoteMediaPlaying_returnNull()113 assertThat(MediaOutputUtils.getActiveLocalMediaController(mMediaSessionManager)).isNull(); in getActiveLocalMediaController_localMediaStopped_returnNull()140 assertThat(MediaOutputUtils.getActiveLocalMediaController(mMediaSessionManager)).isNull(); in getActiveLocalMediaController_bothHaveRemoteMediaAndLocalMedia_returnNull()165 assertThat(MediaOutputUtils.getActiveLocalMediaController(mMediaSessionManager)).isNull(); in getActiveLocalMediaController_bothHaveLocalMediaAndRemoteMedia_returnNull()
74 private MediaSessionManager mMediaSessionManager; field in MediaOutputIndicatorWorkerTest96 doReturn(mMediaSessionManager).when(mContext).getSystemService(MediaSessionManager.class); in setUp()98 doReturn(mMediaControllers).when(mMediaSessionManager).getActiveSessions(any()); in setUp()
89 private MediaSessionManager mMediaSessionManager; field in MediaPlayerList142 mMediaSessionManager = in MediaPlayerList()144 mMediaSessionManager.addOnActiveSessionsChangedListener( in MediaPlayerList()146 mMediaSessionManager.addOnMediaKeyEventSessionChangedListener( in MediaPlayerList()167 if (mMediaSessionManager == null) { in init()192 mMediaSessionManager.getActiveSessions(null); in init()209 mMediaSessionManager.removeOnActiveSessionsChangedListener(mActiveSessionsChangedListener); in cleanup()210 mMediaSessionManager.removeOnMediaKeyEventSessionChangedListener( in cleanup()212 mMediaSessionManager = null; in cleanup()822 if (mMediaSessionManager == null) {
113 private final MediaSessionManager mMediaSessionManager; field in CarMediaService290 mMediaSessionManager = mContext.getSystemService(MediaSessionManager.class); in CarMediaService()432 writer.printf("Number of active media sessions: %s\n", mMediaSessionManager in dump()557 mMediaSessionManager.removeOnActiveSessionsChangedListener(mSessionsListener); in updateMediaSessionCallbackForCurrentUser()561 mMediaSessionManager.addOnActiveSessionsChangedListener(null, currentUserHandle, in updateMediaSessionCallbackForCurrentUser()563 mMediaSessionUpdater.registerCallbacks(mMediaSessionManager.getActiveSessionsForUser(null, in updateMediaSessionCallbackForCurrentUser()751 updateActiveMediaControllerLocked(mMediaSessionManager in setPlaybackMediaSource()
91 @Mock private MediaSessionManager mMediaSessionManager; field in CarMediaServiceTest114 doReturn(mMediaSessionManager).when(mContext).getSystemService(MediaSessionManager.class); in setUp()345 }).when(mMediaSessionManager).addOnActiveSessionsChangedListener(any(), any(), any(), in mockPlaybackStateChange()
113 private MediaSessionManager mMediaSessionManager; field in MediaOutputPreferenceControllerTest151 doReturn(mMediaSessionManager).when(mContext).getSystemService(MediaSessionManager.class); in setUp()152 when(mMediaSessionManager.getActiveSessions(any())).thenReturn(mMediaControllers); in setUp()
79 MediaSessionManager mMediaSessionManager = in setUp() local84 .thenReturn(mMediaSessionManager); in setUp()
84 private MediaSessionManager mMediaSessionManager; field in RemoteVolumeGroupControllerTest100 doReturn(mMediaSessionManager).when(mContext).getSystemService( in setUp()