Home
last modified time | relevance | path

Searched refs:newController (Results 1 – 2 of 2) sorted by relevance

/packages/apps/Car/libs/car-media-common/tests/robotests/src/com/android/car/media/common/playback/
DPlaybackViewModelTest.java195 MediaControllerCompat newController = mock(MediaControllerCompat.class); in testChangeMediaSource_consistentController() local
198 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()
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcp/
DMediaPlayerWrapper.java243 void updateMediaController(MediaController newController) { in updateMediaController() argument
244 if (newController == mMediaController) return; in updateMediaController()
246 mMediaController = newController; in updateMediaController()