Home
last modified time | relevance | path

Searched refs:samples (Results 1 – 20 of 20) sorted by relevance

/cts/suite/audio_quality/test/
DAudioSignalFactoryTest.cpp26 AudioHardware::SamplingRate samplingRate, int signalFreq, int samples) { in testSignalBasic() argument
27 ASSERT_TRUE(buffer->getSize() == (unsigned int)(AudioHardware::E2BPS * 2 * samples)); in testSignalBasic()
29 for(int i = 0; i < samples; i++) { in testSignalBasic()
43 const int samples = 8192 * 10; in TEST_F() local
45 maxPositive, AudioHardware::ESampleRate_44100, signalFreq, samples); in TEST_F()
46 testSignalBasic(buffer, maxPositive, AudioHardware::ESampleRate_44100, signalFreq, samples); in TEST_F()
52 const int samples = 8192 * 10; in TEST_F() local
54 maxPositive, samples); in TEST_F()
55 testSignalBasic(buffer, maxPositive, AudioHardware::ESampleRate_44100, signalFreq, samples); in TEST_F()
DClientInterfaceTest.cpp66 const int samples = 8192*2; in TEST_F() local
68 maxPositive, AudioHardware::ESampleRate_44100, signalFreq, samples); in TEST_F()
85 const int samples = 44100 * 4; in TEST_F() local
86 android::sp<Buffer> buffer(new Buffer(samples * 2, samples * 2, false)); in TEST_F()
91 ASSERT_TRUE(buffer->amountHandled() == (samples * 2)); in TEST_F()
/cts/tests/tests/media/src/android/media/cts/
DAudioHelper.java287 int samples = super.read(audioData, offsetInBytes, sizeInBytes); in read() local
289 Assert.assertEquals(samples, mTrack.write(audioData, offsetInBytes, samples)); in read()
290 mPosition += samples / mTrack.getChannelCount(); in read()
292 return samples; in read()
300 int samples = super.read(audioData, offsetInBytes, sizeInBytes, readMode); in read() local
302 Assert.assertEquals(samples, mTrack.write(audioData, offsetInBytes, samples, in read()
304 mPosition += samples / mTrack.getChannelCount(); in read()
306 return samples; in read()
314 int samples = super.read(audioData, offsetInShorts, sizeInShorts); in read() local
316 Assert.assertEquals(samples, mTrack.write(audioData, offsetInShorts, samples)); in read()
[all …]
DAudioTrackTest.java1617 int samples = Math.min(data.length - written, samplesPerWrite); in testPlayStreamData() local
1618 int ret = track.write(data, written, samples); in testPlayStreamData()
1619 assertEquals(TEST_NAME, samples, ret); in testPlayStreamData()
1628 int samples = Math.min(data.length - written, samplesPerWrite); in testPlayStreamData() local
1629 int ret = track.write(data, written, samples); in testPlayStreamData()
1630 assertEquals(TEST_NAME, samples, ret); in testPlayStreamData()
1639 int samples = Math.min(data.length - written, samplesPerWrite); in testPlayStreamData() local
1640 int ret = track.write(data, written, samples, in testPlayStreamData()
1642 assertEquals(TEST_NAME, samples, ret); in testPlayStreamData()
/cts/suite/audio_quality/lib/src/audio/
DAudioSignalFactory.cpp25 int samples, bool stereo) in generateSineWave() argument
27 int bufferSize = samples * (stereo? 2 : 1) * BPS; in generateSineWave()
33 for (int i = 0; i < samples; i++) { in generateSineWave()
46 int maxPositive, int samples, bool stereo) in generateWhiteNoise() argument
48 int bufferSize = samples * (stereo? 2 : 1) * BPS; in generateWhiteNoise()
56 for (int i = 0; i < samples; i++) { in generateWhiteNoise()
71 int samples, bool stereo) in generateZeroSound() argument
73 int bufferSize = samples * (stereo? 2 : 1) * BPS; in generateZeroSound()
78 for (int i = 0; i < samples; i++) { in generateZeroSound()
DAudioProtocol.cpp140 uint32_t samples = param.mBuffer->getSize() / (param.mStereo ? 4 : 2); in sendCommand() local
141 mBuffer[5] = htonl(samples); in sendCommand()
/cts/suite/audio_quality/test_description/processing/
Dgen_random.py31 samples = durationInMSec * samplingRate / 1000
32 result = np.zeros(samples * 2 if stereo else samples, dtype=np.int16)
33 randomSignal = np.random.normal(scale = peakAmpl * 2 / 3, size=samples)
35 freqSamples = samples/2
44 if (samples - 2 *freqSamples) != 0:
45 fftData[samples - 1] = 0
Dcalc_delay.py67 samples = float(samplingRate) * float(durationInSec) variable
68 index = np.linspace(0.0, samples, num=samples, endpoint=False)
Dcalc_thd.py52 samples = float(samplingRate) * float(durationInSec) variable
53 index = np.linspace(0.0, samples, num=samples, endpoint=False)
/cts/suite/audio_quality/lib/include/audio/
DAudioSignalFactory.h31 int maxPositive, AudioHardware::SamplingRate samplingRate, int signalFreq, int samples,
34 int maxPositive, int samples, bool stereo = true);
36 int samples, bool stereo = true);
/cts/suite/audio_quality/lib/src/
DBuiltinProcessing.cpp56 size_t samples = data->getSize()/2; in rms_mva() local
59 for (size_t i = 0; i < samples; i++) { in rms_mva()
62 rms = (int64_t)sqrt(energy/samples); in rms_mva()
/cts/suite/audio_quality/lib/src/task/
DTaskSound.cpp82 int samples = time * AudioHardware::ESampleRate_44100 / 1000; in run() local
84 AudioHardware::ESampleRate_44100, freq, samples, true); in run()
92 int samples = time * AudioHardware::ESampleRate_44100 / 1000; in run() local
94 samples, true); in run()
/cts/apps/CameraITS/tests/scene0/
Dtest_gyro_bias.py72 for samples in [xs,ys,zs]:
73 assert(samples.mean() < MEAN_THRESH)
74 assert(numpy.var(samples) < VAR_THRESH)
/cts/tools/utils/
Dmonsoon.py349 if FLAGS.samples:
367 while emitted < FLAGS.samples or FLAGS.samples == -1:
371 samples = mon.CollectData()
372 if not samples: break
373 collected.extend(samples)
/cts/apps/CameraITS/tests/dng_noise_model/
Ddng_noise_model.py117 samples = []
175 samples.extend([(round(s), mean, var) for (mean, var) in samples_s])
196 gains = np.asarray([s[0] for s in samples])
197 means = np.asarray([s[1] for s in samples])
198 vars_ = np.asarray([s[2] for s in samples])
/cts/apps/CtsVerifier/assets/scripts/
Dexecute_power_tests.py849 if FLAGS.samples:
868 while emitted < FLAGS.samples or FLAGS.samples == -1:
872 samples = mon.CollectData()
873 if not samples: break
874 collected.extend(samples)
/cts/suite/audio_quality/client/src/com/android/cts/audiotest/
DAudioProtocol.java337 final int samples = mDataBuffer.getInt(3 * 4); in handleStartRecording() local
346 mRecordingLength = samples * 2; in handleStartRecording()
359 Log.d(TAG, "recording started " + " samples " + samples + " mode " + mode + in handleStartRecording()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/
DNativeAudioThread.java94 public native int slesProcessNext(long sles_data, double[] samples, long offset); in slesProcessNext() argument
/cts/libs/deviceutil/src/android/cts/util/
DMediaUtils.java768 int samples = (int)Math.ceil((mSumX - window) / average); in movingAverageOverSum() local
769 double[] avgs = new double[samples]; in movingAverageOverSum()
791 while (ix < samples) { in movingAverageOverSum()
/cts/apps/CtsVerifier/libs/
Dopencv3-android.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/opencv/ org/ ...