Home
last modified time | relevance | path

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

123

/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer/buffer/
DSampleChunkIoHelper.java97 private final SampleHolder sample; field in SampleChunkIoHelper.IoParams
104 SampleHolder sample, in IoParams() argument
109 this.sample = sample; in IoParams()
217 SampleHolder sample = mReadSampleBuffers[index].poll(); in readSample() local
219 return sample; in readSample()
230 public void writeSample(int index, SampleHolder sample, ConditionVariable conditionVariable) in writeSample() argument
236 IoParams params = new IoParams(index, 0, sample, conditionVariable, null); in writeSample()
376 SampleHolder sample; in doOpenRead() local
377 while ((sample = mHandlerReadSampleBuffers[index].poll()) != null) { in doOpenRead()
378 mSamplePool.releaseSample(sample); in doOpenRead()
[all …]
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 …]
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.java171 public void writeSample(int index, SampleHolder sample, ConditionVariable conditionVariable) in writeSample() argument
173 mSampleChunkIoHelper.writeSample(index, sample, conditionVariable); in writeSample()
224 SampleHolder sample = mSampleChunkIoHelper.readSample(index); in maybeReadSample() local
225 if (sample != null) { in maybeReadSample()
226 queue.queueSample(sample); in maybeReadSample()
/packages/apps/UnifiedEmail/src/com/android/mail/utils/
DInputSmoother.java50 Sample sample; in onInput() local
59 sample = mRecentSamples.removeFirst(); in onInput()
61 sample = new Sample(); in onInput()
63 sample.pos = pos; in onInput()
64 sample.millis = nowMs; in onInput()
66 mRecentSamples.add(sample); in onInput()
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer/
DExoPlayerSampleExtractor.java469 SampleHolder sample = in queueSample() local
482 sample.timeUs = mDecoderInputBuffer.timeUs; in queueSample()
483 sample.size = mDecoderInputBuffer.data.position(); in queueSample()
484 sample.ensureSpaceForWrite(sample.size); in queueSample()
486 sample.data.position(0); in queueSample()
487 sample.data.put(mDecoderInputBuffer.data); in queueSample()
488 sample.data.flip(); in queueSample()
489 mPendingSamples.add(new Pair<>(index, sample)); in queueSample()
/packages/apps/TV/tuner/SampleNetworkTuner/src/com/android/tv/tuner/sample/network/app/
DSampleNetworkTunerModule.java16 package com.android.tv.tuner.sample.network.app;
22 import com.android.tv.tuner.sample.network.setup.SampleNetworkTunerSetupActivity;
23 import com.android.tv.tuner.sample.network.tvinput.SampleNetworkTunerTvInputService;
DSampleNetworkTuner.java17 package com.android.tv.tuner.sample.network.app;
24 import com.android.tv.tuner.sample.network.singletons.SampleNetworkSingletons;
25 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;
22 import com.android.tv.tuner.sample.dvb.setup.SampleDvbTunerSetupActivity;
23 import com.android.tv.tuner.sample.dvb.tvinput.SampleDvbTunerTvInputService;
DSampleDvbTuner.java17 package com.android.tv.tuner.sample.dvb.app;
24 import com.android.tv.tuner.sample.dvb.singletons.SampleDvbSingletons;
25 import com.android.tv.tuner.sample.dvb.tvinput.SampleDvbTunerTvInputService;
DSampleDvbTunerComponent.java16 package com.android.tv.tuner.sample.dvb.app;
/packages/apps/Car/Settings/src/com/android/car/settings/tts/
DTtsPlaybackPreferenceController.java238 String sample = getContext().getString(R.string.tts_default_sample_string); in onSampleTextReceived() local
243 sample = tmp; in onSampleTextReceived()
245 LOG.d("Got sample text: " + sample); in onSampleTextReceived()
247 LOG.d("Using default sample text :" + sample); in onSampleTextReceived()
250 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/services/Car/service/src/com/android/car/
DSlidingWindow.java37 public void add(T sample) { in add() argument
41 mElements.addLast(sample); in add()
/packages/apps/TV/tuner/tests/testing/src/com/android/tv/tuner/testing/buffer/
DVerySlowSampleChunk.java51 protected void write(SampleHolder sample, IoState state) throws IOException { in write() argument
53 super.write(sample, state); in write()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/tts/
DTextToSpeechSettings.java582 String sample = getDefaultSampleString(); in onSampleTextReceived() local
586 sample = data.getStringExtra("sampleText"); in onSampleTextReceived()
588 if (DBG) Log.d(TAG, "Got sample text: " + sample); in onSampleTextReceived()
590 if (DBG) Log.d(TAG, "Using default sample text :" + sample); in onSampleTextReceived()
593 mSampleText = sample; in onSampleTextReceived()
/packages/apps/Settings/src/com/android/settings/tts/
DTextToSpeechSettings.java582 String sample = getDefaultSampleString(); in onSampleTextReceived() local
586 sample = data.getStringExtra("sampleText"); in onSampleTextReceived()
588 if (DBG) Log.d(TAG, "Got sample text: " + sample); in onSampleTextReceived()
590 if (DBG) Log.d(TAG, "Using default sample text :" + sample); in onSampleTextReceived()
593 mSampleText = sample; in onSampleTextReceived()
/packages/inputmethods/LatinIME/dictionaries/
Dsample.combined1 # This is a sample wordlist that can be converted to a binary dictionary
31 word=sample,f=200
/packages/apps/TV/tuner/SampleNetworkTuner/src/com/android/tv/tuner/sample/network/singletons/
DSampleNetworkSingletons.java17 package com.android.tv.tuner.sample.network.singletons;
/packages/apps/TV/tuner/SampleDvbTuner/src/com/android/tv/tuner/sample/dvb/singletons/
DSampleDvbSingletons.java17 package com.android.tv.tuner.sample.dvb.singletons;
/packages/apps/TV/tuner/SampleDvbTuner/src/com/android/tv/tuner/sample/dvb/tvinput/
DSampleDvbTunerTvInputService.java16 package com.android.tv.tuner.sample.dvb.tvinput;
/packages/apps/TV/tuner/SampleNetworkTuner/src/com/android/tv/tuner/sample/network/tvinput/
DSampleNetworkTunerTvInputService.java16 package com.android.tv.tuner.sample.network.tvinput;

123