/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 | 46 private MediaController mMediaController; field in MediaPlayerWrapper 99 newWrapper.mMediaController = controller; in wrap() 112 mMediaController = null; in cleanup() 121 return mMediaController.getQueue(); in getQueue() 125 return mMediaController.getMetadata(); in getMetadata() 133 return mMediaController.getPlaybackState(); in getPlaybackState() 137 if (mMediaController.getPlaybackState() == null) return -1; in getActiveQueueID() 138 return mMediaController.getPlaybackState().getActiveQueueItemId(); in getActiveQueueID() 162 MediaController.TransportControls controller = mMediaController.getTransportControls(); in playItemFromQueue() 237 mControllerCallbacks = new MediaControllerListener(mMediaController, mLooper); in registerCallback() [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/UniversalMediaPlayer/java/com/android/pump/activity/ |
D | VideoPlayerActivity.java | 49 private MediaController mMediaController; field in VideoPlayerActivity 78 if (mMediaController != null) { in onSaveInstanceState() 79 outState.putLong(SAVED_POSITION_KEY, mMediaController.getCurrentPosition()); in onSaveInstanceState() 87 if (mMediaController == null) { in onAttachedToWindow() 89 mMediaController = new MediaController(this, token, Executors.uiThreadExecutor(), in onAttachedToWindow() 96 if (mMediaController != null) { in onDetachedFromWindow() 97 mMediaController.close(); in onDetachedFromWindow() 98 mMediaController = null; in onDetachedFromWindow()
|
/packages/apps/Car/libs/car-media-common/src/com/android/car/media/common/source/ |
D | MediaSourceViewModel.java | 63 private final MutableLiveData<MediaControllerCompat> mMediaController = dataOf(null); field in MediaSourceViewModel 153 mMediaController.setValue(null); in MediaSourceViewModel() 155 mMediaController.setValue(mInputFactory.getControllerForSession( in MediaSourceViewModel() 159 mMediaController.setValue(null); in MediaSourceViewModel() 215 return mMediaController; in getMediaController() 226 mMediaController.setValue(null); in updateModelState()
|
/packages/apps/Car/libs/car-media-common/tests/robotests/src/com/android/car/media/common/playback/ |
D | PlaybackViewModelTest.java | 71 public MediaControllerCompat mMediaController; field in PlaybackViewModelTest 89 doNothing().when(mMediaController).registerCallback(mCapturedCallback.capture()); in setUp() 92 mMediaControllerLiveData = dataOf(mMediaController); in setUp() 193 when(mMediaController.getMetadata()).thenReturn(mMediaMetadata); in testChangeMediaSource_consistentController() 194 when(mMediaController.getPlaybackState()).thenReturn(mPlaybackState); in testChangeMediaSource_consistentController() 215 assertThat(mPlaybackViewModel.getMediaController()).isSameAs(mMediaController); in testChangeMediaSource_consistentController() 226 assertThat(mPlaybackViewModel.getMediaController()).isSameAs(mMediaController); in testChangeMediaSource_consistentController()
|
/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 | 84 private MediaController mMediaController; field in MediaSessionWrapper 256 mMediaController = new MediaController(mContext, mMediaSession.getSessionToken()); in initMediaController() 257 ((Activity) mContext).setMediaController(mMediaController); in initMediaController() 258 mMediaController.registerCallback(mMediaControllerCallback); in initMediaController() 263 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 | 274 private final MediaController mMediaController; field in CarMediaService.MediaControllerCallback 278 mMediaController = mediaController; in MediaControllerCallback() 284 mMediaController.registerCallback(this); in register() 288 mMediaController.unregisterCallback(this); in unregister() 295 setPrimaryMediaSource(mMediaController.getPackageName()); in onPlaybackStateChanged()
|