Searched refs:sample (Results 1 - 25 of 44) sorted by last modified time

12

/frameworks/wilhelm/tests/examples/
H A DslesTestDecodeAac.cpp296 frameStats.sample(framelen);
361 printf("sample rate = %d\n", *((SLuint32*)u.pcmMetaData.data));
367 printf("bits per sample = %d bits\n", *((SLuint32*)u.pcmMetaData.data));
663 frameStats.sample(framelen);
/frameworks/rs/java/tests/SampleTest/src/com/android/rs/sample/
H A DSampleRSActivity.java17 package com.android.rs.sample;
H A Dsample.rs18 #pragma rs java_package_name(com.android.rs.sample)
/frameworks/opt/net/voip/src/jni/rtp/
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;
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/native/services/surfaceflinger/
H A DDispSync.cpp433 nsecs_t sample = mResyncSamples[idx]; local
434 double samplePhase = double(sample % mPeriod) * scale;
473 nsecs_t sample = mPresentTimes[i]; local
474 if (sample > mPhase) {
475 nsecs_t sampleErr = (sample - mPhase) % period;
/frameworks/opt/bitmap/sample/
H A DAndroid.mk21 LOCAL_PACKAGE_NAME := bitmapcache-sample
/frameworks/opt/chips/sample/src/com/android/ex/chips/sample/
H A DMainActivity.java16 package com.android.ex.chips.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/ml/bordeaux/service/src/android/bordeaux/services/
H A DAggregatorManager.java150 private ArrayList<StringString> getList(final Map<String, String> sample) { argument
152 for (Map.Entry<String, String> x : sample.entrySet()) {
H A DBordeauxAggregatorManager.java141 private Map<String, String> getMap(final List<StringString> sample) { argument
143 for (int i =0; i < sample.size(); i++) {
144 map.put(sample.get(i).key, sample.get(i).value);
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 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 DILearning_MulticlassPA.aidl27 void TrainOneSample(in List<IntFloat> sample, int target);
28 int Classify(in List<IntFloat> sample);
H A DILearning_StochasticLinearRanker.aidl30 float ScoreSample(in List<StringFloat> 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 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/native/cmds/flatland/
H A DMain.cpp613 // The slowest 1/outlierFraction sample results are ignored as potential
656 double sample = double(r.run(warmUpFrames, totalFrames)); local
662 if (sample < 0.0) {
667 samples.add(sample);
/frameworks/base/tests/MemoryUsage/src/com/android/tests/memoryusage/
H A DMemoryUsageTest.java237 for (int sample : pssData) {
238 sum += sample;
/frameworks/base/services/core/java/com/android/server/notification/
H A DNotificationUsageStats.java451 public void addSample(long sample) { argument
456 final double delta = sample - avg;
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/decoder/
H A DAudioTrackDecoder.java91 // Just drop the audio sample.
102 * Fills the argument {@link FrameValue} with an audio sample containing the audio that was
108 AudioSample sample = new AudioSample(
110 audioFrame.setValue(sample);
/frameworks/base/media/tests/audiotests/
H A Dshared_mem_test.cpp139 long sample; local
156 long sample; local
159 sample = (amplitude*sin1024[(phi>>22) & 0x3ff]) >> 15;
165 sample = sample + l0;
167 return (short)sample;
/frameworks/base/core/java/android/gesture/
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...]
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;

Completed in 571 milliseconds

12