Home
last modified time | relevance | path

Searched refs:positionUs (Results 1 – 23 of 23) sorted by relevance

/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer2/
DMpegTsMediaPeriod.java56 public void prepare(Callback callback, long positionUs) { in prepare() argument
100 long positionUs) { in selectTracks() argument
118 seekToUsInternal(positionUs, positionUs != 0); in selectTracks()
119 return positionUs; in selectTracks()
123 public void discardBuffer(long positionUs, boolean toKeyframe) { in discardBuffer() argument
128 public void reevaluateBuffer(long positionUs) { in reevaluateBuffer() argument
133 public boolean continueLoading(long positionUs) { in continueLoading() argument
134 return mExtractor.continueLoading(positionUs); in continueLoading()
160 public long seekToUs(long positionUs) { in seekToUs() argument
164 seekToUsInternal(positionUs, false); in seekToUs()
[all …]
DFileSampleExtractor.java266 public void seekTo(long positionUs) { in seekTo() argument
267 mSampleBuffer.seekTo(positionUs); in seekTo()
276 public boolean continueLoading(long positionUs) { in continueLoading() argument
277 return mSampleBuffer.continueLoading(positionUs); in continueLoading()
DMpegTsSampleExtractor.java175 public void seekTo(long positionUs) { in seekTo() argument
176 mSampleExtractor.seekTo(positionUs); in seekTo()
236 public boolean continueLoading(long positionUs) { in continueLoading() argument
237 return mSampleExtractor.continueLoading(positionUs); in continueLoading()
DSampleExtractor.java95 void seekTo(long positionUs); in seekTo() argument
120 boolean continueLoading(long positionUs); in continueLoading() argument
DExoPlayerSampleExtractor.java477 public boolean continueLoading(long positionUs) { in continueLoading() argument
478 return mSampleBuffer.continueLoading(positionUs); in continueLoading()
482 public void seekTo(long positionUs) { in seekTo() argument
483 mSampleBuffer.seekTo(positionUs); in seekTo()
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer/
DMpegTsSampleSource.java63 public boolean prepare(long positionUs) { in prepare() argument
102 public void enable(int track, long positionUs) { in enable() argument
107 seekToUsInternal(positionUs, positionUs != 0); in enable()
120 public boolean continueBuffering(int track, long positionUs) { in continueBuffering() argument
121 return mSampleExtractor.continueBuffering(positionUs); in continueBuffering()
135 int track, long positionUs, MediaFormatHolder formatHolder, SampleHolder sampleHolder) { in readData() argument
162 public void seekToUs(long positionUs) { in seekToUs() argument
164 seekToUsInternal(positionUs, false); in seekToUs()
181 private void seekToUsInternal(long positionUs, boolean force) { in seekToUsInternal() argument
184 if (force || mPendingSeekPositionUs != positionUs) { in seekToUsInternal()
[all …]
DCea708TextTrackRenderer.java82 protected boolean doPrepare(long positionUs) throws ExoPlaybackException { in doPrepare() argument
83 boolean sourcePrepared = mSource.prepare(positionUs); in doPrepare()
101 protected void onEnabled(int track, long positionUs, boolean joining) { in onEnabled() argument
103 mSource.enable(mTrackIndex, positionUs); in onEnabled()
105 mPresentationTimeUs = positionUs; in onEnabled()
153 protected void doSomeWork(long positionUs, long elapsedRealtimeUs) throws ExoPlaybackException { in doSomeWork() argument
155 mPresentationTimeUs = positionUs; in doSomeWork()
DFileSampleExtractor.java145 public void seekTo(long positionUs) { in seekTo() argument
146 mSampleBuffer.seekTo(positionUs); in seekTo()
155 public boolean continueBuffering(long positionUs) { in continueBuffering() argument
156 return mSampleBuffer.continueBuffering(positionUs); in continueBuffering()
DMpegTsSampleExtractor.java188 public void seekTo(long positionUs) { in seekTo() argument
189 mSampleExtractor.seekTo(positionUs); in seekTo()
249 public boolean continueBuffering(long positionUs) { in continueBuffering() argument
250 return mSampleExtractor.continueBuffering(positionUs); in continueBuffering()
DSampleExtractor.java84 void seekTo(long positionUs); in seekTo() argument
109 boolean continueBuffering(long positionUs); in continueBuffering() argument
DMpegTsVideoTrackRenderer.java103 protected void onDiscontinuity(long positionUs) throws ExoPlaybackException {
104 super.onDiscontinuity(positionUs);
DExoPlayerSampleExtractor.java533 public boolean continueBuffering(long positionUs) { in continueBuffering() argument
534 return mSampleBuffer.continueBuffering(positionUs); in continueBuffering()
538 public void seekTo(long positionUs) { in seekTo() argument
539 mSampleBuffer.seekTo(positionUs); in seekTo()
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer2/buffer/
DBufferManager.java155 void seekTo(long positionUs); in seekTo() argument
158 boolean continueLoading(long positionUs); in continueLoading() argument
200 public final long positionUs; field in BufferManager.PositionHolder
215 public PositionHolder(long positionUs, long basePositionUs, int offset) { in PositionHolder() argument
216 this.positionUs = positionUs; in PositionHolder()
370 private static String getFileName(String id, long positionUs) { in getFileName() argument
371 return String.format(Locale.ENGLISH, "%s_%016x.chunk", id, positionUs); in getFileName()
388 long positionUs, in createNewWriteFileIfNeeded() argument
401 mStartPositionMap.put(id, positionUs); in createNewWriteFileIfNeeded()
405 File file = new File(mStorageManager.getBufferDir(), getFileName(id, positionUs)); in createNewWriteFileIfNeeded()
[all …]
DSampleChunkIoHelper.java100 private final long positionUs; field in SampleChunkIoHelper.IoParams
107 long positionUs, in IoParams() argument
112 this.positionUs = positionUs; in IoParams()
313 public void openRead(int index, long positionUs) { in openRead() argument
316 IoParams params = new IoParams(index, positionUs, null, null, mReadSampleBuffers[index]); in openRead()
443 mBufferManager.getReadFile(mIds.get(index), params.positionUs); in doOpenRead()
446 "Chunk ID:" + mIds.get(index) + " pos:" + params.positionUs + "is not found"; in doOpenRead()
537 mReadIoStates[index].openRead(readPosition.first, params.positionUs); in doUpdateIndex()
DRecordingSampleBuffer.java256 public void seekTo(long positionUs) { in seekTo() argument
260 mSampleChunkIoHelper.openRead(i, positionUs); in seekTo()
266 public boolean continueLoading(long positionUs) { in continueLoading() argument
267 mCurrentPlaybackPositionUs = positionUs; in continueLoading()
275 || positionUs > queue.getLastQueuedPositionUs()) { in continueLoading()
DMemorySampleBuffer.java128 public synchronized boolean continueLoading(long positionUs) { in continueLoading() argument
134 || positionUs > queue.getLastQueuedPositionUs()) { in continueLoading()
143 public void seekTo(long positionUs) { in seekTo() argument
DDvrStorageManager.java231 long positionUs = in.readLong(); in readOldIndexFile() local
232 indices.add(new BufferManager.PositionHolder(positionUs, positionUs, 0)); in readOldIndexFile()
244 long positionUs = in.readLong(); in readNewIndexFile() local
247 indices.add(new BufferManager.PositionHolder(positionUs, basePositionUs, offset)); in readNewIndexFile()
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer/buffer/
DBufferManager.java151 void seekTo(long positionUs); in seekTo() argument
157 boolean continueBuffering(long positionUs); in continueBuffering() argument
198 public final long positionUs; field in BufferManager.PositionHolder
212 public PositionHolder(long positionUs, long basePositionUs, int offset) { in PositionHolder() argument
213 this.positionUs = positionUs; in PositionHolder()
367 private static String getFileName(String id, long positionUs) { in getFileName() argument
368 return String.format(Locale.ENGLISH, "%s_%016x.chunk", id, positionUs); in getFileName()
385 long positionUs, in createNewWriteFileIfNeeded() argument
398 mStartPositionMap.put(id, positionUs); in createNewWriteFileIfNeeded()
402 File file = new File(mStorageManager.getBufferDir(), getFileName(id, positionUs)); in createNewWriteFileIfNeeded()
[all …]
DRecordingSampleBuffer.java256 public void seekTo(long positionUs) { in seekTo() argument
260 mSampleChunkIoHelper.openRead(i, positionUs); in seekTo()
263 mLastBufferedPositionUs = positionUs; in seekTo()
290 public boolean continueBuffering(long positionUs) { in continueBuffering() argument
291 mCurrentPlaybackPositionUs = positionUs; in continueBuffering()
299 || positionUs > queue.getLastQueuedPositionUs()) { in continueBuffering()
DSampleChunkIoHelper.java98 private final long positionUs; field in SampleChunkIoHelper.IoParams
105 long positionUs, in IoParams() argument
110 this.positionUs = positionUs; in IoParams()
269 public void openRead(int index, long positionUs) { in openRead() argument
272 IoParams params = new IoParams(index, positionUs, null, null, mReadSampleBuffers[index]); in openRead()
398 mBufferManager.getReadFile(mIds.get(index), params.positionUs); in doOpenRead()
401 "Chunk ID:" + mIds.get(index) + " pos:" + params.positionUs + "is not found"; in doOpenRead()
492 mReadIoStates[index].openRead(readPosition.first, params.positionUs); in doUpdateIndex()
DSimpleSampleBuffer.java153 public synchronized boolean continueBuffering(long positionUs) { in continueBuffering() argument
159 || positionUs > queue.getLastQueuedPositionUs()) { in continueBuffering()
168 public void seekTo(long positionUs) { in seekTo() argument
DDvrStorageManager.java231 long positionUs = in.readLong(); in readOldIndexFile() local
232 indices.add(new BufferManager.PositionHolder(positionUs, positionUs, 0)); in readOldIndexFile()
244 long positionUs = in.readLong(); in readNewIndexFile() local
247 indices.add(new BufferManager.PositionHolder(positionUs, basePositionUs, offset)); in readNewIndexFile()
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer/audio/
DMpegTsDefaultAudioTrackRenderer.java166 protected boolean doPrepare(long positionUs) throws ExoPlaybackException { in doPrepare() argument
167 boolean sourcePrepared = mSource.prepare(positionUs); in doPrepare()
197 protected void onEnabled(int track, long positionUs, boolean joining) { in onEnabled() argument
200 mSource.enable(mTrackIndex, positionUs); in onEnabled()
201 seekToInternal(positionUs); in onEnabled()
231 private void seekToInternal(long positionUs) { in seekToInternal() argument
236 mPresentationTimeUs = positionUs; in seekToInternal()
241 mAudioClock.setPositionUs(positionUs); in seekToInternal()
245 protected void seekTo(long positionUs) { in seekTo() argument
246 mSource.seekToUs(positionUs); in seekTo()
[all …]