Home
last modified time | relevance | path

Searched refs:sampleData (Results 1 – 25 of 60) sorted by relevance

123

/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/text/webvtt/
DMp4WebvttDecoder.java44 private final ParsableByteArray sampleData; field in Mp4WebvttDecoder
48 sampleData = new ParsableByteArray(); in Mp4WebvttDecoder()
56 sampleData.reset(bytes, length); in decode()
58 while (sampleData.bytesLeft() > 0) { in decode()
59 if (sampleData.bytesLeft() < BOX_HEADER_SIZE) { in decode()
62 int boxSize = sampleData.readInt(); in decode()
63 int boxType = sampleData.readInt(); in decode()
65 resultingCueList.add(parseVttCueBox(sampleData, boxSize - BOX_HEADER_SIZE)); in decode()
68 sampleData.skipBytes(boxSize - BOX_HEADER_SIZE); in decode()
74 private static Cue parseVttCueBox(ParsableByteArray sampleData, int remainingCueBoxBytes) in parseVttCueBox() argument
[all …]
/external/exoplayer/tree/testutils/src/main/java/com/google/android/exoplayer2/testutil/
DFakeSampleStream.java38 @Nullable byte[] sampleData; field in FakeSampleStream.FakeSampleStreamItem
65 public FakeSampleStreamItem(byte[] sampleData) { in FakeSampleStreamItem() argument
66 this.sampleData = sampleData.clone(); in FakeSampleStreamItem()
76 public FakeSampleStreamItem(byte[] sampleData, int flags) { in FakeSampleStreamItem() argument
77 this.sampleData = sampleData.clone(); in FakeSampleStreamItem()
192 if (fakeSampleStreamItem.sampleData != null) { in readData()
193 byte[] sampleData = fakeSampleStreamItem.sampleData; in readData()
196 buffer.ensureSpaceForWrite(sampleData.length); in readData()
197 buffer.data.put(sampleData); in readData()
DFakeTrackOutput.java46 private byte[] sampleData; field in FakeTrackOutput
55 sampleData = Util.EMPTY_BYTE_ARRAY; in FakeTrackOutput()
63 sampleData = Util.EMPTY_BYTE_ARRAY; in clear()
75 public int sampleData( in sampleData() method in FakeTrackOutput
87 sampleData = TestUtil.joinByteArrays(sampleData, newData); in sampleData()
92 public void sampleData(ParsableByteArray data, int length, @SampleDataPart int sampleDataPart) { in sampleData() method in FakeTrackOutput
95 sampleData = TestUtil.joinByteArrays(sampleData, newData); in sampleData()
116 timeUs, flags, sampleData.length - offset - size, sampleData.length - offset, cryptoData); in sampleMetadata()
133 return Arrays.copyOfRange(sampleData, getSampleStartOffset(index), getSampleEndOffset(index)); in getSampleData()
137 return Arrays.copyOfRange(sampleData, fromIndex, toIndex); in getSampleData()
[all …]
/external/exoplayer/tree/library/hls/src/main/java/com/google/android/exoplayer2/source/hls/
DWebvttExtractor.java62 private byte[] sampleData; field in WebvttExtractor
69 sampleData = new byte[1024]; in WebvttExtractor()
78 sampleData, /* offset= */ 0, /* length= */ HEADER_MIN_LENGTH, /* allowEndOfInput= */ false); in sniff()
79 sampleDataWrapper.reset(sampleData, HEADER_MIN_LENGTH); in sniff()
85 sampleData, in sniff()
89 sampleDataWrapper.reset(sampleData, HEADER_MAX_LENGTH); in sniff()
117 if (sampleSize == sampleData.length) { in read()
118 sampleData = Arrays.copyOf(sampleData, in read()
119 (currentFileSize != C.LENGTH_UNSET ? currentFileSize : sampleData.length) * 3 / 2); in read()
123 int bytesRead = input.read(sampleData, sampleSize, sampleData.length - sampleSize); in read()
[all …]
/external/perfetto/ui/src/controller/
Dcpu_profile_controller.ts56 .then(sampleData => {
57 if (sampleData !== undefined && selectedSample &&
64 stack: sampleData,
157 const sampleData: CallsiteInfo[] = new Array(); constant
163 sampleData.push({
175 return sampleData;
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/source/
DSingleSampleMediaPeriod.java70 /* package */ byte @MonotonicNonNull [] sampleData; field in SingleSampleMediaPeriod
217 sampleData = Assertions.checkNotNull(loadable.sampleData); in onLoadCompleted()
343 if (sampleData != null) { in readData()
350 buffer.data.put(sampleData, 0, sampleSize); in readData()
389 @Nullable private byte[] sampleData; field in SingleSampleMediaPeriod.SourceLoadable
412 if (sampleData == null) { in load()
413 sampleData = new byte[INITIAL_SAMPLE_SIZE]; in load()
414 } else if (sampleSize == sampleData.length) { in load()
415 sampleData = Arrays.copyOf(sampleData, sampleData.length * 2); in load()
417 result = dataSource.read(sampleData, sampleSize, sampleData.length - sampleSize); in load()
/external/cldr/tools/java/org/unicode/cldr/draft/
DExtractCountItems.java91 SampleData sampleData = getSamples(cldr, keywordCount, "//ldml/units/unit", data); in gatherData() local
92 if (sampleData == null) { in gatherData()
94sampleData = getSamples(cldr, keywordCount, "//ldml/numbers/currencies/currency", data); in gatherData()
96 if (sampleData == null) { in gatherData()
100 System.out.println("#" + locale + "\t" + sampleData.basePath); in gatherData()
102 for (Entry<Count, String> entry : sampleData.entrySet()) { in gatherData()
165 SampleData sampleData = data.get(basePath); in getSamples() local
166 if (sampleData == null) { in getSamples()
167 data.put(basePath, sampleData = new SampleData(basePath)); in getSamples()
169 int items = sampleData.put(count, value); in getSamples()
[all …]
/external/exoplayer/tree/library/extractor/src/main/java/com/google/android/exoplayer2/extractor/
DTrackOutput.java147 default int sampleData(DataReader input, int length, boolean allowEndOfInput) throws IOException { in sampleData() method
148 return sampleData(input, length, allowEndOfInput, SAMPLE_DATA_PART_MAIN); in sampleData()
155 default void sampleData(ParsableByteArray data, int length) { in sampleData() method
156 sampleData(data, length, SAMPLE_DATA_PART_MAIN); in sampleData()
171 int sampleData( in sampleData() method
182 void sampleData(ParsableByteArray data, int length, @SampleDataPart int sampleDataPart); in sampleData() method
DDummyTrackOutput.java46 public int sampleData( in sampleData() method in DummyTrackOutput
61 public void sampleData(ParsableByteArray data, int length, @SampleDataPart int sampleDataPart) { in sampleData() method in DummyTrackOutput
/external/exoplayer/tree/library/extractor/src/main/java/com/google/android/exoplayer2/extractor/ts/
DAc3Extractor.java51 private final ParsableByteArray sampleData; field in Ac3Extractor
58 sampleData = new ParsableByteArray(MAX_SYNC_FRAME_SIZE); in Ac3Extractor()
128 int bytesRead = input.read(sampleData.data, 0, MAX_SYNC_FRAME_SIZE); in read()
134 sampleData.setPosition(0); in read()
135 sampleData.setLimit(bytesRead); in read()
144 reader.consume(sampleData); in read()
DAc4Extractor.java58 private final ParsableByteArray sampleData; field in Ac4Extractor
65 sampleData = new ParsableByteArray(READ_BUFFER_SIZE); in Ac4Extractor()
136 int bytesRead = input.read(sampleData.data, /* offset= */ 0, /* length= */ READ_BUFFER_SIZE); in read()
142 sampleData.setPosition(0); in read()
143 sampleData.setLimit(bytesRead); in read()
152 reader.consume(sampleData); in read()
/external/guava/guava-tests/benchmark/com/google/common/collect/
DSetCreationBenchmark.java45 private CollectionBenchmarkSampleData sampleData; field in SetCreationBenchmark
49 sampleData = new CollectionBenchmarkSampleData(true, random, 0.8, size); in setUp()
56 x ^= System.identityHashCode(impl.create(sampleData.getValuesInSet())); in creation()
DSetContainsBenchmark.java57 CollectionBenchmarkSampleData sampleData = in setUp() local
60 this.setToTest = (Set<Element>) impl.create(sampleData.getValuesInSet()); in setUp()
61 this.queries = sampleData.getQueries(); in setUp()
DSetIterationBenchmark.java50 CollectionBenchmarkSampleData sampleData = in setUp() local
52 setToTest = (Set<Element>) impl.create(sampleData.getValuesInSet()); in setUp()
DMapBenchmark.java185 CollectionBenchmarkSampleData sampleData = in setUp() local
189 List<Element> valueList = newArrayList(sampleData.getValuesInSet()); in setUp()
193 values = sampleData.getValuesInSet(); in setUp()
196 this.queries = sampleData.getQueries(); in setUp()
/external/guava/android/guava-tests/benchmark/com/google/common/collect/
DSetCreationBenchmark.java45 private CollectionBenchmarkSampleData sampleData; field in SetCreationBenchmark
49 sampleData = new CollectionBenchmarkSampleData(true, random, 0.8, size); in setUp()
56 x ^= System.identityHashCode(impl.create(sampleData.getValuesInSet())); in creation()
DSetContainsBenchmark.java57 CollectionBenchmarkSampleData sampleData = in setUp() local
60 this.setToTest = (Set<Element>) impl.create(sampleData.getValuesInSet()); in setUp()
61 this.queries = sampleData.getQueries(); in setUp()
DSetIterationBenchmark.java50 CollectionBenchmarkSampleData sampleData = in setUp() local
52 setToTest = (Set<Element>) impl.create(sampleData.getValuesInSet()); in setUp()
DMapBenchmark.java185 CollectionBenchmarkSampleData sampleData = in setUp() local
189 List<Element> valueList = newArrayList(sampleData.getValuesInSet()); in setUp()
193 values = sampleData.getValuesInSet(); in setUp()
196 this.queries = sampleData.getQueries(); in setUp()
/external/exoplayer/tree/library/core/src/test/java/com/google/android/exoplayer2/source/
DSampleQueueTest.java166 sampleQueue.sampleData( in capacityIncreases()
218 sampleQueue.sampleData(new ParsableByteArray(DATA), ALLOCATION_SIZE); in multipleFormatsDeduplicated()
224 sampleQueue.sampleData(new ParsableByteArray(DATA), ALLOCATION_SIZE); in multipleFormatsDeduplicated()
235 sampleQueue.sampleData(new ParsableByteArray(DATA), ALLOCATION_SIZE); in multipleFormatsDeduplicated()
244 sampleQueue.sampleData(new ParsableByteArray(DATA), ALLOCATION_SIZE); in readSingleSamples()
273 sampleQueue.sampleData(new ParsableByteArray(DATA), ALLOCATION_SIZE); in readSingleSamples()
342 sampleQueue.sampleData(new ParsableByteArray(DATA), DATA.length); in emptyQueueReturnsLoadingFinished()
483 byte[] sampleData = new byte[] {0, 1, 2}; in trailingCryptoInfoInitializationVectorBytesZeroed()
491 sampleData); in trailingCryptoInfoInitializationVectorBytesZeroed()
596 sampleQueue.sampleData(new ParsableByteArray(DATA), ALLOCATION_SIZE); in advanceToEndRetainsUnassignedData()
[all …]
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/source/chunk/
DChunkExtractorWrapper.java206 public int sampleData( in sampleData() method in ChunkExtractorWrapper.BindingTrackOutput
209 return castNonNull(trackOutput).sampleData(input, length, allowEndOfInput); in sampleData()
213 public void sampleData(ParsableByteArray data, int length, @SampleDataPart int sampleDataPart) { in sampleData() method in ChunkExtractorWrapper.BindingTrackOutput
214 castNonNull(trackOutput).sampleData(data, length); in sampleData()
/external/exoplayer/tree/library/extractor/src/main/java/com/google/android/exoplayer2/extractor/wav/
DWavExtractor.java138 return outputWriter.sampleData(input, bytesLeft) ? RESULT_END_OF_INPUT : RESULT_CONTINUE; in read()
179 boolean sampleData(ExtractorInput input, long bytesLeft) throws IOException; in sampleData() method
253 public boolean sampleData(ExtractorInput input, long bytesLeft) throws IOException { in sampleData() method in WavExtractor.PassthroughOutputWriter
257 int bytesAppended = trackOutput.sampleData(input, bytesToRead, true); in sampleData()
396 public boolean sampleData(ExtractorInput input, long bytesLeft) throws IOException { in sampleData() method in WavExtractor.ImaAdPcmOutputWriter
425 trackOutput.sampleData(decodedData, decodedDataSize); in sampleData()
/external/exoplayer/tree/extensions/flac/src/main/java/com/google/android/exoplayer2/ext/flac/
DFlacExtractor.java282 ParsableByteArray sampleData, int size, long timeUs, TrackOutput output) { in outputSample() argument
283 sampleData.setPosition(0); in outputSample()
284 output.sampleData(sampleData, size); in outputSample()
/external/exoplayer/tree/library/dash/src/main/java/com/google/android/exoplayer2/source/dash/
DPlayerEmsgHandler.java304 public int sampleData(
307 return sampleQueue.sampleData(input, length, allowEndOfInput);
311 public void sampleData(ParsableByteArray data, int length, @SampleDataPart int sampleDataPart) {
312 sampleQueue.sampleData(data, length);
/external/exoplayer/tree/library/extractor/src/main/java/com/google/android/exoplayer2/extractor/flv/
DVideoTagPayloadReader.java130 output.sampleData(nalStartCode, 4); in parsePayload()
134 output.sampleData(data, bytesToWrite); in parsePayload()

123