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

12

/frameworks/base/media/libstagefright/codecs/mp3dec/src/
H A Dpvmp3_polyphase_filter_window.h93 __inline int16 saturate16(int32 sample) argument
99 mov a, sample, asr#15 local
100 teq a, sample, asr b local
101 eorne sample, MAX_16BITS_INT, sample, asr#31 local
103 return sample ;
108 inline int16 saturate16(int32 sample) argument
111 if ((sample >> 15) ^(sample >> 31))
113 sample
[all...]
/frameworks/base/voip/jni/rtp/
H A DG711Codec.cpp51 int sample = samples[i]; local
52 int sign = (sample >> 8) & 0x80;
53 if (sample < 0) {
54 sample = -sample;
56 sample += 132;
57 if (sample > 32767) {
58 sample = 32767;
60 int exponent = gExponents[sample >> 8];
61 int mantissa = (sample >> (exponen
77 int sample = (((mantissa << 3) + 132) << exponent) - 132; local
102 int sample = samples[i]; local
127 int sample = (exponent == 0 ? (mantissa << 4) + 8 : local
[all...]
H A DAudioGroup.cpp320 int32_t sample = buffer[i]; local
321 if (sample < -32768) {
322 sample = -32768;
324 if (sample > 32767) {
325 sample = 32767;
327 samples[i] = sample;
/frameworks/base/media/libeffects/testlibs/
H A DAudioCommon.h28 // Audio sample type.
30 // Accumulator type for coef x sample.
39 // Number of fraction bits for audio sample.
41 // Audio sample with the value of 1.0
48 // Multiply a sample by a coefficient to return an accumulator.
53 // Multiply and accumulate sample by a coefficient to return an accumulator.
58 // Convert a sample-coefficient accumulator to a sample.
66 // Convert a S15 sample to audio_sample_t
71 // Convert a audio_sample_t sample t
72 audio_sample_t_to_s15(audio_sample_t sample) argument
77 audio_sample_t_to_s15_clip(audio_sample_t sample) argument
[all...]
/frameworks/base/core/java/android/gesture/
H A DInstance.java21 * An instance represents a sample if the label is available or a query if the
44 private Instance(long id, float[] sample, String sampleName) { argument
46 vector = sample;
51 float[] sample = vector;
54 int size = sample.length;
56 sum += sample[i] * sample[i];
61 sample[i] /= magnitude;
H A DInstanceLearner.java50 Instance sample = instances.get(i);
51 if (sample.vector.length != vector.length) {
56 distance = GestureUtils.minimumCosineDistance(sample.vector, vector, orientationType);
58 distance = GestureUtils.squaredEuclideanDistance(sample.vector, vector);
66 Double score = label2score.get(sample.label);
68 label2score.put(sample.label, weight);
H A DGestureUtils.java93 float[] sample = new float[bitmapSize * bitmapSize];
94 Arrays.fill(sample, 0);
159 plot(segmentStartX, segmentStartY, sample, bitmapSize);
168 plot(xpos, ypos, sample, bitmapSize);
177 plot(xpos, ypos, sample, bitmapSize);
188 plot(xpos, ypos, sample, bitmapSize);
197 plot(xpos, ypos, sample, bitmapSize);
206 return sample;
209 private static void plot(float x, float y, float[] sample, int sampleSize) { argument
220 if (sample[inde
[all...]
/frameworks/base/include/cpustats/
H A DThreadCpuUsage.h31 // to demarcate the region(s) of interest, and then call sample() periodically.
69 // Add a sample point for central tendency statistics, and also
71 // enables tracking but does not add a sample (it is not possible to add
72 // a sample the first time because no previous). Otherwise if tracking is
73 // enabled, then adds a sample for tracked CPU ns since the previous
74 // sample, or since the first call to sampleAndEnable(), enable(), or
75 // setEnabled(true). If there was a previous sample but tracking is
76 // now disabled, then adds a sample for the tracked CPU ns accumulated
79 // by sample() avoids a race condition for the first sample
[all...]
H A DCentralTendencyStatistics.h34 void sample(double x);
/frameworks/base/libs/cpustats/
H A DThreadCpuUsage.cpp72 // already enabled, so add a new sample relative to previous
73 sample();
75 // was disabled, but add sample for accumulated time while enabled
76 mStatistics.sample((double) mAccumulator);
81 void ThreadCpuUsage::sample() function in class:ThreadCpuUsage
99 mStatistics.sample((double) mAccumulator);
102 LOGW("Can't add sample because measurements have never been enabled");
H A DCentralTendencyStatistics.cpp21 void CentralTendencyStatistics::sample(double x) function in class:CentralTendencyStatistics
/frameworks/base/media/jni/soundpool/
H A DSoundPool.cpp210 sp<Sample> sample = new Sample(++mNextSampleID, path); local
211 mSamples.add(sample->sampleID(), sample);
212 doLoad(sample);
213 return sample->sampleID();
221 sp<Sample> sample = new Sample(++mNextSampleID, fd, offset, length); local
222 mSamples.add(sample->sampleID(), sample);
223 doLoad(sample);
224 return sample
227 doLoad(sp<Sample>& sample) argument
246 sp<Sample> sample; local
547 play(const sp<Sample>& sample, int nextChannelID, float leftVolume, float rightVolume, int priority, int loop, float rate) argument
655 sp<Sample> sample; local
710 sp<Sample> sample = mSample; local
894 set(const sp<Sample>& sample, int channelID, float leftVolume, float rightVolume, int priority, int loop, float rate) argument
[all...]
H A DSoundPoolThread.cpp106 sp <Sample> sample = mSoundPool->findSample(sampleID); local
108 if (sample != 0) {
109 status = sample->doLoad();
H A DSoundPool.h94 void set(const sp<Sample>& sample, int channelID, float leftVolume,
96 sp<Sample> sample() { return mSample; } function in class:android::SoundEvent
123 void play(const sp<Sample>& sample, int channelID, float leftVolume, float rightVolume,
197 void doLoad(sp<Sample>& sample);
/frameworks/base/services/audioflinger/
H A DAudioResamplerCubic.cpp76 int32_t sample; local
79 // calculate output sample
90 // time to fetch another sample
105 // advance sample state
141 int32_t sample; local
144 // calculate output sample
146 sample = interp(&left, x);
147 out[outputIndex++] += vl * sample;
148 out[outputIndex++] += vr * sample;
155 // time to fetch another sample
[all...]
H A DAudioResampler.cpp124 LOGE("Unsupported sample format, %d bits, %d channels", bitDepth,
314 int32_t sample = Interp(mX0L, in[0], phaseFraction); local
315 out[outputIndex++] += vl * sample;
316 out[outputIndex++] += vr * sample;
338 int32_t sample = Interp(in[inputIndex-1], in[inputIndex], local
340 out[outputIndex++] += vl * sample;
341 out[outputIndex++] += vr * sample;
H A DAudioMixer.cpp38 static inline int16_t clamp16(int32_t sample) argument
40 if ((sample>>15) ^ (sample>>31))
41 sample = 0x7FFF ^ (sample>>31);
42 return sample;
H A DAudioFlinger.cpp2403 // limit track sample rate to 2 x new output sample rate
2459 static inline int16_t clamp16(int32_t sample) argument
2461 if ((sample>>15) ^ (sample>>31))
2462 sample = 0x7FFF ^ (sample>>31);
2463 return sample;
3362 // NOTE: audio_track_cblk_t::frameSize for 8 bit PCM data is based on a sample size of
4591 snprintf(buffer, SIZE, "Out sample rat
[all...]
/frameworks/base/docs/html/resources/
H A Dresources-data.js5 'sample': 'Sample',
342 en: 'WebViews allow an application to dynamically display HTML and execute JavaScript, without relinquishing control to a separate browser application. This article introduces the WebView classes and provides a sample application that demonstrates its use.'
362 en: 'This article illustrates how an application, in this case the WikiNotes sample app, can use intents to route various types of linked text to the application that handles that type of data. For example, an app can use intents to route a linked telephone number to a dialer app and a web URL to a browser.'
391 tags: ['sample'],
401 tags: ['sample', 'new', 'ui', 'compatibility', 'newfeature'],
411 tags: ['sample', 'new'],
421 tags: ['sample', 'layout', 'ui', 'updated'],
431 tags: ['sample', 'layout', 'ui', 'fragment', 'loader'],
441 tags: ['sample', 'layout', 'ui'],
451 tags: ['sample', 'dat
[all...]
/frameworks/base/media/libstagefright/
H A DFLACExtractor.cpp109 MediaBuffer *readBuffer(FLAC__uint64 sample) { argument
110 return readBuffer(true, sample);
148 MediaBuffer *readBuffer(bool doSeek, FLAC__uint64 sample);
525 LOGE("unsupported bits per sample %u", getBitsPerSample());
528 // check sample rate
542 LOGE("unsupported sample rate %u", getSampleRate());
570 // sample rate is non-zero, so division by zero not possible
599 MediaBuffer *FLACParser::readBuffer(bool doSeek, FLAC__uint64 sample) argument
605 if (!FLAC__stream_decoder_seek_absolute(mDecoder, sample)) {
606 LOGE("FLACParser::readBuffer seek to sample
711 FLAC__uint64 sample; local
[all...]
/frameworks/base/core/java/android/os/
H A DLatencyTimer.java29 * 2) At various points in the code call sample with a string and the time delta to some fixed time.
31 * mLt.sample("before processing event", System.nanoTime() - event.getEventTimeNano());
33 * mLt.sample("after processing event ", System.nanoTime() - event.getEventTimeNano());
47 * @param scaleFactor divisor used to make each sample smaller to prevent overflow when
48 * (sampleSize * average sample value)/scaleFactor > Long.MAX_VALUE
59 * Add a sample delay for averaging.
64 public void sample(String tag, long delta) { method in class:LatencyTimer
/frameworks/base/media/libeffects/visualizer/
H A DEffectVisualizer.cpp243 static inline int16_t clamp16(int32_t sample) argument
245 if ((sample>>15) ^ (sample>>31))
246 sample = 0x7FFF ^ (sample>>31);
247 return sample;
/frameworks/base/services/input/
H A DInputDispatcher.cpp86 // samples in quick succession with only one finger's location changed in each sample.
363 LOGD("Throttling - Motion event sample count grew by %d from %d to %d.",
928 // motion sample indicated by splitBatchAfterSample.
988 // Print the most recent sample that we have available, this may change due to batching.
990 const MotionSample* sample = & entry->firstSample; local
991 for (; sample->next != NULL; sample = sample->next) {
1001 sample->pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_X),
1002 sample
1325 const MotionSample* sample = &entry->firstSample; local
1472 const MotionSample* sample = &entry->firstSample; local
4257 MotionSample* sample = new MotionSample(eventTime, pointerCoords, pointerCount); local
[all...]
/frameworks/base/media/libeffects/lvm/wrapper/Reverb/
H A DEffectReverb.cpp408 static inline int16_t clamp16(int32_t sample) argument
410 if ((sample>>15) ^ (sample>>31))
411 sample = 0x7FFF ^ (sample>>31);
412 return sample;
/frameworks/base/media/libeffects/lvm/wrapper/Bundle/
H A DEffectBundle.cpp53 static inline int16_t clamp16(int32_t sample) argument
57 if ((sample>>15) ^ (sample>>31))
58 sample = 0x7FFF ^ (sample>>31);
59 return sample;

Completed in 507 milliseconds

12