/frameworks/support/leanback/src/main/java/androidx/leanback/media/ |
H A D | MediaControllerGlue.java | 39 MediaControllerCompat mMediaController; field in class:MediaControllerGlue 55 mMediaController = null; 80 if (mediaController != mMediaController) { 83 mMediaController = mediaController; 84 if (mMediaController != null) { 85 mMediaController.registerCallback(mCallback); 97 if (mMediaController != null) { 98 mMediaController.unregisterCallback(mCallback); 100 mMediaController = null; 107 return mMediaController; [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/pip/tv/ |
H A D | PipControlsView.java | 64 private MediaController mMediaController; field in class:PipControlsView 157 if (mMediaController == null || mMediaController.getPlaybackState() == null) { 160 long actions = mMediaController.getPlaybackState().getActions(); 161 int state = mMediaController.getPlaybackState().getState(); 163 mMediaController.getTransportControls().play(); 165 mMediaController.getTransportControls().pause(); 183 if (mMediaController != null) { 184 mMediaController.unregisterCallback(mMediaControllerCallback); 190 if (mMediaController [all...] |
H A D | PipNotification.java | 59 private MediaController mMediaController; field in class:PipNotification 114 if (mMediaController == newController) { 117 if (mMediaController != null) { 118 mMediaController.unregisterCallback(mMediaControllerCallback); 120 mMediaController = newController; 121 if (mMediaController != null) { 122 mMediaController.registerCallback(mMediaControllerCallback);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/pip/phone/ |
H A D | PipMediaController.java | 72 private MediaController mMediaController; field in class:PipMediaController 84 mMediaController.getTransportControls().play(); 86 mMediaController.getTransportControls().pause(); 88 mMediaController.getTransportControls().skipToNext(); 90 mMediaController.getTransportControls().skipToPrevious(); 163 if (mMediaController == null || mMediaController.getPlaybackState() == null) { 168 int state = mMediaController.getPlaybackState().getState(); 170 long actions = mMediaController.getPlaybackState().getActions(); 251 if (controller != mMediaController) { [all...] |
H A D | PipManager.java | 65 private PipMediaController mMediaController; field in class:PipManager 76 mMediaController.onActivityPinned(); 186 mMediaController = new PipMediaController(context, mActivityManager); 187 mMenuController = new PipMenuActivityController(context, mActivityManager, mMediaController,
|
H A D | PipMenuActivityController.java | 122 private PipMediaController mMediaController; field in class:PipMenuActivityController 209 mMediaController = mediaController; 482 mMediaController.addListener(mMediaActionListener); 486 mMediaController.removeListener(mMediaActionListener);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
H A D | NotificationMediaManager.java | 48 private MediaController mMediaController; field in class:NotificationMediaManager 175 if (controller != null && !sameSessions(mMediaController, controller)) { 178 mMediaController = controller; 179 mMediaController.registerCallback(mMediaListener); 180 mMediaMetadata = mMediaController.getMetadata(); 183 + mMediaController + ", receive metadata: " + mMediaMetadata); 216 pw.print(" mMediaController="); 217 pw.print(mMediaController); 218 if (mMediaController != null) { 219 pw.print(" state=" + mMediaController [all...] |
/frameworks/base/core/java/android/widget/ |
H A D | VideoView.java | 116 private MediaController mMediaController; field in class:VideoView 436 if (mMediaController != null) { 437 mMediaController.hide(); 439 mMediaController = controller; 444 if (mMediaPlayer != null && mMediaController != null) { 445 mMediaController.setMediaPlayer(this); 448 mMediaController.setAnchorView(anchorView); 449 mMediaController.setEnabled(isInPlaybackState()); 487 if (mMediaController != null) { 488 mMediaController [all...] |
/frameworks/support/frameworks/support/samples/Support4Demos/src/main/java/com/example/android/supportv4/media/ |
H A D | QueueFragment.java | 54 private MediaControllerCompat mMediaController; field in class:QueueFragment 70 mMediaController = new MediaControllerCompat(getActivity(), 75 mTransportControls = mMediaController.getTransportControls(); 76 mMediaController.registerCallback(mSessionCallback); 78 ((MediaBrowserSupport) getActivity()).setMediaController(mMediaController); 79 mPlaybackState = mMediaController.getPlaybackState(); 81 List<MediaSessionCompat.QueueItem> queue = mMediaController.getQueue(); 99 mMediaController.unregisterCallback(mSessionCallback); 101 mMediaController = null; 189 if (mMediaController ! [all...] |
/frameworks/support/samples/Support4Demos/src/main/java/com/example/android/supportv4/media/ |
H A D | QueueFragment.java | 54 private MediaControllerCompat mMediaController; field in class:QueueFragment 70 mMediaController = new MediaControllerCompat(getActivity(), 75 mTransportControls = mMediaController.getTransportControls(); 76 mMediaController.registerCallback(mSessionCallback); 78 ((MediaBrowserSupport) getActivity()).setMediaController(mMediaController); 79 mPlaybackState = mMediaController.getPlaybackState(); 81 List<MediaSessionCompat.QueueItem> queue = mMediaController.getQueue(); 99 mMediaController.unregisterCallback(mSessionCallback); 101 mMediaController = null; 189 if (mMediaController ! [all...] |
/frameworks/base/media/tests/MediaDump/src/com/android/mediadump/ |
H A D | RgbPlayerActivity.java | 83 private MediaController mMediaController; field in class:RgbPlayerActivity.RgbView 150 mMediaController = new MediaController(context); 156 if (mMediaController != null) { 158 mMediaController.setMediaPlayer(this); 161 mMediaController.setAnchorView(anchorView); 162 mMediaController.setEnabled(true); 166 mMediaController.show();
|
H A D | VideoDumpView.java | 69 private MediaController mMediaController; field in class:VideoDumpView 196 if (mMediaController != null) { 197 mMediaController.hide(); 199 mMediaController = controller; 203 if (mMediaPlayer != null && mMediaController != null) { 205 mMediaController.setMediaPlayer(this); 208 mMediaController.setAnchorView(anchorView); 209 mMediaController.setEnabled(true); 212 mMediaController.show();
|
/frameworks/av/packages/MediaComponents/src/com/android/support/mediarouter/app/ |
H A D | MediaRouteControllerDialog.java | 167 MediaControllerCompat mMediaController; field in class:MediaRouteControllerDialog 295 if (mMediaController != null) { 296 mMediaController.unregisterCallback(mControllerCallback); 297 mMediaController = null; 306 mMediaController = new MediaControllerCompat(mContext, sessionToken); 310 if (mMediaController != null) { 311 mMediaController.registerCallback(mControllerCallback); 313 MediaMetadataCompat metadata = mMediaController == null ? null 314 : mMediaController.getMetadata(); 316 mState = mMediaController [all...] |
/frameworks/support/mediarouter/src/main/java/androidx/mediarouter/app/ |
H A D | MediaRouteControllerDialog.java | 164 MediaControllerCompat mMediaController; field in class:MediaRouteControllerDialog 293 if (mMediaController != null) { 294 mMediaController.unregisterCallback(mControllerCallback); 295 mMediaController = null; 304 mMediaController = new MediaControllerCompat(mContext, sessionToken); 308 if (mMediaController != null) { 309 mMediaController.registerCallback(mControllerCallback); 311 MediaMetadataCompat metadata = mMediaController == null ? null 312 : mMediaController.getMetadata(); 314 mState = mMediaController [all...] |
/frameworks/support/media-widget/src/main/java/androidx/media/widget/impl/ |
H A D | VideoView2ImplBase.java | 125 private MediaControllerCompat mMediaController; field in class:VideoView2ImplBase 395 return mMediaController; 658 mMediaController = mMediaSession.getController(); 682 mMediaController = null; 762 mMediaController.getTransportControls().play(); 804 mMediaController.getTransportControls().play(); 855 mMediaController.getTransportControls().play(); 863 mMediaController.getTransportControls().pause(); 1092 if (mMediaController == null) { 1095 PlaybackInfo playbackInfo = mMediaController [all...] |
/frameworks/support/media-widget/src/main/java/androidx/media/widget/impl_with_mp1/ |
H A D | VideoView2ImplBaseWithMp1.java | 121 private MediaControllerCompat mMediaController; field in class:VideoView2ImplBaseWithMp1 374 return mMediaController; 633 mMediaController = mMediaSession.getController(); 657 mMediaController = null; 733 mMediaController.getTransportControls().play(); 763 mMediaController.getTransportControls().play(); 813 mMediaController.getTransportControls().play(); 821 mMediaController.getTransportControls().pause(); 1048 if (mMediaController == null) { 1051 PlaybackInfo playbackInfo = mMediaController [all...] |
/frameworks/av/packages/MediaComponents/src/com/android/widget/ |
H A D | VideoView2Impl.java | 127 private MediaController mMediaController; field in class:VideoView2Impl 348 return mMediaController; 519 mMediaController = mMediaSession.getController(); 544 mMediaController = null; 638 mMediaController.getTransportControls().play(); 669 mMediaController.getTransportControls().play(); 934 if (mMediaController == null) { 937 PlaybackInfo playbackInfo = mMediaController.getPlaybackInfo(); 1227 mMediaController.getTransportControls().seekTo(seekToPosition); 1246 mMediaController [all...] |
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/ |
H A D | MediaFrameworkTest.java | 56 private MediaController mMediaController; field in class:MediaFrameworkTest
|
/frameworks/base/core/java/com/android/internal/policy/ |
H A D | PhoneWindow.java | 251 private MediaController mMediaController; field in class:PhoneWindow 1876 if (mMediaController != null) { 1877 mMediaController.dispatchVolumeButtonEventAsSystemService(event); 1897 if (mMediaController != null) { 1898 if (mMediaController.dispatchMediaButtonEventAsSystemService(event)) { 1968 if (mMediaController != null) { 1969 mMediaController.dispatchVolumeButtonEventAsSystemService(event); 1998 if (mMediaController != null) { 1999 if (mMediaController.dispatchMediaButtonEventAsSystemService(event)) { 3191 mMediaController [all...] |
/frameworks/support/media/src/main/java/android/support/v4/media/session/ |
H A D | MediaControllerCompat.java | 135 private final MediaControllerCompat mMediaController; field in class:MediaControllerCompat.MediaControllerExtraData 138 mMediaController = mediaController; 142 return mMediaController;
|