/cts/suite/audio_quality/test/ |
D | AudioSignalFactoryTest.cpp | 26 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()
|
D | ClientInterfaceTest.cpp | 66 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/suite/audio_quality/lib/src/audio/ |
D | AudioSignalFactory.cpp | 25 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()
|
D | AudioProtocol.cpp | 140 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/ |
D | gen_random.py | 31 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
|
D | calc_delay.py | 67 samples = float(samplingRate) * float(durationInSec) variable 68 index = np.linspace(0.0, samples, num=samples, endpoint=False)
|
D | calc_thd.py | 52 samples = float(samplingRate) * float(durationInSec) variable 53 index = np.linspace(0.0, samples, num=samples, endpoint=False)
|
/cts/suite/audio_quality/lib/include/audio/ |
D | AudioSignalFactory.h | 31 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/ |
D | BuiltinProcessing.cpp | 56 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/ |
D | TaskSound.cpp | 82 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/suite/audio_quality/client/src/com/android/cts/audiotest/ |
D | AudioProtocol.java | 337 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/suite/cts/deviceTests/browserbench/assets/octane/ |
D | pdfjs.js | 4228 var samples = this.getSampleArray(size, outputSize, bps, str); 4231 CONSTRUCT_SAMPLED, inputSize, domain, encode, decode, samples, size, 4248 var samples = IR[5]; 4310 rj += samples[cubeVertex[i] + j] * cubeN[i];
|