Home
last modified time | relevance | path

Searched refs:mMediaController (Results 1 – 16 of 16) sorted by relevance

/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/pip/
DPipMediaController.kt76 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/
DVideoView.java128 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/
DNotificationMediaManager.java93 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/
DRgbPlayerActivity.java83 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()
DVideoDumpView.java69 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/
DResumeMediaBrowser.java60 @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/
DMediaOutputController.java152 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/
DInfoMediaManager.java141 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/
DNotificationMediaManagerTest.kt83 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/
DPhonePipMenuController.java100 private final PipMediaController mMediaController; field in PhonePipMenuController
134 mMediaController = mediaController; in PhonePipMenuController()
502 mMediaController.addActionListener(mMediaActionListener); in onMenuStateChangeStart()
506 mMediaController.removeActionListener(mMediaActionListener); in onMenuStateChangeStart()
DPipController.java133 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/
DPhonePipMenuController.java100 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/
DMediaOutputBaseDialogTest.java78 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()
DMediaOutputDialogTest.java89 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/
DMediaFrameworkTest.java56 private MediaController mMediaController; field in MediaFrameworkTest
/frameworks/base/core/java/com/android/internal/policy/
DPhoneWindow.java336 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 …]