Home
last modified time | relevance | path

Searched refs:MediaController (Results 1 – 25 of 38) sorted by relevance

12

/packages/apps/Settings/tests/robotests/src/com/android/settings/media/
DMediaOutputUtilsTest.java29 import android.media.session.MediaController;
50 private MediaController mMediaController;
53 private List<MediaController> mMediaControllers = new ArrayList<>();
55 private MediaController.PlaybackInfo mPlaybackInfo;
91 mPlaybackInfo = new MediaController.PlaybackInfo( in getActiveLocalMediaController_remoteMediaPlaying_returnNull()
92 MediaController.PlaybackInfo.PLAYBACK_TYPE_REMOTE, in getActiveLocalMediaController_remoteMediaPlaying_returnNull()
110 mPlaybackInfo = new MediaController.PlaybackInfo( in getActiveLocalMediaController_localMediaStopped_returnNull()
111 MediaController.PlaybackInfo.PLAYBACK_TYPE_LOCAL, in getActiveLocalMediaController_localMediaStopped_returnNull()
129 mPlaybackInfo = new MediaController.PlaybackInfo( in getActiveLocalMediaController_localMediaNone_returnNull()
130 MediaController.PlaybackInfo.PLAYBACK_TYPE_LOCAL, in getActiveLocalMediaController_localMediaNone_returnNull()
[all …]
DMediaOutputIndicatorWorkerTest.java36 import android.media.session.MediaController;
81 private MediaController mMediaController;
91 private List<MediaController> mMediaControllers = new ArrayList<>();
93 private MediaController.PlaybackInfo mPlaybackInfo;
224 mPlaybackInfo = new MediaController.PlaybackInfo( in initPlayback()
225 MediaController.PlaybackInfo.PLAYBACK_TYPE_LOCAL, in initPlayback()
238 mPlaybackInfo = new MediaController.PlaybackInfo( in getActiveLocalMediaController_remoteMediaPlaying_returnNull()
239 MediaController.PlaybackInfo.PLAYBACK_TYPE_REMOTE, in getActiveLocalMediaController_remoteMediaPlaying_returnNull()
257 mPlaybackInfo = new MediaController.PlaybackInfo( in getActiveLocalMediaController_localMediaStopped_returnNull()
258 MediaController.PlaybackInfo.PLAYBACK_TYPE_LOCAL, in getActiveLocalMediaController_localMediaStopped_returnNull()
[all …]
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/audio_util/mockable/
DMediaController.java42 public class MediaController { class
43 @NonNull public android.media.session.MediaController mDelegate;
44 public android.media.session.MediaController.TransportControls mTransportDelegate;
47 MediaController(@NonNull android.media.session.MediaController delegate) { in MediaController() method in MediaController
53 MediaController(Context context, MediaSession.Token token) { in MediaController() method in MediaController
54 mDelegate = new android.media.session.MediaController(context, token); in MediaController()
59 public android.media.session.MediaController getWrappedInstance() { in getWrappedInstance()
115 public android.media.session.MediaController.PlaybackInfo getPlaybackInfo() { in getPlaybackInfo()
175 public boolean controlsSameSession(MediaController other) { in controlsSameSession()
180 public boolean controlsSameSession(android.media.session.MediaController other) { in controlsSameSession()
[all …]
DMediaControllerFactory.java31 private static MediaController sInjectedController;
33 static MediaController wrap(android.media.session.MediaController delegate) { in wrap()
35 return (delegate != null) ? new MediaController(delegate) : null; in wrap()
38 static MediaController make(Context context, MediaSession.Token token) { in make()
40 return new MediaController(context, token); in make()
44 static void inject(MediaController controller) { in inject()
/packages/apps/Car/SystemUI/src/com/android/systemui/car/ndo/
DMediaSessionHelper.java20 import android.media.session.MediaController;
37 public class MediaSessionHelper extends MediaController.Callback {
39 private final MutableLiveData<List<MediaController>> mLiveData = new MutableLiveData<>();
43 final List<MediaController> mMediaControllersList = new ArrayList<>();
66 public LiveData<List<MediaController>> getActiveMediaSessions() { in getActiveMediaSessions()
84 private void onMediaSessionChange(List<MediaController> mediaControllers) { in onMediaSessionChange()
90 List<MediaController> activeMediaControllers = new ArrayList<>(); in onMediaSessionChange()
92 for (MediaController mediaController : mediaControllers) { in onMediaSessionChange()
112 private void registerForPlaybackChanges(MediaController controller) { in registerForPlaybackChanges()
122 for (MediaController mediaController : mMediaControllersList) { in unregisterPlaybackChanges()
DBlockerViewModel.java20 import android.media.session.MediaController;
134 private boolean isBlockingActiveMediaSession(List<MediaController> mediaControllers) { in isBlockingActiveMediaSession()
140 for (MediaController mediaController : mediaControllers) { in isBlockingActiveMediaSession()
/packages/apps/Settings/src/com/android/settings/media/
DMediaOutputUtils.java18 import android.media.session.MediaController;
45 public static MediaController getActiveLocalMediaController( in getActiveLocalMediaController()
48 MediaController localController = null; in getActiveLocalMediaController()
50 for (MediaController controller : mediaSessionManager.getActiveSessions(null)) { in getActiveLocalMediaController()
51 final MediaController.PlaybackInfo pi = controller.getPlaybackInfo(); in getActiveLocalMediaController()
73 if (pi.getPlaybackType() == MediaController.PlaybackInfo.PLAYBACK_TYPE_REMOTE) { in getActiveLocalMediaController()
83 if (pi.getPlaybackType() == MediaController.PlaybackInfo.PLAYBACK_TYPE_LOCAL) { in getActiveLocalMediaController()
DMediaOutputIndicatorWorker.java26 import android.media.session.MediaController;
87 final MediaController controller = getActiveLocalMediaController(); in onSlicePinned()
129 public MediaController getActiveLocalMediaController() { in getActiveLocalMediaController()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/audio_util/
DMediaPlayerWrapperTest.java71 @Captor ArgumentCaptor<MediaController.Callback> mControllerCbs;
76 @Mock MediaController mMockController;
225 MediaController mUpdatedController = mock(MediaController.class); in testControllerUpdate()
236 MediaController.Callback controllerCallbacks = mControllerCbs.getValue(); in testControllerUpdate()
260 MediaController.Callback controllerCallbacks = mControllerCbs.getValue(); in testNoQueueMediaUpdates()
321 MediaController.Callback controllerCallbacks = mControllerCbs.getValue(); in testDataOnUpdateNoQueue()
364 MediaController.Callback controllerCallbacks = mControllerCbs.getValue(); in testNullMetadata()
394 MediaController.Callback controllerCallbacks = mControllerCbs.getValue(); in testNullPlayback()
425 MediaController.Callback controllerCallbacks = mControllerCbs.getValue(); in testNullQueue()
504 MediaController.Callback controllerCallbacks = mControllerCbs.getValue(); in testPlaybackStateUpdateSpam()
[all …]
DBrowserPlayerWrapperTest.java66 @Captor ArgumentCaptor<MediaController.Callback> mControllerCb;
289 MediaController mockController = mock(MediaController.class); in testPlayItem()
290 MediaController.TransportControls mockTransport = in testPlayItem()
291 mock(MediaController.TransportControls.class); in testPlayItem()
302 MediaController.Callback controllerCb = mControllerCb.getValue(); in testPlayItem()
326 MediaController mockController = mock(MediaController.class); in testPlayItem_Timeout()
327 MediaController.TransportControls mockTransport = in testPlayItem_Timeout()
328 mock(MediaController.TransportControls.class); in testPlayItem_Timeout()
DMediaPlayerListTest.java58 private @Mock MediaController mMockController;
211 ArrayList<android.media.session.MediaController> currentControllers = in testSkipGlobalPrioritySession()
212 new ArrayList<android.media.session.MediaController>( in testSkipGlobalPrioritySession()
DGPMWrapperTest.java45 private MediaController mMediaController;
50 mMediaController = mock(MediaController.class); in setUp()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/audio_util/
DMediaPlayerWrapper.java51 private MediaController mMediaController;
88 MediaPlayerWrapper(Context context, MediaController controller, Looper looper) { in MediaPlayerWrapper()
182 MediaController.TransportControls controller = mMediaController.getTransportControls(); in playItemFromQueue()
187 MediaController.TransportControls controller = mMediaController.getTransportControls(); in playCurrent()
192 MediaController.TransportControls controller = mMediaController.getTransportControls(); in stopCurrent()
197 MediaController.TransportControls controller = mMediaController.getTransportControls(); in pauseCurrent()
202 MediaController.TransportControls controller = mMediaController.getTransportControls(); in seekTo()
207 MediaController.TransportControls controller = mMediaController.getTransportControls(); in fastForward()
212 MediaController.TransportControls controller = mMediaController.getTransportControls(); in rewind()
217 MediaController.TransportControls controller = mMediaController.getTransportControls(); in skipToPrevious()
[all …]
DBrowsedPlayerWrapper.java212 MediaController controller = in playItem()
215 MediaController.TransportControls ctrl = controller.getTransportControls(); in playItem()
349 class MediaPlaybackListener extends MediaController.Callback {
353 private MediaController mController = null;
356 MediaPlaybackListener(Looper looper, MediaController controller) {
/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/ndo/
DBlockerViewModelTest.java27 import android.media.session.MediaController;
75 private LiveData<List<MediaController>> mMediaLiveData;
130 List<MediaController> mediaControllers = new ArrayList<>(); in testNoMedia_emitsNone()
141 List<MediaController> mediaControllers = new ArrayList<>(); in testNotBlockedMedia_emitsNone()
142 MediaController mediaController = mock(MediaController.class); in testNotBlockedMedia_emitsNone()
155 List<MediaController> mediaControllers = new ArrayList<>(); in testBlockedMedia_emitsMedia()
156 MediaController mediaController = mock(MediaController.class); in testBlockedMedia_emitsMedia()
DMediaSessionHelperTest.java30 import android.media.session.MediaController;
61 private MediaController mActiveMediaController;
62 private MediaController mInactiveMediaController;
76 mActiveMediaController = mock(MediaController.class); in setup()
81 mInactiveMediaController = mock(MediaController.class); in setup()
86 List<MediaController> mediaControllers = new ArrayList<>(); in setup()
123 mMediaSessionHelper.mMediaControllersList.add(mock(MediaController.class)); in onCleanup_removesListeners()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/media/
DMultidisplayMediaFragment.java35 import android.media.session.MediaController;
116 private final SparseArray<MediaController> mMediaControllers = new SparseArray<>(MAX_NUM_USERS);
270 MediaController mediaController = mMediaControllers.get(mSelectedUserId); in refreshUi()
397 MediaController mediaController = mMediaControllers.get(mSelectedUserId); in onClickPauseResume()
402 MediaController.TransportControls transportControls = in onClickPauseResume()
424 MediaController mediaController = mMediaControllers.get(mSelectedUserId); in onClickNext()
429 MediaController.TransportControls transportControls = in onClickNext()
444 MediaController mediaController = mMediaControllers.get(mSelectedUserId); in onClickPrev()
449 MediaController.TransportControls transportControls = in onClickPrev()
575 MediaController mediaController = new MediaController( in onConnected()
[all …]
/packages/apps/TV/src/com/android/tv/
DMediaSessionWrapper.java26 import android.media.session.MediaController;
72 private final MediaController.Callback mMediaControllerCallback =
73 new MediaController.Callback() {
85 private MediaController mMediaController;
251 MediaController.Callback getMediaControllerCallback() { in getMediaControllerCallback()
257 mMediaController = new MediaController(mContext, mMediaSession.getSessionToken()); in initMediaController()
/packages/services/Car/service/src/com/android/car/
DCarMediaService.java62 import android.media.session.MediaController;
63 import android.media.session.MediaController.TransportControls;
301 MediaController mediaController;
691 MediaController mediaController = userMediaContext.mActiveMediaController; in dump()
1037 MediaController mediaController; in stopAndUnregisterCallback()
1095 private MediaController mActiveMediaController;
1111 private final MediaController.Callback mMediaControllerCallback;
1125 private final class ActiveMediaControllerCallback extends MediaController.Callback {
1147 public void onActiveSessionsChanged(List<MediaController> controllers) { in onActiveSessionsChanged()
1153 ArrayList<MediaController> userControllers = new ArrayList<>(controllers.size()); in onActiveSessionsChanged()
[all …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/media/
DCarMediaServiceTest.java64 import android.media.session.MediaController;
65 import android.media.session.MediaController.TransportControls;
289 MediaController mockController = mock(MediaController.class); in testSetMediaSource_settingPlaybackSourcePausesAndStopsPreviousMedia()
809 MediaController mockController1 = createMockMediaController(/* dispatchResult== */ false); in testMediaKeyEventListenerOnKeyEvent_stopsAfterFirstDelivery()
810 MediaController mockController2 = createMockMediaController(/* dispatchResult== */ true); in testMediaKeyEventListenerOnKeyEvent_stopsAfterFirstDelivery()
811 MediaController mockController3 = createMockMediaController(/* dispatchResult== */ true); in testMediaKeyEventListenerOnKeyEvent_stopsAfterFirstDelivery()
885 private MediaController createMockMediaController(boolean dispatchResult) { in createMockMediaController()
886 MediaController mockController = mock(MediaController.class); in createMockMediaController()
900 List<MediaController> controllers = new ArrayList<>(); in mockPlaybackStateChange()
901 MediaController mockController = mock(MediaController.class); in mockPlaybackStateChange()
[all …]
/packages/apps/Settings/src/com/android/settings/connecteddevice/audiosharing/audiostreams/
DMediaControlHelper.java20 import android.media.session.MediaController;
64 for (MediaController controller : mMediaSessionManager.getActiveSessions(null)) { in start()
109 MediaController controller, in shouldStopMedia()
/packages/apps/TV/src/com/android/tv/dvr/ui/playback/
DDvrPlaybackControlHelper.java23 import android.media.session.MediaController;
24 import android.media.session.MediaController.TransportControls;
67 private final MediaController mMediaController;
68 private final MediaController.Callback mMediaControllerCallback = new MediaControllerCallback();
391 private class MediaControllerCallback extends MediaController.Callback {
/packages/services/Car/car_product/distant_display/apps/CarDistantDisplaySystemUI/src/com/android/systemui/car/distantdisplay/common/
DDistantDisplayController.java26 import android.media.session.MediaController;
185 Optional<MediaController> optionalMediaController = in getMetadata()
189 MediaController mediaController = optionalMediaController.get(); in getMetadata()
262 private Optional<MediaController> getMediaControllerFromActiveMediaSession() {
/packages/apps/Gallery/src/com/android/camera/
DMovieViewControl.java37 import android.widget.MediaController;
65 private MediaController mMediaController;
99 mMediaController = new MediaController(context); in MovieViewControl()
/packages/apps/Car/Launcher/libs/appgrid/lib/src/com/android/car/carlauncher/datasources/
DUXRestrictionDataSource.kt23 import android.media.session.MediaController in <lambda>()
122 val filterActiveMediaPackages: (List<MediaController>) -> List<String> = in getActiveMediaPlaybackSessions()

12