/frameworks/base/packages/SystemUI/src/com/android/systemui/pip/tv/ |
D | PipControlsView.java | 58 private MediaController mMediaController; field in PipControlsView 151 if (mMediaController == null || mMediaController.getPlaybackState() == null) { in onFinishInflate() 154 long actions = mMediaController.getPlaybackState().getActions(); in onFinishInflate() 155 int state = mMediaController.getPlaybackState().getState(); in onFinishInflate() 157 mMediaController.getTransportControls().play(); in onFinishInflate() 159 mMediaController.getTransportControls().pause(); in onFinishInflate() 177 if (mMediaController != null) { in onDetachedFromWindow() 178 mMediaController.unregisterCallback(mMediaControllerCallback); in onDetachedFromWindow() 184 if (mMediaController == newController) { in updateMediaController() 187 if (mMediaController != null) { in updateMediaController() [all …]
|
D | PipNotification.java | 57 private MediaController mMediaController; field in PipNotification 112 if (mMediaController == newController) { 115 if (mMediaController != null) { 116 mMediaController.unregisterCallback(mMediaControllerCallback); 118 mMediaController = newController; 119 if (mMediaController != null) { 120 mMediaController.registerCallback(mMediaControllerCallback);
|
/frameworks/base/core/java/android/widget/ |
D | VideoView.java | 128 private MediaController mMediaController; field in VideoView 449 if (mMediaController != null) { in setMediaController() 450 mMediaController.hide(); in setMediaController() 452 mMediaController = controller; in setMediaController() 457 if (mMediaPlayer != null && mMediaController != null) { in attachMediaController() 458 mMediaController.setMediaPlayer(this); in attachMediaController() 461 mMediaController.setAnchorView(anchorView); in attachMediaController() 462 mMediaController.setEnabled(isInPlaybackState()); in attachMediaController() 501 if (mMediaController != null) { 502 mMediaController.setEnabled(true); [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/pip/phone/ |
D | PipMediaController.java | 72 private MediaController mMediaController; field in PipMediaController 84 mMediaController.getTransportControls().play(); 86 mMediaController.getTransportControls().pause(); 88 mMediaController.getTransportControls().skipToNext(); 90 mMediaController.getTransportControls().skipToPrevious(); 163 if (mMediaController == null || mMediaController.getPlaybackState() == null) { in getMediaActions() 168 int state = mMediaController.getPlaybackState().getState(); in getMediaActions() 170 long actions = mMediaController.getPlaybackState().getActions(); in getMediaActions() 251 if (controller != mMediaController) { in setActiveMediaController() 252 if (mMediaController != null) { in setActiveMediaController() [all …]
|
D | PipManager.java | 62 private PipMediaController mMediaController; field in PipManager 73 mMediaController.onActivityPinned(); 186 mMediaController = new PipMediaController(context, mActivityManager); in initialize() 187 mMenuController = new PipMenuActivityController(context, mActivityManager, mMediaController, in initialize()
|
D | PipMenuActivityController.java | 119 private PipMediaController mMediaController; field in PipMenuActivityController 206 mMediaController = mediaController; in PipMenuActivityController() 507 mMediaController.addListener(mMediaActionListener); in onMenuStateChanged() 511 mMediaController.removeListener(mMediaActionListener); in onMenuStateChanged()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/wrapper/ |
D | NotificationMediaTemplateViewWrapper.java | 64 private MediaController mMediaController; field in NotificationMediaTemplateViewWrapper 84 if (mMediaController != null) { 85 mMediaController.getTransportControls().seekTo(mSeekBar.getProgress()); 95 mMediaController.unregisterCallback(this); 147 if (mMediaController == null || !mMediaController.getSessionToken().equals(token)) { in resolveViews() 148 if (mMediaController != null) { in resolveViews() 149 mMediaController.unregisterCallback(mMediaCallback); in resolveViews() 151 mMediaController = new MediaController(mContext, token); in resolveViews() 155 mMediaMetadata = mMediaController.getMetadata(); in resolveViews() 195 if (mMediaController != null && canSeekMedia(mMediaController.getPlaybackState())) { in resolveViews() [all …]
|
/frameworks/base/media/tests/MediaDump/src/com/android/mediadump/ |
D | RgbPlayerActivity.java | 83 private MediaController mMediaController; field in RgbPlayerActivity.RgbView 150 mMediaController = new MediaController(context); in RgbView() 156 if (mMediaController != null) { in attachMediaController() 158 mMediaController.setMediaPlayer(this); in attachMediaController() 161 mMediaController.setAnchorView(anchorView); in attachMediaController() 162 mMediaController.setEnabled(true); in attachMediaController() 166 mMediaController.show(); in attachMediaController()
|
D | VideoDumpView.java | 69 private MediaController mMediaController; field in VideoDumpView 196 if (mMediaController != null) { in setMediaController() 197 mMediaController.hide(); in setMediaController() 199 mMediaController = controller; in setMediaController() 203 if (mMediaPlayer != null && mMediaController != null) { in attachMediaController() 205 mMediaController.setMediaPlayer(this); in attachMediaController() 208 mMediaController.setAnchorView(anchorView); in attachMediaController() 209 mMediaController.setEnabled(true); in attachMediaController() 212 mMediaController.show(); in attachMediaController()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
D | NotificationMediaManager.java | 118 private MediaController mMediaController; field in NotificationMediaManager 246 getMediaControllerPlaybackState(mMediaController)); in addCallback() 321 if (controller != null && !sameSessions(mMediaController, controller)) { in findAndUpdateMediaNotifications() 324 mMediaController = controller; in findAndUpdateMediaNotifications() 325 mMediaController.registerCallback(mMediaListener); in findAndUpdateMediaNotifications() 326 mMediaMetadata = mMediaController.getMetadata(); in findAndUpdateMediaNotifications() 329 + mMediaController + ", receive metadata: " + mMediaMetadata); in findAndUpdateMediaNotifications() 361 @PlaybackState.State int state = getMediaControllerPlaybackState(mMediaController); in dispatchUpdateMediaMetaData() 375 pw.print(mMediaController); in dump() 376 if (mMediaController != null) { in dump() [all …]
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/ |
D | MediaFrameworkTest.java | 56 private MediaController mMediaController; field in MediaFrameworkTest
|
/frameworks/base/core/java/com/android/internal/policy/ |
D | PhoneWindow.java | 268 private MediaController mMediaController; field in PhoneWindow 1895 if (mMediaController != null) { in onKeyDown() 1897 mMediaController.getSessionToken(), event); in onKeyDown() 1917 if (mMediaController != null) { in onKeyDown() 1919 mMediaController.getSessionToken(), event)) { in onKeyDown() 1989 if (mMediaController != null) { in onKeyUp() 1991 mMediaController.getSessionToken(), event); in onKeyUp() 2020 if (mMediaController != null) { in onKeyUp() 2022 mMediaController.getSessionToken(), event)) { in onKeyUp() 3213 mMediaController = controller; [all …]
|