/packages/apps/Car/libs/car-media-common/src/com/android/car/media/common/playback/ |
D | PlaybackViewModel.java | 213 return mMediaControllerCallback.mMediaController; in getMediaController() 224 private MediaControllerCompat mMediaController; field in PlaybackViewModel.MediaControllerCallback 229 if (mMediaController == controller) { in onMediaControllerChanged() 234 if (mMediaController != null) { in onMediaControllerChanged() 235 mMediaController.unregisterCallback(this); in onMediaControllerChanged() 240 mMediaController = controller; in onMediaControllerChanged() 243 if (mMediaController != null) { in onMediaControllerChanged() 244 mMediaController.registerCallback(this); in onMediaControllerChanged() 249 onMetadataChanged(mMediaController.getMetadata()); in onMediaControllerChanged() 250 onPlaybackStateChanged(mMediaController.getPlaybackState()); in onMediaControllerChanged() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/ |
D | RemoteVolumePreferenceControllerTest.java | 54 private MediaController mMediaController; field in RemoteVolumePreferenceControllerTest 73 mActiveSessions.add(mMediaController); in setUp() 82 when(mMediaController.getPlaybackInfo()).thenReturn(mPlaybackInfo); in setUp() 83 when(mMediaController.getSessionToken()).thenReturn(mToken); in setUp() 88 when(mMediaController.getPlaybackInfo()).thenReturn( in getActiveRemoteToken_containRemoteMedia_returnToken() 96 when(mMediaController.getPlaybackInfo()).thenReturn( in getActiveRemoteToken_noRemoteMedia_returnNull() 122 mController.mMediaController = null; in getSliderPosition_controllerNull_returnZero() 129 mController.mMediaController = mMediaController; in getSliderPosition_controllerExists_returnValue() 136 mController.mMediaController = null; in getMinValue_controllerNull_returnZero() 143 mController.mMediaController = mMediaController; in getMinValue_controllerExists_returnValue() [all …]
|
/packages/apps/Settings/src/com/android/settings/notification/ |
D | RemoteVolumePreferenceController.java | 50 MediaController mMediaController; field in RemoteVolumePreferenceController 78 final MediaController.PlaybackInfo pi = mMediaController.getPlaybackInfo(); 121 if (mMediaController != null) { in displayPreference() 122 updatePreference(mPreference, mActiveToken, mMediaController.getPlaybackInfo()); in displayPreference() 143 if (mMediaController == null) { in getSliderPosition() 146 final MediaController.PlaybackInfo playbackInfo = mMediaController.getPlaybackInfo(); in getSliderPosition() 155 if (mMediaController == null) { in setSliderPosition() 158 mMediaController.setVolumeTo(position, 0); in setSliderPosition() 167 if (mMediaController == null) { in getMax() 170 final MediaController.PlaybackInfo playbackInfo = mMediaController.getPlaybackInfo(); in getMax() [all …]
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/notification/ |
D | RemoteVolumePreferenceController.java | 51 MediaController mMediaController; field in RemoteVolumePreferenceController 79 final MediaController.PlaybackInfo pi = mMediaController.getPlaybackInfo(); 111 if (mMediaController != null) { in displayPreference() 112 updatePreference(mPreference, mActiveToken, mMediaController.getPlaybackInfo()); in displayPreference() 133 if (mMediaController == null) { in getSliderPosition() 136 final MediaController.PlaybackInfo playbackInfo = mMediaController.getPlaybackInfo(); in getSliderPosition() 145 if (mMediaController == null) { in setSliderPosition() 148 mMediaController.setVolumeTo(position, 0); in setSliderPosition() 157 if (mMediaController == null) { in getMaxSteps() 160 final MediaController.PlaybackInfo playbackInfo = mMediaController.getPlaybackInfo(); in getMaxSteps() [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcp/ |
D | MediaPlayerWrapper.java | 49 private MediaController mMediaController; field in MediaPlayerWrapper 85 mMediaController = controller; in MediaPlayerWrapper() 100 mMediaController = null; in cleanup() 109 return mMediaController.getQueue(); in getQueue() 113 return mMediaController.getMetadata(); in getMetadata() 121 return mMediaController.getPlaybackState(); in getPlaybackState() 125 PlaybackState state = mMediaController.getPlaybackState(); in getActiveQueueID() 151 MediaController.TransportControls controller = mMediaController.getTransportControls(); in playItemFromQueue() 226 mControllerCallbacks = new MediaControllerListener(mMediaController, mLooper); in registerCallback() 244 if (newController == mMediaController) return; in updateMediaController() [all …]
|
/packages/apps/TV/src/com/android/tv/dvr/ui/playback/ |
D | DvrPlaybackControlHelper.java | 67 private final MediaController mMediaController; field in DvrPlaybackControlHelper 80 mMediaController = activity.getMediaController(); in DvrPlaybackControlHelper() 81 mMediaController.registerCallback(mMediaControllerCallback); in DvrPlaybackControlHelper() 82 mTransportControls = mMediaController.getTransportControls(); in DvrPlaybackControlHelper() 177 PlaybackState playbackState = mMediaController.getPlaybackState(); in hasValidMedia() 183 PlaybackState playbackState = mMediaController.getPlaybackState(); in isMediaPlaying() 195 MediaMetadata mediaMetadata = mMediaController.getMetadata(); in getMediaId() 203 MediaMetadata mediaMetadata = mMediaController.getMetadata(); in getMediaTitle() 211 MediaMetadata mediaMetadata = mMediaController.getMetadata(); in getMediaSubtitle() 219 MediaMetadata mediaMetadata = mMediaController.getMetadata(); in getMediaDuration() [all …]
|
/packages/apps/Car/libs/car-media-common/tests/robotests/src/com/android/car/media/common/playback/ |
D | PlaybackViewModelTest.java | 68 public MediaControllerCompat mMediaController; field in PlaybackViewModelTest 86 doNothing().when(mMediaController).registerCallback(mCapturedCallback.capture()); in setUp() 89 mMediaControllerLiveData = dataOf(mMediaController); in setUp() 190 when(mMediaController.getMetadata()).thenReturn(mMediaMetadata); in testChangeMediaSource_consistentController() 191 when(mMediaController.getPlaybackState()).thenReturn(mPlaybackState); in testChangeMediaSource_consistentController() 212 assertThat(mPlaybackViewModel.getMediaController()).isSameAs(mMediaController); in testChangeMediaSource_consistentController() 223 assertThat(mPlaybackViewModel.getMediaController()).isSameAs(mMediaController); in testChangeMediaSource_consistentController()
|
/packages/apps/Car/libs/car-media-common/src/com/android/car/media/common/source/ |
D | MediaSourceViewModel.java | 59 private final MutableLiveData<MediaControllerCompat> mMediaController = dataOf(null); field in MediaSourceViewModel 144 mMediaController.setValue(null); in MediaSourceViewModel() 146 mMediaController.setValue(mInputFactory.getControllerForSession( in MediaSourceViewModel() 150 mMediaController.setValue(null); in MediaSourceViewModel() 203 return mMediaController; in getMediaController()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/panel/ |
D | VolumePanelTest.java | 52 private MediaController mMediaController; field in VolumePanelTest 77 activeSessions.add(mMediaController); in getSlices_hasActiveRemoteToken_containsRemoteMediaUri() 81 when(mMediaController.getPlaybackInfo()).thenReturn(new MediaController.PlaybackInfo( in getSlices_hasActiveRemoteToken_containsRemoteMediaUri() 83 when(mMediaController.getSessionToken()).thenReturn(new MediaSession.Token(mStub)); in getSlices_hasActiveRemoteToken_containsRemoteMediaUri()
|
/packages/apps/TV/src/com/android/tv/ |
D | MediaSessionWrapper.java | 85 private MediaController mMediaController; field in MediaSessionWrapper 257 mMediaController = new MediaController(mContext, mMediaSession.getSessionToken()); in initMediaController() 258 ((Activity) mContext).setMediaController(mMediaController); in initMediaController() 259 mMediaController.registerCallback(mMediaControllerCallback); in initMediaController() 264 mMediaController.unregisterCallback(mMediaControllerCallback); in unregisterMediaControllerCallback()
|
/packages/apps/Gallery/src/com/android/camera/ |
D | MovieViewControl.java | 65 private MediaController mMediaController; field in MovieViewControl 99 mMediaController = new MediaController(context); in MovieViewControl() 100 mVideoView.setMediaController(mMediaController); in MovieViewControl() 225 mMediaController.show(0); in onResume()
|
/packages/services/Car/service/src/com/android/car/ |
D | CarMediaService.java | 433 private final MediaController mMediaController; field in CarMediaService.MediaControllerCallback 437 mMediaController = mediaController; in MediaControllerCallback() 443 mMediaController.registerCallback(this); in register() 447 mMediaController.unregisterCallback(this); in unregister() 454 ComponentName mediaSource = getMediaSource(mMediaController.getPackageName(), in onPlaybackStateChanged() 455 getClassName(mMediaController)); in onPlaybackStateChanged()
|