/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/pip/ |
D | PipMediaController.kt | 76 private var mMediaController: MediaController? = null in <lambda>() variable in com.android.wm.shell.common.pip.PipMediaController 83 if (mMediaController == null) { in <lambda>() 88 ACTION_PLAY -> mMediaController!!.transportControls.play() in <lambda>() 89 ACTION_PAUSE -> mMediaController!!.transportControls.pause() in <lambda>() 90 ACTION_NEXT -> mMediaController!!.transportControls.skipToNext() in <lambda>() 91 ACTION_PREV -> mMediaController!!.transportControls.skipToPrevious() in <lambda>() 214 get() = if (mMediaController == null) { in <lambda>() 216 } else mMediaController!!.sessionToken in <lambda>() 218 get() = if (mMediaController != null) mMediaController!!.metadata else null in <lambda>() 225 if (mMediaController == null) { in <lambda>() [all …]
|
/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/statusbar/ |
D | NotificationMediaManager.java | 93 MediaController mMediaController; field in NotificationMediaManager 295 getMediaControllerPlaybackState(mMediaController)); in updateMediaMetaData() 394 if (controller != null && !sameSessions(mMediaController, controller)) { in setUpControllerAndKey() 397 mMediaController = controller; in setUpControllerAndKey() 398 mMediaController.registerCallback(mMediaListener, mHandler); in setUpControllerAndKey() 399 mMediaMetadata = mMediaController.getMetadata(); in setUpControllerAndKey() 402 + mMediaController + ", receive metadata: " + mMediaMetadata); in setUpControllerAndKey() 439 @PlaybackState.State int state = getMediaControllerPlaybackState(mMediaController); in updateMediaMetaData() 450 pw.print(mMediaController); in dump() 451 if (mMediaController != null) { in dump() [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/media/controls/domain/resume/ |
D | ResumeMediaBrowser.java | 60 @Nullable private MediaController mMediaController; field in ResumeMediaBrowser 342 mMediaController != null ? mMediaController.getSessionToken() : null; in updateMediaController() 352 if (mMediaController != null) { in updateMediaController() 353 mMediaController.unregisterCallback(mMediaControllerCallback); in updateMediaController() 356 mMediaController = createMediaController(currentToken); in updateMediaController() 357 mMediaController.registerCallback(mMediaControllerCallback); in updateMediaController() 359 mMediaController = null; in updateMediaController()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/dialog/ |
D | MediaOutputController.java | 152 private MediaController mMediaController; field in MediaOutputController 257 mMediaController = getMediaController(); in start() 258 if (mMediaController != null) { in start() 259 mMediaController.unregisterCallback(mCb); in start() 260 if (mMediaController.getPlaybackState() != null) { in start() 261 mCurrentState = mMediaController.getPlaybackState().getState(); in start() 263 mMediaController.registerCallback(mCb); in start() 266 if (mMediaController == null) { in start() 290 if (mMediaController != null) { in stop() 291 mMediaController.unregisterCallback(mCb); in stop() [all …]
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/media/ |
D | InfoMediaManager.java | 141 private MediaController mMediaController; field in InfoMediaManager 159 mMediaController = mediaController; in InfoMediaManager() 332 if (mMediaController != null) { in registerCallback() 333 mMediaController.registerCallback(mMediaControllerCallback); in registerCallback() 348 if (mMediaController != null) { in unregisterCallback() 349 mMediaController.unregisterCallback(mMediaControllerCallback); in unregisterCallback() 420 if (!Flags.usePlaybackInfoForRoutingControls() || mMediaController == null) { in getActiveRoutingSession() 424 PlaybackInfo playbackInfo = mMediaController.getPlaybackInfo(); in getActiveRoutingSession() 439 mMediaController.getPackageName(), session.getOwnerPackageName())) { in getActiveRoutingSession() 872 mMediaController = null; in onSessionDestroyed()
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/statusbar/ |
D | NotificationMediaManagerTest.kt | 83 notificationMediaManager.mMediaController = in setup() 139 assertThat(notificationMediaManager.mMediaController).isNull() in clearMediaNotification_flagOn_resetMediaMetadata() 152 assertThat(notificationMediaManager.mMediaController).isNull() in clearMediaNotification_flagOff_resetMediaMetadata()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/phone/ |
D | PhonePipMenuController.java | 100 private final PipMediaController mMediaController; field in PhonePipMenuController 134 mMediaController = mediaController; in PhonePipMenuController() 502 mMediaController.addActionListener(mMediaActionListener); in onMenuStateChangeStart() 506 mMediaController.removeActionListener(mMediaActionListener); in onMenuStateChangeStart()
|
D | PipController.java | 133 private PipMediaController mMediaController; field in PipController 466 mMediaController = pipMediaController; in PipController() 567 mMediaController.onActivityPinned(); in onInit() 706 mMediaController.registerSessionListenerForCurrentUser(); in onInit() 732 mMediaController.registerSessionListenerForCurrentUser(); in onUserChanged()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip2/phone/ |
D | PhonePipMenuController.java | 100 private final PipMediaController mMediaController; field in PhonePipMenuController 132 mMediaController = mediaController; in PhonePipMenuController() 500 mMediaController.addActionListener(mMediaActionListener); in onMenuStateChangeStart() 504 mMediaController.removeActionListener(mMediaActionListener); in onMenuStateChangeStart()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/dialog/ |
D | MediaOutputBaseDialogTest.java | 78 private MediaController mMediaController = mock(MediaController.class); field in MediaOutputBaseDialogTest 120 when(mMediaController.getPlaybackState()).thenReturn(mPlaybackState); in setUp() 122 when(mMediaController.getPackageName()).thenReturn(TEST_PACKAGE); in setUp() 123 mMediaControllers.add(mMediaController); in setUp()
|
D | MediaOutputDialogTest.java | 89 private MediaController mMediaController = mock(MediaController.class); field in MediaOutputDialogTest 128 when(mMediaController.getPlaybackState()).thenReturn(mPlaybackState); in setUp() 130 when(mMediaController.getPackageName()).thenReturn(TEST_PACKAGE); in setUp() 131 when(mMediaController.getMetadata()).thenReturn(mMediaMetadata); in setUp() 133 mMediaControllers.add(mMediaController); in setUp()
|
/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 | 336 private MediaController mMediaController; field in PhoneWindow 2027 if (mMediaController != null && !isActivePhoneCallOngoing()) { in onKeyDown() 2029 mMediaController.getSessionToken()); in onKeyDown() 2049 if (mMediaController != null) { in onKeyDown() 2051 event, mMediaController.getSessionToken())) { in onKeyDown() 2126 if (mMediaController != null) { in onKeyUp() 2128 mMediaController.getSessionToken()); in onKeyUp() 2157 if (mMediaController != null) { in onKeyUp() 2159 event, mMediaController.getSessionToken())) { in onKeyUp() 3348 mMediaController = controller; [all …]
|