/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/ |
D | PlayerMessage.java | 64 private long positionMs; field in PlayerMessage 94 this.positionMs = C.TIME_UNSET; in PlayerMessage() 170 return positionMs; in getPositionMs() 182 public PlayerMessage setPosition(long positionMs) { in setPosition() argument 184 this.positionMs = positionMs; in setPosition() 200 public PlayerMessage setPosition(int windowIndex, long positionMs) { in setPosition() argument 202 Assertions.checkArgument(positionMs != C.TIME_UNSET); in setPosition() 204 throw new IllegalSeekPositionException(timeline, windowIndex, positionMs); in setPosition() 207 this.positionMs = positionMs; in setPosition() 246 if (positionMs == C.TIME_UNSET) { in send()
|
D | DefaultControlDispatcher.java | 59 public boolean dispatchSeekTo(Player player, int windowIndex, long positionMs) { in dispatchSeekTo() argument 60 player.seekTo(windowIndex, positionMs); in dispatchSeekTo() 174 long positionMs = player.getCurrentPosition() + offsetMs; in seekToOffset() local 177 positionMs = Math.min(positionMs, durationMs); in seekToOffset() 179 positionMs = Math.max(positionMs, 0); in seekToOffset() 180 player.seekTo(player.getCurrentWindowIndex(), positionMs); in seekToOffset() local
|
D | IllegalSeekPositionException.java | 35 public final long positionMs; field in IllegalSeekPositionException 42 public IllegalSeekPositionException(Timeline timeline, int windowIndex, long positionMs) { in IllegalSeekPositionException() argument 45 this.positionMs = positionMs; in IllegalSeekPositionException()
|
D | ExoPlayerImpl.java | 560 public void seekTo(int windowIndex, long positionMs) { in seekTo() argument 563 throw new IllegalSeekPositionException(timeline, windowIndex, positionMs); in seekTo() 580 maskWindowIndexAndPositionForSeek(timeline, windowIndex, positionMs); in seekTo() 585 internalPlayer.seekTo(timeline, windowIndex, C.msToUs(positionMs)); in seekTo() 1175 Timeline timeline, int windowIndex, long positionMs) { in maskWindowIndexAndPositionForSeek() argument 1178 maskingWindowPositionMs = positionMs == C.TIME_UNSET ? 0 : positionMs; in maskWindowIndexAndPositionForSeek() 1185 positionMs == C.TIME_UNSET in maskWindowIndexAndPositionForSeek() 1187 : C.msToUs(positionMs); in maskWindowIndexAndPositionForSeek() 1236 long positionMs = C.usToMs(positionUs); in periodPositionUsToWindowPositionMs() local 1238 positionMs += period.getPositionInWindowMs(); in periodPositionUsToWindowPositionMs() [all …]
|
D | ControlDispatcher.java | 47 boolean dispatchSeekTo(Player player, int windowIndex, long positionMs); in dispatchSeekTo() argument
|
D | BasePlayer.java | 108 public final void seekTo(long positionMs) { in seekTo() argument 109 seekTo(getCurrentWindowIndex(), positionMs); in seekTo() local
|
D | Player.java | 1072 void seekTo(long positionMs); in seekTo() argument 1083 void seekTo(int windowIndex, long positionMs); in seekTo() argument
|
D | SimpleExoPlayer.java | 1525 public void seekTo(int windowIndex, long positionMs) { in seekTo() argument 1528 player.seekTo(windowIndex, positionMs); in seekTo()
|
/external/exoplayer/tree/testutils/src/main/java/com/google/android/exoplayer2/testutil/ |
D | Action.java | 125 private final long positionMs; field in Action.Seek 134 public Seek(String tag, long positionMs) { in Seek() argument 135 super(tag, "Seek:" + positionMs); in Seek() 137 this.positionMs = positionMs; in Seek() 150 public Seek(String tag, int windowIndex, long positionMs, boolean catchIllegalSeekException) { in Seek() argument 151 super(tag, "Seek:" + positionMs); in Seek() 153 this.positionMs = positionMs; in Seek() 162 player.seekTo(positionMs); in doActionImpl() 164 player.seekTo(windowIndex, positionMs); in doActionImpl() 178 private final long positionMs; field in Action.SetMediaItems [all …]
|
D | ActionSchedule.java | 166 public Builder seek(long positionMs) { in seek() argument 167 return apply(new Seek(tag, positionMs)); in seek() 177 public Builder seek(int windowIndex, long positionMs) { in seek() argument 178 return apply(new Seek(tag, windowIndex, positionMs, /* catchIllegalSeekException= */ false)); in seek() 189 public Builder seek(int windowIndex, long positionMs, boolean catchIllegalSeekException) { in seek() argument 190 return apply(new Seek(tag, windowIndex, positionMs, catchIllegalSeekException)); in seek() 199 public Builder seekAndWait(long positionMs) { in seekAndWait() argument 200 return apply(new Seek(tag, positionMs)) in seekAndWait() 263 public Builder playUntilPosition(int windowIndex, long positionMs) { in playUntilPosition() argument 264 return apply(new PlayUntilPosition(tag, windowIndex, positionMs)); in playUntilPosition() [all …]
|
D | ExoPlayerTestRunner.java | 138 public Builder initialSeek(int windowIndex, long positionMs) { in initialSeek() argument 140 this.initialPositionMs = positionMs; in initialSeek()
|
D | StubExoPlayer.java | 312 public void seekTo(int windowIndex, long positionMs) { in seekTo() argument
|
/external/exoplayer/tree/extensions/cast/src/main/java/com/google/android/exoplayer2/ext/cast/ |
D | CastPlayer.java | 163 public PendingResult<MediaChannelResult> loadItem(MediaQueueItem item, long positionMs) { in loadItem() argument 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() 430 public void seekTo(int windowIndex, long positionMs) { in seekTo() argument 434 positionMs = positionMs != C.TIME_UNSET ? positionMs : 0; in seekTo() 438 positionMs, null).setResultCallback(seekResultCallback); in seekTo() local 440 remoteMediaClient.seek(positionMs).setResultCallback(seekResultCallback); in seekTo() 444 pendingSeekPositionMs = positionMs; in seekTo()
|
/external/exoplayer/tree/library/ui/src/main/java/com/google/android/exoplayer2/ui/ |
D | PlayerControlView.java | 1041 private void seekToTimeBarPosition(Player player, long positionMs) { in seekToTimeBarPosition() argument 1049 if (positionMs < windowDurationMs) { in seekToTimeBarPosition() 1053 positionMs = windowDurationMs; in seekToTimeBarPosition() 1056 positionMs -= windowDurationMs; in seekToTimeBarPosition() 1062 boolean dispatched = seekTo(player, windowIndex, positionMs); in seekToTimeBarPosition() 1070 private boolean seekTo(Player player, int windowIndex, long positionMs) { in seekTo() argument 1071 return controlDispatcher.dispatchSeekTo(player, windowIndex, positionMs); in seekTo()
|
/external/exoplayer/tree/library/core/src/test/java/com/google/android/exoplayer2/ |
D | ExoPlayerTest.java | 1783 assertThat(target.positionMs).isAtLeast(50L); in sendMessagesDuringPreparation() 1804 assertThat(target.positionMs).isAtLeast(50L); in sendMessagesAfterPreparation() 1826 assertThat(target50.positionMs).isAtLeast(50L); in multipleSendMessages() 1827 assertThat(target80.positionMs).isAtLeast(80L); in multipleSendMessages() 1828 assertThat(target80.positionMs).isAtLeast(target50.positionMs); in multipleSendMessages() 1879 assertThat(target1.positionMs).isAtLeast(50L); in multipleSendMessagesAtSameTime() 1880 assertThat(target2.positionMs).isAtLeast(50L); in multipleSendMessagesAtSameTime() 1901 assertThat(target.positionMs).isAtLeast(50L); in sendMessagesMultiPeriodResolution() 1948 assertThat(targetStartFirstPeriod.positionMs).isAtLeast(0L); in sendMessagesAtStartAndEndOfPeriod() 1950 assertThat(targetEndMiddlePeriodResolved.positionMs).isAtLeast(duration1Ms - 1); in sendMessagesAtStartAndEndOfPeriod() [all …]
|
/external/exoplayer/tree/extensions/leanback/src/main/java/com/google/android/exoplayer2/ext/leanback/ |
D | LeanbackPlayerAdapter.java | 192 public void seekTo(long positionMs) { in seekTo() argument 193 controlDispatcher.dispatchSeekTo(player, player.getCurrentWindowIndex(), positionMs); in seekTo()
|
/external/exoplayer/tree/extensions/mediasession/src/main/java/com/google/android/exoplayer2/ext/mediasession/ |
D | MediaSessionConnector.java | 941 private void seekTo(Player player, int windowIndex, long positionMs) { in seekTo() argument 942 controlDispatcher.dispatchSeekTo(player, windowIndex, positionMs); in seekTo() 1164 public void onSeekTo(long positionMs) { in onSeekTo() argument 1166 seekTo(player, player.getCurrentWindowIndex(), positionMs); in onSeekTo()
|
/external/exoplayer/tree/extensions/ima/src/main/java/com/google/android/exoplayer2/ext/ima/ |
D | ImaAdsLoader.java | 1184 long positionMs = getContentPeriodPositionMs(); in checkForContentCompleteOrNewAdGroup() local 1186 int newAdGroupIndex = period.getAdGroupIndexForPositionUs(C.msToUs(positionMs)); in checkForContentCompleteOrNewAdGroup() 1189 pendingContentPositionMs = positionMs; in checkForContentCompleteOrNewAdGroup()
|