Home
last modified time | relevance | path

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

12

/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/
DPlaybackInfo.java51 @Player.State public final int playbackState; field in PlaybackInfo
128 @Player.State int playbackState, in PlaybackInfo() argument
142 this.playbackState = playbackState; in PlaybackInfo()
185 playbackState, in copyWithNewPosition()
210 playbackState, in copyWithTimeline()
230 public PlaybackInfo copyWithPlaybackState(int playbackState) { in copyWithPlaybackState() argument
235 playbackState, in copyWithPlaybackState()
260 playbackState, in copyWithPlaybackError()
285 playbackState, in copyWithIsLoading()
310 playbackState, in copyWithLoadingMediaPeriodId()
[all …]
DAudioFocusManager.java157 public int updateAudioFocus(boolean playWhenReady, @Player.State int playbackState) { in updateAudioFocus() argument
158 if (shouldAbandonAudioFocus(playbackState)) { in updateAudioFocus()
181 private boolean shouldAbandonAudioFocus(@Player.State int playbackState) { in shouldAbandonAudioFocus() argument
182 return playbackState == Player.STATE_IDLE || focusGain != C.AUDIOFOCUS_GAIN; in shouldAbandonAudioFocus()
DExoPlayerImpl.java256 return playbackInfo.playbackState; in getPlaybackState()
287 if (playbackInfo.playbackState != Player.STATE_IDLE) { in prepare()
914 boolean clearPlaylist, boolean resetError, @Player.State int playbackState) { in getResetPlaybackInfo() argument
937 playbackState, in getResetPlaybackInfo()
1004 int maskingPlaybackState = playbackInfo.playbackState; in setMediaSourcesInternal()
1005 if (startWindowIndex != C.INDEX_UNSET && playbackInfo.playbackState != STATE_IDLE) { in setMediaSourcesInternal()
1054 playbackInfo.playbackState != STATE_IDLE in removeMediaItemsInternal()
1055 && playbackInfo.playbackState != STATE_ENDED in removeMediaItemsInternal()
1283 playbackStateChanged = previousPlaybackInfo.playbackState != playbackInfo.playbackState; in PlaybackInfoUpdate()
1330 playbackInfo.playWhenReady, playbackInfo.playbackState)); in run()
[all …]
DExoPlayerImplInternal.java562 if (playbackInfo.playbackState != state) { in setState()
662 if (playbackInfo.playbackState == Player.STATE_READY) { in setPlayWhenReadyInternal()
665 } else if (playbackInfo.playbackState == Player.STATE_BUFFERING) { in setPlayWhenReadyInternal()
780 if (playbackInfo.playbackState == Player.STATE_IDLE in doSomeWork()
781 || playbackInfo.playbackState == Player.STATE_ENDED) { in doSomeWork()
852 } else if (playbackInfo.playbackState == Player.STATE_BUFFERING in doSomeWork()
858 } else if (playbackInfo.playbackState == Player.STATE_READY in doSomeWork()
865 if (playbackInfo.playbackState == Player.STATE_BUFFERING) { in doSomeWork()
883 if ((shouldPlayWhenReady() && playbackInfo.playbackState == Player.STATE_READY) in doSomeWork()
884 || playbackInfo.playbackState == Player.STATE_BUFFERING) { in doSomeWork()
[all …]
DPlayer.java498 default void onPlayerStateChanged(boolean playWhenReady, @State int playbackState) {} in onPlayerStateChanged() argument
/external/exoplayer/tree/extensions/leanback/src/main/java/com/google/android/exoplayer2/ext/leanback/
DLeanbackPlayerAdapter.java154 int playbackState = player.getPlaybackState(); in isPlaying() local
155 return playbackState != Player.STATE_IDLE && playbackState != Player.STATE_ENDED in isPlaying()
229 int playbackState = player.getPlaybackState(); in notifyStateChanged() local
233 callback.onBufferingStateChanged(this, playbackState == Player.STATE_BUFFERING); in notifyStateChanged()
234 if (playbackState == Player.STATE_ENDED) { in notifyStateChanged()
275 public void onPlaybackStateChanged(@Player.State int playbackState) { in onPlaybackStateChanged() argument
/external/exoplayer/tree/testutils/src/main/java/com/google/android/exoplayer2/testutil/
DExoHostedTest.java189 EventTime eventTime, boolean playWhenReady, @Player.State int playbackState) { in onPlayerStateChanged() argument
190 Log.d(tag, "state [" + playWhenReady + ", " + playbackState + "]"); in onPlayerStateChanged()
191 playerWasPrepared |= playbackState != Player.STATE_IDLE; in onPlayerStateChanged()
192 if (playbackState == Player.STATE_ENDED in onPlayerStateChanged()
193 || (playbackState == Player.STATE_IDLE && playerWasPrepared)) { in onPlayerStateChanged()
196 boolean playing = playWhenReady && playbackState == Player.STATE_READY; in onPlayerStateChanged()
DExoPlayerTestRunner.java626 public void onPlaybackStateChanged(@Player.State int playbackState) { in onPlaybackStateChanged() argument
627 playbackStates.add(playbackState); in onPlaybackStateChanged()
628 playerWasPrepared |= playbackState != Player.STATE_IDLE; in onPlaybackStateChanged()
629 if (playbackState == Player.STATE_ENDED in onPlaybackStateChanged()
630 || (playbackState == Player.STATE_IDLE && playerWasPrepared)) { in onPlaybackStateChanged()
DAction.java920 public void onPlaybackStateChanged(@Player.State int playbackState) { in doActionAndScheduleNextImpl()
921 if (targetPlaybackState == playbackState) { in doActionAndScheduleNextImpl()
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/analytics/
DPlaybackStats.java40 public final @PlaybackState int playbackState; field in PlaybackStats.EventTimeAndPlaybackState
48 public EventTimeAndPlaybackState(EventTime eventTime, @PlaybackState int playbackState) { in EventTimeAndPlaybackState() argument
50 this.playbackState = playbackState; in EventTimeAndPlaybackState()
62 if (playbackState != that.playbackState) { in equals()
71 result = 31 * result + playbackState; in hashCode()
626 public long getPlaybackStateDurationMs(@PlaybackState int playbackState) { in getPlaybackStateDurationMs() argument
627 return playbackStateDurationsMs[playbackState]; in getPlaybackStateDurationMs()
643 state = timeAndState.playbackState; in getPlaybackStateAtTime()
DPlaybackStatsListener.java83 @Player.State private int playbackState; field in PlaybackStatsListener
103 playbackState = Player.STATE_IDLE; in PlaybackStatsListener()
173 tracker.onPlaybackStateChanged(eventTime, playbackState, /* belongsToPlayback= */ true); in onSessionCreated()
244 playbackState = state; in onPlaybackStateChanged()
250 .onPlaybackStateChanged(eventTime, playbackState, belongsToPlayback); in onPlaybackStateChanged()
442 boolean isCompletelyIdle = eventTime.timeline.isEmpty() && playbackState == Player.STATE_IDLE; in maybeAddSession()
DAnalyticsListener.java132 EventTime eventTime, boolean playWhenReady, @Player.State int playbackState) {} in onPlayerStateChanged() argument
/external/exoplayer/tree/demos/cast/src/main/java/com/google/android/exoplayer2/castdemo/
DPlayerManager.java230 public void onPlaybackStateChanged(@Player.State int playbackState) { in onPlaybackStateChanged() argument
279 int playbackState = currentPlayer.getPlaybackState(); in updateCurrentItemIndex() local
281 playbackState != Player.STATE_IDLE && playbackState != Player.STATE_ENDED in updateCurrentItemIndex()
308 int playbackState = previousPlayer.getPlaybackState(); in setCurrentPlayer() local
309 if (playbackState != Player.STATE_ENDED) { in setCurrentPlayer()
/external/exoplayer/tree/extensions/cast/src/main/java/com/google/android/exoplayer2/ext/cast/
DCastPlayer.java109 @Player.State private int playbackState; field in CastPlayer
144 playbackState = STATE_IDLE; in CastPlayer()
376 return playbackState; in getPlaybackState()
407 playWhenReady, PLAY_WHEN_READY_CHANGE_REASON_USER_REQUEST, playbackState); in setPlayWhenReady()
482 playbackState = STATE_IDLE; in stop()
649 boolean wasPlaying = playbackState == Player.STATE_READY && playWhenReady.value; in updateInternalStateAndNotifyIfChanged()
651 boolean isPlaying = playbackState == Player.STATE_READY && playWhenReady.value; in updateInternalStateAndNotifyIfChanged()
851 @Player.State int playbackState) {
853 boolean playbackStateChanged = this.playbackState != playbackState;
855 this.playbackState = playbackState;
[all …]
/external/exoplayer/tree/extensions/opus/src/androidTest/java/com/google/android/exoplayer2/ext/opus/
DOpusPlaybackTest.java108 public void onPlaybackStateChanged(@Player.State int playbackState) { in onPlaybackStateChanged() argument
109 if (playbackState == Player.STATE_ENDED in onPlaybackStateChanged()
110 || (playbackState == Player.STATE_IDLE && playbackException != null)) { in onPlaybackStateChanged()
/external/exoplayer/tree/extensions/flac/src/androidTest/java/com/google/android/exoplayer2/ext/flac/
DFlacPlaybackTest.java125 public void onPlaybackStateChanged(@Player.State int playbackState) { in onPlaybackStateChanged() argument
126 if (playbackState == Player.STATE_ENDED in onPlaybackStateChanged()
127 || (playbackState == Player.STATE_IDLE && playbackException != null)) { in onPlaybackStateChanged()
/external/exoplayer/tree/extensions/vp9/src/androidTest/java/com/google/android/exoplayer2/ext/vp9/
DVpxPlaybackTest.java141 public void onPlaybackStateChanged(@Player.State int playbackState) { in onPlaybackStateChanged() argument
142 if (playbackState == Player.STATE_ENDED in onPlaybackStateChanged()
143 || (playbackState == Player.STATE_IDLE && playbackException != null)) { in onPlaybackStateChanged()
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/bluetooth/
DBluetoothMediaFacade.java259 public static void dispatchPlaybackStateChanged(int playbackState) { in dispatchPlaybackStateChanged() argument
261 switch (playbackState) { in dispatchPlaybackStateChanged()
382 PlaybackState playbackState = mMediaController.getPlaybackState(); in bluetoothMediaGetCurrentPlaybackState() local
383 if (playbackState == null) { in bluetoothMediaGetCurrentPlaybackState()
387 return playbackState; in bluetoothMediaGetCurrentPlaybackState()
/external/exoplayer/tree/library/ui/src/main/java/com/google/android/exoplayer2/ui/
DDebugTextViewHelper.java82 public final void onPlaybackStateChanged(@Player.State int playbackState) { in onPlaybackStateChanged() argument
88 boolean playWhenReady, @Player.PlayWhenReadyChangeReason int playbackState) { in onPlayWhenReadyChanged() argument
DPlayerNotificationManager.java1208 int playbackState = player.getPlaybackState(); in getOngoing() local
1209 return (playbackState == Player.STATE_BUFFERING || playbackState == Player.STATE_READY) in getOngoing()
1314 public void onPlaybackStateChanged(@Player.State int playbackState) { in onPlaybackStateChanged() argument
DPlayerControlView.java1001 int playbackState = player == null ? Player.STATE_IDLE : player.getPlaybackState(); in updateProgress() local
1018 } else if (playbackState != Player.STATE_ENDED && playbackState != Player.STATE_IDLE) { in updateProgress()
1222 public void onPlaybackStateChanged(@Player.State int playbackState) { in onPlaybackStateChanged() argument
DPlayerView.java1277 int playbackState = player.getPlaybackState(); in shouldShowControllerIndefinitely() local
1279 && (playbackState == Player.STATE_IDLE in shouldShowControllerIndefinitely()
1280 || playbackState == Player.STATE_ENDED in shouldShowControllerIndefinitely()
1568 public void onPlaybackStateChanged(@Player.State int playbackState) { in onPlaybackStateChanged() argument
/external/exoplayer/tree/extensions/ima/src/main/java/com/google/android/exoplayer2/ext/ima/
DImaAdsLoader.java984 public void onPlaybackStateChanged(@Player.State int playbackState) { in onPlaybackStateChanged() argument
988 handlePlayerStateChanged(player.getPlayWhenReady(), playbackState); in onPlaybackStateChanged() local
1155 private void handlePlayerStateChanged(boolean playWhenReady, @Player.State int playbackState) { in handlePlayerStateChanged() argument
1157 && playbackState == Player.STATE_BUFFERING in handlePlayerStateChanged()
1160 } else if (imaAdState != IMA_AD_STATE_NONE && playbackState == Player.STATE_ENDED) { in handlePlayerStateChanged()
/external/exoplayer/tree/demos/main/src/main/java/com/google/android/exoplayer2/demo/
DPlayerActivity.java507 public void onPlaybackStateChanged(@Player.State int playbackState) { in onPlaybackStateChanged() argument
508 if (playbackState == Player.STATE_ENDED) { in onPlaybackStateChanged()
/external/sl4a/Common/src/com/googlecode/android_scripting/jsonrpc/
DJsonBuilder.java655 private static JSONObject buildJsonPlaybackState(PlaybackState playbackState) in buildJsonPlaybackState() argument
658 result.put("state", playbackState.getState()); in buildJsonPlaybackState()
659 result.put("position", playbackState.getPosition()); in buildJsonPlaybackState()
660 result.put("speed", playbackState.getPlaybackSpeed()); in buildJsonPlaybackState()
661 result.put("actions", playbackState.getActions()); in buildJsonPlaybackState()

12