Home
last modified time | relevance | path

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

/packages/apps/Bluetooth/src/com/android/bluetooth/avrcp/
DMediaPlayerWrapper.java66 if (getPlaybackState() == null) { in isPlaybackStateReady()
105 newWrapper.mCurrentData.state = newWrapper.getPlaybackState(); in wrap()
132 PlaybackState getPlaybackState() { in getPlaybackState() method in MediaPlayerWrapper
133 return mMediaController.getPlaybackState(); in getPlaybackState()
137 if (mMediaController.getPlaybackState() == null) return -1; in getActiveQueueID()
138 return mMediaController.getPlaybackState().getActiveQueueItemId(); in getActiveQueueID()
149 getPlaybackState(), in getCurrentMediaData()
234 getPlaybackState(), in registerCallback()
271 getPlaybackState(), in updateMediaController()
281 getPlaybackState(), in sendMediaUpdate()
[all …]
DMediaPlayerList.java250 final PlaybackState state = player.getPlaybackState(); in getCurrentMediaId()
278 return player.getPlaybackState(); in getCurrentPlayStatus()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/newavrcp/
DMediaPlayerWrapperTest.java127 doReturn(mTestState.build()).when(mMockController).getPlaybackState(); in setUp()
159 doReturn(null).when(mMockController).getPlaybackState(); in testIsReady()
163 doReturn(mTestState.build()).when(mMockController).getPlaybackState(); in testIsReady()
189 doReturn(mTestState.build()).when(mUpdatedController).getPlaybackState(); in testControllerUpdate()
246 doReturn(mTestState.build()).when(mMockController).getPlaybackState(); in testNoQueueMediaUpdates()
294 doReturn(mTestState.build()).when(mMockController).getPlaybackState(); in testDataOnUpdateNoQueue()
413 doReturn(mTestState.build()).when(mMockController).getPlaybackState(); in testPlaybackStateUpdateSpam()
431 doReturn(mTestState.build()).when(mMockController).getPlaybackState(); in testPlaybackStateUpdateSpam()
436 doReturn(mTestState.build()).when(mMockController).getPlaybackState(); in testPlaybackStateUpdateSpam()
441 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.java260 if (mMediaSessionHelper.getPlaybackState() == PlaybackState.STATE_FAST_FORWARDING in onPause()
261 || mMediaSessionHelper.getPlaybackState() == PlaybackState.STATE_REWINDING) { in onPause()
264 if (mMediaSessionHelper.getPlaybackState() == PlaybackState.STATE_NONE) { in onPause()
DDvrPlayer.java340 public int getPlaybackState() { in getPlaybackState() method in DvrPlayer
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer/
DMpegTsPlayer.java369 public int getPlaybackState() { in getPlaybackState() method in MpegTsPlayer
373 return mPlayer.getPlaybackState(); in getPlaybackState()
378 int state = getPlaybackState(); in isPrepared()
384 int state = getPlaybackState(); in isPlaying()
391 return getPlaybackState() == ExoPlayer.STATE_BUFFERING; in isBuffering()
/packages/services/Car/service/src/com/android/car/
DCarMediaService.java279 PlaybackState state = mediaController.getPlaybackState(); in MediaControllerCallback()
407 if (controller.getPlaybackState() != null in updatePrimaryMediaSourceWithCurrentlyPlaying()
408 && controller.getPlaybackState().getState() == PlaybackState.STATE_PLAYING) { in updatePrimaryMediaSourceWithCurrentlyPlaying()
515 PlaybackState state = mActiveUserMediaController.getPlaybackState(); in updateActiveMediaController()
/packages/apps/Car/libs/car-media-common/src/com/android/car/media/common/
DMediaButtonController.java275 PlaybackViewModel.PlaybackStateWrapper state = getPlaybackState(); in onNextClicked()
282 PlaybackViewModel.PlaybackStateWrapper state = getPlaybackState(); in onPrevClicked()
288 private PlaybackViewModel.PlaybackStateWrapper getPlaybackState() { in getPlaybackState() method in MediaButtonController
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcpcontroller/
DAvrcpControllerStateMachine.java212 BluetoothMediaBrowserService.notifyChanged(mAddressedPlayer.getPlaybackState()); in onBrowsingConnected()
332 BluetoothMediaBrowserService.notifyChanged(mAddressedPlayer.getPlaybackState()); in processMessage()
333 if (mAddressedPlayer.getPlaybackState().getState() in processMessage()
347 mAddressedPlayer.getPlaybackState()); in processMessage()
DAvrcpPlayer.java134 public PlaybackState getPlaybackState() { in getPlaybackState() method in AvrcpPlayer
/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.java101 radioController.getPlaybackState().observe(activity, this::onPlaybackStateChanged); in DisplayController()
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcp/mockable/
DMediaController.java79 public PlaybackState getPlaybackState() { in getPlaybackState() method in MediaController
80 return mDelegate.getPlaybackState(); in getPlaybackState()
/packages/apps/Car/libs/car-media-common/tests/robotests/src/com/android/car/media/common/playback/
DPlaybackViewModelTest.java194 when(mMediaController.getPlaybackState()).thenReturn(mPlaybackState); in testChangeMediaSource_consistentController()
207 when(newController.getPlaybackState()).thenReturn(newPlaybackState); in testChangeMediaSource_consistentController()
/packages/apps/Car/libs/car-media-common/src/com/android/car/media/common/playback/
DPlaybackViewModel.java250 onPlaybackStateChanged(mMediaController.getPlaybackState()); in onMediaControllerChanged()
572 PlaybackStateCompat oldState = mMediaController.getPlaybackState(); in seekTo()
/packages/apps/TV/src/com/android/tv/dvr/
DDvrTvView.java55 return mDvrPlayer.getPlaybackState() == PlaybackState.STATE_PLAYING; in isPlaying()
/packages/apps/Car/Radio/src/com/android/car/radio/media/
DTunerSession.java90 appService.getPlaybackState().observeForever(this::onPlaybackStateChanged); in TunerSession()
/packages/apps/Car/Radio/src/com/android/car/radio/service/
DRadioAppServiceWrapper.java277 public LiveData<Integer> getPlaybackState() { in getPlaybackState() method in RadioAppServiceWrapper