Home
last modified time | relevance | path

Searched refs:playbackState (Results 1 – 19 of 19) sorted by relevance

/packages/apps/TV/src/com/android/tv/dvr/ui/playback/
DDvrPlaybackControlHelper.java177 PlaybackState playbackState = mMediaController.getPlaybackState(); in hasValidMedia() local
178 return playbackState != null; in hasValidMedia()
183 PlaybackState playbackState = mMediaController.getPlaybackState(); in isMediaPlaying() local
184 if (playbackState == null) { in isMediaPlaying()
187 int state = playbackState.getState(); in isMediaPlaying()
243 PlaybackState playbackState = mMediaController.getPlaybackState(); in getCurrentPosition() local
244 if (playbackState == null) { in getCurrentPosition()
247 return (int) playbackState.getPosition(); in getCurrentPosition()
DDvrPlaybackMediaSessionHelper.java66 public void onPlaybackStateChanged(int playbackState, int playbackSpeed) { in DvrPlaybackMediaSessionHelper()
DDvrPlayer.java81 public void onPlaybackStateChanged(int playbackState, int playbackSpeed) {} in onPlaybackStateChanged() argument
/packages/apps/Car/libs/car-media-common/src/com/android/car/media/common/playback/
DProgressLiveData.java60 ProgressLiveData(@NonNull PlaybackStateCompat playbackState, long maxProgress) { in ProgressLiveData() argument
61 this(playbackState, maxProgress, SystemClock::elapsedRealtime); in ProgressLiveData()
66 @NonNull PlaybackStateCompat playbackState, long maxProgress, in ProgressLiveData()
68 mPlaybackState = playbackState; in ProgressLiveData()
DPlaybackViewModel.java306 public void onPlaybackStateChanged(PlaybackStateCompat playbackState) { in onPlaybackStateChanged() argument
307 mPlaybackState = playbackState; in onPlaybackStateChanged()
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcpcontroller/
DAvrcpControllerService.java457 int playbackState = PlaybackStateCompat.STATE_NONE; in onPlayStatusChanged() local
460 playbackState = PlaybackStateCompat.STATE_STOPPED; in onPlayStatusChanged()
463 playbackState = PlaybackStateCompat.STATE_PLAYING; in onPlayStatusChanged()
466 playbackState = PlaybackStateCompat.STATE_PAUSED; in onPlayStatusChanged()
469 playbackState = PlaybackStateCompat.STATE_FAST_FORWARDING; in onPlayStatusChanged()
472 playbackState = PlaybackStateCompat.STATE_REWINDING; in onPlayStatusChanged()
475 playbackState = PlaybackStateCompat.STATE_NONE; in onPlayStatusChanged()
481 AvrcpControllerStateMachine.MESSAGE_PROCESS_PLAY_STATUS_CHANGED, playbackState); in onPlayStatusChanged()
DBluetoothMediaBrowserService.java207 static synchronized void notifyChanged(PlaybackStateCompat playbackState) { in notifyChanged() argument
208 Log.d(TAG, "notifyChanged PlaybackState" + playbackState); in notifyChanged()
210 sBluetoothMediaBrowserService.mSession.setPlaybackState(playbackState); in notifyChanged()
DAvrcpControllerStateMachine.java522 PlaybackStateCompat playbackState = mAddressedPlayer.getPlaybackState(); in processMessage() local
523 BluetoothMediaBrowserService.notifyChanged(playbackState); in processMessage()
537 if (playbackState.getState() == PlaybackStateCompat.STATE_PLAYING in processMessage()
/packages/apps/Car/tests/TestMediaApp/src/com/android/car/media/testmediaapp/
DTmaBrowser.java143 PlaybackStateCompat.Builder playbackState = new PlaybackStateCompat.Builder(); in updatePlaybackState() local
144 playbackState.setState(PlaybackStateCompat.STATE_PAUSED, 0, 0); in updatePlaybackState()
145 playbackState.setActions(PlaybackStateCompat.ACTION_PREPARE); in updatePlaybackState()
146 mSession.setPlaybackState(playbackState.build()); in updatePlaybackState()
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcp/helpers/
DPlayStatus.java49 static byte playbackStateToAvrcpState(int playbackState) { in playbackStateToAvrcpState() argument
50 switch (playbackState) { in playbackStateToAvrcpState()
/packages/apps/TV/tuner/tests/unittests/javatests/com/android/tv/tuner/
DZappingTimeTest.java351 public void onStateChanged(boolean playWhenReady, int playbackState) { in onStateChanged() argument
353 Log.d(TAG, "ExoPlayer state change: " + playbackState + " " + playWhenReady); in onStateChanged()
355 if (playbackState == ExoPlayer.STATE_READY) { in onStateChanged()
DZappingTimeTestExoV2.java378 public void onStateChanged(int playbackState) { in onStateChanged() argument
380 Log.d(TAG, "ExoPlayer state change: " + playbackState); in onStateChanged()
382 if (playbackState == ExoPlayer.STATE_READY) { in onStateChanged()
/packages/apps/TV/tuner/src/com/android/tv/tuner/tvinput/
DTunerSessionWorker.java494 public void onStateChanged(boolean playWhenReady, int playbackState) { in onStateChanged() argument
495 if (DEBUG) Log.d(TAG, "ExoPlayer state change: " + playbackState + " " + playWhenReady); in onStateChanged()
496 if (playbackState == mPlayerState) { in onStateChanged()
502 if (playbackState == ExoPlayer.STATE_READY) { in onStateChanged()
508 } else if (playbackState == ExoPlayer.STATE_PREPARING) { in onStateChanged()
510 } else if (playbackState == ExoPlayer.STATE_BUFFERING) { in onStateChanged()
512 } else if (playbackState == ExoPlayer.STATE_ENDED) { in onStateChanged()
525 mPlayerState = playbackState; in onStateChanged()
DTunerSessionWorkerExoV2.java499 public void onStateChanged(@PlayerState int playbackState) { in onStateChanged() argument
500 if (playbackState == mPlayerState) { in onStateChanged()
505 if (playbackState == MpegTsPlayerV2.STATE_READY) { in onStateChanged()
511 } else if (playbackState == MpegTsPlayerV2.STATE_BUFFERING) { in onStateChanged()
513 } else if (playbackState == MpegTsPlayerV2.STATE_ENDED) { in onStateChanged()
526 mPlayerState = playbackState; in onStateChanged()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/newavrcp/
DMediaPlayerListTest.java128 private MediaData prepareMediaData(int playbackState) { in prepareMediaData() argument
130 builder.setState(playbackState, 0, 1); in prepareMediaData()
/packages/apps/Car/libs/car-media-common/tests/robotests/src/com/android/car/media/common/playback/
DPlaybackViewModelTest.java234 PlaybackStateCompat playbackState) { in deliverValuesToCallbacks() argument
237 callback.onPlaybackStateChanged(playbackState); in deliverValuesToCallbacks()
/packages/services/Car/service/src/com/android/car/
DCarMediaService.java723 private void savePlaybackState(PlaybackState playbackState) { in savePlaybackState() argument
727 int state = playbackState != null ? playbackState.getState() : PlaybackState.STATE_NONE; in savePlaybackState()
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer2/
DMpegTsPlayerV2.java69 void onStateChanged(@PlayerState int playbackState); in onStateChanged() argument
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer/
DMpegTsPlayer.java74 void onStateChanged(boolean playWhenReady, int playbackState); in onStateChanged() argument