Home
last modified time | relevance | path

Searched refs:mMediaSessionManager (Results 1 – 8 of 8) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/media/
DMediaOutputUtilsTest.java48 private MediaSessionManager mMediaSessionManager; field in MediaOutputUtilsTest
62 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()
DMediaOutputIndicatorWorkerTest.java74 private MediaSessionManager mMediaSessionManager; field in MediaOutputIndicatorWorkerTest
96 doReturn(mMediaSessionManager).when(mContext).getSystemService(MediaSessionManager.class); in setUp()
98 doReturn(mMediaControllers).when(mMediaSessionManager).getActiveSessions(any()); in setUp()
/packages/apps/Bluetooth/src/com/android/bluetooth/audio_util/
DMediaPlayerList.java89 private MediaSessionManager mMediaSessionManager; field in MediaPlayerList
142 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) {
/packages/services/Car/service/src/com/android/car/
DCarMediaService.java113 private final MediaSessionManager mMediaSessionManager; field in CarMediaService
290 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()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/media/
DCarMediaServiceTest.java91 @Mock private MediaSessionManager mMediaSessionManager; field in CarMediaServiceTest
114 doReturn(mMediaSessionManager).when(mContext).getSystemService(MediaSessionManager.class); in setUp()
345 }).when(mMediaSessionManager).addOnActiveSessionsChangedListener(any(), any(), any(), in mockPlaybackStateChange()
/packages/apps/Settings/tests/robotests/src/com/android/settings/sound/
DMediaOutputPreferenceControllerTest.java113 private MediaSessionManager mMediaSessionManager; field in MediaOutputPreferenceControllerTest
151 doReturn(mMediaSessionManager).when(mContext).getSystemService(MediaSessionManager.class); in setUp()
152 when(mMediaSessionManager.getActiveSessions(any())).thenReturn(mMediaControllers); in setUp()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/audio_util/
DMediaPlayerListTest.java79 MediaSessionManager mMediaSessionManager = in setUp() local
84 .thenReturn(mMediaSessionManager); in setUp()
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/
DRemoteVolumeGroupControllerTest.java84 private MediaSessionManager mMediaSessionManager; field in RemoteVolumeGroupControllerTest
100 doReturn(mMediaSessionManager).when(mContext).getSystemService( in setUp()