Searched defs:sample (Results 1 - 25 of 29) sorted by relevance

12

/frameworks/av/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/native/libs/cpustats/
H A DCentralTendencyStatistics.cpp21 void CentralTendencyStatistics::sample(double x) function in class:CentralTendencyStatistics
H A DThreadCpuUsage.cpp81 // already enabled, so add a new sample relative to previous
82 return sample(ns);
84 // was disabled, but add sample for accumulated time while enabled
97 bool ThreadCpuUsage::sample(double &ns) function in class:android::ThreadCpuUsage
118 ALOGV("sample %.0f", ns);
122 ALOGW("Can't add sample because measurements have never been enabled");
/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/ml/bordeaux/service/src/android/bordeaux/services/
H A DBordeauxAggregatorManager.java63 private Map<String, String> getMap(final List<StringString> sample) { argument
65 for (int i =0; i < sample.size(); i++)
66 m.put(sample.get(i).key, sample.get(i).value);
H A DAggregatorManager.java71 private ArrayList<StringString> getList(final Map<String, String> sample) { argument
73 for (Map.Entry<String, String> x : sample.entrySet()) {
H A DBordeauxClassifier.java44 private ArrayList<IntFloat> getArrayList(final HashMap<Integer, Float> sample) { argument
46 for (Map.Entry<Integer, Float> x : sample.entrySet()) {
78 public boolean update(final HashMap<Integer, Float> sample, int target) { argument
82 mClassifier.TrainOneSample(getArrayList(sample), target);
84 Log.e(TAG,"Exception: training one sample.");
90 public int classify(final HashMap<Integer, Float> sample) { argument
95 return mClassifier.Classify(getArrayList(sample));
97 Log.e(TAG,"Exception: classify the sample.");
H A DLearning_MulticlassPA.java35 private IntFloatArray splitIntFloatArray(List<IntFloat> sample) { argument
37 ArrayList<IntFloat> s = (ArrayList<IntFloat>)sample;
70 // The return value is the prediction value for the supplied sample. It
71 // also update the model with the current sample.
72 public void TrainOneSample(List<IntFloat> sample, int target) { argument
73 IntFloatArray splited = splitIntFloatArray(sample);
82 public int Classify(List<IntFloat> sample) { argument
83 IntFloatArray splited = splitIntFloatArray(sample);
H A DBordeauxRanker.java45 private ArrayList<StringFloat> getArrayList(final HashMap<String, Float> sample) { argument
47 for (Map.Entry<String, Float> x : sample.entrySet()) {
107 public float scoreSample(final HashMap<String, Float> sample) { argument
111 return mRanker.ScoreSample(getArrayList(sample));
113 Log.e(TAG,"Exception: scoring the sample.");
118 public boolean setPriorWeight(final HashMap<String, Float> sample) { argument
122 return mRanker.SetModelPriorWeight(getArrayList(sample));
H A DLearning_StochasticLinearRanker.java75 public float ScoreSample(List<StringFloat> sample) { argument
76 ArrayList<StringFloat> temp = (ArrayList<StringFloat>)sample;
88 public boolean SetModelPriorWeight(List<StringFloat> sample) { argument
89 ArrayList<StringFloat> temp = (ArrayList<StringFloat>)sample;
/frameworks/av/media/libmedia/
H A DSoundPoolThread.cpp106 sp <Sample> sample = mSoundPool->findSample(sampleID); local
108 if (sample != 0) {
109 status = sample->doLoad();
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
656 sp<Sample> sample; local
711 sp<Sample> sample = mSample; local
896 set(const sp<Sample>& sample, int channelID, float leftVolume, float rightVolume, int priority, int loop, float rate) 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 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/av/media/libeffects/testlibs/
H A DAudioCommon.h29 // Audio sample type.
31 // Accumulator type for coef x sample.
40 // Number of fraction bits for audio sample.
42 // Audio sample with the value of 1.0
49 // Multiply a sample by a coefficient to return an accumulator.
54 // Multiply and accumulate sample by a coefficient to return an accumulator.
59 // Convert a sample-coefficient accumulator to a sample.
67 // Convert a S15 sample to audio_sample_t
72 // Convert a audio_sample_t sample t
73 audio_sample_t_to_s15(audio_sample_t sample) argument
78 audio_sample_t_to_s15_clip(audio_sample_t sample) argument
[all...]
/frameworks/av/services/audioflinger/
H A DAudioResamplerCubic.cpp76 int32_t sample; local
79 // calculate output sample
90 // time to fetch another sample
106 // advance sample state
142 int32_t sample; local
145 // calculate output sample
147 sample = interp(&left, x);
148 out[outputIndex++] += vl * sample;
149 out[outputIndex++] += vr * sample;
156 // time to fetch another 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...]
/frameworks/base/tests/RenderScriptTests/SampleTest/src/com/android/rs/sample/
H A DSampleRSActivity.java17 package com.android.rs.sample;
137 mScript = new ScriptC_sample(mRS, getResources(), R.raw.sample);
/frameworks/av/media/libeffects/visualizer/
H A DEffectVisualizer.cpp267 static inline int16_t clamp16(int32_t sample) argument
269 if ((sample>>15) ^ (sample>>31))
270 sample = 0x7FFF ^ (sample>>31);
271 return sample;
/frameworks/ml/bordeaux/learning/stochastic_linear_ranker/jni/
H A Djni_stochastic_linear_ranker.cpp31 const int length, SparseWeightVector<string> * sample) {
37 sample->SetElement(key, static_cast<double>(values[i]));
52 const int length, SparseWeightVector<string> *sample) {
54 SparseWeightVector<string>::Wmap w_ = sample->GetMap();
455 SparseWeightVector<string> sample; local
456 CreateSparseWeightVector(env, key_array, values, values_len, &sample);
458 return classifier->ScoreSample(sample);
30 CreateSparseWeightVector(JNIEnv* env, const jobjectArray keys, const float* values, const int length, SparseWeightVector<string> * sample) argument
51 DecomposeSparseWeightVector(JNIEnv* env, jobjectArray *keys, jfloatArray *values, const int length, SparseWeightVector<string> *sample) argument
/frameworks/ml/bordeaux/learning/stochastic_linear_ranker/native/
H A Dstochastic_linear_ranker.h176 double ScoreSample(const SparseWeightVector<Key, Hash> &sample) { argument
177 const double dot = weight_.DotProduct(sample);
187 s_square = sample.L2Norm();
/frameworks/av/include/media/
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/av/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;
/frameworks/av/media/libeffects/lvm/wrapper/Reverb/
H A DEffectReverb.cpp410 static inline int16_t clamp16(int32_t sample) argument
412 if ((sample>>15) ^ (sample>>31))
413 sample = 0x7FFF ^ (sample>>31);
414 return sample;
/frameworks/av/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 ALOGE("unsupported bits per sample %u", getBitsPerSample());
528 // check sample rate
542 ALOGE("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 ALOGE("FLACParser::readBuffer seek to sample
711 FLAC__uint64 sample; local
[all...]

Completed in 1069 milliseconds

12