Home
last modified time | relevance | path

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

12

/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/
DPlaybackInfo.java63 public final boolean playWhenReady; field in PlaybackInfo
134 boolean playWhenReady, in PlaybackInfo() argument
148 this.playWhenReady = playWhenReady; in PlaybackInfo()
191 playWhenReady, in copyWithNewPosition()
216 playWhenReady, in copyWithTimeline()
241 playWhenReady, in copyWithPlaybackState()
266 playWhenReady, in copyWithPlaybackError()
291 playWhenReady, in copyWithIsLoading()
316 playWhenReady, in copyWithLoadingMediaPeriodId()
334 boolean playWhenReady, @PlaybackSuppressionReason int playbackSuppressionReason) { in copyWithPlayWhenReady() argument
[all …]
DSimpleExoPlayer.java719 boolean playWhenReady = getPlayWhenReady(); in setAudioAttributes()
721 int playerCommand = audioFocusManager.updateAudioFocus(playWhenReady, getPlaybackState()); in setAudioAttributes()
723 playWhenReady, playerCommand, getPlayWhenReadyChangeReason(playWhenReady, playerCommand)); in setAudioAttributes()
1264 boolean playWhenReady = getPlayWhenReady(); in prepare()
1266 int playerCommand = audioFocusManager.updateAudioFocus(playWhenReady, Player.STATE_BUFFERING); in prepare()
1268 playWhenReady, playerCommand, getPlayWhenReadyChangeReason(playWhenReady, playerCommand)); in prepare()
1468 public void setPlayWhenReady(boolean playWhenReady) { in setPlayWhenReady() argument
1471 int playerCommand = audioFocusManager.updateAudioFocus(playWhenReady, getPlaybackState()); in setPlayWhenReady()
1473 playWhenReady, playerCommand, getPlayWhenReadyChangeReason(playWhenReady, playerCommand)); in setPlayWhenReady()
1939 boolean playWhenReady, in updatePlayWhenReady() argument
[all …]
DExoPlayerImpl.java478 public void setPlayWhenReady(boolean playWhenReady) { in setPlayWhenReady() argument
480 playWhenReady, in setPlayWhenReady()
500 boolean playWhenReady, in setPlayWhenReady() argument
503 if (playbackInfo.playWhenReady == playWhenReady in setPlayWhenReady()
510 this.playbackInfo.copyWithPlayWhenReady(playWhenReady, playbackSuppressionReason); in setPlayWhenReady()
511 internalPlayer.setPlayWhenReady(playWhenReady, playbackSuppressionReason); in setPlayWhenReady()
523 return playbackInfo.playWhenReady; in getPlayWhenReady()
943 playbackInfo.playWhenReady, in getResetPlaybackInfo()
1291 playWhenReadyChanged = previousPlaybackInfo.playWhenReady != playbackInfo.playWhenReady; in PlaybackInfoUpdate()
1330 playbackInfo.playWhenReady, playbackInfo.playbackState)); in run()
[all …]
DDefaultControlDispatcher.java53 public boolean dispatchSetPlayWhenReady(Player player, boolean playWhenReady) { in dispatchSetPlayWhenReady() argument
54 player.setPlayWhenReady(playWhenReady); in dispatchSetPlayWhenReady()
DAudioFocusManager.java157 public int updateAudioFocus(boolean playWhenReady, @Player.State int playbackState) { in updateAudioFocus() argument
160 return playWhenReady ? PLAYER_COMMAND_PLAY_WHEN_READY : PLAYER_COMMAND_DO_NOT_PLAY; in updateAudioFocus()
162 return playWhenReady ? requestAudioFocus() : PLAYER_COMMAND_DO_NOT_PLAY; in updateAudioFocus()
DPlayer.java498 default void onPlayerStateChanged(boolean playWhenReady, @State int playbackState) {} in onPlayerStateChanged() argument
514 boolean playWhenReady, @PlayWhenReadyChangeReason int reason) {} in onPlayWhenReadyChanged() argument
1007 void setPlayWhenReady(boolean playWhenReady); in setPlayWhenReady() argument
DControlDispatcher.java36 boolean dispatchSetPlayWhenReady(Player player, boolean playWhenReady); in dispatchSetPlayWhenReady() argument
DExoPlayerImplInternal.java204 boolean playWhenReady, @PlaybackSuppressionReason int playbackSuppressionReason) { in setPlayWhenReady() argument
206 .obtainMessage(MSG_SET_PLAY_WHEN_READY, playWhenReady ? 1 : 0, playbackSuppressionReason) in setPlayWhenReady()
649 boolean playWhenReady, in setPlayWhenReadyInternal() argument
656 playbackInfo = playbackInfo.copyWithPlayWhenReady(playWhenReady, playbackSuppressionReason); in setPlayWhenReadyInternal()
1229 playbackInfo.playWhenReady, in resetInternal()
2124 return playbackInfo.playWhenReady
/external/exoplayer/tree/extensions/ima/src/test/java/com/google/android/exoplayer2/ext/ima/
DFakePlayer.java34 private boolean playWhenReady; field in FakePlayer
45 playWhenReady = true; in FakePlayer()
96 public void setState(@Player.State int state, boolean playWhenReady) { in setState() argument
97 boolean playWhenReadyChanged = this.playWhenReady != playWhenReady; in setState()
100 this.playWhenReady = playWhenReady; in setState()
103 listener.onPlayerStateChanged(playWhenReady, state); in setState()
109 playWhenReady, PLAY_WHEN_READY_CHANGE_REASON_USER_REQUEST); in setState()
145 return playWhenReady; in getPlayWhenReady()
/external/exoplayer/tree/extensions/cast/src/main/java/com/google/android/exoplayer2/ext/cast/
DCastPlayer.java103 private final StateHolder<Boolean> playWhenReady; field in CastPlayer
142 playWhenReady = new StateHolder<>(false); in CastPlayer()
399 public void setPlayWhenReady(boolean playWhenReady) { in setPlayWhenReady() argument
407 playWhenReady, PLAY_WHEN_READY_CHANGE_REASON_USER_REQUEST, playbackState); in setPlayWhenReady()
410 playWhenReady ? remoteMediaClient.play() : remoteMediaClient.pause(); in setPlayWhenReady()
411 this.playWhenReady.pendingResultCallback = in setPlayWhenReady()
421 pendingResult.setResultCallback(this.playWhenReady.pendingResultCallback); in setPlayWhenReady()
426 return playWhenReady.value; in getPlayWhenReady()
649 boolean wasPlaying = playbackState == Player.STATE_READY && playWhenReady.value; in updateInternalStateAndNotifyIfChanged()
651 boolean isPlaying = playbackState == Player.STATE_READY && playWhenReady.value; in updateInternalStateAndNotifyIfChanged()
[all …]
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/analytics/
DPlaybackStatsListener.java82 private boolean playWhenReady; field in PlaybackStatsListener
102 playWhenReady = false; in PlaybackStatsListener()
174 tracker.onPlayWhenReadyChanged(eventTime, playWhenReady, /* belongsToPlayback= */ true); in onSessionCreated()
256 EventTime eventTime, boolean playWhenReady, @Player.PlayWhenReadyChangeReason int reason) { in onPlayWhenReadyChanged() argument
257 this.playWhenReady = playWhenReady; in onPlayWhenReadyChanged()
263 .onPlayWhenReadyChanged(eventTime, playWhenReady, belongsToPlayback); in onPlayWhenReadyChanged()
494 private boolean playWhenReady; field in PlaybackStatsListener.PlaybackStatsTracker
565 EventTime eventTime, boolean playWhenReady, boolean belongsToPlayback) { in onPlayWhenReadyChanged() argument
566 this.playWhenReady = playWhenReady; in onPlayWhenReadyChanged()
925 if (!playWhenReady) { in resolveNewPlaybackState()
[all …]
DAnalyticsListener.java132 EventTime eventTime, boolean playWhenReady, @Player.State int playbackState) {} in onPlayerStateChanged() argument
150 EventTime eventTime, boolean playWhenReady, @Player.PlayWhenReadyChangeReason int reason) {} in onPlayWhenReadyChanged() argument
DAnalyticsCollector.java458 public final void onPlayerStateChanged(boolean playWhenReady, @Player.State int playbackState) { in onPlayerStateChanged() argument
461 listener.onPlayerStateChanged(eventTime, playWhenReady, playbackState); in onPlayerStateChanged()
475 boolean playWhenReady, @Player.PlayWhenReadyChangeReason int reason) { in onPlayWhenReadyChanged() argument
478 listener.onPlayWhenReadyChanged(eventTime, playWhenReady, reason); in onPlayWhenReadyChanged()
/external/exoplayer/tree/testutils/src/main/java/com/google/android/exoplayer2/testutil/
DAction.java374 private final boolean playWhenReady; field in Action.SetPlayWhenReady
380 public SetPlayWhenReady(String tag, boolean playWhenReady) { in SetPlayWhenReady() argument
381 super(tag, playWhenReady ? "Play" : "Pause"); in SetPlayWhenReady()
382 this.playWhenReady = playWhenReady; in SetPlayWhenReady()
388 player.setPlayWhenReady(playWhenReady); in doActionImpl()
848 public WaitForPlayWhenReady(String tag, boolean playWhenReady) { in WaitForPlayWhenReady() argument
850 targetPlayWhenReady = playWhenReady; in WaitForPlayWhenReady()
870 boolean playWhenReady, @Player.PlayWhenReadyChangeReason int reason) { in doActionAndScheduleNextImpl()
871 if (targetPlayWhenReady == playWhenReady) { in doActionAndScheduleNextImpl()
DExoHostedTest.java189 EventTime eventTime, boolean playWhenReady, @Player.State int playbackState) { in onPlayerStateChanged() argument
190 Log.d(tag, "state [" + playWhenReady + ", " + playbackState + "]"); in onPlayerStateChanged()
196 boolean playing = playWhenReady && playbackState == Player.STATE_READY; in onPlayerStateChanged()
DTestExoPlayer.java347 public void onPlayWhenReadyChanged(boolean playWhenReady, int reason) { in runUntilPlayWhenReady()
348 if (playWhenReady == expectedPlayWhenReady) { in runUntilPlayWhenReady()
DStubExoPlayer.java272 public void setPlayWhenReady(boolean playWhenReady) { in setPlayWhenReady() argument
/external/exoplayer/tree/demos/cast/src/main/java/com/google/android/exoplayer2/castdemo/
DPlayerManager.java303 boolean playWhenReady = false; in setCurrentPlayer()
311 playWhenReady = previousPlayer.getPlayWhenReady(); in setCurrentPlayer()
325 currentPlayer.setPlayWhenReady(playWhenReady); in setCurrentPlayer()
/external/exoplayer/tree/extensions/mediasession/src/main/java/com/google/android/exoplayer2/ext/mediasession/
DMediaSessionConnector.java204 void onPrepare(boolean playWhenReady); in onPrepare() argument
212 void onPrepareFromMediaId(String mediaId, boolean playWhenReady, @Nullable Bundle extras); in onPrepareFromMediaId() argument
220 void onPrepareFromSearch(String query, boolean playWhenReady, @Nullable Bundle extras); in onPrepareFromSearch() argument
228 void onPrepareFromUri(Uri uri, boolean playWhenReady, @Nullable Bundle extras); in onPrepareFromUri() argument
946 @Player.State int exoPlayerPlaybackState, boolean playWhenReady) { in getMediaSessionPlaybackState() argument
951 return playWhenReady ? PlaybackStateCompat.STATE_PLAYING : PlaybackStateCompat.STATE_PAUSED; in getMediaSessionPlaybackState()
1097 boolean playWhenReady, @Player.PlayWhenReadyChangeReason int reason) { in onPlayWhenReadyChanged() argument
/external/exoplayer/tree/extensions/ima/src/main/java/com/google/android/exoplayer2/ext/ima/
DImaAdsLoader.java993 boolean playWhenReady, @Player.PlayWhenReadyChangeReason int reason) { in onPlayWhenReadyChanged() argument
998 if (imaAdState == IMA_AD_STATE_PLAYING && !playWhenReady) { in onPlayWhenReadyChanged()
1003 if (imaAdState == IMA_AD_STATE_PAUSED && playWhenReady) { in onPlayWhenReadyChanged()
1007 handlePlayerStateChanged(playWhenReady, player.getPlaybackState()); in onPlayWhenReadyChanged()
1155 private void handlePlayerStateChanged(boolean playWhenReady, @Player.State int playbackState) { in handlePlayerStateChanged() argument
1158 && playWhenReady) { in handlePlayerStateChanged()
/external/exoplayer/tree/library/ui/src/main/java/com/google/android/exoplayer2/ui/
DDebugTextViewHelper.java88 boolean playWhenReady, @Player.PlayWhenReadyChangeReason int playbackState) { in onPlayWhenReadyChanged() argument
DPlayerNotificationManager.java1320 boolean playWhenReady, @Player.PlayWhenReadyChangeReason int reason) { in onPlayWhenReadyChanged() argument
DPlayerControlView.java1229 boolean playWhenReady, @Player.PlayWhenReadyChangeReason int reason) { in onPlayWhenReadyChanged() argument
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/util/
DEventLogger.java106 EventTime eventTime, boolean playWhenReady, @Player.PlayWhenReadyChangeReason int reason) { in onPlayWhenReadyChanged() argument
110 playWhenReady + ", " + getPlayWhenReadyChangeReasonString(reason)); in onPlayWhenReadyChanged()
/external/exoplayer/tree/library/core/src/test/java/com/google/android/exoplayer2/
DExoPlayerTest.java1709 EventTime eventTime, boolean playWhenReady, int playbackState) { in playbackErrorAndReprepareWithPositionResetKeepsWindowSequenceNumber()
2593 boolean playWhenReady, @Player.PlayWhenReadyChangeReason int reason) { in recursivePlayerChangesAreReportedInCorrectOrder()
2594 eventListenerPlayWhenReady.add(playWhenReady); in recursivePlayerChangesAreReportedInCorrectOrder()
3278 assertThat(playerStateGrabber.playWhenReady).isFalse(); in audioFocusDenied()
3477 assertThat(playerStateGrabber.playWhenReady).isTrue(); in becomingNoisyIgnoredIfBecomingNoisyHandlingIsDisabled()
6441 public void onPlayWhenReadyChanged(boolean playWhenReady, int reason) { in multipleListenersAndMultipleCallbacks_callbacksAreOrderedByType()
6453 public void onPlayWhenReadyChanged(boolean playWhenReady, int reason) { in multipleListenersAndMultipleCallbacks_callbacksAreOrderedByType()
6555 public boolean playWhenReady;
6561 playWhenReady = player.getPlayWhenReady();

12