Home
last modified time | relevance | path

Searched refs:getPeekPosition (Results 1 – 14 of 14) sorted by relevance

/external/exoplayer/tree/library/extractor/src/main/java/com/google/android/exoplayer2/extractor/flac/
DFlacBinarySearchSeeker.java81 long leftFramePosition = input.getPeekPosition(); in searchForTimestamp()
88 long rightFramePosition = input.getPeekPosition(); in searchForTimestamp()
115 while (input.getPeekPosition() < input.getLength() - FlacConstants.MIN_FRAME_HEADER_SIZE in findNextFrame()
121 if (input.getPeekPosition() >= input.getLength() - FlacConstants.MIN_FRAME_HEADER_SIZE) { in findNextFrame()
122 input.advancePeekPosition((int) (input.getLength() - input.getPeekPosition())); in findNextFrame()
/external/exoplayer/tree/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/
DFlacMetadataReaderTest.java53 assertThat(input.getPeekPosition()).isNotEqualTo(0); in peekId3Metadata_updatesPeekPosition()
92 assertThat(input.getPeekPosition()).isEqualTo(FlacConstants.STREAM_MARKER_SIZE); in checkAndPeekStreamMarker_updatesPeekPosition()
123 assertThat(input.getPeekPosition()).isEqualTo(input.getPosition()); in readId3Metadata_updatesReadPositionAndAlignsPeekPosition()
161 assertThat(input.getPeekPosition()).isEqualTo(input.getPosition()); in readStreamMarker_updatesReadPosition()
182 assertThat(input.getPeekPosition()).isEqualTo(input.getPosition()); in readMetadataBlock_updatesReadPositionAndAlignsPeekPosition()
297 assertThat(input.getPeekPosition()).isEqualTo(input.getPosition()); in readMetadataBlock_blockToSkip_updatesReadPosition()
371 assertThat(input.getPeekPosition()).isEqualTo(input.getPosition()); in getFrameStartMarker_doesNotUpdateReadPositionAndAlignsPeekPosition()
DExtractorUtilTest.java54 assertThat(input.getPeekPosition()).isEqualTo(length); in peekToLengthEndNotReached()
77 assertThat(input.getPeekPosition()).isEqualTo(TEST_DATA.length); in peekToLengthEndReached()
DDefaultExtractorInputTest.java405 assertThat(input.getPeekPosition()).isEqualTo(TEST_DATA.length); in peekMultipleTimes()
419 assertThat(input.getPeekPosition()).isEqualTo(TEST_DATA.length - 1); in peekAlreadyPeeked()
447 assertThat(input.getPeekPosition()).isEqualTo(TEST_DATA.length); in peekEndOfInputBeforeFirstBytePeeked()
459 assertThat(input.getPeekPosition()).isEqualTo(TEST_DATA.length); in peekEndOfInputAfterFirstBytePeeked()
481 assertThat(input.getPeekPosition()).isEqualTo(TEST_DATA.length); in peekFully()
488 assertThat(input.getPeekPosition()).isEqualTo(TEST_DATA.length); in peekFully()
512 assertThat(input.getPeekPosition()).isEqualTo(TEST_DATA.length); in peekFullyAfterEofExceptionPeeksAsExpected()
DFlacFrameReaderTest.java139 assertThat(input.getPeekPosition()).isEqualTo(peekPosition); in checkFrameHeaderFromPeek_validData_doesNotUpdatePositions()
217 assertThat(input.getPeekPosition()).isEqualTo(peekPosition); in checkFrameHeaderFromPeek_invalidData_doesNotUpdatePositions()
235 assertThat(input.getPeekPosition()).isEqualTo(input.getPosition()); in getFirstSampleNumber_doesNotUpdateReadPositionAndAlignsPeekPosition()
/external/exoplayer/tree/library/extractor/src/main/java/com/google/android/exoplayer2/extractor/
DExtractorInput.java243 long getPeekPosition(); in getPeekPosition() method
DFlacMetadataReader.java104 long startingPeekPosition = input.getPeekPosition(); in readId3Metadata()
106 int peekedId3Bytes = (int) (input.getPeekPosition() - startingPeekPosition); in readId3Metadata()
DFlacFrameReader.java97 long originalPeekPosition = input.getPeekPosition(); in checkFrameHeaderFromPeek()
DDefaultExtractorInput.java179 public long getPeekPosition() { in getPeekPosition() method in DefaultExtractorInput
/external/exoplayer/tree/library/extractor/src/main/java/com/google/android/exoplayer2/extractor/ogg/
DOggPageHeader.java90 || input.getLength() - input.getPeekPosition() >= EMPTY_PAGE_HEADER_SIZE; in populate()
/external/exoplayer/tree/library/extractor/src/main/java/com/google/android/exoplayer2/extractor/mp4/
DSniffer.java113 atomSize = fileEndPosition - input.getPeekPosition() + headerSize; in sniffInternal()
/external/exoplayer/tree/library/extractor/src/main/java/com/google/android/exoplayer2/extractor/mp3/
DMp3Extractor.java347 peekedId3Bytes = (int) input.getPeekPosition(); in synchronize()
411 && extractorInput.getPeekPosition() > dataEndPosition - 4) { in peekEndOfStreamOrHeader()
/external/exoplayer/tree/testutils/src/main/java/com/google/android/exoplayer2/testutil/
DFakeExtractorInput.java184 public long getPeekPosition() { in getPeekPosition() method in FakeExtractorInput
/external/exoplayer/tree/library/extractor/src/main/java/com/google/android/exoplayer2/extractor/ts/
DPsExtractor.java180 inputLength != C.LENGTH_UNSET ? inputLength - input.getPeekPosition() : C.LENGTH_UNSET; in read()