Searched refs:sample (Results 1 - 14 of 14) sorted by relevance

/packages/apps/TV/usbtuner/src/com/android/usbtuner/exoplayer/cache/
H A DSamplePool.java30 * Acquires a sample with a buffer larger than size from the pool. Allocate new one or resize
35 SampleHolder sample = new SampleHolder(SampleHolder.BUFFER_REPLACEMENT_MODE_NORMAL);
36 sample.ensureSpaceForWrite(size);
37 return sample;
41 for (SampleHolder sample : mSamplePool) {
42 // Grab the smallest sufficient sample.
43 if (sample.data.capacity() >= size && (smallestSufficientSample == null
44 || smallestSufficientSample.data.capacity() > sample.data.capacity())) {
45 smallestSufficientSample = sample;
48 // Grab the max size sample
67 releaseSample(SampleHolder sample) argument
[all...]
H A DSampleQueue.java25 * A sample queue which reads from the cache and passes to player pipeline.
35 public void queueSample(SampleHolder sample) { argument
36 mQueue.offer(sample);
39 public int dequeueSample(SampleHolder sample) { argument
44 sample.size = sampleFromQueue.size;
45 sample.flags = sampleFromQueue.flags;
46 sample.timeUs = sampleFromQueue.timeUs;
47 sample.clearData();
48 sampleFromQueue.data.position(0).limit(sample.size);
49 sample
[all...]
H A DSampleCache.java81 public void offerSample(SampleHolder sample) { argument
82 mSamples.offer(sample);
195 SampleHolder sample = (SampleHolder) ((Object[])msg.obj)[0];
199 mRaf.writeInt(sample.size);
200 mRaf.writeInt(sample.flags);
201 mRaf.writeLong(sample.timeUs);
202 sample.data.position(0).limit(sample.size);
203 mRaf.getChannel().position(mWriteOffset + SAMPLE_HEADER_LENGTH).write(sample.data);
204 mWriteOffset += sample
357 writeSample(SampleHolder sample, ConditionVariable conditionVariable) argument
[all...]
H A DSimpleSampleBuffer.java123 public void writeSample(int index, SampleHolder sample, argument
125 sample.data.position(0).limit(sample.size);
126 SampleHolder sampleToQueue = mSamplePool.acquireSample(sample.size);
127 sampleToQueue.size = sample.size;
129 sampleToQueue.data.put(sample.data);
130 sampleToQueue.timeUs = sample.timeUs;
131 sampleToQueue.flags = sample.flags;
H A DRecordingSampleBuffer.java82 // SampleCache to append the latest live sample.
112 SampleHolder sample = mCache.maybeReadSample();
113 if (sample == null) {
129 queueSample(sample);
134 public int dequeueSample(SampleHolder sample) { argument
136 return super.dequeueSample(sample);
251 public void writeSample(int index, SampleHolder sample, argument
255 if ((sample.flags & MediaCodec.BUFFER_FLAG_KEY_FRAME) != 0) {
256 if (sample.timeUs > mCacheDurationUs) {
257 mCacheDurationUs = sample
[all...]
H A DCacheManager.java115 * Selects the track {@code index} for reading sample data.
126 * Writes sample to storage.
129 * @param sample sample to write at storage
130 * @param conditionVariable notifies the completion of writing sample.
133 void writeSample(int index, SampleHolder sample, ConditionVariable conditionVariable) argument
152 * Reads the next sample in the track at index {@code track} into {@code sampleHolder},
155 * If the next sample is not available,
234 * Reads sample indexes for each written sample fro
[all...]
/packages/apps/TV/usbtuner/src/com/android/usbtuner/exoplayer/
H A DRecorder.java42 // Maximum bandwidth of 1080p channel is about 2.2MB/s. 2MB for a sample will suffice.
103 SampleHolder sample = new SampleHolder(SampleHolder.BUFFER_REPLACEMENT_MODE_NORMAL);
104 sample.ensureSpaceForWrite(SAMPLE_BUFFER_SIZE);
107 fetchSample(sample, conditionVariable);
112 private void fetchSample(SampleHolder sample, ConditionVariable conditionVariable) { argument
120 sample.data.clear();
121 sample.size = mMediaExtractor.readSampleData(sample.data, 0);
122 if (sample.size < 0 || sample
146 queueSample(int index, SampleHolder sample, ConditionVariable conditionVariable) argument
[all...]
H A DPlaySampleExtractor.java46 // Maximum bandwidth of 1080p channel is about 2.2MB/s. 2MB for a sample will suffice.
82 SampleHolder sample = new SampleHolder(SampleHolder.BUFFER_REPLACEMENT_MODE_NORMAL);
83 sample.ensureSpaceForWrite(SAMPLE_BUFFER_SIZE);
86 fetchSample(sample, conditionVariable);
91 private void fetchSample(SampleHolder sample, ConditionVariable conditionVariable) { argument
99 sample.data.clear();
100 sample.size = mMediaExtractor.readSampleData(sample.data, 0);
101 if (sample.size < 0 || sample
125 queueSample(int index, SampleHolder sample, ConditionVariable conditionVariable) argument
[all...]
/packages/apps/UnifiedEmail/src/com/android/mail/utils/
H A DInputSmoother.java20 * out the data using a moving average over this window size. A sample window size n will
28 * Only consecutive samples will factor into the rolling average sample window.
29 * Any samples that are older than this maximum are continually purged from the sample window,
50 Sample sample;
59 sample = mRecentSamples.removeFirst();
61 sample = new Sample();
63 sample.pos = pos;
64 sample.millis = nowMs;
66 mRecentSamples.add(sample);
/packages/apps/Settings/src/com/android/settings/tts/
H A DTextToSpeechSettings.java245 Log.e(TAG, "Error while trying to synthesize sample text");
419 * Ask the current default engine to return a string of sample text to be
439 if (DBG) Log.d(TAG, "Getting sample text: " + intent.toUri(0));
442 Log.e(TAG, "Failed to get sample text, no activity found for " + intent + ")");
474 // Ignore and fall back to default sample string
490 String sample = getDefaultSampleString();
494 sample = data.getStringExtra("sampleText");
496 if (DBG) Log.d(TAG, "Got sample text: " + sample);
498 if (DBG) Log.d(TAG, "Using default sample tex
[all...]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/
H A DTextToSpeechFragment.java200 Log.e(TAG, "Error while trying to synthesize sample text");
330 * Ask the current default engine to return a string of sample text to be
350 if (DBG) Log.d(TAG, "Getting sample text: " + intent.toUri(0));
353 Log.e(TAG, "Failed to get sample text, no activity found for " + intent + ")");
385 // Ignore and fall back to default sample string
399 String sample = getDefaultSampleString();
403 sample = data.getStringExtra("sampleText");
405 if (DBG) Log.d(TAG, "Got sample text: " + sample);
407 if (DBG) Log.d(TAG, "Using default sample tex
[all...]
/packages/services/Car/car_product/build/
H A Dcar.mk46 $(call inherit-product, device/sample/products/location_overlay.mk)
/packages/services/Telecomm/libs/
H A Dguava.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/google/common/ com/google/common/util/ ...
/packages/apps/Messaging/build/gcheckstyle/
H A Dgoogle-style-checker_deploy.jarMETA-INF/ META-INF/MANIFEST.MF build-data.properties com/ com/google/ com/google/ ...

Completed in 6901 milliseconds