Home
last modified time | relevance | path

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

/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/
DAbstractConcatenatedTimeline.java78 int windowIndex, @Player.RepeatMode int repeatMode, boolean shuffleModeEnabled) { in getNextWindowIndex() argument
81 repeatMode = repeatMode == Player.REPEAT_MODE_ONE ? Player.REPEAT_MODE_ALL : repeatMode; in getNextWindowIndex()
91 repeatMode == Player.REPEAT_MODE_ALL ? Player.REPEAT_MODE_OFF : repeatMode, in getNextWindowIndex()
106 if (repeatMode == Player.REPEAT_MODE_ALL) { in getNextWindowIndex()
114 int windowIndex, @Player.RepeatMode int repeatMode, boolean shuffleModeEnabled) { in getPreviousWindowIndex() argument
117 repeatMode = repeatMode == Player.REPEAT_MODE_ONE ? Player.REPEAT_MODE_ALL : repeatMode; in getPreviousWindowIndex()
127 repeatMode == Player.REPEAT_MODE_ALL ? Player.REPEAT_MODE_OFF : repeatMode, in getPreviousWindowIndex()
143 if (repeatMode == Player.REPEAT_MODE_ALL) { in getPreviousWindowIndex()
DTimeline.java702 public int getNextWindowIndex(int windowIndex, @Player.RepeatMode int repeatMode, in getNextWindowIndex() argument
704 switch (repeatMode) { in getNextWindowIndex()
727 public int getPreviousWindowIndex(int windowIndex, @Player.RepeatMode int repeatMode, in getPreviousWindowIndex() argument
729 switch (repeatMode) { in getPreviousWindowIndex()
813 @Player.RepeatMode int repeatMode, boolean shuffleModeEnabled) { in getNextPeriodIndex() argument
816 int nextWindowIndex = getNextWindowIndex(windowIndex, repeatMode, shuffleModeEnabled); in getNextPeriodIndex()
837 @Player.RepeatMode int repeatMode, boolean shuffleModeEnabled) { in isLastPeriod() argument
838 return getNextPeriodIndex(periodIndex, period, window, repeatMode, shuffleModeEnabled) in isLastPeriod()
DMediaPeriodQueue.java46 private @RepeatMode int repeatMode; field in MediaPeriodQueue
69 public boolean updateRepeatMode(Timeline timeline, @RepeatMode int repeatMode) { in updateRepeatMode() argument
70 this.repeatMode = repeatMode; in updateRepeatMode()
507 currentPeriodIndex, period, window, repeatMode, shuffleModeEnabled); in updateForPlaybackModeChange()
573 currentPeriodIndex, period, window, repeatMode, shuffleModeEnabled); in getFollowingMediaPeriodInfo()
801 && timeline.isLastPeriod(periodIndex, period, window, repeatMode, shuffleModeEnabled) in isLastInTimeline()
DExoPlayerImplInternal.java127 @Player.RepeatMode private int repeatMode; field in ExoPlayerImplInternal
146 @Player.RepeatMode int repeatMode, in ExoPlayerImplInternal() argument
156 this.repeatMode = repeatMode; in ExoPlayerImplInternal()
216 public void setRepeatMode(@Player.RepeatMode int repeatMode) { in setRepeatMode() argument
217 handler.obtainMessage(MSG_SET_REPEAT_MODE, repeatMode, 0).sendToTarget(); in setRepeatMode()
681 private void setRepeatModeInternal(@Player.RepeatMode int repeatMode) in setRepeatModeInternal() argument
683 this.repeatMode = repeatMode; in setRepeatModeInternal()
684 if (!queue.updateRepeatMode(playbackInfo.timeline, repeatMode)) { in setRepeatModeInternal()
913 repeatMode, in seekToInternal()
1275 repeatMode, in sendMessageInternal()
[all …]
DExoPlayerImpl.java78 @RepeatMode private int repeatMode; field in ExoPlayerImpl
134 repeatMode = Player.REPEAT_MODE_OFF; in ExoPlayerImpl()
166 repeatMode, in ExoPlayerImpl()
527 public void setRepeatMode(@RepeatMode int repeatMode) { in setRepeatMode() argument
528 if (this.repeatMode != repeatMode) { in setRepeatMode()
529 this.repeatMode = repeatMode; in setRepeatMode()
530 internalPlayer.setRepeatMode(repeatMode); in setRepeatMode()
531 notifyListeners(listener -> listener.onRepeatModeChanged(repeatMode)); in setRepeatMode()
537 return repeatMode; in getRepeatMode()
1156 repeatMode, in maskTimelineAndWindowIndex()
DBasePlayer.java225 @RepeatMode int repeatMode = getRepeatMode(); in getRepeatModeForNavigation() local
226 return repeatMode == REPEAT_MODE_ONE ? REPEAT_MODE_OFF : repeatMode; in getRepeatModeForNavigation()
DDefaultControlDispatcher.java116 public boolean dispatchSetRepeatMode(Player player, @Player.RepeatMode int repeatMode) { in dispatchSetRepeatMode() argument
117 player.setRepeatMode(repeatMode); in dispatchSetRepeatMode()
DControlDispatcher.java88 boolean dispatchSetRepeatMode(Player player, @RepeatMode int repeatMode); in dispatchSetRepeatMode() argument
DPlayer.java536 default void onRepeatModeChanged(@RepeatMode int repeatMode) {} in onRepeatModeChanged() argument
1021 void setRepeatMode(@RepeatMode int repeatMode); in setRepeatMode() argument
DSimpleExoPlayer.java1501 public void setRepeatMode(@RepeatMode int repeatMode) { in setRepeatMode() argument
1503 player.setRepeatMode(repeatMode); in setRepeatMode()
/external/exoplayer/tree/testutils/src/main/java/com/google/android/exoplayer2/testutil/
DTimelineAsserts.java80 @Player.RepeatMode int repeatMode, in assertPreviousWindowIndices() argument
84 assertThat(timeline.getPreviousWindowIndex(i, repeatMode, shuffleModeEnabled)) in assertPreviousWindowIndices()
95 @Player.RepeatMode int repeatMode, in assertNextWindowIndices() argument
99 assertThat(timeline.getNextWindowIndex(i, repeatMode, shuffleModeEnabled)) in assertNextWindowIndices()
149 for (int repeatMode : REPEAT_MODES) { in assertPeriodCounts()
151 assertThat(timeline.getNextPeriodIndex(i, period, window, repeatMode, false)) in assertPeriodCounts()
154 int nextWindow = timeline.getNextWindowIndex(expectedWindowIndex, repeatMode, false); in assertPeriodCounts()
157 assertThat(timeline.getNextPeriodIndex(i, period, window, repeatMode, false)) in assertPeriodCounts()
DAction.java492 @Player.RepeatMode private final int repeatMode; field in Action.SetRepeatMode
498 public SetRepeatMode(String tag, @Player.RepeatMode int repeatMode) { in SetRepeatMode() argument
499 super(tag, "SetRepeatMode:" + repeatMode); in SetRepeatMode()
500 this.repeatMode = repeatMode; in SetRepeatMode()
506 player.setRepeatMode(repeatMode); in doActionImpl()
DActionSchedule.java433 public Builder setRepeatMode(@Player.RepeatMode int repeatMode) { in setRepeatMode() argument
434 return apply(new SetRepeatMode(tag, repeatMode)); in setRepeatMode()
DStubExoPlayer.java282 public void setRepeatMode(@RepeatMode int repeatMode) { in setRepeatMode() argument
/external/exoplayer/tree/extensions/cast/src/main/java/com/google/android/exoplayer2/ext/cast/
DCastPlayer.java104 private final StateHolder<Integer> repeatMode; field in CastPlayer
143 repeatMode = new StateHolder<>(REPEAT_MODE_OFF); in CastPlayer()
165 new MediaQueueItem[] {item}, /* startWindowIndex= */ 0, positionMs, repeatMode.value); in loadItem()
175 MediaQueueItem[] items, int startIndex, long positionMs, @RepeatMode int repeatMode) { in loadItems() argument
176 return setMediaItemsInternal(items, startIndex, positionMs, repeatMode); in loadItems()
310 toMediaQueueItems(mediaItems), startWindowIndex, startPositionMs, repeatMode.value); in setMediaItems()
517 public void setRepeatMode(@RepeatMode int repeatMode) { in setRepeatMode() argument
524 setRepeatModeAndNotifyIfChanged(repeatMode); in setRepeatMode()
527 remoteMediaClient.queueSetRepeatMode(getCastRepeatMode(repeatMode), /* jsonObject= */ null); in setRepeatMode()
528 this.repeatMode.pendingResultCallback = in setRepeatMode()
[all …]
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/source/
DForwardingTimeline.java38 public int getNextWindowIndex(int windowIndex, @Player.RepeatMode int repeatMode, in getNextWindowIndex() argument
40 return timeline.getNextWindowIndex(windowIndex, repeatMode, shuffleModeEnabled); in getNextWindowIndex()
44 public int getPreviousWindowIndex(int windowIndex, @Player.RepeatMode int repeatMode, in getPreviousWindowIndex() argument
46 return timeline.getPreviousWindowIndex(windowIndex, repeatMode, shuffleModeEnabled); in getPreviousWindowIndex()
DLoopingMediaSource.java211 public int getNextWindowIndex(int windowIndex, @Player.RepeatMode int repeatMode, in getNextWindowIndex() argument
213 int childNextWindowIndex = timeline.getNextWindowIndex(windowIndex, repeatMode, in getNextWindowIndex()
220 public int getPreviousWindowIndex(int windowIndex, @Player.RepeatMode int repeatMode, in getPreviousWindowIndex() argument
222 int childPreviousWindowIndex = timeline.getPreviousWindowIndex(windowIndex, repeatMode, in getPreviousWindowIndex()
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/util/
DRepeatModeUtil.java82 public static boolean isRepeatModeEnabled(@Player.RepeatMode int repeatMode, int enabledModes) { in isRepeatModeEnabled() argument
83 switch (repeatMode) { in isRepeatModeEnabled()
DEventLogger.java128 public void onRepeatModeChanged(EventTime eventTime, @Player.RepeatMode int repeatMode) { in onRepeatModeChanged() argument
129 logd(eventTime, "repeatMode", getRepeatModeString(repeatMode)); in onRepeatModeChanged()
610 private static String getRepeatModeString(@Player.RepeatMode int repeatMode) { in getRepeatModeString() argument
611 switch (repeatMode) { in getRepeatModeString()
/external/exoplayer/tree/extensions/mediasession/src/main/java/com/google/android/exoplayer2/ext/mediasession/
DMediaSessionConnector.java782 @Player.RepeatMode int repeatMode = player.getRepeatMode(); in invalidateMediaSessionPlaybackState() local
784 repeatMode == Player.REPEAT_MODE_ONE in invalidateMediaSessionPlaybackState()
786 : repeatMode == Player.REPEAT_MODE_ALL in invalidateMediaSessionPlaybackState()
1107 public void onRepeatModeChanged(@Player.RepeatMode int repeatMode) { in onRepeatModeChanged() argument
1213 @RepeatModeUtil.RepeatToggleModes int repeatMode; in onSetRepeatMode() local
1217 repeatMode = Player.REPEAT_MODE_ALL; in onSetRepeatMode()
1220 repeatMode = Player.REPEAT_MODE_ONE; in onSetRepeatMode()
1225 repeatMode = Player.REPEAT_MODE_OFF; in onSetRepeatMode()
1228 controlDispatcher.dispatchSetRepeatMode(player, repeatMode); in onSetRepeatMode()
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/analytics/
DAnalyticsListener.java223 default void onRepeatModeChanged(EventTime eventTime, @Player.RepeatMode int repeatMode) {} in onRepeatModeChanged() argument
DAnalyticsCollector.java500 public final void onRepeatModeChanged(@Player.RepeatMode int repeatMode) { in onRepeatModeChanged() argument
503 listener.onRepeatModeChanged(eventTime, repeatMode); in onRepeatModeChanged()
/external/exoplayer/tree/library/ui/src/main/java/com/google/android/exoplayer2/ui/
DPlayerNotificationManager.java1345 public void onRepeatModeChanged(@Player.RepeatMode int repeatMode) { in onRepeatModeChanged() argument
DPlayerControlView.java1240 public void onRepeatModeChanged(int repeatMode) { in onRepeatModeChanged() argument
/external/exoplayer/tree/library/core/src/test/java/com/google/android/exoplayer2/analytics/
DAnalyticsCollectorTest.java1340 public void onRepeatModeChanged(EventTime eventTime, int repeatMode) { in onRepeatModeChanged() argument