Home
last modified time | relevance | path

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

123

/frameworks/base/media/jni/soundpool/
DSoundPool.cpp175 sp<Sample> sample = new Sample(++mNextSampleID, path); in load() local
176 mSamples.add(sample->sampleID(), sample); in load()
177 doLoad(sample); in load()
178 return sample->sampleID(); in load()
186 sp<Sample> sample = new Sample(++mNextSampleID, fd, offset, length); in load() local
187 mSamples.add(sample->sampleID(), sample); in load()
188 doLoad(sample); in load()
189 return sample->sampleID(); in load()
192 void SoundPool::doLoad(sp<Sample>& sample) in doLoad() argument
194 LOGV("doLoad: loading sample sampleID=%d", sample->sampleID()); in doLoad()
[all …]
DSoundPoolThread.cpp102 sp <Sample> sample = mSoundPool->findSample(sampleID); in doLoadSample() local
103 if (sample != 0) { in doLoadSample()
104 sample->doLoad(); in doLoadSample()
DSoundPool.h96 void set(const sp<Sample>& sample, int channelID, float leftVolume,
98 sp<Sample> sample() { return mSample; } in sample() function
124 void play(const sp<Sample>& sample, int channelID, float leftVolume, float rightVolume,
188 void doLoad(sp<Sample>& sample);
/frameworks/base/awt/org/apache/harmony/awt/gl/color/
DColorScaler.java193 int sample; in scaleNormalize() local
197 sample = r.getSample(row, col, chan); in scaleNormalize()
198 result[pos][chan] = (sample * normMultipliers[chan]); in scaleNormalize()
234 int sample; in unscaleNormalized() local
238 sample = (int) (data[pos][chan] * normMultipliers[chan] + 0.5f); in unscaleNormalized()
239 r.setSample(row, col, chan, sample); in unscaleNormalized()
269 int sample; in scale() local
273 sample = r.getSample(row, col, chan); in scale()
275 (short) (sample * channelMulipliers[chan] + 0.5f); in scale()
280 float sample; in scale() local
[all …]
/frameworks/base/core/java/android/gesture/
DInstance.java44 private Instance(long id, float[] sample, String sampleName) { in Instance() argument
46 vector = sample; in Instance()
51 float[] sample = vector; in normalize() local
54 int size = sample.length; in normalize()
56 sum += sample[i] * sample[i]; in normalize()
61 sample[i] /= magnitude; in normalize()
DInstanceLearner.java50 Instance sample = instances.get(i); in classify() local
51 if (sample.vector.length != vector.length) { in classify()
56 distance = GestureUtilities.cosineDistance(sample.vector, vector); in classify()
58 distance = GestureUtilities.squaredEuclideanDistance(sample.vector, vector); in classify()
66 Double score = label2score.get(sample.label); in classify()
68 label2score.put(sample.label, weight); in classify()
DGestureUtilities.java52 float[] sample = new float[sampleMatrixDimension * sampleMatrixDimension]; in spatialSampling() local
53 Arrays.fill(sample, 0); in spatialSampling()
100 plot(segmentStartX, segmentStartY, sample, sampleMatrixDimension); in spatialSampling()
109 plot(xpos, ypos, sample, sampleMatrixDimension); in spatialSampling()
117 plot(xpos, ypos, sample, sampleMatrixDimension); in spatialSampling()
128 plot(xpos, ypos, sample, sampleMatrixDimension); in spatialSampling()
136 plot(xpos, ypos, sample, sampleMatrixDimension); in spatialSampling()
148 return sample; in spatialSampling()
151 private static void plot(float x, float y, float[] sample, int sampleSize) {
162 if (sample[index] < 1){
[all …]
/frameworks/base/libs/audioflinger/
DAudioResamplerCubic.cpp76 int32_t sample; in resampleStereo16() local
141 int32_t sample; in resampleMono16() local
146 sample = interp(&left, x); in resampleMono16()
147 out[outputIndex++] += vl * sample; in resampleMono16()
148 out[outputIndex++] += vr * sample; in resampleMono16()
DAudioResampler.cpp304 int32_t sample = Interp(mX0L, in[0], phaseFraction); in resampleMono16() local
305 out[outputIndex++] += vl * sample; in resampleMono16()
306 out[outputIndex++] += vr * sample; in resampleMono16()
328 int32_t sample = Interp(in[inputIndex-1], in[inputIndex], in resampleMono16() local
330 out[outputIndex++] += vl * sample; in resampleMono16()
331 out[outputIndex++] += vr * sample; in resampleMono16()
DAudioMixer.cpp34 static inline int16_t clamp16(int32_t sample) in clamp16() argument
36 if ((sample>>15) ^ (sample>>31)) in clamp16()
37 sample = 0x7FFF ^ (sample>>31); in clamp16()
38 return sample; in clamp16()
/frameworks/base/tests/CoreTests/android/core/
DGZIPStreamTest.java66 byte[] sample = new byte[128 * 1024]; in makeSampleFile()
75 sample[offset++] = val; in makeSampleFile()
82 return sample; in makeSampleFile()
DZipStreamTest.java74 byte[] sample = new byte[128 * 1024]; in makeSampleFile()
83 sample[offset++] = val; in makeSampleFile()
90 return sample; in makeSampleFile()
DDeflateTest.java100 private void createSample(byte[] sample, int stepStep) { in createSample() argument
104 assertTrue(sample.length >= 128 * 1024); in createSample()
111 sample[offset++] = val; in createSample()
DZipFileTest.java62 byte[] sample = new byte[SAMPLE_SIZE]; in makeSampleFile()
71 sample[offset++] = val; in makeSampleFile()
78 return sample; in makeSampleFile()
/frameworks/base/docs/html/guide/samples/
Dindex.jd7 Here, you can browse the source of some sample Android applications that are included
10 <p>Each version of the Android platform available for the SDK includes a full set of sample
28 <p>The pages below provide an overview of each sample application (available with most
53 <dd>A sample application that demonstrates Android's search framework,
66 <p>For more sample applications, check out
/frameworks/base/awt/java/awt/image/
DBandCombineOp.java398 float sample; in verySlowFilter() local
407 sample = 0f; in verySlowFilter()
409 sample += matrix[dstB][srcB] * srcPixels[i + srcB]; in verySlowFilter()
411 dstPixels[j++] = (int)sample; in verySlowFilter()
417 sample = 0f; in verySlowFilter()
419 sample += matrix[dstB][srcB] * srcPixels[i + srcB]; in verySlowFilter()
421 dstPixels[j++] = (int)(sample + matrix[dstB][numBands]); in verySlowFilter()
DSinglePixelPackedSampleModel.java292 int sample = data.getElem(y * scanlineStride + x); in getSample() local
293 return ((sample & this.bitMasks[b]) >>> this.bitOffsets[b]); in getSample()
/frameworks/base/tests/FrameworkTest/
DREADME3 sample code. For instance, a layout contrived to exercise an edge case
/frameworks/base/core/java/android/preference/
DVolumePreference.java306 sample(); in onStopTrackingTouch()
314 private void sample() { in sample() method in VolumePreference.SeekBarVolumizer
332 sample(); in changeVolumeBy()
/frameworks/base/core/java/android/os/
DLatencyTimer.java64 public void sample(String tag, long delta) { in sample() method in LatencyTimer
/frameworks/base/docs/html/
Dlicense.jd13 code modules, as well as sample code, and </li>
47 <p>We are pleased to license the Android documentation and sample code under
75 <li>The use of sample source code provided in the SDK or shown in this
/frameworks/base/docs/html/guide/tutorials/notepad/
Dindex.jd16 sample code you need to complete the application. </p>
123 <li>The Android SDK includes a variety of fully functioning sample applications
124 that make excellent opportunities for further learning. You can find the sample
Dnotepad-index.jd16 sample code you need to complete the application. </p>
124 <li>The Android SDK includes a variety of fully functioning sample applications
125 that make excellent opportunities for further learning. You can find the sample
/frameworks/base/docs/html/sdk/ndk/1.6_r1/
Dindex.jd132 <p>The NDK includes three sample Android applications that illustrate how to use
294 <p>The NDK includes three sample applications that illustrate how to use native
310 <p>For each sample, the NDK includes an Android application project, as well as
332 <p>Next, build the sample Android applications that use the shared
337 create a new Android project for each sample, using the "Import from Existing
345 the build file for each of the sample projects at
/frameworks/base/docs/html/sdk/ndk/1.5_r1/
Dindex.jd129 <p>The NDK includes two sample Android applications that illustrate how to use
274 <p>The NDK includes two sample applications that illustrate how to use native
287 <p>For each sample, the NDK includes an Android application project, as well as
309 <p>Next, build the sample Android applications that use the shared
314 create a new Android project for each sample, using the "Import from Existing
322 the build file for each of the sample projects at

123