/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/util/ |
D | StandaloneMediaClock.java | 32 private float playbackSpeed; field in StandaloneMediaClock 42 playbackSpeed = Player.DEFAULT_PLAYBACK_SPEED; in StandaloneMediaClock() 43 scaledUsPerMs = getScaledUsPerMs(playbackSpeed); in StandaloneMediaClock() 83 if (playbackSpeed == 1f) { in getPositionUs() 95 public void setPlaybackSpeed(float playbackSpeed) { in setPlaybackSpeed() argument 100 this.playbackSpeed = playbackSpeed; in setPlaybackSpeed() 101 scaledUsPerMs = getScaledUsPerMs(playbackSpeed); in setPlaybackSpeed() 106 return playbackSpeed; in getPlaybackSpeed() 109 private static int getScaledUsPerMs(float playbackSpeed) { in getScaledUsPerMs() argument 110 return Math.round(playbackSpeed * 1000f); in getScaledUsPerMs()
|
D | MediaClock.java | 34 void setPlaybackSpeed(float playbackSpeed); in setPlaybackSpeed() argument
|
D | EventLogger.java | 157 public void onPlaybackSpeedChanged(EventTime eventTime, float playbackSpeed) { in onPlaybackSpeedChanged() argument 158 logd(eventTime, "playbackSpeed", Float.toString(playbackSpeed)); in onPlaybackSpeedChanged()
|
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/ |
D | DefaultMediaClock.java | 140 public void setPlaybackSpeed(float playbackSpeed) { in setPlaybackSpeed() argument 142 rendererClock.setPlaybackSpeed(playbackSpeed); in setPlaybackSpeed() 143 playbackSpeed = rendererClock.getPlaybackSpeed(); in setPlaybackSpeed() 145 standaloneClock.setPlaybackSpeed(playbackSpeed); in setPlaybackSpeed() 177 float playbackSpeed = rendererClock.getPlaybackSpeed(); in syncClocks() local 178 if (playbackSpeed != standaloneClock.getPlaybackSpeed()) { in syncClocks() 179 standaloneClock.setPlaybackSpeed(playbackSpeed); in syncClocks() 180 listener.onPlaybackSpeedChanged(playbackSpeed); in syncClocks()
|
D | ExoPlayerImpl.java | 86 private float playbackSpeed; field in ExoPlayerImpl 144 playbackSpeed = Player.DEFAULT_PLAYBACK_SPEED; in ExoPlayerImpl() 609 return new PlaybackParameters(playbackSpeed); in getPlaybackParameters() 614 public void setPlaybackSpeed(float playbackSpeed) { in setPlaybackSpeed() argument 615 Assertions.checkState(playbackSpeed > 0); in setPlaybackSpeed() 616 if (this.playbackSpeed == playbackSpeed) { in setPlaybackSpeed() 620 this.playbackSpeed = playbackSpeed; in setPlaybackSpeed() 621 PlaybackParameters playbackParameters = new PlaybackParameters(playbackSpeed); in setPlaybackSpeed() 622 internalPlayer.setPlaybackSpeed(playbackSpeed); in setPlaybackSpeed() 626 listener.onPlaybackSpeedChanged(playbackSpeed); in setPlaybackSpeed() [all …]
|
D | DefaultLoadControl.java | 374 long playbackPositionUs, long bufferedDurationUs, float playbackSpeed) { in shouldContinueLoading() argument 377 if (playbackSpeed > 1) { in shouldContinueLoading() 381 Util.getMediaDurationForPlayoutDuration(minBufferUs, playbackSpeed); in shouldContinueLoading() 401 long bufferedDurationUs, float playbackSpeed, boolean rebuffering) { in shouldStartPlayback() argument 402 bufferedDurationUs = Util.getPlayoutDurationForMediaDuration(bufferedDurationUs, playbackSpeed); in shouldStartPlayback()
|
D | LoadControl.java | 103 long playbackPositionUs, long bufferedDurationUs, float playbackSpeed); in shouldContinueLoading() argument 118 boolean shouldStartPlayback(long bufferedDurationUs, float playbackSpeed, boolean rebuffering); in shouldStartPlayback() argument
|
D | MediaPeriodHolder.java | 178 public void handlePrepared(float playbackSpeed, Timeline timeline) throws ExoPlaybackException { in handlePrepared() argument 181 TrackSelectorResult selectorResult = selectTracks(playbackSpeed, timeline); in handlePrepared() 230 public TrackSelectorResult selectTracks(float playbackSpeed, Timeline timeline) in selectTracks() argument 236 trackSelection.onPlaybackSpeed(playbackSpeed); in selectTracks()
|
D | ExoPlayerImplInternal.java | 230 public void setPlaybackSpeed(float playbackSpeed) { in setPlaybackSpeed() argument 231 handler.obtainMessage(MSG_SET_PLAYBACK_SPEED, playbackSpeed).sendToTarget(); in setPlaybackSpeed() 374 public void onPlaybackSpeedChanged(float playbackSpeed) { in onPlaybackSpeedChanged() argument 375 sendPlaybackSpeedChangedInternal(playbackSpeed, /* acknowledgeCommand= */ false); in onPlaybackSpeedChanged() 1099 private void setPlaybackSpeedInternal(float playbackSpeed) { in setPlaybackSpeedInternal() argument 1100 mediaClock.setPlaybackSpeed(playbackSpeed); in setPlaybackSpeedInternal() 1432 float playbackSpeed = mediaClock.getPlaybackSpeed(); 1443 newTrackSelectorResult = periodHolder.selectTracks(playbackSpeed, playbackInfo.timeline); 1507 private void updateTrackSelectionPlaybackSpeed(float playbackSpeed) { 1513 trackSelection.onPlaybackSpeed(playbackSpeed); [all …]
|
D | Player.java | 582 default void onPlaybackSpeedChanged(float playbackSpeed) {} in onPlaybackSpeedChanged() argument 1136 void setPlaybackSpeed(float playbackSpeed); in setPlaybackSpeed() argument
|
D | SimpleExoPlayer.java | 924 float playbackSpeed; in setPlaybackParams() local 927 playbackSpeed = params.getSpeed(); in setPlaybackParams() 929 playbackSpeed = 1.0f; in setPlaybackParams() 931 setPlaybackSpeed(playbackSpeed); in setPlaybackParams() 1553 public void setPlaybackSpeed(float playbackSpeed) { in setPlaybackSpeed() argument 1555 player.setPlaybackSpeed(playbackSpeed); in setPlaybackSpeed()
|
/external/exoplayer/tree/library/core/src/test/java/com/google/android/exoplayer2/ |
D | DefaultMediaClockTest.java | 272 mediaClockRenderer.playbackSpeed = TEST_PLAYBACK_SPEED; in getPositionWithPlaybackSpeedChange_shouldTriggerCallback() 378 public float playbackSpeed; field in DefaultMediaClockTest.MediaClockRenderer 385 public MediaClockRenderer(float playbackSpeed, boolean playbackSpeedIsMutable) in MediaClockRenderer() argument 387 this(playbackSpeed, playbackSpeedIsMutable, true, false, false); in MediaClockRenderer() 396 float playbackSpeed, in MediaClockRenderer() argument 403 this.playbackSpeed = playbackSpeed; in MediaClockRenderer() 419 public void setPlaybackSpeed(float playbackSpeed) { in setPlaybackSpeed() argument 421 this.playbackSpeed = playbackSpeed; in setPlaybackSpeed() 427 return playbackSpeed; in getPlaybackSpeed()
|
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/audio/ |
D | DefaultAudioSink.java | 98 float applyPlaybackSpeed(float playbackSpeed); in applyPlaybackSpeed() argument 169 public float applyPlaybackSpeed(float playbackSpeed) { in applyPlaybackSpeed() argument 170 return sonicAudioProcessor.setSpeed(playbackSpeed); in applyPlaybackSpeed() 875 return new PlaybackParameters(mediaPositionParameters.playbackSpeed); in getPlaybackParameters() 879 public void setPlaybackSpeed(float playbackSpeed) { in setPlaybackSpeed() argument 880 setPlaybackSpeedAndSkipSilence(playbackSpeed, getSkipSilenceEnabled()); in setPlaybackSpeed() 885 return getMediaPositionParameters().playbackSpeed; in getPlaybackSpeed() 1069 private void setPlaybackSpeedAndSkipSilence(float playbackSpeed, boolean skipSilence) { in setPlaybackSpeedAndSkipSilence() argument 1071 if (playbackSpeed != currentMediaPositionParameters.playbackSpeed in setPlaybackSpeedAndSkipSilence() 1075 playbackSpeed, in setPlaybackSpeedAndSkipSilence() [all …]
|
D | ForwardingAudioSink.java | 118 public void setPlaybackSpeed(float playbackSpeed) { in setPlaybackSpeed() argument 119 sink.setPlaybackSpeed(playbackSpeed); in setPlaybackSpeed()
|
D | AudioSink.java | 284 void setPlaybackSpeed(float playbackSpeed); in setPlaybackSpeed() argument
|
D | DecoderAudioRenderer.java | 495 public void setPlaybackSpeed(float playbackSpeed) { in setPlaybackSpeed() argument 496 audioSink.setPlaybackSpeed(playbackSpeed); in setPlaybackSpeed()
|
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/trackselection/ |
D | AdaptiveTrackSelection.java | 301 private float playbackSpeed; field in AdaptiveTrackSelection 400 playbackSpeed = 1f; in AdaptiveTrackSelection() 422 public void onPlaybackSpeed(float playbackSpeed) { in onPlaybackSpeed() argument 423 this.playbackSpeed = playbackSpeed; in onPlaybackSpeed() 503 lastChunk.startTimeUs - playbackPositionUs, playbackSpeed); in evaluateQueueSize() 518 Util.getPlayoutDurationForMediaDuration(mediaDurationBeforeThisChunkUs, playbackSpeed); in evaluateQueueSize() 542 Format format, int trackBitrate, float playbackSpeed, long effectiveBitrate) { in canSelectFormat() argument 543 return Math.round(trackBitrate * playbackSpeed) <= effectiveBitrate; in canSelectFormat() 580 if (canSelectFormat(format, format.bitrate, playbackSpeed, effectiveBitrate)) { in determineIdealSelectedIndex()
|
D | BaseTrackSelection.java | 145 public void onPlaybackSpeed(float playbackSpeed) { in onPlaybackSpeed() argument
|
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/analytics/ |
D | PlaybackStatsListener.java | 85 private float playbackSpeed; field in PlaybackStatsListener 104 playbackSpeed = 1f; in PlaybackStatsListener() 176 tracker.onPlaybackSpeedChanged(eventTime, playbackSpeed); in onSessionCreated() 329 public void onPlaybackSpeedChanged(EventTime eventTime, float playbackSpeed) { in onPlaybackSpeedChanged() argument 330 this.playbackSpeed = playbackSpeed; in onPlaybackSpeedChanged() 333 tracker.onPlaybackSpeedChanged(eventTime, playbackSpeed); in onPlaybackSpeedChanged() 732 public void onPlaybackSpeedChanged(EventTime eventTime, float playbackSpeed) { in onPlaybackSpeedChanged() argument 736 currentPlaybackSpeed = playbackSpeed; in onPlaybackSpeedChanged()
|
D | AnalyticsListener.java | 215 default void onPlaybackSpeedChanged(EventTime eventTime, float playbackSpeed) {} in onPlaybackSpeedChanged() argument
|
/external/exoplayer/tree/testutils/src/main/java/com/google/android/exoplayer2/testutil/ |
D | Action.java | 614 private final float playbackSpeed; field in Action.SetPlaybackSpeed 622 public SetPlaybackSpeed(String tag, float playbackSpeed) { in SetPlaybackSpeed() argument 623 super(tag, "SetPlaybackSpeed:" + playbackSpeed); in SetPlaybackSpeed() 624 this.playbackSpeed = playbackSpeed; in SetPlaybackSpeed() 630 player.setPlaybackSpeed(playbackSpeed); in doActionImpl()
|
D | ActionSchedule.java | 223 public Builder setPlaybackSpeed(float playbackSpeed) { in setPlaybackSpeed() argument 224 return apply(new SetPlaybackSpeed(tag, playbackSpeed)); in setPlaybackSpeed()
|
D | StubExoPlayer.java | 333 public void setPlaybackSpeed(float playbackSpeed) { in setPlaybackSpeed() argument
|
/external/exoplayer/tree/extensions/mediasession/src/main/java/com/google/android/exoplayer2/ext/mediasession/ |
D | MediaSessionConnector.java | 768 float playbackSpeed = player.getPlaybackSpeed(); in invalidateMediaSessionPlaybackState() local 769 extras.putFloat(EXTRAS_SPEED, playbackSpeed); in invalidateMediaSessionPlaybackState() 770 float sessionPlaybackSpeed = player.isPlaying() ? playbackSpeed : 0f; in invalidateMediaSessionPlaybackState() 1135 public void onPlaybackSpeedChanged(float playbackSpeed) { in onPlaybackSpeedChanged() argument
|
/external/exoplayer/tree/library/ui/src/main/java/com/google/android/exoplayer2/ui/ |
D | PlayerControlView.java | 1011 float playbackSpeed = player.getPlaybackSpeed(); in updateProgress() local 1013 playbackSpeed > 0 ? (long) (mediaTimeDelayMs / playbackSpeed) : MAX_UPDATE_INTERVAL_MS; in updateProgress()
|