Home
last modified time | relevance | path

Searched refs:parsableByteArray (Results 1 – 3 of 3) sorted by relevance

/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/text/tx3g/
DTx3gDecoder.java67 private final ParsableByteArray parsableByteArray; field in Tx3gDecoder
83 parsableByteArray = new ParsableByteArray(); in Tx3gDecoder()
119 parsableByteArray.reset(bytes, length); in decode()
120 String cueTextString = readSubtitleText(parsableByteArray); in decode()
134 while (parsableByteArray.bytesLeft() >= SIZE_ATOM_HEADER) { in decode()
135 int position = parsableByteArray.getPosition(); in decode()
136 int atomSize = parsableByteArray.readInt(); in decode()
137 int atomType = parsableByteArray.readInt(); in decode()
139 assertTrue(parsableByteArray.bytesLeft() >= SIZE_SHORT); in decode()
140 int styleRecordCount = parsableByteArray.readUnsignedShort(); in decode()
[all …]
/external/exoplayer/tree/library/common/src/test/java/com/google/android/exoplayer2/util/
DParsableByteArrayTest.java219 ParsableByteArray parsableByteArray = getTestDataArray(); in readingMovesPosition() local
222 assertThat(parsableByteArray.getPosition()).isEqualTo(0); in readingMovesPosition()
224 parsableByteArray.readUnsignedInt(); in readingMovesPosition()
225 assertThat(parsableByteArray.getPosition()).isEqualTo(4); in readingMovesPosition()
230 ParsableByteArray parsableByteArray = getTestDataArray(); in outOfBoundsThrows() local
233 parsableByteArray.readUnsignedLongToLong(); in outOfBoundsThrows()
234 assertThat(parsableByteArray.getPosition()).isEqualTo(TEST_DATA.length); in outOfBoundsThrows()
237 parsableByteArray.readUnsignedInt(); in outOfBoundsThrows()
246 ParsableByteArray parsableByteArray = getTestDataArray(); in modificationsAffectParsableArray() local
249 byte[] data = parsableByteArray.data; in modificationsAffectParsableArray()
[all …]
/external/exoplayer/tree/library/common/src/main/java/com/google/android/exoplayer2/util/
DParsableBitArray.java74 public void reset(ParsableByteArray parsableByteArray) { in reset() argument
75 reset(parsableByteArray.data, parsableByteArray.limit()); in reset()
76 setPosition(parsableByteArray.getPosition() * 8); in reset()