/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() 37 if(stereo) { in generateSineWave() 46 int maxPositive, int samples, bool stereo) in generateWhiteNoise() argument 48 int bufferSize = samples * (stereo? 2 : 1) * BPS; in generateWhiteNoise() 61 if (stereo) { in generateWhiteNoise() 71 int samples, bool stereo) in generateZeroSound() argument 73 int bufferSize = samples * (stereo? 2 : 1) * BPS; in generateZeroSound() 81 if (stereo) { in generateZeroSound()
|
D | Buffer.cpp | 24 Buffer::Buffer(size_t capacity, size_t size, bool stereo) in Buffer() argument 28 mStereo(stereo) in Buffer() 82 bool stereo; in loadFromFile() local 84 stereo = true; in loadFromFile() 86 stereo = false; in loadFromFile() 98 Buffer* buffer = new Buffer(size, size, stereo); in loadFromFile()
|
D | AudioRemote.cpp | 61 bool AudioRemotePlayback::startPlaybackForRemoteData(int id, bool stereo, int numberRepetition) in startPlaybackForRemoteData() argument 63 return mRemote->startPlayback(stereo, mSamplingRate, mMode, mVolume, id, numberRepetition); in startPlaybackForRemoteData() 75 bool stereo = buffer->isStereo(); in startPlaybackOrRecord() local 76 return mRemote->startRecording(stereo, mSamplingRate, mMode, mVolume, buffer); in startPlaybackOrRecord()
|
D | RemoteAudio.cpp | 231 bool RemoteAudio::startPlayback(bool stereo, int samplingF, int mode, int volume, in startPlayback() argument 247 LOGD("RemoteAudio::startPlayback stereo %d mode %d", stereo, mode); in startPlayback() 249 handler->getParam().mStereo = stereo; in startPlayback() 276 bool RemoteAudio::startRecording(bool stereo, int samplingF, int mode, int volume, in startRecording() argument 287 handler->getParam().mStereo = stereo; in startRecording()
|
/cts/suite/audio_quality/test/ |
D | RemoteAudioFakeTcpTest.cpp | 161 bool stereo = false; in TEST_F() local 164 int mode = AudioHardware::EModeVoice | (stereo ? 0x80000000 : 0); in TEST_F() 187 ASSERT_TRUE(mRemoteAudio->startPlayback(stereo, samplingF, mode, volume, id, repeat)); in TEST_F() 194 bool stereo = false; in TEST_F() local 197 int mode = AudioHardware::EModeVoice | (stereo ? 0x80000000 : 0); in TEST_F() 231 ASSERT_TRUE(mRemoteAudio->startPlayback(stereo, samplingF, mode, volume, id, repeat)); in TEST_F() 241 ASSERT_TRUE(mRemoteAudio->startPlayback(stereo, samplingF, mode, volume, id, repeat)); in TEST_F() 251 ASSERT_TRUE(mRemoteAudio->startPlayback(stereo, samplingF, mode, volume, id, repeat)); in TEST_F() 256 bool stereo = false; in TEST_F() local 259 int mode = AudioHardware::EModeVoice | (stereo ? 0x80000000 : 0); in TEST_F() [all …]
|
/cts/suite/audio_quality/lib/include/audio/ |
D | AudioSignalFactory.h | 32 bool stereo = true); 34 int maxPositive, int samples, bool stereo = true); 36 int samples, bool stereo = true);
|
D | RemoteAudio.h | 51 bool startPlayback(bool stereo, int samplingF, int mode, int volume, 56 bool startRecording(bool stereo, int samplingF, int mode, int volume,
|
D | AudioRemote.h | 50 bool startPlaybackForRemoteData(int id, bool stereo, int numberRepetition = 1);
|
D | Buffer.h | 35 explicit Buffer(size_t capacity, size_t size = 0, bool stereo = true);
|
/cts/suite/audio_quality/test_description/processing/ |
D | gen_random.py | 30 def do_gen_random(peakAmpl, durationInMSec, samplingRate, fHigh, stereo=True): argument 32 result = np.zeros(samples * 2 if stereo else samples, dtype=np.int16) 52 if stereo:
|
D | example.py | 45 stereo = stereoInt.astype(np.int16) 52 outputData.append(stereo)
|
D | check_spectrum_playback.py | 125 stereo=False)
|
D | check_spectrum.py | 159 stereo=False)
|
/cts/suite/audio_quality/client/src/com/android/cts/audiotest/ |
D | AudioProtocol.java | 238 final boolean stereo = ((mDataBuffer.getInt(2 * 4) & 0x80000000) != 0); in handleStartPlayback() 263 stereo ? AudioFormat.CHANNEL_OUT_STEREO : AudioFormat.CHANNEL_OUT_MONO, in handleStartPlayback() 273 stereo ? AudioFormat.CHANNEL_OUT_STEREO : AudioFormat.CHANNEL_OUT_MONO, in handleStartPlayback() 288 int endMarker = data.capacity()/(stereo ? 4 : 2); in handleStartPlayback() 291 " set.. res " + res + " stereo? " + stereo + " mode " + mode + in handleStartPlayback() 334 final boolean stereo = ((mDataBuffer.getInt(1 * 4) & 0x80000000) != 0); in handleStartRecording() 342 if (stereo) { in handleStartRecording()
|