Home
last modified time | relevance | path

Searched refs:mMediaController (Results 1 – 13 of 13) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/slices/
DVolumeSliceHelperTest.java63 private VolumeSeekBarPreferenceController mMediaController; field in VolumeSliceHelperTest
72 mMediaController = new MediaVolumePreferenceController(mContext); in setUp()
78 .putExtra(AudioManager.EXTRA_VOLUME_STREAM_TYPE, mMediaController.getAudioStream()); in setUp()
90 registerIntentToUri(mMediaController); in registerIntentToUri_volumeController_shouldRegisterReceiver()
94 .containsKey((mMediaController.getSliceUri())); in registerIntentToUri_volumeController_shouldRegisterReceiver()
99 registerIntentToUri(mMediaController); in registerIntentToUri_doubleVolumeControllers_shouldRegisterReceiverOnce()
110 registerIntentToUri(mMediaController); in unregisterUri_notFinalUri_shouldNotUnregisterReceiver()
113 VolumeSliceHelper.unregisterUri(mContext, mMediaController.getSliceUri()); in unregisterUri_notFinalUri_shouldNotUnregisterReceiver()
117 .doesNotContainKey((mMediaController.getSliceUri())); in unregisterUri_notFinalUri_shouldNotUnregisterReceiver()
122 registerIntentToUri(mMediaController); in unregisterUri_finalUri_shouldUnregisterReceiver()
[all …]
/packages/apps/Car/libs/car-media-common/src/com/android/car/media/common/playback/
DPlaybackViewModel.java230 return mMediaControllerCallback.mMediaController; in getMediaController()
242 private MediaControllerCompat mMediaController; field in PlaybackViewModel.MediaControllerCallback
255 if (mMediaController != null) { in onMediaBrowsingStateChanged()
261 mMediaController.unregisterCallback(this); in onMediaBrowsingStateChanged()
278 mMediaController = mediaController; in setMediaController()
281 if (mMediaController != null) { in setMediaController()
282 mMediaController.registerCallback(this); in setMediaController()
287 onMetadataChanged(mMediaController.getMetadata()); in setMediaController()
288 onPlaybackStateChanged(mMediaController.getPlaybackState()); in setMediaController()
289 onQueueChanged(mMediaController.getQueue()); in setMediaController()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/media/
DMediaOutputIndicatorWorkerTest.java76 private MediaController mMediaController; field in MediaOutputIndicatorWorkerTest
97 mMediaControllers.add(mMediaController); in setUp()
108 when(mMediaController.getPlaybackInfo()).thenReturn(mPlaybackInfo); in onSlicePinned_registerCallback()
109 when(mMediaController.getPlaybackState()).thenReturn(mPlaybackState); in onSlicePinned_registerCallback()
110 when(mMediaController.getPackageName()).thenReturn(TEST_PACKAGE_NAME); in onSlicePinned_registerCallback()
125 when(mMediaController.getPlaybackInfo()).thenReturn(mPlaybackInfo); in onSlicePinned_packageUpdated_checkPackageName()
126 when(mMediaController.getPlaybackState()).thenReturn(mPlaybackState); in onSlicePinned_packageUpdated_checkPackageName()
127 when(mMediaController.getPackageName()).thenReturn(TEST_PACKAGE_NAME); in onSlicePinned_packageUpdated_checkPackageName()
135 when(mMediaController.getPackageName()).thenReturn(TEST_PACKAGE_NAME2); in onSlicePinned_packageUpdated_checkPackageName()
172 when(mMediaController.getPlaybackInfo()).thenReturn(mPlaybackInfo); in onSliceUnpinned_unRegisterCallback()
[all …]
DMediaOutputUtilsTest.java50 private MediaController mMediaController; field in MediaOutputUtilsTest
63 mMediaControllers.add(mMediaController); in setUp()
71 when(mMediaController.getPlaybackInfo()).thenReturn(mPlaybackInfo); in getActiveLocalMediaController_localMediaPlaying_returnController()
72 when(mMediaController.getPlaybackState()).thenReturn(mPlaybackState); in getActiveLocalMediaController_localMediaPlaying_returnController()
75 mMediaController); in getActiveLocalMediaController_localMediaPlaying_returnController()
91 when(mMediaController.getPlaybackInfo()).thenReturn(mPlaybackInfo); in getActiveLocalMediaController_remoteMediaPlaying_returnNull()
92 when(mMediaController.getPlaybackState()).thenReturn(mPlaybackState); in getActiveLocalMediaController_remoteMediaPlaying_returnNull()
110 when(mMediaController.getPlaybackInfo()).thenReturn(mPlaybackInfo); in getActiveLocalMediaController_localMediaStopped_returnNull()
111 when(mMediaController.getPlaybackState()).thenReturn(mPlaybackState); in getActiveLocalMediaController_localMediaStopped_returnNull()
132 mMediaControllers.add(mMediaController); in getActiveLocalMediaController_bothHaveRemoteMediaAndLocalMedia_returnNull()
[all …]
DMediaOutputIndicatorSliceTest.java90 private MediaController mMediaController; field in MediaOutputIndicatorSliceTest
139 doReturn(mMediaController).when(sMediaOutputIndicatorWorker) in getSlice_withConnectedDevice_verifyMetadata()
210 when(mMediaController.getSessionToken()).thenReturn(mToken); in onNotifyChange_withActiveLocalMedia_verifyIntentExtra()
211 when(mMediaController.getPackageName()).thenReturn(TEST_PACKAGE_NAME); in onNotifyChange_withActiveLocalMedia_verifyIntentExtra()
212 doReturn(mMediaController).when(sMediaOutputIndicatorWorker) in onNotifyChange_withActiveLocalMedia_verifyIntentExtra()
233 doReturn(mMediaController).when(sMediaOutputIndicatorWorker) in onNotifyChange_withoutActiveLocalMedia_verifyIntentExtra()
258 doReturn(mMediaController).when(sMediaOutputIndicatorWorker) in isVisible_allConditionMatched_returnTrue()
/packages/apps/Bluetooth/src/com/android/bluetooth/audio_util/
DMediaPlayerWrapper.java51 private MediaController mMediaController; field in MediaPlayerWrapper
88 mMediaController = controller; in MediaPlayerWrapper()
103 mMediaController = null; in cleanup()
112 return mMediaController.getQueue(); in getQueue()
116 return mMediaController.getMetadata(); in getMetadata()
124 return mMediaController.getPlaybackState(); in getPlaybackState()
128 PlaybackState state = mMediaController.getPlaybackState(); in getActiveQueueID()
154 MediaController.TransportControls controller = mMediaController.getTransportControls(); in playItemFromQueue()
159 MediaController.TransportControls controller = mMediaController.getTransportControls(); in playCurrent()
164 MediaController.TransportControls controller = mMediaController.getTransportControls(); in stopCurrent()
[all …]
/packages/apps/TV/src/com/android/tv/dvr/ui/playback/
DDvrPlaybackControlHelper.java67 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/Settings/src/com/android/settings/sound/
DMediaOutputPreferenceController.java49 private MediaController mMediaController; field in MediaOutputPreferenceController
53 mMediaController = MediaOutputUtils.getActiveLocalMediaController(context.getSystemService( in MediaOutputPreferenceController()
61 if (!Utils.isAudioModeOngoingCall(mContext) && mMediaController != null) { in displayPreference()
73 if (mMediaController == null) { in updateState()
98 mMediaController.getPackageName()))); in updateState()
140 mMediaController.getPackageName()) in handlePreferenceTreeClick()
142 mMediaController.getSessionToken())); in handlePreferenceTreeClick()
/packages/apps/TV/src/com/android/tv/
DMediaSessionWrapper.java85 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/Settings/tests/robotests/src/com/android/settings/sound/
DMediaOutputPreferenceControllerTest.java115 private MediaController mMediaController; field in MediaOutputPreferenceControllerTest
153 when(mMediaController.getPackageName()).thenReturn(TEST_PACKAGE_NAME); in setUp()
164 when(mMediaController.getPlaybackInfo()).thenReturn(mPlaybackInfo); in setUp()
165 when(mMediaController.getPlaybackState()).thenReturn(mPlaybackState); in setUp()
166 mMediaControllers.add(mMediaController); in setUp()
276 when(mMediaController.getPlaybackState()).thenReturn(mPlaybackState); in updateState_noActiveLocalPlayback_noTitle()
/packages/apps/Car/libs/car-media-common/tests/robotests/src/com/android/car/media/common/playback/
DPlaybackViewModelTest.java79 public MediaControllerCompat mMediaController; field in PlaybackViewModelTest
97 mBrowserToController.put(mMediaBrowser, mMediaController); in setUp()
98 doNothing().when(mMediaController).registerCallback(mCapturedCallback.capture()); in setUp()
224 .isSameInstanceAs(mMediaController); in testChangeMediaSource_consistentController()
236 .isSameInstanceAs(mMediaController); in testChangeMediaSource_consistentController()
/packages/apps/Gallery/src/com/android/camera/
DMovieViewControl.java65 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/
DCarMediaService.java610 private final MediaController mMediaController; field in CarMediaService.MediaControllerCallback
614 mMediaController = mediaController; in MediaControllerCallback()
620 mMediaController.registerCallback(this); in register()
624 mMediaController.unregisterCallback(this); in unregister()
631 ComponentName mediaSource = getMediaSource(mMediaController.getPackageName(), in onPlaybackStateChanged()
632 getClassName(mMediaController)); in onPlaybackStateChanged()