/packages/apps/Settings/tests/robotests/src/com/android/settings/media/ |
D | MediaOutputUtilsTest.java | 29 import android.media.session.MediaController; 50 private MediaController mMediaController; 53 private List<MediaController> mMediaControllers = new ArrayList<>(); 55 private MediaController.PlaybackInfo mPlaybackInfo; 80 mPlaybackInfo = new MediaController.PlaybackInfo( in getActiveLocalMediaController_remoteMediaPlaying_returnNull() 81 MediaController.PlaybackInfo.PLAYBACK_TYPE_REMOTE, in getActiveLocalMediaController_remoteMediaPlaying_returnNull() 99 mPlaybackInfo = new MediaController.PlaybackInfo( in getActiveLocalMediaController_localMediaStopped_returnNull() 100 MediaController.PlaybackInfo.PLAYBACK_TYPE_LOCAL, in getActiveLocalMediaController_localMediaStopped_returnNull() 119 final MediaController.PlaybackInfo playbackInfo = new MediaController.PlaybackInfo( in getActiveLocalMediaController_bothHaveRemoteMediaAndLocalMedia_returnNull() 120 MediaController.PlaybackInfo.PLAYBACK_TYPE_REMOTE, in getActiveLocalMediaController_bothHaveRemoteMediaAndLocalMedia_returnNull() [all …]
|
D | MediaOutputIndicatorWorkerTest.java | 36 import android.media.session.MediaController; 76 private MediaController mMediaController; 84 private List<MediaController> mMediaControllers = new ArrayList<>(); 86 private MediaController.PlaybackInfo mPlaybackInfo; 213 mPlaybackInfo = new MediaController.PlaybackInfo( in initPlayback() 214 MediaController.PlaybackInfo.PLAYBACK_TYPE_LOCAL, in initPlayback() 227 mPlaybackInfo = new MediaController.PlaybackInfo( in getActiveLocalMediaController_remoteMediaPlaying_returnNull() 228 MediaController.PlaybackInfo.PLAYBACK_TYPE_REMOTE, in getActiveLocalMediaController_remoteMediaPlaying_returnNull() 246 mPlaybackInfo = new MediaController.PlaybackInfo( in getActiveLocalMediaController_localMediaStopped_returnNull() 247 MediaController.PlaybackInfo.PLAYBACK_TYPE_LOCAL, in getActiveLocalMediaController_localMediaStopped_returnNull() [all …]
|
D | MediaOutputIndicatorSliceTest.java | 37 import android.media.session.MediaController; 90 private MediaController mMediaController;
|
/packages/apps/Bluetooth/src/com/android/bluetooth/audio_util/mockable/ |
D | MediaController.java | 42 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() 134 public android.media.session.MediaController.PlaybackInfo getPlaybackInfo() { in getPlaybackInfo() 217 public boolean controlsSameSession(MediaController other) { in controlsSameSession() 224 public boolean controlsSameSession(android.media.session.MediaController other) { in controlsSameSession() [all …]
|
D | MediaControllerFactory.java | 31 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()
|
D | MediaPlayerWrapperFactory.java | 33 static MediaPlayerWrapper wrap(Context context, MediaController controller, Looper looper) { in wrap()
|
/packages/apps/Settings/src/com/android/settings/media/ |
D | MediaOutputUtils.java | 18 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() 71 if (pi.getPlaybackType() == MediaController.PlaybackInfo.PLAYBACK_TYPE_REMOTE) { in getActiveLocalMediaController() 81 if (pi.getPlaybackType() == MediaController.PlaybackInfo.PLAYBACK_TYPE_LOCAL) { in getActiveLocalMediaController()
|
D | MediaOutputIndicatorWorker.java | 26 import android.media.session.MediaController; 86 final MediaController controller = getActiveLocalMediaController(); in onSlicePinned() 129 MediaController getActiveLocalMediaController() { in getActiveLocalMediaController()
|
D | MediaOutputIndicatorSlice.java | 25 import android.media.session.MediaController; 123 final MediaController mediaController = getWorker().getActiveLocalMediaController(); in onNotifyChange()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/audio_util/ |
D | MediaPlayerWrapper.java | 51 private MediaController mMediaController; 86 MediaPlayerWrapper(Context context, MediaController controller, Looper looper) { in MediaPlayerWrapper() 154 MediaController.TransportControls controller = mMediaController.getTransportControls(); in playItemFromQueue() 159 MediaController.TransportControls controller = mMediaController.getTransportControls(); in playCurrent() 164 MediaController.TransportControls controller = mMediaController.getTransportControls(); in stopCurrent() 169 MediaController.TransportControls controller = mMediaController.getTransportControls(); in pauseCurrent() 174 MediaController.TransportControls controller = mMediaController.getTransportControls(); in seekTo() 179 MediaController.TransportControls controller = mMediaController.getTransportControls(); in skipToPrevious() 184 MediaController.TransportControls controller = mMediaController.getTransportControls(); in skipToNext() 285 void updateMediaController(MediaController newController) { in updateMediaController() [all …]
|
D | BrowsedPlayerWrapper.java | 211 MediaController controller = MediaControllerFactory.make(mContext, in playItem() 213 MediaController.TransportControls ctrl = controller.getTransportControls(); in playItem() 325 class MediaPlaybackListener extends MediaController.Callback { 329 private MediaController mController = null; 332 MediaPlaybackListener(Looper looper, MediaController controller) {
|
D | MediaPlayerList.java | 191 List<android.media.session.MediaController> controllers = in init() 194 for (android.media.session.MediaController controller : controllers) { in init() 479 int addMediaPlayer(MediaController controller) { in addMediaPlayer() 520 int addMediaPlayer(android.media.session.MediaController controller) { in addMediaPlayer() 656 List<android.media.session.MediaController> newControllers) { 832 android.media.session.MediaController controller = 833 new android.media.session.MediaController(mContext, token);
|
D | GPMWrapper.java | 33 GPMWrapper(Context context, MediaController controller, Looper looper) { in GPMWrapper()
|
/packages/services/Car/service/src/com/android/car/ |
D | CarMediaService.java | 45 import android.media.session.MediaController; 46 import android.media.session.MediaController.TransportControls; 120 private MediaController mActiveUserMediaController; 244 MediaController mediaController; 599 public void onActiveSessionsChanged(List<MediaController> controllers) { in onActiveSessionsChanged() 608 private class MediaControllerCallback extends MediaController.Callback { 610 private final MediaController mMediaController; 613 private MediaControllerCallback(MediaController mediaController) { in MediaControllerCallback() 654 private void registerCallbacks(List<MediaController> newControllers) { in registerCallbacks() 656 List<MediaController> additions = new ArrayList<>(newControllers.size()); in registerCallbacks() [all …]
|
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/audio_util/ |
D | MediaPlayerWrapperTest.java | 68 @Captor ArgumentCaptor<MediaController.Callback> mControllerCbs; 71 @Mock MediaController mMockController; 225 MediaController mUpdatedController = mock(MediaController.class); in testControllerUpdate() 236 MediaController.Callback controllerCallbacks = mControllerCbs.getValue(); in testControllerUpdate() 261 MediaController.Callback controllerCallbacks = mControllerCbs.getValue(); in testNoQueueMediaUpdates() 323 MediaController.Callback controllerCallbacks = mControllerCbs.getValue(); in testDataOnUpdateNoQueue() 367 MediaController.Callback controllerCallbacks = mControllerCbs.getValue(); in testNullMetadata() 396 MediaController.Callback controllerCallbacks = mControllerCbs.getValue(); in testNullQueue() 446 MediaController.Callback controllerCallbacks = mControllerCbs.getValue(); in testPlaybackStateUpdateSpam() 520 MediaController.Callback controllerCallbacks = mControllerCbs.getValue(); in testIgnorePlaystateNone() [all …]
|
D | BrowserPlayerWrapperTest.java | 64 @Captor ArgumentCaptor<MediaController.Callback> mControllerCb; 284 MediaController mockController = mock(MediaController.class); in testPlayItem() 285 MediaController.TransportControls mockTransport = in testPlayItem() 286 mock(MediaController.TransportControls.class); in testPlayItem() 297 MediaController.Callback controllerCb = mControllerCb.getValue(); in testPlayItem() 321 MediaController mockController = mock(MediaController.class); in testPlayItem_Timeout() 322 MediaController.TransportControls mockTransport = in testPlayItem_Timeout() 323 mock(MediaController.TransportControls.class); in testPlayItem_Timeout()
|
D | MediaPlayerListTest.java | 57 private @Mock MediaController mMockController;
|
/packages/apps/TV/src/com/android/tv/ |
D | MediaSessionWrapper.java | 26 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/apps/Settings/tests/robotests/src/com/android/settings/sound/ |
D | MediaOutputPreferenceControllerTest.java | 44 import android.media.session.MediaController; 115 private MediaController mMediaController; 132 private List<MediaController> mMediaControllers = new ArrayList<>(); 133 private MediaController.PlaybackInfo mPlaybackInfo; 154 mPlaybackInfo = new MediaController.PlaybackInfo( in setUp() 155 MediaController.PlaybackInfo.PLAYBACK_TYPE_LOCAL, in setUp()
|
/packages/apps/TV/src/com/android/tv/dvr/ui/playback/ |
D | DvrPlaybackControlHelper.java | 23 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 {
|
D | DvrPlaybackMediaSessionHelper.java | 24 import android.media.session.MediaController; 174 new MediaController(mActivity, mMediaSession.getSessionToken())); in initializeMediaSession()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/media/ |
D | CarMediaServiceTest.java | 48 import android.media.session.MediaController; 325 List<MediaController> controllers = new ArrayList<>(); in mockPlaybackStateChange() 326 MediaController mockController = mock(MediaController.class); in mockPlaybackStateChange() 334 MediaController.Callback callback = invocation.getArgument(0); in mockPlaybackStateChange()
|
/packages/apps/Gallery/src/com/android/camera/ |
D | MovieViewControl.java | 37 import android.widget.MediaController; 65 private MediaController mMediaController; 99 mMediaController = new MediaController(context); in MovieViewControl()
|
/packages/apps/Settings/src/com/android/settings/sound/ |
D | MediaOutputPreferenceController.java | 23 import android.media.session.MediaController; 49 private MediaController mMediaController;
|
/packages/apps/Car/Radio/src/com/android/car/radio/media/ |
D | TunerSession.java | 23 import android.media.session.MediaController; 135 public MediaController getController() { in getController()
|