Searched refs:newController (Results 1 – 2 of 2) sorted by relevance
195 MediaControllerCompat newController = mock(MediaControllerCompat.class); in testChangeMediaSource_consistentController() local198 doNothing().when(newController).registerCallback(newCallbackCaptor.capture()); in testChangeMediaSource_consistentController()203 when(newController.getMetadata()).thenReturn(newMetadata); in testChangeMediaSource_consistentController()204 when(newController.getPlaybackState()).thenReturn(newPlaybackState); in testChangeMediaSource_consistentController()209 assertThat(mPlaybackViewModel.getMediaController()).isSameAs(newController); in testChangeMediaSource_consistentController()220 assertThat(mPlaybackViewModel.getMediaController()).isSameAs(newController); in testChangeMediaSource_consistentController()227 mMediaControllerLiveData.setValue(newController); in testChangeMediaSource_consistentController()
243 void updateMediaController(MediaController newController) { in updateMediaController() argument244 if (newController == mMediaController) return; in updateMediaController()246 mMediaController = newController; in updateMediaController()