Home
last modified time | relevance | path

Searched refs:seekPositionMs (Results 1 – 4 of 4) sorted by relevance

/packages/apps/TV/tuner/src/com/android/tv/tuner/tvinput/
DTunerSessionWorkerExoV2.java1041 private boolean handleMessageTrickplayBySeek(int seekPositionMs) { in handleMessageTrickplayBySeek() argument
1048 if (seekPositionMs > systemBufferTime) { in handleMessageTrickplayBySeek()
1053 doTrickplayBySeek(seekPositionMs); in handleMessageTrickplayBySeek()
1825 private void doTrickplayBySeek(int seekPositionMs) { in doTrickplayBySeek() argument
1830 if (seekPositionMs < mBufferStartTimeMs - mRecordStartTimeMs) { in doTrickplayBySeek()
1834 seekPositionMs = (int) (mBufferStartTimeMs - mRecordStartTimeMs); in doTrickplayBySeek()
1841 } else if (seekPositionMs > System.currentTimeMillis() - mRecordStartTimeMs) { in doTrickplayBySeek()
1855 mPlayer.seekTo(seekPositionMs); in doTrickplayBySeek()
1859 seekPositionMs += mPlaybackParams.getSpeed() * delayForNextSeek; in doTrickplayBySeek()
1861 mHandler.obtainMessage(MSG_TRICKPLAY_BY_SEEK, seekPositionMs, 0), delayForNextSeek); in doTrickplayBySeek()
DTunerSessionWorker.java1061 private boolean handleMessageTrickplayBySeek(int seekPositionMs) { in handleMessageTrickplayBySeek() argument
1068 if (seekPositionMs > systemBufferTime) { in handleMessageTrickplayBySeek()
1073 doTrickplayBySeek(seekPositionMs); in handleMessageTrickplayBySeek()
1891 private void doTrickplayBySeek(int seekPositionMs) { in doTrickplayBySeek() argument
1896 if (seekPositionMs < mBufferStartTimeMs - mRecordStartTimeMs) { in doTrickplayBySeek()
1900 seekPositionMs = (int) (mBufferStartTimeMs - mRecordStartTimeMs); in doTrickplayBySeek()
1907 } else if (seekPositionMs > System.currentTimeMillis() - mRecordStartTimeMs) { in doTrickplayBySeek()
1921 mPlayer.seekTo(seekPositionMs); in doTrickplayBySeek()
1925 seekPositionMs += mPlaybackParams.getSpeed() * delayForNextSeek; in doTrickplayBySeek()
1927 mHandler.obtainMessage(MSG_TRICKPLAY_BY_SEEK, seekPositionMs, 0), delayForNextSeek); in doTrickplayBySeek()
/packages/apps/TV/src/com/android/tv/dvr/ui/playback/
DDvrPlaybackMediaSessionHelper.java133 public void setupPlayback(RecordedProgram program, long seekPositionMs) { in setupPlayback() argument
135 mDvrPlayer.setProgram(program, seekPositionMs); in setupPlayback()
DDvrPlayer.java420 private long getRealSeekPosition(long seekPositionMs, long endMarginMs) { in getRealSeekPosition() argument
421 return Math.max(0, Math.min(seekPositionMs, mProgram.getDurationMillis() - endMarginMs)); in getRealSeekPosition()