Home
last modified time | relevance | path

Searched refs:sample (Results 1 – 25 of 68) sorted by relevance

123

/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer/buffer/
DSampleChunk.java218 void write(SampleHolder sample, SampleChunk nextChunk) throws IOException { in write() argument
231 mChunk.write(sample, this); in write()
370 SampleHolder sample = mSamplePool.acquireSample(size); in read() local
371 sample.size = size; in read()
372 sample.flags = mAccessFile.readInt(); in read()
373 sample.timeUs = mAccessFile.readLong(); in read()
374 sample.clearData(); in read()
375 sample.data.put( in read()
381 sample.size)); in read()
382 offset += sample.size + SAMPLE_HEADER_LENGTH; in read()
[all …]
DSampleChunkIoHelper.java99 private final SampleHolder sample; field in SampleChunkIoHelper.IoParams
106 SampleHolder sample, in IoParams() argument
111 this.sample = sample; in IoParams()
240 SampleHolder sample = mReadSampleBuffers[index].poll(); in readSample() local
242 return sample; in readSample()
253 public void writeSample(int index, SampleHolder sample, ConditionVariable conditionVariable) in writeSample() argument
259 IoParams params = new IoParams(index, 0, sample, conditionVariable, null); in writeSample()
408 SampleHolder sample; in doOpenRead() local
409 while ((sample = mHandlerReadSampleBuffers[index].poll()) != null) { in doOpenRead()
410 mSamplePool.releaseSample(sample); in doOpenRead()
[all …]
DSamplePool.java32 SampleHolder sample = new SampleHolder(SampleHolder.BUFFER_REPLACEMENT_MODE_NORMAL); in acquireSample() local
33 sample.ensureSpaceForWrite(size); in acquireSample()
34 return sample; in acquireSample()
38 for (SampleHolder sample : mSamplePool) { in acquireSample()
40 if (sample.data.capacity() >= size in acquireSample()
42 || smallestSufficientSample.data.capacity() > sample.data.capacity())) { in acquireSample()
43 smallestSufficientSample = sample; in acquireSample()
47 if (maxSample.data.capacity() < sample.data.capacity()) { in acquireSample()
48 maxSample = sample; in acquireSample()
63 public synchronized void releaseSample(SampleHolder sample) { in releaseSample() argument
[all …]
DSampleQueue.java33 public void queueSample(SampleHolder sample) { in queueSample() argument
34 mQueue.offer(sample); in queueSample()
35 mLastQueuedPositionUs = sample.timeUs; in queueSample()
38 public int dequeueSample(SampleHolder sample) { in dequeueSample() argument
43 sample.ensureSpaceForWrite(sampleFromQueue.size); in dequeueSample()
44 sample.size = sampleFromQueue.size; in dequeueSample()
45 sample.flags = sampleFromQueue.flags; in dequeueSample()
46 sample.timeUs = sampleFromQueue.timeUs; in dequeueSample()
47 sample.clearData(); in dequeueSample()
48 sampleFromQueue.data.position(0).limit(sample.size); in dequeueSample()
[all …]
DSimpleSampleBuffer.java123 public void writeSample(int index, SampleHolder sample, ConditionVariable conditionVariable) in writeSample() argument
125 sample.data.position(0).limit(sample.size); in writeSample()
126 SampleHolder sampleToQueue = mSamplePool.acquireSample(sample.size); in writeSample()
127 sampleToQueue.size = sample.size; in writeSample()
129 sampleToQueue.data.put(sample.data); in writeSample()
130 sampleToQueue.timeUs = sample.timeUs; in writeSample()
131 sampleToQueue.flags = sample.flags; in writeSample()
DRecordingSampleBuffer.java183 public void writeSample(int index, SampleHolder sample, ConditionVariable conditionVariable) in writeSample() argument
185 mSampleChunkIoHelper.writeSample(index, sample, conditionVariable); in writeSample()
236 SampleHolder sample = mSampleChunkIoHelper.readSample(index); in maybeReadSample() local
237 if (sample != null) { in maybeReadSample()
238 queue.queueSample(sample); in maybeReadSample()
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer2/buffer/
DInputBufferPool.java33 DecoderInputBuffer sample = in acquireSample() local
35 sample.ensureSpaceForWrite(size); in acquireSample()
36 return sample; in acquireSample()
40 for (DecoderInputBuffer sample : mInputBufferPool) { in acquireSample()
42 if (sample.data.capacity() >= size in acquireSample()
44 || smallestSufficientSample.data.capacity() > sample.data.capacity())) { in acquireSample()
45 smallestSufficientSample = sample; in acquireSample()
49 if (maxSample.data.capacity() < sample.data.capacity()) { in acquireSample()
50 maxSample = sample; in acquireSample()
65 public synchronized void releaseSample(DecoderInputBuffer sample) { in releaseSample() argument
[all …]
DSampleChunkIoHelper.java101 private final DecoderInputBuffer sample; field in SampleChunkIoHelper.IoParams
108 DecoderInputBuffer sample, in IoParams() argument
113 this.sample = sample; in IoParams()
282 DecoderInputBuffer sample = mReadSampleBuffers[index].poll(); in readSample() local
284 return sample; in readSample()
297 DecoderInputBuffer sample, in writeSample() argument
303 IoParams params = new IoParams(index, 0, sample, conditionVariable, null); in writeSample()
453 DecoderInputBuffer sample; in doOpenRead() local
454 while ((sample = mHandlerReadSampleBuffers[index].poll()) != null) { in doOpenRead()
455 mInputBufferPool.releaseSample(sample); in doOpenRead()
[all …]
DSampleChunk.java235 void write(DecoderInputBuffer sample, SampleChunk nextChunk) throws IOException { in write() argument
248 mChunk.write(sample, this); in write()
389 DecoderInputBuffer sample = mInputBufferPool.acquireSample(size); in read() local
394 sample.setFlags(flags); in read()
395 sample.timeUs = mAccessFile.readLong(); in read()
396 sample.data.clear(); in read()
397 sample.data.put( in read()
406 return sample; in read()
422 void write(DecoderInputBuffer sample, IoState state) throws IOException { in write() argument
428 int size = sample.data.position(); in write()
[all …]
DSampleQueue.java34 public void queueSample(DecoderInputBuffer sample) { in queueSample() argument
35 mQueue.offer(sample); in queueSample()
36 mLastQueuedPositionUs = sample.timeUs; in queueSample()
39 public int dequeueSample(DecoderInputBuffer sample) { in dequeueSample() argument
45 sample.ensureSpaceForWrite(size); in dequeueSample()
46 sample.setFlags((sampleFromQueue.isKeyFrame() ? C.BUFFER_FLAG_KEY_FRAME : 0) in dequeueSample()
49 sample.timeUs = sampleFromQueue.timeUs; in dequeueSample()
50 sample.data.clear(); in dequeueSample()
52 sample.data.put(sampleFromQueue.data); in dequeueSample()
DMemorySampleBuffer.java97 int index, DecoderInputBuffer sample, ConditionVariable conditionVariable) { in writeSample() argument
98 int size = sample.data.position(); in writeSample()
99 sample.data.position(0).limit(size); in writeSample()
102 sampleToQueue.data.put(sample.data); in writeSample()
103 sampleToQueue.timeUs = sample.timeUs; in writeSample()
104 sampleToQueue.setFlags((sample.isKeyFrame() ? C.BUFFER_FLAG_KEY_FRAME : 0) in writeSample()
105 | (sample.isDecodeOnly() ? C.BUFFER_FLAG_DECODE_ONLY : 0) in writeSample()
106 | (sample.isEncrypted() ? C.BUFFER_FLAG_ENCRYPTED : 0)); in writeSample()
DRecordingSampleBuffer.java183 DecoderInputBuffer sample, in writeSample() argument
185 mSampleChunkIoHelper.writeSample(index, sample, conditionVariable); in writeSample()
236 DecoderInputBuffer sample = mSampleChunkIoHelper.readSample(index); in maybeReadSample() local
237 if (sample != null) { in maybeReadSample()
238 queue.queueSample(sample); in maybeReadSample()
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer/
DExoPlayerSampleExtractor.java416 SampleHolder sample = in queueSample() local
429 sample.timeUs = mDecoderInputBuffer.timeUs; in queueSample()
430 sample.size = mDecoderInputBuffer.data.position(); in queueSample()
431 sample.ensureSpaceForWrite(sample.size); in queueSample()
433 sample.data.position(0); in queueSample()
434 sample.data.put(mDecoderInputBuffer.data); in queueSample()
435 sample.data.flip(); in queueSample()
436 mPendingSamples.add(Pair.create(index, sample)); in queueSample()
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer2/
DExoPlayerSampleExtractor.java372 DecoderInputBuffer sample = in queueSample() local
375 sample.setFlags( in queueSample()
379 sample.timeUs = mDecoderInputBuffer.timeUs; in queueSample()
381 sample.ensureSpaceForWrite(size); in queueSample()
383 sample.data.position(0).limit(size); in queueSample()
384 sample.data.put(mDecoderInputBuffer.data); in queueSample()
385 sample.data.flip(); in queueSample()
386 mPendingSamples.add(Pair.create(index, sample)); in queueSample()
/packages/modules/DnsResolver/
Dres_stats.cpp35 void res_stats_set_sample(res_sample* sample, time_t now, int rcode, int rtt) { in res_stats_set_sample() argument
37 sample->at = now; in res_stats_set_sample()
38 sample->rcode = rcode; in res_stats_set_sample()
39 sample->rtt = rtt; in res_stats_set_sample()
/packages/apps/TV/tuner/SampleNetworkTuner/src/com/android/tv/tuner/sample/network/app/
DSampleNetworkTunerModule.java16 package com.android.tv.tuner.sample.network.app;
23 import com.android.tv.tuner.sample.network.setup.SampleNetworkTunerSetupActivity;
24 import com.android.tv.tuner.sample.network.tvinput.SampleNetworkTunerTvInputService;
DSampleNetworkTuner.java17 package com.android.tv.tuner.sample.network.app;
26 import com.android.tv.tuner.sample.network.singletons.SampleNetworkSingletons;
27 import com.android.tv.tuner.sample.network.tvinput.SampleNetworkTunerTvInputService;
/packages/apps/TV/tuner/SampleDvbTuner/src/com/android/tv/tuner/sample/dvb/app/
DSampleDvbTunerModule.java16 package com.android.tv.tuner.sample.dvb.app;
23 import com.android.tv.tuner.sample.dvb.setup.SampleDvbTunerSetupActivity;
24 import com.android.tv.tuner.sample.dvb.tvinput.SampleDvbTunerTvInputService;
DSampleDvbTuner.java17 package com.android.tv.tuner.sample.dvb.app;
26 import com.android.tv.tuner.sample.dvb.singletons.SampleDvbSingletons;
27 import com.android.tv.tuner.sample.dvb.tvinput.SampleDvbTunerTvInputService;
/packages/apps/Car/Settings/src/com/android/car/settings/tts/
DTtsPlaybackPreferenceController.java241 String sample = getContext().getString(R.string.tts_default_sample_string); in onSampleTextReceived() local
246 sample = tmp; in onSampleTextReceived()
248 LOG.d("Got sample text: " + sample); in onSampleTextReceived()
250 LOG.d("Using default sample text :" + sample); in onSampleTextReceived()
253 mSampleText = sample; in onSampleTextReceived()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/
DTextToSpeechFragment.java406 String sample = getDefaultSampleString(); in onSampleTextReceived() local
410 sample = data.getStringExtra("sampleText"); in onSampleTextReceived()
412 if (DBG) Log.d(TAG, "Got sample text: " + sample); in onSampleTextReceived()
414 if (DBG) Log.d(TAG, "Using default sample text :" + sample); in onSampleTextReceived()
417 mSampleText = sample; in onSampleTextReceived()
/packages/services/Car/evs/sampleDriver/
DAndroid.mk33 LOCAL_INIT_RC := android.hardware.automotive.evs@1.0-sample.rc
35 LOCAL_MODULE := android.hardware.automotive.evs@1.0-sample
/packages/apps/TV/tuner/SampleNetworkTuner/robotests/javatests/com/android/tv/tuner/sample/network/util/
DSampleNetworkConstantsTest.java16 package com.android.tv.tuner.sample.network.util;
25 import com.android.tv.tuner.sample.network.tvinput.SampleNetworkTunerTvInputService;
/packages/apps/TV/tuner/SampleDvbTuner/robotests/javatests/com/android/tv/tuner/sample/dvb/util/
DSampleDvbConstantsTest.java16 package com.android.tv.tuner.sample.dvb.util;
25 import com.android.tv.tuner.sample.dvb.tvinput.SampleDvbTunerTvInputService;
/packages/services/Car/service/src/com/android/car/
DSlidingWindow.java37 public void add(T sample) { in add() argument
41 mElements.addLast(sample); in add()

123