Home
last modified time | relevance | path

Searched refs:getPlaybackState (Results 1 – 25 of 28) sorted by relevance

12

/packages/apps/Bluetooth/src/com/android/bluetooth/audio_util/
DMediaPlayerWrapper.java69 if (getPlaybackState() == null) { in isPlaybackStateReady()
97 mCurrentData.state = getPlaybackState(); in MediaPlayerWrapper()
123 public PlaybackState getPlaybackState() { in getPlaybackState() method in MediaPlayerWrapper
124 return mMediaController.getPlaybackState(); in getPlaybackState()
128 PlaybackState state = mMediaController.getPlaybackState(); in getActiveQueueID()
141 getPlaybackState(), in getCurrentMediaData()
265 getPlaybackState(), in registerCallback()
302 getPlaybackState(), in updateMediaController()
312 getPlaybackState(), in sendMediaUpdate()
353 Log.e(TAG, " └ Current Playstate: " + getPlaybackState()); in handleMessage()
[all …]
DMediaPlayerList.java291 final PlaybackState state = player.getPlaybackState(); in getCurrentMediaId()
319 PlaybackState state = player.getPlaybackState(); in getCurrentPlayStatus()
/packages/apps/Settings/tests/robotests/src/com/android/settings/media/
DMediaOutputUtilsTest.java72 when(mMediaController.getPlaybackState()).thenReturn(mPlaybackState); in getActiveLocalMediaController_localMediaPlaying_returnController()
92 when(mMediaController.getPlaybackState()).thenReturn(mPlaybackState); in getActiveLocalMediaController_remoteMediaPlaying_returnNull()
111 when(mMediaController.getPlaybackState()).thenReturn(mPlaybackState); in getActiveLocalMediaController_localMediaStopped_returnNull()
136 when(mMediaController.getPlaybackState()).thenReturn(mPlaybackState); in getActiveLocalMediaController_bothHaveRemoteMediaAndLocalMedia_returnNull()
138 when(remoteMediaController.getPlaybackState()).thenReturn(playbackState); in getActiveLocalMediaController_bothHaveRemoteMediaAndLocalMedia_returnNull()
161 when(mMediaController.getPlaybackState()).thenReturn(mPlaybackState); in getActiveLocalMediaController_bothHaveLocalMediaAndRemoteMedia_returnNull()
163 when(remoteMediaController.getPlaybackState()).thenReturn(playbackState); in getActiveLocalMediaController_bothHaveLocalMediaAndRemoteMedia_returnNull()
DMediaOutputIndicatorWorkerTest.java109 when(mMediaController.getPlaybackState()).thenReturn(mPlaybackState); in onSlicePinned_registerCallback()
126 when(mMediaController.getPlaybackState()).thenReturn(mPlaybackState); in onSlicePinned_packageUpdated_checkPackageName()
173 when(mMediaController.getPlaybackState()).thenReturn(mPlaybackState); in onSliceUnpinned_unRegisterCallback()
206 when(mMediaController.getPlaybackState()).thenReturn(mPlaybackState); in getActiveLocalMediaController_localMediaPlaying_returnController()
239 when(mMediaController.getPlaybackState()).thenReturn(mPlaybackState); in getActiveLocalMediaController_remoteMediaPlaying_returnNull()
258 when(mMediaController.getPlaybackState()).thenReturn(mPlaybackState); in getActiveLocalMediaController_localMediaStopped_returnNull()
281 when(mMediaController.getPlaybackState()).thenReturn(mPlaybackState); in getActiveLocalMediaController_bothHaveRemoteMediaAndLocalMedia_returnNull()
283 when(remoteMediaController.getPlaybackState()).thenReturn(playbackState); in getActiveLocalMediaController_bothHaveRemoteMediaAndLocalMedia_returnNull()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/audio_util/
DMediaPlayerWrapperTest.java156 doReturn(mTestState.build()).when(mMockController).getPlaybackState(); in setUp()
195 doReturn(null).when(mMockController).getPlaybackState(); in testIsReady()
199 doReturn(mTestState.build()).when(mMockController).getPlaybackState(); in testIsReady()
226 doReturn(mTestState.build()).when(mUpdatedController).getPlaybackState(); in testControllerUpdate()
283 doReturn(mTestState.build()).when(mMockController).getPlaybackState(); in testNoQueueMediaUpdates()
331 doReturn(mTestState.build()).when(mMockController).getPlaybackState(); in testDataOnUpdateNoQueue()
450 doReturn(mTestState.build()).when(mMockController).getPlaybackState(); in testPlaybackStateUpdateSpam()
468 doReturn(mTestState.build()).when(mMockController).getPlaybackState(); in testPlaybackStateUpdateSpam()
473 doReturn(mTestState.build()).when(mMockController).getPlaybackState(); in testPlaybackStateUpdateSpam()
478 doReturn(mTestState.build()).when(mMockController).getPlaybackState(); in testPlaybackStateUpdateSpam()
[all …]
/packages/apps/TV/src/com/android/tv/dvr/ui/playback/
DDvrPlaybackMediaSessionHelper.java122 mDvrPlayer.getPlaybackState(), in updateMediaSessionPlaybackState()
154 public int getPlaybackState() { in getPlaybackState() method in DvrPlaybackMediaSessionHelper
155 return mDvrPlayer.getPlaybackState(); in getPlaybackState()
314 if (mDvrPlayer.getPlaybackState() == PlaybackState.STATE_FAST_FORWARDING) { in onFastForward()
332 if (mDvrPlayer.getPlaybackState() == PlaybackState.STATE_REWINDING) { in onRewind()
DDvrPlaybackControlHelper.java177 PlaybackState playbackState = mMediaController.getPlaybackState(); in hasValidMedia()
183 PlaybackState playbackState = mMediaController.getPlaybackState(); in isMediaPlaying()
243 PlaybackState playbackState = mMediaController.getPlaybackState(); in getCurrentPosition()
DDvrPlaybackOverlayFragment.java285 if (mMediaSessionHelper.getPlaybackState() == PlaybackState.STATE_FAST_FORWARDING in onPause()
286 || mMediaSessionHelper.getPlaybackState() == PlaybackState.STATE_REWINDING) { in onPause()
289 if (mMediaSessionHelper.getPlaybackState() == PlaybackState.STATE_NONE) { in onPause()
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer2/
DMpegTsPlayerV2.java268 public int getPlaybackState() { in getPlaybackState() method in MpegTsPlayerV2
269 return mPlayer.getPlaybackState(); in getPlaybackState()
274 int state = getPlaybackState(); in isPrepared()
280 int state = getPlaybackState(); in isPlaying()
287 return getPlaybackState() == ExoPlayer.STATE_BUFFERING; in isBuffering()
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer/
DMpegTsPlayer.java370 public int getPlaybackState() { in getPlaybackState() method in MpegTsPlayer
374 return mPlayer.getPlaybackState(); in getPlaybackState()
379 int state = getPlaybackState(); in isPrepared()
385 int state = getPlaybackState(); in isPlaying()
392 return getPlaybackState() == ExoPlayer.STATE_BUFFERING; in isBuffering()
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcpcontroller/
DBluetoothMediaBrowserService.java92 controller == null ? null : controller.getPlaybackState(); in onReceive()
279 public static synchronized int getPlaybackState() { in getPlaybackState() method in BluetoothMediaBrowserService
282 sBluetoothMediaBrowserService.mSession.getController().getPlaybackState(); in getPlaybackState()
351 controller == null ? null : controller.getPlaybackState(); in dump()
DAvrcpControllerStateMachine.java482 mAddressedPlayer.getPlaybackState()); in processMessage()
548 PlaybackStateCompat playbackState = mAddressedPlayer.getPlaybackState(); in processMessage()
577 notifyChanged(mAddressedPlayer.getPlaybackState()); in processMessage()
630 notifyChanged(mAddressedPlayer.getPlaybackState()); in processMessage()
636 notifyChanged(mAddressedPlayer.getPlaybackState()); in processMessage()
DAvrcpPlayer.java171 public PlaybackStateCompat getPlaybackState() { in getPlaybackState() method in AvrcpPlayer
/packages/apps/Car/libs/car-media-common/src/com/android/car/media/common/
DMediaButtonController.java286 PlaybackViewModel.PlaybackStateWrapper state = getPlaybackState(); in onNextClicked()
293 PlaybackViewModel.PlaybackStateWrapper state = getPlaybackState(); in onPrevClicked()
299 private PlaybackViewModel.PlaybackStateWrapper getPlaybackState() { in getPlaybackState() method in MediaButtonController
/packages/apps/Car/Radio/src/com/android/car/radio/
DRadioController.java100 public LiveData<Integer> getPlaybackState() { in getPlaybackState() method in RadioController
101 return mAppService.getPlaybackState(); in getPlaybackState()
DDisplayController.java97 radioController.getPlaybackState().observe(activity, this::onPlaybackStateChanged); in DisplayController()
/packages/services/Car/service/src/com/android/car/
DCarMediaService.java270 PlaybackState oldState = mediaController.getPlaybackState();
615 PlaybackState state = mediaController.getPlaybackState(); in MediaControllerCallback()
805 if (controller.getPlaybackState() != null in updatePrimaryMediaSourceWithCurrentlyPlaying()
806 && controller.getPlaybackState().getState() == PlaybackState.STATE_PLAYING) { in updatePrimaryMediaSourceWithCurrentlyPlaying()
997 PlaybackState state = mActiveUserMediaController.getPlaybackState(); in updateActiveMediaControllerLocked()
/packages/apps/Bluetooth/src/com/android/bluetooth/audio_util/mockable/
DMediaController.java79 public PlaybackState getPlaybackState() { in getPlaybackState() method in MediaController
80 return mDelegate.getPlaybackState(); in getPlaybackState()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/avrcpcontroller/
DAvrcpControllerStateMachineTest.java390 BluetoothMediaBrowserService.getPlaybackState()); in testControlOnly()
419 BluetoothMediaBrowserService.getPlaybackState()); in testBrowsingOnly()
1223 PlaybackStateCompat playbackState = controller.getPlaybackState(); in testBecomeActive()
1304 BluetoothMediaBrowserService.getPlaybackState()); in testPlaybackWhileNotActiveDevice()
1329 PlaybackStateCompat playbackState = controller.getPlaybackState(); in testPlayPositionChangeWhileNotActiveDevice()
/packages/apps/Settings/src/com/android/settings/media/
DMediaOutputUtils.java56 final PlaybackState playbackState = controller.getPlaybackState(); in getActiveLocalMediaController()
/packages/apps/Settings/tests/robotests/src/com/android/settings/sound/
DMediaOutputPreferenceControllerTest.java165 when(mMediaController.getPlaybackState()).thenReturn(mPlaybackState); in setUp()
276 when(mMediaController.getPlaybackState()).thenReturn(mPlaybackState); in updateState_noActiveLocalPlayback_noTitle()
/packages/apps/TV/src/com/android/tv/dvr/
DDvrTvView.java55 return mDvrPlayer.getPlaybackState() == PlaybackState.STATE_PLAYING; in isPlaying()
/packages/apps/Car/libs/car-media-common/src/com/android/car/media/common/playback/
DPlaybackViewModel.java288 onPlaybackStateChanged(mMediaController.getPlaybackState()); in setMediaController()
626 PlaybackStateCompat oldState = mMediaController.getPlaybackState(); in seekTo()
/packages/apps/Car/Radio/src/com/android/car/radio/media/
DTunerSession.java90 appService.getPlaybackState().observeForever(this::onPlaybackStateChanged); in TunerSession()
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dpsink/
DA2dpSinkStreamHandler.java240 if (BluetoothMediaBrowserService.getPlaybackState() in handleMessage()

12