Home
last modified time | relevance | path

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

12

/packages/apps/Bluetooth/src/com/android/bluetooth/avrcp/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()
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 …]
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()
DMediaPlayerWrapperFactory.java32 static MediaPlayerWrapper wrap(MediaController controller, Looper looper) { in wrap()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/notification/
DRemoteVolumePreferenceController.java20 import android.media.session.MediaController;
51 MediaController mMediaController;
57 MediaController.PlaybackInfo pi) {
79 final MediaController.PlaybackInfo pi = mMediaController.getPlaybackInfo();
95 final List<MediaController> controllers = mMediaSessionManager.getActiveSessions(null); in getAvailabilityStatus()
96 for (MediaController mediaController : controllers) { in getAvailabilityStatus()
97 final MediaController.PlaybackInfo pi = mediaController.getPlaybackInfo(); in getAvailabilityStatus()
136 final MediaController.PlaybackInfo playbackInfo = mMediaController.getPlaybackInfo(); in getSliderPosition()
160 final MediaController.PlaybackInfo playbackInfo = mMediaController.getPlaybackInfo(); in getMaxSteps()
190 public static boolean isRemote(MediaController.PlaybackInfo pi) { in isRemote()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/media/
DMediaOutputIndicatorWorkerTest.java37 import android.media.session.MediaController;
77 private MediaController mMediaController;
85 private List<MediaController> mMediaControllers = new ArrayList<>();
87 private MediaController.PlaybackInfo mPlaybackInfo;
215 mPlaybackInfo = new MediaController.PlaybackInfo( in initPlayback()
216 MediaController.PlaybackInfo.PLAYBACK_TYPE_LOCAL, in initPlayback()
229 mPlaybackInfo = new MediaController.PlaybackInfo( in getActiveLocalMediaController_remoteMediaPlaying_returnNull()
230 MediaController.PlaybackInfo.PLAYBACK_TYPE_REMOTE, in getActiveLocalMediaController_remoteMediaPlaying_returnNull()
248 mPlaybackInfo = new MediaController.PlaybackInfo( in getActiveLocalMediaController_localMediaStopped_returnNull()
249 MediaController.PlaybackInfo.PLAYBACK_TYPE_LOCAL, in getActiveLocalMediaController_localMediaStopped_returnNull()
DMediaOutputIndicatorSliceTest.java35 import android.media.session.MediaController;
87 private MediaController mMediaController;
/packages/services/Car/service/src/com/android/car/
DCarMediaService.java39 import android.media.session.MediaController;
40 import android.media.session.MediaController.TransportControls;
114 private MediaController mActiveUserMediaController;
499 public void onActiveSessionsChanged(List<MediaController> controllers) { in onActiveSessionsChanged()
508 private class MediaControllerCallback extends MediaController.Callback {
510 private final MediaController mMediaController;
513 private MediaControllerCallback(MediaController mediaController) { in MediaControllerCallback()
554 private void registerCallbacks(List<MediaController> newControllers) { in registerCallbacks()
556 List<MediaController> additions = new ArrayList<>(newControllers.size()); in registerCallbacks()
560 for (MediaController controller : newControllers) { in registerCallbacks()
[all …]
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/newavrcp/
DBrowserPlayerWrapperTest.java48 @Captor ArgumentCaptor<MediaController.Callback> mControllerCb;
181 MediaController mockController = mock(MediaController.class); in testPlayItem()
182 MediaController.TransportControls mockTransport = in testPlayItem()
183 mock(MediaController.TransportControls.class); in testPlayItem()
194 MediaController.Callback controllerCb = mControllerCb.getValue(); in testPlayItem()
218 MediaController mockController = mock(MediaController.class); in testPlayItem_Timeout()
219 MediaController.TransportControls mockTransport = in testPlayItem_Timeout()
220 mock(MediaController.TransportControls.class); in testPlayItem_Timeout()
DMediaPlayerWrapperTest.java57 @Captor ArgumentCaptor<MediaController.Callback> mControllerCbs;
60 @Mock MediaController mMockController;
190 MediaController mUpdatedController = mock(MediaController.class); in testControllerUpdate()
201 MediaController.Callback controllerCallbacks = mControllerCbs.getValue(); in testControllerUpdate()
226 MediaController.Callback controllerCallbacks = mControllerCbs.getValue(); in testNoQueueMediaUpdates()
288 MediaController.Callback controllerCallbacks = mControllerCbs.getValue(); in testDataOnUpdateNoQueue()
332 MediaController.Callback controllerCallbacks = mControllerCbs.getValue(); in testNullMetadata()
361 MediaController.Callback controllerCallbacks = mControllerCbs.getValue(); in testNullQueue()
411 MediaController.Callback controllerCallbacks = mControllerCbs.getValue(); in testPlaybackStateUpdateSpam()
485 MediaController.Callback controllerCallbacks = mControllerCbs.getValue(); in testIgnorePlaystateNone()
[all …]
/packages/apps/Settings/src/com/android/settings/sound/
DMediaOutputPreferenceController.java23 import android.media.session.MediaController;
50 private MediaController mMediaController;
146 MediaController getActiveLocalMediaController() { in getActiveLocalMediaController()
150 for (MediaController controller : mMediaSessionManager.getActiveSessions(null)) { in getActiveLocalMediaController()
151 final MediaController.PlaybackInfo pi = controller.getPlaybackInfo(); in getActiveLocalMediaController()
159 if (pi.getPlaybackType() == MediaController.PlaybackInfo.PLAYBACK_TYPE_LOCAL in getActiveLocalMediaController()
/packages/apps/Settings/src/com/android/settings/media/
DMediaOutputIndicatorWorker.java26 import android.media.session.MediaController;
86 final MediaController controller = getActiveLocalMediaController(); in onSlicePinned()
129 MediaController getActiveLocalMediaController() { in getActiveLocalMediaController()
133 for (MediaController controller : mMediaSessionManager.getActiveSessions(null)) { in getActiveLocalMediaController()
134 final MediaController.PlaybackInfo pi = controller.getPlaybackInfo(); in getActiveLocalMediaController()
142 if (pi.getPlaybackType() == MediaController.PlaybackInfo.PLAYBACK_TYPE_LOCAL in getActiveLocalMediaController()
DMediaOutputIndicatorSlice.java28 import android.media.session.MediaController;
83 final MediaController mediaController = getWorker().getActiveLocalMediaController(); in getMediaOutputSliceIntent()
/packages/apps/Settings/tests/robotests/src/com/android/settings/panel/
DMediaOutputPanelTest.java34 import android.media.session.MediaController;
68 private MediaController mMediaController;
80 private List<MediaController> mMediaControllers = new ArrayList<>();
81 private ArgumentCaptor<MediaController.Callback> mControllerCbs =
82 ArgumentCaptor.forClass(MediaController.Callback.class);
279 final MediaController.Callback controllerCallbacks = mControllerCbs.getValue(); in onMetadataChanged_verifyCallOnHeaderChanged()
290 final MediaController.Callback controllerCallbacks = mControllerCbs.getValue(); in onPlaybackStateChanged_stateFromPlayingToStopped_verifyCallForceClose()
305 final MediaController.Callback controllerCallbacks = mControllerCbs.getValue(); in onPlaybackStateChanged_stateFromPlayingToPaused_verifyCallForceClose()
/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/apps/Bluetooth/src/com/android/bluetooth/avrcp/
DMediaPlayerWrapper.java49 private MediaController mMediaController;
84 MediaPlayerWrapper(MediaController controller, Looper looper) { in MediaPlayerWrapper()
151 MediaController.TransportControls controller = mMediaController.getTransportControls(); in playItemFromQueue()
243 void updateMediaController(MediaController newController) { in updateMediaController()
325 class MediaControllerListener extends MediaController.Callback {
328 private MediaController mController;
330 MediaControllerListener(MediaController controller, Looper newLooper) { in MediaControllerListener()
DBrowsedPlayerWrapper.java211 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) {
DMediaPlayerList.java194 List<android.media.session.MediaController> controllers = in init()
197 for (android.media.session.MediaController controller : controllers) { in init()
443 int addMediaPlayer(MediaController controller) { in addMediaPlayer()
483 int addMediaPlayer(android.media.session.MediaController controller) { in addMediaPlayer()
619 List<android.media.session.MediaController> newControllers) {
795 android.media.session.MediaController controller =
796 new android.media.session.MediaController(mContext, token);
DGPMWrapper.java32 GPMWrapper(MediaController controller, Looper looper) { in GPMWrapper()
/packages/apps/Settings/src/com/android/settings/panel/
DMediaOutputPanel.java34 import android.media.session.MediaController;
76 private MediaController mMediaController;
223 for (MediaController controller : mMediaSessionManager.getActiveSessions(null)) { in onStart()
256 private final MediaController.Callback mCb = new MediaController.Callback() {
/packages/apps/Settings/tests/robotests/src/com/android/settings/sound/
DMediaOutputPreferenceControllerTest.java43 import android.media.session.MediaController;
114 private MediaController mMediaController;
131 private List<MediaController> mMediaControllers = new ArrayList<>();
132 private MediaController.PlaybackInfo mPlaybackInfo;
153 mPlaybackInfo = new MediaController.PlaybackInfo( in setUp()
154 MediaController.PlaybackInfo.PLAYBACK_TYPE_LOCAL, in setUp()
/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 {
DDvrPlaybackMediaSessionHelper.java24 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/
DCarMediaServiceTest.java48 import android.media.session.MediaController;
310 List<MediaController> controllers = new ArrayList<>(); in mockPlaybackStateChange()
311 MediaController mockController = mock(MediaController.class); in mockPlaybackStateChange()
319 MediaController.Callback callback = invocation.getArgument(0); in mockPlaybackStateChange()
/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/Radio/src/com/android/car/radio/media/
DTunerSession.java23 import android.media.session.MediaController;
135 public MediaController getController() { in getController()

12