/packages/apps/Bluetooth/src/com/android/bluetooth/avrcp/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 | 32 static MediaPlayerWrapper wrap(MediaController controller, Looper looper) { in wrap()
|
/packages/apps/Settings/src/com/android/settings/notification/ |
D | RemoteVolumePreferenceController.java | 20 import android.media.session.MediaController; 50 MediaController mMediaController; 56 MediaController.PlaybackInfo pi) { 78 final MediaController.PlaybackInfo pi = mMediaController.getPlaybackInfo(); 105 final List<MediaController> controllers = sessionManager.getActiveSessions(null); in getActiveRemoteToken() 106 for (MediaController mediaController : controllers) { in getActiveRemoteToken() 107 final MediaController.PlaybackInfo pi = mediaController.getPlaybackInfo(); in getActiveRemoteToken() 146 final MediaController.PlaybackInfo playbackInfo = mMediaController.getPlaybackInfo(); in getSliderPosition() 170 final MediaController.PlaybackInfo playbackInfo = mMediaController.getPlaybackInfo(); in getMax() 208 public static boolean isRemote(MediaController.PlaybackInfo pi) { in isRemote() [all …]
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/notification/ |
D | RemoteVolumePreferenceController.java | 20 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/notification/ |
D | RemoteVolumePreferenceControllerTest.java | 27 import android.media.session.MediaController; 54 private MediaController mMediaController; 63 private List<MediaController> mActiveSessions; 64 private MediaController.PlaybackInfo mPlaybackInfo; 80 mPlaybackInfo = new MediaController.PlaybackInfo( in setUp() 81 MediaController.PlaybackInfo.PLAYBACK_TYPE_REMOTE, 0, MAX_POS, CURRENT_POS, null); in setUp() 89 new MediaController.PlaybackInfo(MediaController.PlaybackInfo.PLAYBACK_TYPE_REMOTE, in getActiveRemoteToken_containRemoteMedia_returnToken() 97 new MediaController.PlaybackInfo(MediaController.PlaybackInfo.PLAYBACK_TYPE_LOCAL, in getActiveRemoteToken_noRemoteMedia_returnNull()
|
/packages/services/Car/service/src/com/android/car/ |
D | CarMediaService.java | 32 import android.media.session.MediaController; 33 import android.media.session.MediaController.TransportControls; 99 private MediaController mActiveUserMediaController; 422 public void onActiveSessionsChanged(List<MediaController> controllers) { in onActiveSessionsChanged() 431 private class MediaControllerCallback extends MediaController.Callback { 433 private final MediaController mMediaController; 436 private MediaControllerCallback(MediaController mediaController) { in MediaControllerCallback() 476 private void registerCallbacks(List<MediaController> newControllers) { in registerCallbacks() 478 List<MediaController> additions = new ArrayList<>(newControllers.size()); in registerCallbacks() 482 for (MediaController controller : newControllers) { in registerCallbacks() [all …]
|
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/newavrcp/ |
D | BrowserPlayerWrapperTest.java | 48 @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()
|
D | MediaPlayerWrapperTest.java | 57 @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 …]
|
D | MediaPlayerListTest.java | 57 private @Mock MediaController mMockController;
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/panel/ |
D | VolumePanelTest.java | 26 import android.media.session.MediaController; 52 private MediaController mMediaController; 75 List<MediaController> activeSessions = new ArrayList<>(); in getSlices_hasActiveRemoteToken_containsRemoteMediaUri() 81 when(mMediaController.getPlaybackInfo()).thenReturn(new MediaController.PlaybackInfo( in getSlices_hasActiveRemoteToken_containsRemoteMediaUri() 82 MediaController.PlaybackInfo.PLAYBACK_TYPE_REMOTE, 0, 10, 5, null)); in getSlices_hasActiveRemoteToken_containsRemoteMediaUri()
|
/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/Bluetooth/src/com/android/bluetooth/avrcp/ |
D | MediaPlayerWrapper.java | 49 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()
|
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 | 194 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);
|
D | GPMWrapper.java | 32 GPMWrapper(MediaController controller, Looper looper) { in GPMWrapper()
|
/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/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/Car/Radio/src/com/android/car/radio/media/ |
D | TunerSession.java | 23 import android.media.session.MediaController; 135 public MediaController getController() { in getController()
|
/packages/apps/Car/libs/car-media-common/src/com/android/car/media/common/source/ |
D | MediaSourceViewModel.java | 29 import android.media.session.MediaController;
|